:root {
  /* Premium retail: optical Fraunces + crisp Outfit */
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;

  --bg: #151521;
  --bg-card: #242235;
  --bg-input: #2b2940;
  --text: #f6f6ff;
  --text-muted: #b8b8d4;
  --accent: #e94560;
  --accent-light: #ff6b6b;
  --accent-glow: rgba(233, 69, 96, 0.4);
  --header-bg: linear-gradient(135deg, #1b2436 0%, #0f3460 40%, #a35729 70%, #e0a14a 100%);
  --header-border: rgba(255, 255, 255, 0.16);
  --gold: #f5cf70;
  --gold-soft: rgba(245, 207, 112, 0.18);
  --cyan: #00d9ff;
  --purple: #a855f7;
  --border: rgba(255,255,255,0.1);
  --sale: #ff4757;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 40px rgba(233, 69, 96, 0.22), 0 0 80px rgba(0, 217, 255, 0.12);
  --perspective-scene: 1400px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1.15, 0.36, 1);
  --card-lift: 0 28px 56px rgba(0, 0, 0, 0.55), 0 0 48px rgba(233, 69, 96, 0.22), 0 0 80px rgba(0, 217, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Fraunces (display): optical size + comfortable tracking */
:is(
    .skip-link,
    .tagline,
    .nav-link,
    .footer-label,
    .btn,
    .products-header h2,
    .section-title,
    #page-cart h2,
    #page-checkout h2,
    .product-name,
    .cart-item-name,
    .new-arrivals-kicker,
    .new-arrivals-title,
    .new-arrivals-name,
    .new-arrivals-pill,
    .chat-title,
    .rating-legend,
    .terms-content h3,
    .success-title,
    .btn-copy-link
  ) {
  font-optical-sizing: auto;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%, 100% { background-position: 200% center; }
  50% { background-position: -200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(0deg); }
  50% { transform: translateY(-6px) rotateX(2deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 0 35px var(--accent-glow), 0 12px 40px rgba(0,0,0,0.4); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer-kicker {
  0% { opacity: 0.75; letter-spacing: 0.16em; }
  50% { opacity: 1; letter-spacing: 0.22em; }
  100% { opacity: 0.75; letter-spacing: 0.16em; }
}

@keyframes ambientDrift {
  0% { opacity: 0.55; transform: scale(1) translate(0, 0); }
  33% { opacity: 0.75; transform: scale(1.05) translate(2%, -1%); }
  66% { opacity: 0.65; transform: scale(1.02) translate(-1%, 2%); }
  100% { opacity: 0.55; transform: scale(1) translate(0, 0); }
}

@keyframes shinePass {
  0%, 100% { background-position: -60% 0; }
  50% { background-position: 160% 0; }
}

@keyframes titleGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes conicGlowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes chatGlowPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 18px var(--accent-glow), 0 0 0 0 rgba(233, 69, 96, 0.35); }
  50% { box-shadow: 0 6px 32px rgba(0, 0, 0, 0.5), 0 0 32px var(--accent-glow), 0 0 0 10px rgba(233, 69, 96, 0); }
}

@keyframes headerReveal3d {
  from {
    opacity: 0;
    transform: translateY(18px) translateZ(-28px) rotateX(8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0deg);
  }
}

@keyframes chatPanelRise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes trustBarShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Keep fonts consistent across browsers and devices */
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 30000;
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: #121018;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, outline 0.15s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-feature-settings: "liga" 1, "kern" 1;
  font-optical-sizing: auto;
  position: relative;
  isolation: isolate;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(233, 69, 96, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 217, 255, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(168, 85, 247, 0.1), transparent),
    linear-gradient(180deg, rgba(12, 14, 28, 0.4) 0%, transparent 35%, rgba(8, 10, 22, 0.5) 100%);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease-out;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body::before {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 15% 25%, rgba(233, 69, 96, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 45% 50% at 88% 18%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 35% at 70% 92%, rgba(168, 85, 247, 0.12) 0%, transparent 55%);
  filter: blur(0px);
  animation: ambientDrift 22s ease-in-out infinite alternate;
  opacity: 0.95;
}

.site-header {
  position: relative;
  padding: 3rem 1.5rem 3rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--header-border);
  min-height: 32vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: var(--perspective-scene);
}

.header-hero-bg {
  position: absolute;
  inset: 0;
  background: url(/images/hero-sandals.png) center center / cover no-repeat;
  z-index: 0;
}

.header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 24, 45, 0.96) 0%,
    rgba(20, 39, 76, 0.96) 38%,
    rgba(120, 70, 32, 0.82) 72%,
    rgba(28, 20, 15, 0.96) 100%
  );
  z-index: 1;
}

.header-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  transform-style: preserve-3d;
  animation: headerReveal3d 1s var(--ease-spring) 0.05s backwards;
}

.logo-link {
  display: inline-block;
  margin: 0;
  line-height: 0;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--header-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, var(--gold-soft) 45%, rgba(0, 0, 0, 0.15) 100%);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.35s var(--ease-out-expo), border-color 0.35s ease, box-shadow 0.35s ease, transform 0.45s var(--ease-spring);
  transform: translateZ(0);
  transform-style: preserve-3d;
}

.logo-link:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(249, 211, 66, 0.22) 50%, rgba(0, 0, 0, 0.12) 100%);
  border-color: rgba(249, 211, 66, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(249, 211, 66, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-6px) rotateX(8deg) scale(1.03);
}

.logo-img {
  display: block;
  width: auto;
  max-width: min(260px, 78vw);
  height: auto;
  max-height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 24px rgba(245, 207, 112, 0.2));
  transition: filter 0.35s ease, transform 0.45s var(--ease-spring);
}

.logo-link:hover .logo-img {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 32px rgba(245, 207, 112, 0.35));
}

.tagline {
  margin: 0.875rem 0 1.25rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(245, 207, 112, 0.35), 0 2px 16px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
  text-shadow: 0 0 20px var(--gold-soft);
}

.nav-link.active {
  color: #fff;
  border-bottom-color: var(--gold);
  text-shadow: 0 0 16px var(--gold-soft);
}

.nav-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
  color: var(--gold);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-count {
  background: linear-gradient(135deg, var(--gold), #ffc107);
  color: #1a1512;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.25rem;
  height: 1.25rem;
  letter-spacing: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(249, 211, 66, 0.5);
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2rem;
  padding: 0.85rem 1rem;
  background:
    linear-gradient(110deg, rgba(233, 69, 96, 0.12), rgba(26, 28, 48, 0.92) 40%, rgba(15, 52, 96, 0.55) 70%, rgba(63, 46, 32, 0.65)),
    radial-gradient(circle at 0% 0%, rgba(245, 207, 112, 0.22), transparent 55%);
  background-size: 220% 100%, 100% 100%;
  animation: trustBarShimmer 16s ease-in-out infinite alternate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-icon {
  color: var(--gold);
  font-size: 0.6rem;
}

.new-arrivals {
  margin: 1.75rem 0 1.5rem;
}

.new-arrivals-inner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.75rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 207, 112, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(0, 217, 255, 0.14), transparent 55%),
    linear-gradient(135deg, #232432 0%, #2d3748 35%, #5a3720 70%, #201612 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(233, 69, 96, 0.35);
}

.new-arrivals-inner::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 210deg, rgba(249,211,66,0.45), transparent, rgba(0,217,255,0.35), transparent, rgba(233,69,96,0.45));
  opacity: 0.4;
  mix-blend-mode: screen;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: conicGlowSpin 32s linear infinite;
}

.new-arrivals-inner > * {
  position: relative;
  z-index: 1;
}

.new-arrivals-header {
  text-align: left;
  margin-bottom: 1.25rem;
}

.new-arrivals-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 207, 112, 0.95);
  animation: shimmer-kicker 4s linear infinite;
}

.new-arrivals-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.new-arrivals-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(232, 232, 255, 0.85);
  max-width: 520px;
}

.new-arrivals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.new-arrivals-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: radial-gradient(circle at 0% 0%, rgba(0,0,0,0.45), rgba(0,0,0,0.7));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.35s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
}

.new-arrivals-card:hover {
  transform: translateY(-4px) translateZ(8px) rotateX(2deg);
  border-color: rgba(245, 207, 112, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 28px rgba(245, 207, 112, 0.12);
}

.new-arrivals-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #1e223d, #111320);
}

.new-arrivals-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
}

.new-arrivals-pill {
  position: absolute;
  top: 0.45rem;
  left: 0.55rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  color: rgba(249, 211, 66, 0.95);
  border: 1px solid rgba(249, 211, 66, 0.65);
}

.new-arrivals-tag {
  position: absolute;
  bottom: 0.45rem;
  left: 0.55rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.7);
}

.new-arrivals-info {
  min-width: 0;
}

.new-arrivals-name {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.new-arrivals-desc {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: rgba(232, 232, 255, 0.9);
}

.new-arrivals-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.new-arrivals-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.new-arrivals-cta {
  padding-inline: 1.75rem;
  font-size: 0.9rem;
}
.main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem max(1rem, env(safe-area-inset-left)) 3rem max(1rem, env(safe-area-inset-right));
  width: 100%;
  perspective: var(--perspective-scene);
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

.products-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(36, 36, 58, 0.65) 0%, rgba(20, 20, 38, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.product-search {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.product-search::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.product-search:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: rgba(245, 207, 112, 0.45);
}

.products-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #ffffff 0%, var(--gold) 45%, var(--cyan) 88%, var(--gold) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGradientFlow 10s ease-in-out infinite;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35));
}

.filter-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-wrap label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

#categoryFilter,
#productSort {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

#categoryFilter:focus-visible,
#productSort:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  perspective: var(--perspective-scene);
  transform-style: preserve-3d;
}

.product-skeleton {
  grid-column: span 1;
  min-height: 22rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(35, 35, 60, 0.85) 100%);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}

.product-skeleton-img {
  aspect-ratio: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.product-skeleton-line {
  height: 0.75rem;
  margin: 1rem 1rem 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.product-skeleton-line--short {
  width: 45%;
  margin-bottom: 1rem;
}

.product-grid-error,
.product-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.product-grid-error-title,
.product-grid-empty-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.product-grid-error-text,
.product-grid-empty-text {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-card--highlight {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: outline 0.2s ease, box-shadow 0.2s ease;
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-card-top .product-name {
  flex: 1;
  min-width: 0;
}

.btn-copy-link {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-copy-link:hover {
  color: var(--gold);
  border-color: rgba(245, 207, 112, 0.35);
}

.btn-copy-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.cart-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.cart-share-row .btn {
  flex: 1 1 auto;
  min-width: 10rem;
  text-align: center;
  justify-content: center;
}

.success-response {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.success-wa-prefill {
  font-weight: 600;
  color: var(--cyan);
}

.product-card {
  background: linear-gradient(148deg, rgba(42, 42, 68, 0.98) 0%, var(--bg-card) 38%, rgba(18, 18, 36, 0.98) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 -20px 50px rgba(233, 69, 96, 0.06) inset;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.45s ease, border-color 0.35s ease;
  animation: fadeInUp 0.5s ease-out backwards;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(249,211,66,0.3), transparent 40%, transparent 60%, rgba(0,217,255,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-12px) translateZ(16px) scale(1.025) rotateX(4deg);
  box-shadow: var(--card-lift);
  border-color: rgba(233, 69, 96, 0.45);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 38%, transparent 62%, rgba(0, 217, 255, 0.06) 100%);
  opacity: 0.4;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.product-card:hover::after {
  opacity: 0.85;
}

.product-image-wrap {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #141428 0%, #252540 55%, #1a1a32 100%);
  overflow: hidden;
  position: relative;
}

.product-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.18) 50%, transparent 64%);
  background-size: 220% 100%;
  mix-blend-mode: overlay;
  animation: shinePass 4.5s ease-in-out infinite;
  opacity: 0.55;
}

.product-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.product-image-wrap .product-gallery-img,
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-image-wrap .product-gallery-img,
.product-card:hover .product-image-wrap img {
  transform: scale(1.08);
}

/* Product #1: show full shoe in frame (photos are not cropped) */
.product-image-wrap--contain .gallery-zoom {
  inset: 0.5rem;
}

.product-image-wrap--contain .product-gallery-img,
.product-image-wrap--contain img {
  object-fit: contain;
  object-position: center;
}

.product-card:hover .product-image-wrap--contain .product-gallery-img,
.product-card:hover .product-image-wrap--contain img {
  transform: scale(1.04);
}

.gallery-zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  display: block;
  line-height: 0;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.gallery-zoom:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.gallery-nav:hover {
  background: rgba(233, 69, 96, 0.88);
  border-color: rgba(255, 255, 255, 0.4);
}

.gallery-prev {
  left: 0.35rem;
}

.gallery-next {
  right: 0.35rem;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.image-lightbox:not([hidden]) .image-lightbox-backdrop {
  animation: image-lightbox-backdrop-in 0.28s ease-out forwards;
}

@keyframes image-lightbox-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.image-lightbox:not([hidden]) .image-lightbox-inner {
  animation: image-lightbox-pop-in 0.38s cubic-bezier(0.22, 1.15, 0.36, 1) forwards;
}

@keyframes image-lightbox-pop-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-lightbox:not([hidden]) .image-lightbox-backdrop,
  .image-lightbox:not([hidden]) .image-lightbox-inner {
    animation: none;
  }
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.image-lightbox-inner {
  position: relative;
  z-index: 2;
  width: min(96vw, 960px);
  max-height: 90vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
}

.image-lightbox-inner > * {
  pointer-events: auto;
}

.image-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(30, 30, 50, 0.95);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.image-lightbox-close:hover {
  background: var(--accent);
  color: #fff;
}

.image-lightbox-nav {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(30, 30, 50, 0.92);
  color: var(--gold);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.image-lightbox-nav:hover {
  background: rgba(233, 69, 96, 0.35);
  border-color: var(--accent);
}

.image-lightbox-frame {
  flex: 1;
  min-width: 0;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(253, 224, 71, 0.1) 45%, rgba(233, 69, 96, 0.08) 100%);
  border-radius: 18px;
  box-shadow:
    0 0 0 3px rgba(253, 224, 71, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 28px 80px rgba(0, 0, 0, 0.65);
}

.image-lightbox-frame img {
  max-width: 100%;
  max-height: calc(85vh - 1.2rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.product-info {
  position: relative;
  z-index: 2;
  padding: 1rem;
}

.product-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.product-desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.product-price-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-original {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-size-wrap {
  margin-bottom: 0.75rem;
}

.product-size-wrap label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.product-size {
  width: 100%;
  max-width: 5rem;
  padding: 0.4rem 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.product-size:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-input);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-control button:hover {
  background: #4a4a4a;
}

.qty-control button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  z-index: 1;
}

.qty-control span {
  min-width: 2rem;
  text-align: center;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.image-lightbox-close:focus-visible,
.image-lightbox-nav:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.logo-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (hover: none) {
  .btn,
  .nav-link,
  .cart-item-remove,
  .rating-item label,
  .chat-toggle,
  .back-to-top,
  .gallery-nav,
  .gallery-zoom,
  .image-lightbox-close,
  .image-lightbox-nav {
    -webkit-tap-highlight-color: transparent;
  }
}

.btn-primary {
  background: linear-gradient(145deg, #ff5c72 0%, var(--accent) 42%, #c73d52 100%);
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22), 0 10px 32px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.25s ease, filter 0.2s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  background: linear-gradient(145deg, var(--accent-light) 0%, #ff8787 55%, #e94560 100%);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18), 0 16px 40px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:active {
  transform: translateY(2px) scale(0.99);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28), 0 6px 18px var(--accent-glow);
  filter: brightness(0.97);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #4a4a4a;
}

.btn-add {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Cart */
#page-cart h2,
#page-checkout h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #ffffff 0%, var(--gold) 55%, rgba(0, 217, 255, 0.85) 100%);
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGradientFlow 11s ease-in-out infinite;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.cart-empty {
  color: var(--text-muted);
  padding: 2rem;
  text-align: center;
}

.cart-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #2d2d2d;
}

.cart-item-name {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.25rem;
  letter-spacing: -0.015em;
}

.cart-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg-input);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.cart-item-qty button:hover {
  background: #4a4a4a;
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent-light);
  white-space: nowrap;
}

.cart-item-remove {
  grid-column: 1 / -1;
  justify-self: start;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.cart-item-remove:hover {
  color: var(--sale);
}

.cart-footer {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.cart-total {
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.cart-total strong {
  color: var(--accent-light);
}

/* Checkout */
.checkout-form {
  max-width: 480px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.checkout-summary {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.checkout-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checkout-summary li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.checkout-summary .total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.order-success {
  max-width: 480px;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: left;
}

.order-success.hidden {
  display: none !important;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--gold);
  text-align: center;
  letter-spacing: -0.02em;
}

.order-success p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.success-instructions {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.success-instructions a {
  color: var(--gold);
  text-decoration: none;
}

.success-instructions a:hover {
  text-decoration: underline;
}

.order-success .btn {
  display: block;
  margin: 1.5rem auto 0;
  text-align: center;
}

.site-footer {
  position: relative;
  padding: 2.25rem 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: none;
  background: linear-gradient(0deg, rgba(8, 8, 20, 0.92) 0%, transparent 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(245, 207, 112, 0.55), rgba(0, 217, 255, 0.4), rgba(233, 69, 96, 0.5), transparent);
  box-shadow: 0 0 24px rgba(245, 207, 112, 0.25);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.footer-contact p {
  margin: 0;
  text-align: left;
}

.footer-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.footer-address {
  line-height: 1.5;
}

.footer-email {
  max-width: min(100%, 26rem);
}

.footer-email-main {
  word-break: break-word;
}

.footer-email-hint,
.footer-email-web-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(184, 184, 212, 0.88);
  margin-top: 0.4rem;
  line-height: 1.45;
}

.footer-email-web-label {
  margin-top: 0.65rem;
}

.footer-email-web {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin-top: 0.4rem;
}

.footer-email-web a {
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-email-web-sep {
  color: rgba(184, 184, 212, 0.45);
  user-select: none;
}

.footer-phone-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  color: #25d366 !important;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.footer-whatsapp-link svg {
  width: 1rem;
  height: 1rem;
}

.footer-whatsapp-link:hover {
  transform: translateY(-1px);
  background: rgba(37, 211, 102, 0.22);
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.4);
}

.footer-contact a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-developer {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: rgba(184, 184, 212, 0.75);
}

.footer-feedback-link,
.footer-privacy-link,
.footer-terms-link {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-feedback-link:hover,
.footer-privacy-link:hover,
.footer-terms-link:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* ========== Testimonials ========== */
.section-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(95deg, #ffffff 0%, var(--gold) 40%, var(--cyan) 75%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  animation: titleGradientFlow 12s ease-in-out infinite;
  filter: drop-shadow(0 3px 20px rgba(0, 0, 0, 0.4));
}

.section-subtitle {
  margin: 0 0 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  perspective: var(--perspective-scene);
  transform-style: preserve-3d;
}

.testimonial-card {
  background: linear-gradient(148deg, rgba(40, 40, 68, 0.95) 0%, var(--bg-card) 50%, rgba(22, 22, 42, 0.98) 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.35s ease, border-color 0.3s ease;
  animation: fadeInUp 0.5s ease-out backwards;
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.testimonial-card:nth-child(1) { animation-delay: 0.05s; }
.testimonial-card:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card:nth-child(3) { animation-delay: 0.15s; }
.testimonial-card:nth-child(4) { animation-delay: 0.2s; }
.testimonial-card:nth-child(5) { animation-delay: 0.25s; }

.testimonial-card:hover {
  transform: translateY(-8px) translateZ(10px) rotateX(2deg);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 36px rgba(245, 207, 112, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-color: rgba(249, 211, 66, 0.38);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.testimonial-quote {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}

.testimonial-quote::before {
  content: '"';
  color: var(--gold);
}

.testimonial-quote::after {
  content: '"';
  color: var(--gold);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial-author strong {
  color: var(--gold);
  font-weight: 600;
}

/* ========== Feedback form ========== */
.feedback-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem;
  background: linear-gradient(150deg, rgba(44, 44, 72, 0.95) 0%, var(--bg-card) 45%, rgba(18, 18, 34, 0.98) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 40px rgba(233, 69, 96, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feedback-form .form-group label .required {
  color: var(--accent-light);
}

.feedback-form .form-group input,
.feedback-form .form-group textarea,
.feedback-form .form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.feedback-form .form-group input:focus,
.feedback-form .form-group textarea:focus,
.feedback-form .form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Feedback: 0–10 rating (native radios — one choice, accessible) */
.form-group--rating {
  margin-top: 0.25rem;
}

.rating-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.rating-legend {
  float: none;
  width: 100%;
  padding: 0;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.rating-legend-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.rating-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.35rem;
}

.rating-item {
  position: relative;
  margin: 0;
}

.rating-item input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.rating-item label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
  -webkit-user-select: none;
  user-select: none;
}

.rating-item label:hover {
  border-color: rgba(245, 207, 112, 0.45);
  color: var(--text);
}

.rating-item input:focus-visible + label {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.rating-item input:checked + label {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b6b 100%);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.rating-item input:checked + label:hover {
  color: #fff;
}

.feedback-actions {
  margin-top: 1.25rem;
}

.feedback-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.feedback-message.success {
  background: rgba(0, 200, 100, 0.15);
  border: 1px solid rgba(0, 200, 100, 0.4);
  color: #7affb8;
}

.feedback-message.error {
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.4);
  color: var(--accent-light);
}

/* ========== Back to top ========== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, var(--bg-card) 40%, #1a1a32 100%);
  color: var(--gold);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2), 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(245, 207, 112, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease-spring), box-shadow 0.25s ease;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(160deg, var(--accent-light) 0%, var(--accent) 100%);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.15), 0 18px 40px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ========== Chat widget (on every page) ========== */
.chat-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 999;
  font-size: 0.95rem;
}

body:has(.back-to-top.visible) .chat-widget {
  bottom: 4.5rem;
}

@media (max-width: 768px) {
  body:has(.back-to-top.visible) .chat-widget {
    bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  }
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, var(--bg-card) 30%, var(--accent) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px var(--accent-glow), inset 0 2px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.25s ease;
  animation: chatGlowPulse 2.8s ease-in-out infinite;
}

.chat-toggle:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18), 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 36px var(--accent-glow), inset 0 2px 0 rgba(255, 255, 255, 0.28);
  animation: none;
}

.chat-toggle-icon {
  font-size: 1.5rem;
}

.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: min(380px, calc(100vw - 2rem));
  max-height: 420px;
  background: linear-gradient(155deg, rgba(46, 46, 78, 0.98) 0%, var(--bg-card) 45%, #15152a 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 48px rgba(0, 217, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: 90% 100%;
}

.chat-panel:not([hidden]) {
  animation: chatPanelRise 0.4s var(--ease-spring) forwards;
}

.chat-panel[hidden] {
  display: none !important;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, rgba(233, 69, 96, 0.25), rgba(15, 52, 96, 0.4));
  border-bottom: 1px solid var(--border);
}

.chat-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.chat-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.chat-close:hover {
  background: var(--bg-input);
  color: var(--text);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 180px;
  max-height: 240px;
}

.chat-msg {
  max-width: 90%;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  line-height: 1.45;
  font-size: 0.9rem;
}

.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), #ff6b6b);
  color: #fff;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
}

.chat-msg.error {
  align-self: flex-start;
  background: rgba(255, 71, 87, 0.2);
  border: 1px solid rgba(255, 71, 87, 0.5);
  color: var(--accent-light);
}

.chat-voice-bar {
  padding: 0.4rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}

.chat-voice-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.chat-voice-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.chat-input-wrap {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-send {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Terms and Conditions page */
.terms-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  text-align: left;
}

.terms-content .section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.terms-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.terms-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--gold);
  margin: 1.5rem 0 0.5rem;
}

.terms-content h3:first-of-type {
  margin-top: 0;
}

.terms-content p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.terms-content a {
  color: var(--gold);
  text-decoration: none;
}

.terms-content a:hover {
  text-decoration: underline;
}

.terms-contact {
  margin-top: 2rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== Mobile & tablet responsive ========== */

@media (max-width: 768px) {
  .site-header {
    padding: 1.25rem max(0.75rem, env(safe-area-inset-left)) 1.5rem max(0.75rem, env(safe-area-inset-right));
    min-height: 22vh;
  }

  .logo-link {
    padding: 0.5rem 1rem;
  }

  .logo-img {
    max-height: 56px;
    max-width: min(220px, 80vw);
  }

  .tagline {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
  }

  .main {
    padding: 1rem max(0.75rem, env(safe-area-inset-left)) 2rem max(0.75rem, env(safe-area-inset-right));
  }

  .form-group input,
  .form-group textarea,
  .feedback-form .form-group input,
  .feedback-form .form-group textarea,
  .feedback-form .form-group select,
  #categoryFilter,
  #productSort,
  .product-search {
    font-size: 16px;
  }

  .new-arrivals {
    margin: 1.25rem 0 1.25rem;
  }

  .new-arrivals-inner {
    padding: 1.1rem 1rem 1.25rem;
  }

  .new-arrivals-grid {
    grid-template-columns: 1fr;
  }

  .new-arrivals-card {
    grid-template-columns: 1.2fr 1.8fr;
  }

  .new-arrivals-title {
    font-size: 1.4rem;
  }

  .products-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .products-header h2 {
    font-size: 1.35rem;
  }

  .filter-wrap {
    justify-content: flex-start;
  }

  #categoryFilter,
  #productSort {
    min-height: 44px;
    padding: 0.6rem 0.75rem;
  }

  .product-search {
    min-height: 44px;
    width: 100%;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    margin-left: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .gallery-nav {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    font-size: 1.5rem;
  }

  .image-lightbox-inner {
    width: 100%;
    max-width: 100%;
    gap: 0.2rem;
  }

  .image-lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    font-size: 1.5rem;
  }

  .product-info {
    padding: 0.875rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-desc {
    font-size: 0.85rem;
  }

  .qty-control button {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  .btn-add {
    min-height: 44px;
    padding: 0.6rem 1rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .footer-contact p {
    text-align: center;
  }

  .site-footer {
    padding: 1.5rem max(1rem, env(safe-area-inset-left)) 1rem max(1rem, env(safe-area-inset-right));
  }

  .footer-copy {
    line-height: 1.5;
    word-break: break-word;
  }

  .trust-bar {
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    padding: 0.6rem max(0.5rem, env(safe-area-inset-left)) 0.6rem max(0.5rem, env(safe-area-inset-right));
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feedback-form {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .chat-widget {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(0.75rem, env(safe-area-inset-right));
  }

  .chat-panel {
    width: min(100%, calc(100vw - 1.5rem));
    max-height: min(420px, 60vh);
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 20vh;
    padding: 1rem max(0.75rem, env(safe-area-inset-left)) 1.25rem max(0.75rem, env(safe-area-inset-right));
  }

  .main {
    padding: 0.75rem max(0.75rem, env(safe-area-inset-left)) 1.5rem max(0.75rem, env(safe-area-inset-right));
  }

  .new-arrivals-inner {
    padding: 0.9rem 0.75rem 1.1rem;
  }

  .new-arrivals-card {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
    align-items: start;
  }

  .cart-item img {
    width: 64px;
    height: 64px;
  }

  .cart-item-qty,
  .cart-item-price {
    grid-column: 2;
  }

  .cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
  }

  .cart-item-qty button {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  .cart-item-price {
    margin-top: 0.25rem;
  }

  .cart-item-remove {
    grid-column: 2;
    margin-top: 0.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  #page-cart h2,
  #page-checkout h2 {
    font-size: 1.25rem;
  }

  .checkout-form,
  .order-success {
    max-width: 100%;
  }

  .order-success {
    padding: 1.25rem;
  }

  .success-instructions {
    font-size: 0.85rem;
    padding-left: 1rem;
  }

  .terms-content {
    padding: 1rem 0.75rem 2rem;
  }

  .terms-content h3 {
    font-size: 1rem;
  }

  .terms-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 18vh;
  }

  .logo-img {
    max-height: 48px;
    max-width: min(180px, 75vw);
  }

  .tagline {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }

  .nav {
    gap: 0.4rem 0.75rem;
  }

  .nav-link {
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
  }

  .products-header h2 {
    font-size: 1.2rem;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-info {
    padding: 0.75rem;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .product-desc {
    font-size: 0.8rem;
  }

  .product-price-wrap {
    flex-wrap: wrap;
  }

  .product-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .product-size {
    max-width: 100%;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .testimonial-card {
    padding: 1rem;
  }

  .testimonial-quote {
    font-size: 0.9rem;
  }

  .feedback-form {
    padding: 0.75rem;
  }

  .footer-copy {
    font-size: 0.75rem;
  }

  .footer-developer {
    font-size: 0.65rem;
  }

  .chat-toggle {
    width: 48px;
    height: 48px;
  }

  .chat-toggle-icon {
    font-size: 1.25rem;
  }
}

@media (max-width: 400px) {
  .logo-img {
    max-height: 44px;
  }
}

/* ========== Tablet ========== */

@media (min-width: 769px) {
  .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .main {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .footer-contact {
    gap: 1.5rem 2rem;
  }
}

/* ========== Desktop: larger screens ========== */

@media (min-width: 1024px) {
  .main {
    padding: 2rem 1.5rem 3rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

/* Respect system preference: keep layout polish, dial back motion & 3D */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before,
  .new-arrivals-inner::before,
  .new-arrivals-kicker,
  .product-image-wrap::before,
  .products-header h2,
  .section-title,
  #page-cart h2,
  #page-checkout h2,
  .trust-bar {
    animation: none !important;
  }

  .header-inner,
  .chat-panel:not([hidden]) {
    animation: none !important;
  }

  .chat-toggle {
    animation: none !important;
  }

  .product-card,
  .new-arrivals-card,
  .testimonial-card {
    transition-duration: 0.15s;
  }

  .product-card:hover {
    transform: translateY(-4px);
  }

  .new-arrivals-card:hover,
  .testimonial-card:hover {
    transform: translateY(-3px);
  }
}
