/* ============================================================
   RackOn Billiards — theme.css
   Front-end stylesheet. Complete for Phases 1–4.
   Covers: tokens, reset, typography, layout, buttons, badges,
   header, footer, hero, cards, products, product detail, cart,
   checkout, contact, blog, FAQ, gallery, custom designer, forms,
   alerts, pagination, search, thank-you, error pages, floating
   buttons, cookie banner, exit popup, search suggestions,
   social share, push prompt.
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --c-felt:      #0B3D2E;
  --c-felt-2:    #0E4A38;
  --c-felt-3:    #062A20;
  --c-gold:      #C9A227;
  --c-gold-2:    #E0BC4A;
  --c-walnut:    #3B2417;
  --c-ivory:     #F6F3EC;
  --c-ink:       #101418;
  --c-line:      #E1DCCF;

  --bg:          #FFFFFF;
  --bg-alt:      var(--c-ivory);
  --bg-elev:     #FFFFFF;
  --fg:          var(--c-ink);
  --fg-muted:    #555a63;
  --line:        var(--c-line);
  --accent:      var(--c-felt);
  --accent-fg:   #FFFFFF;
  --gold:        var(--c-gold);
  --danger:      #B3261E;
  --success:     #1F7A3F;

  --font-head:   "Playfair Display", "Georgia", serif;
  --font-body:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs:  0.8125rem;
  --fs-sm:  0.9375rem;
  --fs-md:  1rem;
  --fs-lg:  1.125rem;
  --fs-xl:  1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-full: 999px;

  --sh-1: 0 1px 2px rgba(16,20,24,0.06), 0 1px 3px rgba(16,20,24,0.05);
  --sh-2: 0 10px 25px rgba(16,20,24,0.08), 0 4px 10px rgba(16,20,24,0.05);
  --sh-3: 0 20px 45px rgba(16,20,24,0.12);

  --container: 1200px;
  --header-h: 72px;

  --ease: cubic-bezier(.2,.6,.2,1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;
}

[data-theme="dark"] {
  --bg:       #0A0F0D;
  --bg-alt:   #0E1512;
  --bg-elev:  #131A17;
  --fg:       #ECE9E2;
  --fg-muted: #A4A7AB;
  --line:     #232B27;
  --accent:   var(--c-gold);
  --accent-fg:#14100a;
  --gold:     var(--c-gold-2);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg:       #0A0F0D;
    --bg-alt:   #0E1512;
    --bg-elev:  #131A17;
    --fg:       #ECE9E2;
    --fg-muted: #A4A7AB;
    --line:     #232B27;
    --accent:   var(--c-gold);
    --accent-fg:#14100a;
    --gold:     var(--c-gold-2);
  }
}

/* ============================================================
   2. RESET
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
  color: var(--fg);
}
h1 { font-size: clamp(2rem, 5vw + 1rem, var(--fs-5xl)); }
h2 { font-size: clamp(1.5rem, 3vw + 0.5rem, var(--fs-3xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { margin: 0 0 var(--sp-4); }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.lead { font-size: var(--fs-lg); color: var(--fg-muted); }
.muted { color: var(--fg-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.prose { font-size: var(--fs-lg); line-height: 1.7; max-width: 70ch; }
.prose h2, .prose h3 { margin-top: var(--sp-6); }
.prose p { margin-bottom: var(--sp-4); }
.prose ul, .prose ol { list-style: disc; padding-left: var(--sp-6); margin-bottom: var(--sp-4); }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--sp-2); }
.prose a { color: var(--gold); text-decoration: underline; }
.prose img { border-radius: var(--r-md); margin: var(--sp-4) 0; }

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-6); } }
.section { padding-block: var(--sp-7); }
@media (min-width: 768px) { .section { padding-block: var(--sp-8); } }
.section-alt { background: var(--bg-alt); }
.section-narrow { max-width: 900px; margin-inline: auto; }
.section-head { max-width: 680px; margin-bottom: var(--sp-6); }
.section-sub { color: var(--fg-muted); }
.section-cta { margin-top: var(--sp-6); text-align: center; }
.page-header { padding-block: var(--sp-6) var(--sp-5); text-align: left; }
.page-header h1 { margin-bottom: var(--sp-3); }
.page-intro { font-size: var(--fs-lg); color: var(--fg-muted); max-width: 70ch; }
.results-count { color: var(--fg-muted); margin-top: var(--sp-3); font-size: var(--fs-sm); }
.field-row { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-error { color: var(--danger); font-size: var(--fs-sm); margin-top: -4px; margin-bottom: var(--sp-3); }
.field-help { font-size: var(--fs-sm); color: var(--fg-muted); margin-top: var(--sp-3); }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn-primary:hover { background: var(--c-felt-2); color: var(--accent-fg); }
[data-theme="dark"] .btn-primary:hover { background: var(--c-gold-2); color: #14100a; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-whatsapp { background: #25D366; color: #FFFFFF; border-color: #25D366; }
.btn-whatsapp:hover { background: #1EBE5B; color: #FFFFFF; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: var(--fs-xs); }
.btn-lg { padding: 0.9rem 1.6rem; font-size: var(--fs-md); }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--fg);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--gold); text-decoration: underline;
  font: inherit;
}

/* ============================================================
   6. BADGES
   ============================================================ */
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.badge-empty { display: none; }
.badge-offer, .badge-new, .badge-rating {
  position: absolute;
  top: 12px;
  left: 12px;
  height: auto;
  padding: 4px 10px;
  min-width: 0;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--c-felt);
}
.badge-new { background: var(--gold); color: #14100a; }
.badge-rating { left: auto; right: 12px; background: rgba(0,0,0,0.7); text-transform: none; letter-spacing: 0; }
.badge-rating .rating-count { opacity: 0.75; font-weight: 500; margin-left: 2px; }

/* ============================================================
   7. ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: var(--c-felt);
  color: var(--c-ivory);
  font-size: var(--fs-xs);
  padding: 0.5rem var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  text-align: center;
  flex-wrap: wrap;
}
.announcement-bar a { color: var(--c-gold-2); font-weight: 600; }
.announcement-bar a:hover { color: #fff; }

/* ============================================================
   8. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-lg); color: var(--fg); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: none; border: 0; padding: var(--sp-2); cursor: pointer;
  grid-column: 3;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav ul { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.primary-nav a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg);
  transition: color var(--dur-fast) var(--ease);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: var(--sp-2); grid-column: 3; }

.currency-switch { position: relative; }
.currency-btn {
  background: var(--bg-elev); border: 1px solid var(--line);
  color: var(--fg); padding: 6px 10px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 600;
}
.currency-menu {
  position: absolute; top: 100%; right: 0; margin-top: 6px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-2);
  min-width: 120px; padding: 4px; z-index: 60;
  display: none;
}
.currency-switch.is-open .currency-menu { display: block; }
.currency-menu button {
  display: flex; justify-content: space-between; width: 100%;
  padding: 6px 10px; background: none; border: 0;
  color: var(--fg); font-size: var(--fs-sm); border-radius: var(--r-sm);
}
.currency-menu button:hover { background: var(--bg-alt); }
.currency-menu button.is-active { color: var(--gold); font-weight: 700; }
.cur-symbol { color: var(--fg-muted); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--bg-elev);
  color: var(--fg); cursor: pointer;
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .primary-nav {
    position: fixed;
    inset: calc(var(--header-h) + 36px) 0 auto 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    transform: translateY(-115%);
    transition: transform var(--dur-slow) var(--ease);
    padding: var(--sp-4);
    max-height: calc(100vh - var(--header-h) - 36px);
    overflow-y: auto;
    z-index: 45;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: var(--sp-3) var(--sp-2); font-size: var(--fs-md); }
  .header-cta { display: none; }
}
@media (min-width: 961px) {
  .nav-toggle { display: none; }
  .header-actions { grid-column: auto; }
}

/* ============================================================
   9. BREADCRUMBS
   ============================================================ */
.breadcrumbs { padding-block: var(--sp-3); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-xs); color: var(--fg-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs a { color: var(--fg-muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--fg); font-weight: 500; }
.crumb-sep { opacity: 0.5; }

/* ============================================================
   10. HERO
   ============================================================ */
.hero { padding-block: var(--sp-7); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
@media (min-width: 900px) { .hero { padding-block: var(--sp-9); } }
.hero-grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--sp-7); } }
.hero-copy h1 { margin-top: var(--sp-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-6); font-size: var(--fs-sm); color: var(--fg-muted);
}
.hero-badges li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: var(--sp-2); }
.hero-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--c-felt);
  box-shadow: var(--sh-3);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder { color: var(--c-ivory); text-align: center; font-size: var(--fs-sm); opacity: 0.75; padding: var(--sp-4); }
.hero-placeholder code { background: rgba(255,255,255,0.1); padding: 0.1em 0.3em; border-radius: 4px; font-size: 0.9em; }

/* ============================================================
   11. CARDS
   ============================================================ */
.card-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--gold); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--fg-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.card-thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-felt) 0%, var(--c-felt-3) 100%);
  margin-bottom: var(--sp-4);
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-link { font-weight: 600; color: var(--gold); }

/* ============================================================
   12. PRODUCT GRID + CARD
   ============================================================ */
.product-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--c-felt) 0%, var(--c-felt-3) 100%);
  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.04); }
.product-media-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--c-gold);
  font-family: var(--font-head);
  font-size: 4rem; font-weight: 700;
  opacity: 0.5;
}

.product-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.product-cat { font-size: var(--fs-xs); color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.product-title { font-size: var(--fs-lg); margin: 0; font-family: var(--font-head); line-height: 1.25; }
.product-title a { color: var(--fg); }
.product-title a:hover { color: var(--gold); }

.product-price { display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; margin-top: auto; }
.product-price .price { font-weight: 700; font-size: var(--fs-lg); color: var(--fg); }
.product-price .price-was { font-size: var(--fs-sm); color: var(--fg-muted); text-decoration: line-through; }
.price-request { font-weight: 600; color: var(--gold); }

.product-actions { display: flex; gap: var(--sp-2); align-items: center; margin-top: var(--sp-2); }
.product-actions .btn { flex: 1; }

/* ============================================================
   13. FEATURES / TESTIMONIALS / BLOG
   ============================================================ */
.feature-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: var(--sp-5); border-left: 3px solid var(--gold); background: var(--bg-elev); border-radius: 0 var(--r-md) var(--r-md) 0; }
.feature h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.feature p { color: var(--fg-muted); font-size: var(--fs-sm); margin: 0; }

.testimonial-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial { margin: 0; padding: var(--sp-5); background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); }
.testimonial .stars { color: var(--gold); margin-bottom: var(--sp-3); letter-spacing: 2px; }
.testimonial p { font-style: italic; }
.testimonial footer { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: baseline; font-size: var(--fs-sm); margin-top: var(--sp-4); }
.testimonial cite { font-style: normal; font-weight: 600; }
.testimonial-role, .testimonial-city { color: var(--fg-muted); }
.testimonial-grid-lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.blog-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.blog-cover { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-md); }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.blog-card:hover .blog-cover img { transform: scale(1.03); }
.blog-card h2, .blog-card h3 { margin: 0; font-size: var(--fs-xl); }
.blog-cat { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); margin: 0; }
.blog-meta { font-size: var(--fs-sm); color: var(--fg-muted); margin: 0; display: flex; gap: var(--sp-3); }

/* ============================================================
   14. CTA SECTION
   ============================================================ */
.cta-section { background: var(--c-felt); color: var(--c-ivory); }
.cta-section h2 { color: var(--c-ivory); }
.cta-section p { color: #d6d2c4; max-width: 560px; }
.cta-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-inner .hero-actions { justify-content: center; }

/* ============================================================
   15. PRODUCT DETAIL
   ============================================================ */
.product-detail { padding-block: var(--sp-5); }
.product-detail-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .product-detail-grid { grid-template-columns: 1.1fr 1fr; gap: var(--sp-7); } }

.product-gallery { display: flex; flex-direction: column; gap: var(--sp-3); }
.gallery-main {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--c-felt) 0%, var(--c-felt-3) 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { width: 100%; height: 100%; background: var(--c-felt); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-2); }
.gallery-thumb {
  aspect-ratio: 1; padding: 0; border: 2px solid transparent;
  border-radius: var(--r-sm); overflow: hidden; background: var(--c-felt-3);
  cursor: pointer; position: relative;
}
.gallery-thumb.is-active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-icon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.4); color: #fff; font-size: 20px;
}

.product-info h1 { margin-bottom: var(--sp-3); }
.product-short { font-size: var(--fs-lg); color: var(--fg-muted); }
.product-rating { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.product-rating .stars { color: var(--gold); letter-spacing: 1px; }
.rating-link { color: var(--gold); text-decoration: underline; }

.product-price-block { display: flex; align-items: baseline; gap: var(--sp-3); margin: var(--sp-4) 0; flex-wrap: wrap; }
.price-large { font-size: var(--fs-2xl); font-weight: 700; }
.price-was-large { font-size: var(--fs-lg); color: var(--fg-muted); text-decoration: line-through; }
.price-note { color: var(--fg-muted); font-size: var(--fs-sm); margin: var(--sp-2) 0 0; }

.stock-status { font-size: var(--fs-sm); margin: var(--sp-3) 0; }
.stock-in_stock, .stock-low_stock, .stock-made_to_order, .stock-pre_order { color: var(--success); }
.stock-out_of_stock { color: var(--danger); }

.product-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin: var(--sp-5) 0; }
.add-form { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-full); overflow: hidden; }
.qty-stepper button {
  width: 36px; height: 36px; background: none; border: 0;
  color: var(--fg); font-size: 18px; font-weight: 600;
}
.qty-stepper button:hover { background: var(--bg-alt); }
.qty-stepper input {
  width: 50px; height: 36px; border: 0; text-align: center;
  font: inherit; background: transparent; color: var(--fg);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-share {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
  padding: var(--sp-4) 0; border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.product-share a { color: var(--fg-muted); text-decoration: underline; }
.product-share a:hover { color: var(--gold); }
.share-label { font-weight: 600; }

.specs-table { margin-top: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.specs-table th, .specs-table td { padding: var(--sp-3) var(--sp-4); text-align: left; font-size: var(--fs-sm); border-bottom: 1px solid var(--line); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: 0; }
.specs-table th { background: var(--bg-alt); font-weight: 600; width: 40%; }

/* ============================================================
   16. REVIEWS
   ============================================================ */
.reviews-summary { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-6); }
@media (min-width: 640px) { .reviews-summary { grid-template-columns: 200px 1fr; align-items: center; } }
.reviews-avg { text-align: center; }
.reviews-avg-number { font-family: var(--font-head); font-size: 3rem; font-weight: 700; display: block; }
.reviews-dist { display: grid; gap: 6px; }
.reviews-dist li { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.bar { display: block; height: 8px; background: var(--line); border-radius: var(--r-full); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--gold); }
.bar-count { text-align: right; color: var(--fg-muted); }
.bar-label { color: var(--fg-muted); }

.review-list { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.review { padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-elev); }
.review header { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: baseline; margin-bottom: var(--sp-2); }
.review-author { font-weight: 600; }
.review-date { color: var(--fg-muted); font-size: var(--fs-sm); }
.review .stars { color: var(--gold); margin-left: auto; }
.review-title { font-size: var(--fs-md); margin: var(--sp-2) 0; }
.review-body { margin: 0; }

.review-form-wrap { margin-top: var(--sp-5); }
.review-form-wrap summary { cursor: pointer; font-weight: 600; padding: var(--sp-3) 0; color: var(--gold); }
.review-form { margin-top: var(--sp-4); display: grid; gap: var(--sp-4); max-width: 600px; }
.form-message { font-size: var(--fs-sm); }
.form-message.is-success { color: var(--success); }
.form-message.is-error { color: var(--danger); }

/* ============================================================
   17. FORMS
   ============================================================ */
.field { display: block; margin-bottom: var(--sp-4); }
.field > span { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-elev); color: var(--fg);
  font: inherit; font-size: var(--fs-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
.form-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-top: var(--sp-4); }
.form-help { font-size: var(--fs-sm); color: var(--fg-muted); margin-top: var(--sp-4); }

.radio-grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; margin-bottom: var(--sp-4); }
@media (min-width: 640px) { .radio-grid { grid-template-columns: repeat(2, 1fr); } }
.radio-grid-inline { grid-template-columns: 1fr 1fr; }
.radio-card {
  display: block; padding: var(--sp-4);
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; background: var(--bg-elev);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.radio-card:hover { border-color: var(--gold); }
.radio-card.is-selected { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 6%, var(--bg-elev)); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card-body { display: block; }
.radio-card-body strong { display: block; margin-bottom: 4px; }
.radio-card-body .muted { font-size: var(--fs-sm); }

/* ============================================================
   18. ALERTS
   ============================================================ */
.alert {
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-4) auto; max-width: var(--container);
  font-size: var(--fs-sm); border: 1px solid transparent;
}
.alert ul { margin: 0; padding-left: var(--sp-5); list-style: disc; }
.alert-success { background: rgba(31,122,63,0.08); border-color: rgba(31,122,63,0.25); color: #16582c; }
.alert-error   { background: rgba(179,38,30,0.07); border-color: rgba(179,38,30,0.22); color: #7a1e18; }

/* ============================================================
   19. CATEGORY / CATALOG
   ============================================================ */
.catalog-layout { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-7); }
@media (min-width: 900px) { .catalog-layout { grid-template-columns: 280px 1fr; } }

.filters { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); align-self: start; }
@media (min-width: 900px) { .filters { position: sticky; top: 90px; } }
.filters summary { font-weight: 600; cursor: pointer; margin-bottom: var(--sp-3); }
.filters fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.filters legend { font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-2); }
.filters label { display: block; padding: 4px 0; font-size: var(--fs-sm); cursor: pointer; }
.filters label input[type="checkbox"] { margin-right: 6px; }
.filter-value { display: flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); flex-shrink: 0; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.price-row input {
  width: 100%; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-elev); color: var(--fg); font: inherit; font-size: var(--fs-sm);
}
.filters-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }

.catalog-toolbar { display: flex; justify-content: flex-end; margin-bottom: var(--sp-4); }
.sort-select { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); }
.sort-select select {
  padding: 6px 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--bg-elev); color: var(--fg);
  font: inherit; font-size: var(--fs-sm);
}

/* ============================================================
   20. PAGINATION
   ============================================================ */
.pagination { display: flex; gap: var(--sp-3); align-items: center; justify-content: center; flex-wrap: wrap; margin-top: var(--sp-6); }
.page-list { display: flex; gap: 4px; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-elev); color: var(--fg); font-size: var(--fs-sm);
}
.page-link:hover { border-color: var(--gold); color: var(--gold); }
.page-link.is-active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.page-link.is-disabled { opacity: 0.4; cursor: not-allowed; }
.page-ellipsis { padding: 0 6px; color: var(--fg-muted); }

/* ============================================================
   21. EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center; padding: var(--sp-7) var(--sp-4);
  background: var(--bg-elev); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty-state h2 { margin-bottom: var(--sp-2); }
.empty-state p { color: var(--fg-muted); max-width: 500px; margin-inline: auto; margin-bottom: var(--sp-5); }

/* ============================================================
   22. CART / CHECKOUT
   ============================================================ */
.cart-layout { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-7); }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 380px; align-items: start; } }

.cart-lines { display: grid; gap: var(--sp-3); }
.cart-line {
  display: grid; grid-template-columns: 88px 1fr auto; gap: var(--sp-4);
  padding: var(--sp-4); background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md);
  align-items: center;
}
@media (max-width: 640px) { .cart-line { grid-template-columns: 64px 1fr; } .cart-line-total { grid-column: 2; text-align: right; } }
.cart-line-media { display: block; width: 88px; height: 88px; border-radius: var(--r-sm); overflow: hidden; background: var(--c-felt-3); }
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--gold); font-family: var(--font-head); font-size: 32px; font-weight: 700; opacity: 0.6; }
.cart-line-body h3 { margin: 0 0 4px; font-size: var(--fs-md); font-family: var(--font-body); }
.cart-line-price { margin: 4px 0; font-size: var(--fs-sm); }
.cart-line-actions { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.cart-line-total { text-align: right; font-weight: 700; font-size: var(--fs-lg); }
.cart-actions { margin-top: var(--sp-5); }

.cart-summary, .checkout-summary {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-5); position: sticky; top: 90px;
}
.summary-row { display: flex; justify-content: space-between; padding: var(--sp-2) 0; font-size: var(--fs-sm); }
.summary-row-total { border-top: 1px solid var(--line); margin-top: var(--sp-3); padding-top: var(--sp-4); font-weight: 700; font-size: var(--fs-lg); }
.summary-row-discount span:last-child { color: var(--success); }
.summary-note { font-size: var(--fs-sm); color: var(--fg-muted); padding: var(--sp-3) 0; border-top: 1px dashed var(--line); margin-top: var(--sp-3); }
.coupon-block { margin: var(--sp-4) 0; padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.coupon-form { display: flex; gap: var(--sp-2); }
.coupon-form .field { flex: 1; margin: 0; }
.coupon-applied { font-size: var(--fs-sm); color: var(--success); }
.coupon-message { font-size: var(--fs-sm); margin-top: 6px; }
.coupon-message.is-error { color: var(--danger); }
.summary-help { font-size: var(--fs-sm); color: var(--fg-muted); margin-top: var(--sp-3); text-align: center; }

.checkout-layout { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-7); }
@media (min-width: 900px) { .checkout-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.checkout-section { margin-bottom: var(--sp-6); }
.checkout-section h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-4); }
.checkout-submit { margin-top: var(--sp-5); }
.checkout-submit .muted { font-size: var(--fs-xs); margin-top: var(--sp-3); }
.checkout-lines { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.checkout-lines li { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--sp-2); padding: var(--sp-2) 0; font-size: var(--fs-sm); border-bottom: 1px solid var(--line); }
.line-qty { color: var(--fg-muted); }
.line-total { text-align: right; font-weight: 600; }

/* ============================================================
   23. TRACK
   ============================================================ */
.track-form { max-width: 700px; margin-inline: auto; padding: var(--sp-5); background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md); }
.track-result { margin-top: var(--sp-6); padding: var(--sp-5); background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md); }
.track-result-head { padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-4); }
.track-status { font-size: var(--fs-lg); }
.track-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .track-grid { grid-template-columns: 1fr 1fr; } }
.track-items ul { list-style: none; padding: 0; }
.track-items li { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.track-total { margin-top: var(--sp-3); font-size: var(--fs-lg); }
.track-history ol { list-style: none; padding: 0; position: relative; }
.track-history li { padding-left: var(--sp-5); padding-bottom: var(--sp-4); position: relative; }
.track-history li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; background: var(--gold); border-radius: 50%; }
.track-history li::after { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.track-history li:last-child::after { display: none; }
.track-history time { display: block; font-size: var(--fs-xs); color: var(--fg-muted); }

/* ============================================================
   24. SEARCH
   ============================================================ */
.search-form-lg { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-5); max-width: 640px; }
.search-form-lg input {
  flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--bg-elev); color: var(--fg);
  font: inherit;
}
.search-suggest {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: var(--sh-2);
  max-height: 400px; overflow-y: auto; z-index: 60;
  display: none;
}
.search-suggest.is-open { display: block; }
.search-suggest .suggest-group { padding: var(--sp-2) 0; }
.search-suggest .suggest-group-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); padding: var(--sp-2) var(--sp-4); }
.search-suggest a { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); }
.search-suggest a:hover { background: var(--bg-alt); }
.search-suggest img { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; }

/* ============================================================
   25. GALLERY
   ============================================================ */
.gallery-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); border-bottom: 1px solid var(--line); padding-bottom: var(--sp-3); }
.gallery-tabs a { padding: 6px 12px; border-radius: var(--r-full); font-size: var(--fs-sm); }
.gallery-tabs a.is-active { background: var(--accent); color: var(--accent-fg); }
.tab-count { opacity: 0.7; font-size: 0.85em; margin-left: 4px; }
.gallery-grid {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--c-felt-3); }
.gallery-tile img, .gallery-tile video { width: 100%; height: 100%; object-fit: cover; }
.gallery-tile .play-icon { font-size: 28px; }
.gallery-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 10px 8px; font-size: var(--fs-xs); color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
}

/* ============================================================
   26. CUSTOM DESIGNER
   ============================================================ */
.custom-designer-form { max-width: 800px; margin-inline: auto; }
.steps-nav { display: flex; gap: var(--sp-2); list-style: none; padding: 0; margin: 0 0 var(--sp-6); flex-wrap: wrap; }
.steps-nav li { padding: 6px 14px; border-radius: var(--r-full); background: var(--bg-alt); font-size: var(--fs-sm); color: var(--fg-muted); border: 1px solid var(--line); }
.steps-nav li.is-active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.steps-nav li.is-done { background: rgba(31,122,63,0.1); color: var(--success); border-color: rgba(31,122,63,0.25); }
.form-step { border: 0; padding: 0; margin: 0; }
.form-step legend { font-family: var(--font-head); font-size: var(--fs-2xl); font-weight: 700; margin-bottom: var(--sp-5); padding: 0; }

/* ============================================================
   27. FAQ
   ============================================================ */
.faq-layout { max-width: 800px; margin-inline: auto; padding-bottom: var(--sp-7); }
.faq-group { margin-bottom: var(--sp-6); }
.faq-group h2 { font-size: var(--fs-xl); }
.faq-list { display: grid; gap: var(--sp-2); }
.faq-item details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-elev); overflow: hidden; }
.faq-item summary { padding: var(--sp-4); font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: var(--sp-7); }
.faq-item summary::after { content: "+"; position: absolute; right: var(--sp-4); top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold); transition: transform var(--dur) var(--ease); }
.faq-item details[open] summary::after { content: "−"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 var(--sp-4) var(--sp-4); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================================
   28. BLOG
   ============================================================ */
.blog-layout { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-7); }
@media (min-width: 900px) { .blog-layout { grid-template-columns: 1fr 240px; } }
.blog-sidebar h2 { font-size: var(--fs-lg); }
.blog-cats { list-style: none; padding: 0; }
.blog-cats a { display: flex; justify-content: space-between; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.cat-count { color: var(--fg-muted); }
.blog-article-header { text-align: center; padding-block: var(--sp-6); max-width: 800px; margin-inline: auto; }
.blog-article-header h1 { margin-bottom: var(--sp-3); }
.blog-article-header .blog-meta { justify-content: center; margin-top: var(--sp-3); }
.blog-cover-large { margin-block: var(--sp-5); }
.blog-cover-large img { border-radius: var(--r-lg); width: 100%; }
.blog-article-body { padding-bottom: var(--sp-6); }
.blog-cta { text-align: center; margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); }

/* ============================================================
   29. PAGE DOC
   ============================================================ */
.page-doc { padding-bottom: var(--sp-7); }
.page-doc-inner { max-width: 800px; margin-inline: auto; }
.page-doc-inner h1 { padding-block: var(--sp-5); }
.page-doc-cta { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); text-align: center; }

/* ============================================================
   30. CONTACT
   ============================================================ */
.contact-layout { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-7); }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.contact-card { padding: var(--sp-5); background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md); }
.contact-aside h2 { font-size: var(--fs-lg); margin-top: var(--sp-5); }
.contact-aside h2:first-child { margin-top: 0; }
.contact-details { list-style: none; padding: 0; }
.contact-details li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.contact-details .label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); }
.contact-details a { color: var(--fg); }
.contact-details a:hover { color: var(--gold); }
.map-embed { margin-top: var(--sp-4); border-radius: var(--r-md); overflow: hidden; }

/* ============================================================
   31. THANK YOU / ERROR PAGES
   ============================================================ */
.thank-you-page, .error-page { padding-block: var(--sp-8); }
.thank-you-inner, .error-inner { text-align: center; max-width: 640px; margin-inline: auto; }
.thank-you-icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--success); color: #fff;
  font-size: 32px; font-weight: 700; margin-bottom: var(--sp-5);
}
.thank-you-order { margin: var(--sp-5) 0; padding: var(--sp-4); background: var(--bg-alt); border-radius: var(--r-md); }
.order-number { font-family: var(--font-head); font-size: var(--fs-2xl); font-weight: 700; margin: var(--sp-2) 0; }
.error-code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 15vw, 8rem);
  line-height: 1;
  color: var(--gold);
  margin: 0 0 var(--sp-4);
  opacity: 0.9;
}
.error-inner .hero-actions { justify-content: center; }
.error-search { margin-top: var(--sp-7); }
.error-search .search-form-lg { margin-inline: auto; }

/* ============================================================
   32. FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-felt-3);
  color: #d8d4c8;
  padding-block: var(--sp-7) var(--sp-4);
  margin-top: var(--sp-8);
}
.footer-grid {
  display: grid; gap: var(--sp-6); grid-template-columns: 1fr;
  padding-bottom: var(--sp-6); border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--c-gold-2); font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-body); margin-bottom: var(--sp-3); }
.footer-brand { color: #fff; font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.footer-tagline { color: #b9b5a8; font-size: var(--fs-sm); max-width: 320px; }
.footer-contact a, .site-footer ul a { display: inline-block; padding: 0.2rem 0; color: #d8d4c8; font-size: var(--fs-sm); }
.footer-contact a:hover, .site-footer ul a:hover { color: var(--c-gold-2); }
.footer-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r-full);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 11px; font-weight: 700;
}
.footer-social a:hover { background: var(--c-gold); color: #14100a; }
.footer-bottom {
  padding-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: space-between; font-size: var(--fs-xs); color: #97948a;
}

/* ============================================================
   33. FLOATING BUTTONS
   ============================================================ */
.float-btn {
  position: fixed; right: 16px;
  width: 52px; height: 52px;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  color: #fff; box-shadow: var(--sh-2); z-index: 40;
  transition: transform var(--dur) var(--ease);
}
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-whatsapp { bottom: 84px; background: #25D366; }
.float-call { bottom: 20px; background: var(--c-felt); }
@media (min-width: 900px) {
  .float-btn { right: 24px; }
  .float-whatsapp { bottom: 96px; }
  .float-call { bottom: 28px; }
}

/* ============================================================
   34. COOKIE BANNER + EXIT POPUP
   ============================================================ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-3);
  padding: var(--sp-4); z-index: 55;
  max-width: 480px; margin-inline: auto;
  font-size: var(--fs-sm);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin-bottom: var(--sp-3); }
.cookie-banner-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cookie-banner-options { margin-top: var(--sp-3); display: grid; gap: 6px; }
.cookie-banner-options label { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); }

.exit-popup-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 70; display: none; place-items: center; padding: var(--sp-4);
}
.exit-popup-backdrop.is-visible { display: grid; }
.exit-popup {
  background: var(--bg-elev); border-radius: var(--r-lg);
  padding: var(--sp-6); max-width: 480px; width: 100%;
  box-shadow: var(--sh-3); position: relative;
}
.exit-popup-close {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; background: none; border: 0;
  color: var(--fg-muted); font-size: 20px; cursor: pointer;
}
.exit-popup h2 { margin-bottom: var(--sp-2); }
.exit-popup p { color: var(--fg-muted); }

/* ============================================================
   35. SOCIAL SHARE BUTTONS
   ============================================================ */
.social-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: var(--sp-3) 0;
  font-size: var(--fs-sm);
}
.social-share-label {
  font-weight: 600;
  color: var(--fg-muted);
  margin-right: 4px;
}
.social-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--fg);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.social-share-btn:hover {
  transform: translateY(-1px);
  color: #fff;
}
.social-share-fb:hover    { background: #1877F2; border-color: #1877F2; }
.social-share-x:hover     { background: #000;    border-color: #000; }
.social-share-wa:hover    { background: #25D366; border-color: #25D366; }
.social-share-pin:hover   { background: #E60023; border-color: #E60023; }
.social-share-copy:hover  { background: var(--accent); border-color: var(--accent); }
.social-share-email:hover { background: var(--c-felt); border-color: var(--c-felt); }

/* ============================================================
   36. PUSH PROMPT
   ============================================================ */
.push-prompt {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 420px;
  margin: 0 auto;
  font-size: var(--fs-sm);
}
.push-prompt[hidden] { display: none; }
.push-prompt-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.push-prompt-inner strong { font-size: var(--fs-sm); }
.push-prompt-inner span { font-size: var(--fs-xs); }
.push-prompt-actions { display: flex; gap: 6px; }

/* ============================================================
   37. FOCUS + MOTION PREFERENCES
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}