/* ==========================================================================
   STRIDE — Design System
   A single source of truth for tokens, primitives, and components.
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --color-bg: #ffffff;
  --color-surface: #f6f6f7;
  --color-surface-2: #efeff1;
  --color-text: #0a0a0a;
  --color-text-muted: #666a72;
  --color-text-faint: #9a9ea6;
  --color-border: #e6e7e9;
  --color-accent: #0f62fe;
  --color-accent-dark: #0a46c4;
  --color-accent-tint: #eaf1ff;
  --color-badge: #ff3b30;
  --color-success: #12b76a;
  --color-star: #ffb020;
  --color-overlay: rgba(10, 10, 10, 0.55);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 1px 1px rgba(10, 10, 10, 0.03);
  --shadow-md: 0 8px 24px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 10, 10, 0.14);
  --shadow-accent: 0 10px 24px rgba(15, 98, 254, 0.28);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;

  /* Layout */
  --container: 1280px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 480ms;
}

[data-theme="dark"] {
  --color-bg: #0a0a0a;
  --color-surface: #141416;
  --color-surface-2: #1c1d20;
  --color-text: #f5f5f6;
  --color-text-muted: #a2a5ab;
  --color-text-faint: #6c6f76;
  --color-border: #26272b;
  --color-accent: #4b8cff;
  --color-accent-dark: #7aa9ff;
  --color-accent-tint: #10203f;
  --color-overlay: rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 600; }

/* Visible focus states — accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-accent); color: #fff;
  padding: var(--sp-2) var(--sp-4); z-index: 200; border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
@media (max-width: 640px) { .container { padding-inline: var(--sp-4); } }

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

section { padding-block: var(--sp-9); }
@media (max-width: 900px) { section { padding-block: var(--sp-7); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); }
.section-sub { color: var(--color-text-muted); font-size: 16px; max-width: 46ch; margin-top: var(--sp-2); }

/* ---------- Stride signature: stepped dot divider ---------- */
.stride-divider {
  display: flex; align-items: center; gap: 10px; height: 20px; margin-block: var(--sp-2);
}
.stride-divider span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-border);
}
.stride-divider span.on { background: var(--color-accent); }
.stride-divider .track {
  flex: 1; height: 2px; background: var(--color-border); position: relative; overflow: hidden; border-radius: 2px;
}
.stride-divider .track::after {
  content: ''; position: absolute; inset: 0; width: 40%; background: var(--color-accent);
  animation: stride-run 2.6s var(--ease) infinite;
}
@keyframes stride-run { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: 0 14px 30px rgba(15,98,254,0.36); transform: translateY(-1px); }
.btn-dark { background: var(--color-text); color: var(--color-bg); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-text); }
.btn-ghost { background: transparent; color: var(--color-text); padding: 10px 16px; }
.btn-ghost:hover { background: var(--color-surface); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-icon {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: var(--color-surface); border: 1px solid var(--color-border);
}
.btn-icon:hover { background: var(--color-surface-2); transform: translateY(-1px); }
.btn-icon svg { width: 19px; height: 19px; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav-bar { display: flex; align-items: center; gap: var(--sp-6); height: var(--header-h); }
.brand { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.nav-links { display: flex; align-items: center; gap: var(--sp-5); margin-inline: auto; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--color-text-muted); position: relative; padding-block: 6px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--color-accent);
  transition: width var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--color-text); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-2); }
.nav-search { position: relative; display: flex; align-items: center; }
.nav-search input {
  width: 220px; height: 44px; border-radius: var(--radius-pill); border: 1px solid var(--color-border);
  background: var(--color-surface); padding: 0 40px 0 16px; font-size: 14px; transition: width var(--dur) var(--ease), border-color var(--dur-fast);
}
.nav-search input:focus { width: 280px; border-color: var(--color-accent); background: var(--color-bg); }
.nav-search svg { position: absolute; right: 14px; width: 16px; height: 16px; color: var(--color-text-faint); pointer-events: none; }
.icon-badge { position: relative; }
.icon-badge .count {
  position: absolute; top: -4px; right: -4px; background: var(--color-accent); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px; border: 2px solid var(--color-bg);
}
.nav-toggle { display: none; }
.mobile-panel { display: none; }

@media (max-width: 980px) {
  .nav-links, .nav-search { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-panel.open {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--color-bg); z-index: 99;
    padding: var(--sp-5); overflow-y: auto; animation: fade-down var(--dur) var(--ease);
  }
  .mobile-panel a { display: block; font-size: 20px; font-weight: 600; padding: var(--sp-3) 0; border-bottom: 1px solid var(--color-border); }
  .mobile-panel .m-search { margin-bottom: var(--sp-5); }
  .mobile-panel .m-search input { width: 100%; height: 48px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); padding: 0 18px; background: var(--color-surface); }
}
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-faint); padding-top: var(--sp-5); flex-wrap: wrap; }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { opacity: 0.6; }
.breadcrumb .current { color: var(--color-text); font-weight: 500; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-top: var(--sp-8); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--sp-7); }
.hero-copy .eyebrow { margin-bottom: var(--sp-4); }
.hero-title { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; margin-bottom: var(--sp-4); }
.hero-title em { color: var(--color-accent); font-style: normal; }
.hero-desc { font-size: 18px; color: var(--color-text-muted); max-width: 46ch; margin-bottom: var(--sp-6); }
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-7); }
.hero-stats { display: flex; gap: var(--sp-7); }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 26px; }
.hero-stats .stat span { font-size: 13px; color: var(--color-text-muted); }
.hero-visual { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); box-shadow: var(--shadow-lg); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.hero-visual:hover img { transform: scale(1.04) rotate(-1deg); }
.hero-badge {
  position: absolute; bottom: var(--sp-4); left: var(--sp-4); background: var(--color-bg);
  border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: var(--sp-3);
}
.hero-badge b { font-family: var(--font-display); font-size: 15px; }
.hero-badge span { font-size: 12px; color: var(--color-text-muted); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 4/3; }
  .hero-stats { gap: var(--sp-5); flex-wrap: wrap; }
}

/* ==========================================================================
   CATEGORIES
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-4); }
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4;
  background: var(--color-surface); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%); z-index: 1;
}
.cat-card .label { position: absolute; left: var(--sp-3); bottom: var(--sp-3); z-index: 2; color: #fff; font-weight: 600; font-family: var(--font-display); font-size: 16px; }
.cat-card .label small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; opacity: 0.85; }
@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); } }

.product-card {
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.product-media { position: relative; aspect-ratio: 1/1; background: var(--color-surface); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.product-card:hover .product-media img { transform: scale(1.07); }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--color-badge); color: #fff;
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-pill); z-index: 2; letter-spacing: 0.02em;
}
.badge.new { background: var(--color-text); }
.fav-btn {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: transform var(--dur-fast) var(--ease);
}
[data-theme="dark"] .fav-btn { background: rgba(20,20,22,0.85); }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn svg { width: 18px; height: 18px; stroke: var(--color-text); fill: none; transition: fill var(--dur-fast), stroke var(--dur-fast); }
.fav-btn.active svg { fill: var(--color-badge); stroke: var(--color-badge); }
.quick-add {
  position: absolute; left: 10px; right: 10px; bottom: -50px; z-index: 2;
  transition: bottom var(--dur) var(--ease);
}
.product-card:hover .quick-add { bottom: 10px; }
.product-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand { font-size: 12px; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.product-name { font-weight: 600; font-size: 15px; }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--color-text-muted); }
.product-rating svg { width: 13px; height: 13px; fill: var(--color-star); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-now { font-weight: 700; font-size: 16px; }
.price-old { font-size: 13px; color: var(--color-text-faint); text-decoration: line-through; }
.price-off { font-size: 12px; color: var(--color-success); font-weight: 600; }
.swatches { display: flex; gap: 6px; margin-top: 4px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--color-bg); box-shadow: 0 0 0 1px var(--color-border); }

/* Skeleton loading */
.skeleton { position: relative; overflow: hidden; background: var(--color-surface); }
.skeleton::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-text) 6%, transparent), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton-card .product-media { aspect-ratio: 1/1; }
.skeleton-line { height: 12px; border-radius: 6px; background: var(--color-surface); margin-bottom: 8px; position: relative; overflow: hidden; }
.skeleton-line::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-text) 6%, transparent), transparent); animation: shimmer 1.4s infinite; }
.skeleton-line.w-60 { width: 60%; } .skeleton-line.w-40 { width: 40%; } .skeleton-line.w-80 { width: 80%; }

/* Carousel */
.carousel-wrap { position: relative; }
.carousel-track { display: flex; gap: var(--sp-5); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .product-card { min-width: 270px; scroll-snap-align: start; }
.carousel-nav { display: flex; gap: var(--sp-2); }

/* ==========================================================================
   OFFER BANNER
   ========================================================================== */
.offer-banner {
  background: var(--color-text); color: var(--color-bg); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; overflow: hidden; box-shadow: var(--shadow-lg);
}
.offer-copy { padding: var(--sp-8); }
.offer-copy .eyebrow { color: var(--color-accent); }
.offer-copy h3 { font-size: clamp(26px, 3.5vw, 38px); margin-block: var(--sp-3); }
.offer-copy p { color: color-mix(in srgb, var(--color-bg) 65%, transparent); max-width: 40ch; margin-bottom: var(--sp-5); }
.countdown { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.countdown .box { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-md); padding: 12px 16px; min-width: 70px; text-align: center; }
.countdown .box b { display: block; font-family: var(--font-display); font-size: 24px; }
.countdown .box span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.65; }
.offer-media { position: relative; height: 100%; min-height: 320px; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .offer-banner { grid-template-columns: 1fr; } .offer-media { order: -1; min-height: 200px; } .offer-copy { padding: var(--sp-6); } }

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.review-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.review-stars { display: flex; gap: 3px; }
.review-stars svg { width: 15px; height: 15px; fill: var(--color-star); }
.review-quote { font-size: 15px; line-height: 1.6; color: var(--color-text); }
.review-person { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-person b { font-size: 14px; display: block; }
.review-person span { font-size: 12px; color: var(--color-text-muted); }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter { background: var(--color-accent-tint); border-radius: var(--radius-lg); padding: var(--sp-8); text-align: center; }
.newsletter h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: var(--sp-2); }
.newsletter p { color: var(--color-text-muted); margin-bottom: var(--sp-5); }
.newsletter-form { display: flex; gap: var(--sp-2); max-width: 460px; margin-inline: auto; }
.newsletter-form input { flex: 1; height: 52px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); padding: 0 20px; background: var(--color-bg); }
.newsletter-note { font-size: 12px; color: var(--color-text-faint); margin-top: var(--sp-3); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--color-text); color: color-mix(in srgb, var(--color-bg) 78%, transparent); padding-block: var(--sp-8) var(--sp-6); }
[data-theme="dark"] .site-footer { background: var(--color-surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--sp-6); }
.footer-brand { font-family: var(--font-display); font-size: 22px; color: var(--color-bg); margin-bottom: var(--sp-3); }
.footer-about { max-width: 32ch; font-size: 14px; line-height: 1.7; margin-bottom: var(--sp-5); }
.footer-col h4 { color: var(--color-bg); font-size: 14px; font-family: var(--font-body); font-weight: 600; margin-bottom: var(--sp-4); }
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: var(--sp-3); color: inherit; }
.footer-col a:hover { color: var(--color-bg); }
.social-row { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--color-accent); border-color: var(--color-accent); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: var(--sp-7); padding-top: var(--sp-5); display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: var(--sp-3); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   BACK TO TOP / TOAST
   ========================================================================== */
.back-to-top {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5); width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-text); color: var(--color-bg); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); border: none; cursor: pointer; opacity: 0; transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); z-index: 90;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.toast-stack { position: fixed; top: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--color-text); color: var(--color-bg); padding: 14px 18px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  animation: toast-in var(--dur) var(--ease);
}
.toast.success::before { content: '✓'; color: #4ade80; font-weight: 700; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.whatsapp-fab {
  position: fixed; left: var(--sp-5); bottom: var(--sp-5); width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); z-index: 90;
  transition: transform var(--dur-fast) var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 26px; height: 26px; fill: #fff; }

/* ==========================================================================
   PAGE HEADER (shop/product/etc.)
   ========================================================================== */
.page-header { padding-block: var(--sp-6) var(--sp-5); }
.page-title { font-size: clamp(28px, 4vw, 42px); }

/* ==========================================================================
   SHOP LAYOUT / FILTERS
   ========================================================================== */
.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-6); align-items: flex-start; }
.filters { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--sp-5); position: sticky; top: calc(var(--header-h) + 16px); }
.filter-group { border-bottom: 1px solid var(--color-border); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-title { font-weight: 600; font-size: 14px; margin-bottom: var(--sp-3); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.filter-title svg { width: 14px; height: 14px; transition: transform var(--dur-fast); }
.filter-group.collapsed .filter-title svg { transform: rotate(-90deg); }
.filter-group.collapsed .filter-body { display: none; }
.filter-body { display: flex; flex-direction: column; gap: 10px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-text-muted); cursor: pointer; }
.check-row input { accent-color: var(--color-accent); width: 16px; height: 16px; }
.check-row:hover { color: var(--color-text); }
.check-row .n { margin-left: auto; font-size: 12px; color: var(--color-text-faint); }
.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size-chip { border: 1px solid var(--color-border); border-radius: var(--radius-sm); text-align: center; padding: 8px 0; font-size: 13px; cursor: pointer; transition: all var(--dur-fast); }
.size-chip:hover { border-color: var(--color-text); }
.size-chip.active { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px var(--color-border); cursor: pointer; position: relative; }
.color-dot.active::after { content: ''; position: absolute; inset: -4px; border: 2px solid var(--color-accent); border-radius: 50%; }
.price-range input[type="range"] { width: 100%; accent-color: var(--color-accent); }
.price-range .vals { display: flex; justify-content: space-between; font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); flex-wrap: wrap; gap: var(--sp-3); }
.result-count { color: var(--color-text-muted); font-size: 14px; }
.sort-select { border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 10px 16px; font-size: 14px; background: var(--color-bg); }
.filter-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--color-surface); border-radius: var(--radius-pill); padding: 6px 12px; font-size: 13px; }
.filter-tag button { background: none; border: none; cursor: pointer; font-size: 14px; color: var(--color-text-faint); }
.mobile-filter-btn { display: none; }
@media (max-width: 980px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.open { display: block; position: fixed; inset: 0; z-index: 150; background: var(--color-bg); overflow-y: auto; border-radius: 0; padding: var(--sp-5); }
  .mobile-filter-btn { display: inline-flex; }
}

/* Empty state */
.empty-state { text-align: center; padding: var(--sp-9) var(--sp-4); }
.empty-state .icon-wrap { width: 84px; height: 84px; border-radius: 50%; background: var(--color-surface); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-5); }
.empty-state .icon-wrap svg { width: 36px; height: 36px; color: var(--color-text-faint); }
.empty-state h3 { font-size: 22px; margin-bottom: var(--sp-2); }
.empty-state p { color: var(--color-text-muted); margin-bottom: var(--sp-5); }

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
.pdp-gallery { display: grid; grid-template-columns: 84px 1fr; gap: var(--sp-3); }
.pdp-thumbs { display: flex; flex-direction: column; gap: var(--sp-3); }
.pdp-thumbs button { border-radius: var(--radius-md); overflow: hidden; border: 2px solid transparent; cursor: pointer; aspect-ratio: 1/1; background: var(--color-surface); }
.pdp-thumbs button.active { border-color: var(--color-accent); }
.pdp-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); aspect-ratio: 1/1; cursor: zoom-in; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.pdp-main.zoomed img { transform: scale(1.9); cursor: zoom-out; }
.pdp-info .product-brand { font-size: 13px; }
.pdp-info h1 { font-size: clamp(26px, 3.4vw, 36px); margin-block: 6px var(--sp-2); }
.pdp-price { display: flex; align-items: baseline; gap: var(--sp-3); margin-block: var(--sp-3); }
.pdp-price .price-now { font-size: 28px; }
.pdp-desc { color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--sp-5); }
.option-block { margin-bottom: var(--sp-5); }
.option-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: var(--sp-3); }
.option-label a { color: var(--color-accent); font-weight: 500; font-size: 13px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-pill); }
.qty-stepper button { width: 40px; height: 40px; background: none; border: none; cursor: pointer; font-size: 18px; }
.qty-stepper span { width: 32px; text-align: center; font-weight: 600; }
.pdp-actions { display: flex; gap: var(--sp-3); margin-block: var(--sp-6); }
.pdp-actions .btn { flex: 1; }
.trust-row { display: flex; gap: var(--sp-5); flex-wrap: wrap; padding-top: var(--sp-5); border-top: 1px solid var(--color-border); }
.trust-row .item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-muted); }
.trust-row svg { width: 18px; height: 18px; color: var(--color-accent); }
.tabs { border-bottom: 1px solid var(--color-border); display: flex; gap: var(--sp-6); margin-top: var(--sp-8); }
.tab-btn { background: none; border: none; padding: var(--sp-3) 0; font-weight: 600; color: var(--color-text-muted); border-bottom: 2px solid transparent; cursor: pointer; }
.tab-btn.active { color: var(--color-text); border-color: var(--color-accent); }
.tab-panel { display: none; padding-block: var(--sp-6); color: var(--color-text-muted); line-height: 1.8; }
.tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--color-border); }
.spec-table td { padding: 12px 0; font-size: 14px; }
.spec-table td:first-child { color: var(--color-text-faint); width: 220px; }
@media (max-width: 900px) { .pdp-grid { grid-template-columns: 1fr; gap: var(--sp-5); } }

/* ==========================================================================
   CART
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-6); align-items: flex-start; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--sp-4); padding-block: var(--sp-5); border-bottom: 1px solid var(--color-border); align-items: center; }
.cart-item img { width: 96px; height: 96px; border-radius: var(--radius-md); object-fit: cover; background: var(--color-surface); }
.cart-item .meta small { color: var(--color-text-muted); display: block; margin-block: 2px; }
.cart-item .actions { display: flex; align-items: center; gap: var(--sp-4); }
.cart-item .remove { background: none; border: none; color: var(--color-text-faint); cursor: pointer; font-size: 13px; }
.cart-item .remove:hover { color: var(--color-badge); }
.cart-item .line-price { font-weight: 700; text-align: right; min-width: 70px; }
.summary-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--sp-5); position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-text-muted); margin-bottom: var(--sp-3); }
.summary-row.total { font-size: 18px; font-weight: 700; color: var(--color-text); border-top: 1px solid var(--color-border); padding-top: var(--sp-4); margin-top: var(--sp-3); }
.coupon-row { display: flex; gap: 8px; margin-block: var(--sp-4); }
.coupon-row input { flex: 1; border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 0 16px; height: 44px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .cart-item { grid-template-columns: 72px 1fr; } .cart-item .line-price { grid-column: 2; text-align: left; } }

/* ==========================================================================
   CHECKOUT (multi-step)
   ========================================================================== */
.steps-bar { display: flex; align-items: center; margin-bottom: var(--sp-7); }
.step-node { display: flex; align-items: center; gap: 10px; color: var(--color-text-faint); font-size: 13px; font-weight: 600; }
.step-node .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--color-surface); display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); }
.step-node.active { color: var(--color-text); }
.step-node.active .dot, .step-node.done .dot { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.step-line { flex: 1; height: 1px; background: var(--color-border); margin-inline: 12px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--sp-6); align-items: flex-start; }
.form-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--sp-6); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { height: 48px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 0 14px; background: var(--color-bg); }
.field textarea { height: 100px; padding-block: 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-accent); }
.field .error-msg { font-size: 12px; color: var(--color-badge); display: none; }
.field.invalid input { border-color: var(--color-badge); }
.field.invalid .error-msg { display: block; }
.radio-card { display: flex; align-items: center; gap: var(--sp-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--sp-4); margin-bottom: var(--sp-3); cursor: pointer; }
.radio-card input { accent-color: var(--color-accent); width: 18px; height: 18px; }
.radio-card.active { border-color: var(--color-accent); background: var(--color-accent-tint); }
.radio-card .rc-title { font-weight: 600; font-size: 15px; }
.radio-card .rc-sub { font-size: 13px; color: var(--color-text-muted); }
.radio-card .rc-price { margin-left: auto; font-weight: 700; }
.step-actions { display: flex; justify-content: space-between; margin-top: var(--sp-6); }
.confirm-panel { text-align: center; padding-block: var(--sp-9); }
.confirm-icon { width: 90px; height: 90px; border-radius: 50%; background: var(--color-success); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-5); }
.confirm-icon svg { width: 42px; height: 42px; stroke: #fff; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } .steps-bar { overflow-x: auto; } }

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-6); }
.dash-nav { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--sp-3); height: fit-content; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--color-text-muted); }
.dash-nav a:hover { background: var(--color-surface); color: var(--color-text); }
.dash-nav a[aria-current="page"] { background: var(--color-text); color: var(--color-bg); }
.dash-nav a svg { width: 17px; height: 17px; }
.dash-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--sp-5); margin-bottom: var(--sp-4); }
.order-row { display: flex; justify-content: space-between; align-items: center; padding-block: var(--sp-4); border-bottom: 1px solid var(--color-border); gap: var(--sp-3); flex-wrap: wrap; }
.status-pill { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--color-accent-tint); color: var(--color-accent); }
.status-pill.done { background: color-mix(in srgb, var(--color-success) 15%, transparent); color: var(--color-success); }
@media (max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } }

/* ==========================================================================
   ERROR PAGES
   ========================================================================== */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--sp-6); }
.error-code { font-family: var(--font-display); font-size: clamp(80px, 20vw, 180px); line-height: 0.9; color: var(--color-accent); position: relative; }
.error-page h1 { font-size: clamp(22px, 3vw, 30px); margin-block: var(--sp-4) var(--sp-2); }
.error-page p { color: var(--color-text-muted); max-width: 42ch; margin-inline: auto var(--sp-6); }
.error-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
.contact-info .item { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.contact-info .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--color-accent-tint); color: var(--color-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info .icon svg { width: 20px; height: 20px; }
.contact-info h4 { font-size: 15px; margin-bottom: 2px; }
.contact-info p { color: var(--color-text-muted); font-size: 14px; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; margin-top: var(--sp-6); aspect-ratio: 16/9; border: 1px solid var(--color-border); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* Utility */
.mt-0 { margin-top: 0 !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.dark-toggle svg { width: 19px; height: 19px; }
.dark-toggle .sun { display: none; }
[data-theme="dark"] .dark-toggle .moon { display: none; }
[data-theme="dark"] .dark-toggle .sun { display: block; }


