﻿@charset "UTF-8";

/* 
========================================================================
   hmdqr-shopper — Ethereal E-Commerce Masterpiece
   Architecture: Zero-Latency, GPU-Accelerated, Glassmorphism, RTL Native
========================================================================
*/

/* Native cross-document view transitions (Chrome 126+, Safari 18+). The
   browser will fade between same-origin navigations automatically. Users
   who set prefers-reduced-motion get no animation; that is handled by the
   UA, not by us. */
@view-transition { navigation: auto; }

:root {
  /* Tell the UA we ship both light and dark variants so native
     controls (scrollbars, form widgets, selection) match the theme. */
  color-scheme: light dark;
  /* Brand-coloured form controls (checkbox, radio, range, progress). */
  accent-color: #c8472a;

  /* Warm Amber/Gold Palette (Luxury Branding) */
  --brand: #c8472a; 
  --brand-light: #e87b64;
  --brand-amber: #f5a623;
  
  --nebula-base: #faf6ef;
  --nebula-milky: rgba(255, 255, 255, 0.8);
  --nebula-warm: rgba(245, 166, 35, 0.05);
  --nebula-burnt: rgba(200, 71, 42, 0.04);

  /* 2026 premium frame: warm midnight backdrop around the elevated paper. */
  --frame-deep: #131017;
  --frame-soft: #1c1820;
  --frame-glow-warm: rgba(245, 166, 35, 0.10);
  --frame-glow-brand: rgba(200, 71, 42, 0.10);
  --frame-glow-cool: rgba(91, 71, 138, 0.08);
  
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(31, 27, 22, 0.04);
  
  --text-primary: #1f1b16;
  --text-muted: #6b6258;
  --text-print-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9), 0px -1px 1px rgba(0, 0, 0, 0.03);
  
  --radius-soft: 16px;
  --radius-pill: 9999px;
  --space: 1.25rem;
  --maxw: 1100px;
  /* Geist for Latin glyphs, Estedad for Arabic. Browser glyph
     fallback fills in whichever script the source font lacks, so a
     single declared stack handles both scripts without per-language
     overrides. system-ui kicks in only if both webfonts fail. */
  --font: "Geist", "Estedad", system-ui, -apple-system, "Segoe UI", "Tahoma", "Arial", sans-serif;
  --font-display: "Geist", "Estedad", system-ui, -apple-system, "Segoe UI", sans-serif;
  
  --danger: #b00020;
  --ok: #2e7d32;
  --focus: #c8472a;
  --border: #e5dccd;
}

@media (prefers-color-scheme: dark) {
  /* Dark mode extensibility point */
}

@media (prefers-contrast: more) {
  :root {
    --glass-bg: #ffffff;
    --glass-shadow: none;
    --text-print-shadow: none;
    --border: #000000;
    --text-muted: #333333;
  }
}

/* Windows High Contrast / forced-colors mode. The browser swaps every
   colour for a system token; we just need to disable our decorative
   backgrounds and shadows so the UA tokens win, and force borders to
   become visible so card boundaries don't disappear. */
@media (forced-colors: active) {
  :root {
    --glass-bg: Canvas;
    --glass-border: CanvasText;
    --glass-shadow: none;
    --text-print-shadow: none;
    --border: CanvasText;
    --text-primary: CanvasText;
    --text-muted: CanvasText;
    --brand: LinkText;
    --focus: Highlight;
  }
  body { background: Canvas; background-image: none; }
  main#main { background: Canvas; background-image: none; box-shadow: none; border: 1px solid CanvasText; }
  body::after { display: none; }
  .live-toast { border: 1px solid CanvasText; }
}

body {
  margin: 0;
  font-family: var(--font);
  /* Prevent layout shift when scrollbar appears/disappears (modern UA). */
  scrollbar-gutter: stable;
  color: var(--text-primary);
  background-color: var(--frame-deep);
  background-image:
    radial-gradient(at 0% 0%, var(--frame-glow-brand) 0px, transparent 55%),
    radial-gradient(at 100% 0%, var(--frame-glow-warm) 0px, transparent 50%),
    radial-gradient(at 100% 100%, var(--frame-glow-cool) 0px, transparent 55%),
    radial-gradient(at 0% 100%, var(--frame-glow-warm) 0px, transparent 50%),
    linear-gradient(180deg, var(--frame-soft) 0%, var(--frame-deep) 100%);
  background-attachment: fixed;
  background-size: cover;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Variable-font tuning. text-rendering hints the engine to load full
     kerning + Arabic shaping tables; font-optical-sizing lets variable
     fonts adjust contrast at small sizes; font-feature-settings turns
     on contextual alternates which Arabic absolutely requires for
     correct cursive joining (calt) and standard ligatures (liga). */
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-feature-settings: "kern", "liga", "calt";
}

/* Arabic naskh glyphs have taller ascenders/descenders than Latin so
   1.8 reads a touch airy in long paragraphs. Tightening to 1.75 keeps
   diacritics from colliding without hurting tap targets. */
:lang(ar) body { line-height: 1.75; }

/* The site main becomes an elevated "paper" card floating on the warm midnight frame. */
main#main {
  background: var(--nebula-base);
  background-image:
    radial-gradient(at 0% 0%, var(--nebula-warm) 0px, transparent 50%),
    radial-gradient(at 100% 0%, var(--nebula-burnt) 0px, transparent 50%),
    radial-gradient(at 100% 100%, var(--nebula-warm) 0px, transparent 50%),
    radial-gradient(at 0% 100%, var(--nebula-burnt) 0px, transparent 50%);
  border-radius: 24px;
  margin: 0 0.75rem 1.5rem;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.38),
    0 2px 0 rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  min-height: 60vh;
}
@media (max-width: 640px) {
  main#main { margin: 0 0.4rem 1rem; border-radius: 18px; }
}

body::after {
  content: ''; position: fixed; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to top, var(--frame-deep), transparent);
  pointer-events: none; z-index: 9999;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 71, 42, 0.3) transparent;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(200, 71, 42, 0.0); border-radius: var(--radius-pill); transition: background-color 0.3s ease; }
body:hover::-webkit-scrollbar-thumb { background-color: rgba(200, 71, 42, 0.4); }

* { box-sizing: border-box; }
html { font-size: 16px; }
.container { max-width: var(--maxw); margin-inline: auto; padding: var(--space); }

h1, h2, h3, h4, .brand-text, .product-name, .stat-value {
  text-shadow: var(--text-print-shadow); font-weight: 700;
}
h1, h2 { font-family: var(--font-display); letter-spacing: 0.005em; line-height: 1.25; font-weight: 600; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2 { font-family: var(--font); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin-block: 0.4em 0.5em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-block: 1.4em 0.4em; }
.lead { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }

/* Live SSE toast (admin chime + customer status updates). */
.live-toast {
    position: fixed; bottom: 24px; inset-inline-end: 24px;
    background: var(--primary, #c0392b); color: #fff;
    padding: 12px 18px; border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    font-weight: 600; max-width: 320px; z-index: 9999;
    opacity: 0; transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.live-toast.show { opacity: 1; transform: translateY(0); }
.skip-link { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--focus); color: #fff; padding: .5rem 1rem; z-index: 10000; text-decoration: none; }
.skip-link:focus { inset-inline-start: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus { color: var(--text-primary); }

.site-header {
  position: sticky; top: 0; z-index: 1000; background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .site-header { background: rgba(255, 255, 255, 0.4); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }
}

.header-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.25rem; color: var(--text-primary); }
.brand-mark { width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.brand-logo { max-height: 44px; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; }
.main-nav a { padding: .6rem .75rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 6px; font-weight: 500; color: var(--text-muted); }
.main-nav a[aria-current="page"] { position: relative; color: var(--brand); }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: -4px; left: 10%; right: 10%; height: 2px; background: var(--brand); border-radius: 2px; }
.badge { color: var(--text-muted); font-size: 0.85em; }

.hero { padding: 3rem 0; text-align: center; }
.hero h1 { margin: 0 0 .5rem; font-size: 2.5rem; letter-spacing: normal; }
.lead { color: var(--text-muted); margin-top: 0; font-size: 1.1rem; }

/* THE MAGIC BUTTON */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.5rem; border-radius: var(--radius-soft); background: var(--glass-bg);
  border: 1px solid var(--glass-border); color: var(--text-primary); font: inherit; font-weight: 600;
  cursor: pointer; z-index: 1; overflow: visible;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, color 0.3s ease;
}
.btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 rgba(200, 71, 42, 0); transition: box-shadow 0.4s ease, opacity 0.4s ease; z-index: -1; opacity: 0;
}
.btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 10%, transparent 10.01%);
  background-size: 1000% 1000%; background-position: center; opacity: 0; transition: background 0s, opacity 0.5s;
  pointer-events: none; z-index: 0; mix-blend-mode: overlay; overflow: hidden; clip-path: inset(0 0 0 0 round var(--radius-soft));
}
.btn:active::after { background-size: 100% 100%; opacity: 0.3; transition: background 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0s; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px) scale(1.02); } }
.btn:active { transform: scale(0.96) !important; transition: transform 0.1s cubic-bezier(0.4, 0.0, 0.2, 1); }

.geo-working-glow::before {
  opacity: 0.8 !important;
  box-shadow: 0 8px 32px var(--brand-amber) !important;
  animation: geoPulse 1.5s infinite alternate;
}
@keyframes geoPulse {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.05); }
}

.btn.primary { background: var(--brand); color: #fff; border-color: transparent; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.btn.primary::before { box-shadow: 0 8px 24px var(--brand-light); opacity: 0.4; }
.btn.primary:hover::before { opacity: 0.8; box-shadow: 0 12px 32px var(--brand-amber); }
.btn.danger { color: var(--danger); border-color: rgba(176, 0, 32, 0.3); background: transparent; }
.btn.big { font-size: 1.05rem; padding: 1rem 1.8rem; border-radius: 14px; }
.btn.mini { padding: 0.35rem 0.8rem; font-size: 0.85rem; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none !important; transform: none !important; } .btn::after, .btn::before { display: none; } }

/* REVEALS */
.silk-reveal { opacity: 0; filter: blur(8px); transform: translateY(15px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.silk-reveal.revealed { opacity: 1; filter: blur(0); transform: translateY(0); }
.blur-up { filter: blur(10px); opacity: 0.6; transform: scale(1.05); transition: filter 1s ease-out, opacity 1s ease-out, transform 1s ease-out; }
.blur-up.loaded { filter: blur(0); opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .silk-reveal { opacity: 1; filter: none; transform: none; transition: none; } .blur-up { filter: none; opacity: 1; transform: none; transition: none; } }

/* PRODUCT CARDS */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-soft); position: relative; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: var(--glass-shadow); overflow: visible; }
@supports (backdrop-filter: blur(8px)) { .product-card { background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px); } }
.product-card::before { content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius-soft) + 2px); background: linear-gradient(135deg, var(--brand-light), transparent 60%); opacity: 0; z-index: -1; filter: blur(12px); transition: opacity 0.5s ease; }
@media (hover: hover) { .product-card:hover { transform: translateY(-4px); } .product-card:hover::before { opacity: 0.25; } }
.product-card:active { transform: scale(0.98); transition-duration: 0.1s; }

.product-link { display: flex; flex-direction: column; padding: 1.25rem; color: inherit; text-decoration: none; height: 100%; }
.product-image-wrap { width: 100%; aspect-ratio: 4/3; margin-bottom: 1rem; border-radius: calc(var(--radius-soft) - 4px); overflow: hidden; position: relative; background: rgba(0,0,0,0.03); }
.product-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-name { margin: 0 0 .5rem; font-size: 1.15rem; }
.product-price { margin: auto 0 0; font-weight: 700; color: var(--brand); font-size: 1.25rem; }
.oos { color: var(--danger); margin: .5rem 0 0; font-weight: 600; }
.ok { color: var(--ok); }
.product-detail img { max-width: 100%; height: auto; border-radius: var(--radius-soft); box-shadow: var(--glass-shadow); }

/* FORMS & TABLES */
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); margin-block: 1rem; }
.form-grid.narrow { grid-template-columns: 1fr; max-width: 480px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { display: block; font-weight: 600; margin-bottom: .25rem; }
.field input, .field select, .field textarea { width: 100%; padding: .75rem 1rem; font: inherit; border: 1px solid var(--border); border-radius: var(--radius-soft); background: var(--glass-bg); box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200, 71, 42, 0.15); outline: none; }
fieldset { margin-top: 1rem; border: 1px solid var(--border); background: var(--glass-bg); border-radius: var(--radius-soft); padding: 1.5rem; }
legend { font-weight: 700; padding: 0.25rem 1rem; background: var(--surface, #fff); border-radius: var(--radius-pill); border: 1px solid var(--border); }
.inline-form { display: inline-flex; gap: .5rem; align-items: center; }
.error { color: var(--danger); }

.data-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-soft); overflow: hidden; box-shadow: var(--glass-shadow); }
.data-table th, .data-table td { padding: 1rem; text-align: start; border-bottom: 1px solid var(--border); }
.data-table th { background: rgba(0,0,0,0.02); font-weight: 700; }
.data-table tr:hover td { background: rgba(255,255,255,0.4); }
.data-table tr:last-child td { border-bottom: 0; }

.status { display: inline-flex; align-items: center; justify-content: center; padding: .25rem .75rem; border-radius: var(--radius-pill); font-size: .85rem; font-weight: 600; background: var(--glass-bg); border: 1px solid var(--border); }
.status-paid { color: var(--ok); border-color: rgba(46,125,50,0.3); background: rgba(46,125,50,0.05); }
.status-cancelled { color: var(--danger); border-color: rgba(176,0,32,0.3); background: rgba(176,0,32,0.05); }
.status-pending { color: var(--text-muted); }

/* STATS */
.stats-grid { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-soft); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; box-shadow: var(--glass-shadow); position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; top: 0; right: 0; width: 60px; height: 60px; background: radial-gradient(circle at top right, var(--brand-light), transparent 70%); opacity: 0.15; }
.stat-label { color: var(--text-muted); font-size: 0.95rem; font-weight: 600; }
.stat-value { font-size: 1.5rem; font-weight: 700; }

.quick-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 1.5rem 0; list-style: none; padding: 0;}
.quick-links a { display: block; padding: 1rem 1.25rem; background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-soft); color: var(--text-primary); font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.02); transition: all 0.2s; }
.quick-links a:hover { transform: translateY(-2px); border-color: var(--brand-light); box-shadow: 0 4px 12px rgba(200,71,42,0.1); }

/* grouped quick-links cards (admin dashboard) */
.quick-links-groups { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 1.25rem 0 0; }
.quick-links-card { background: var(--glass-bg); border: 1px solid var(--border); border-radius: var(--radius-soft); padding: 1rem 1.25rem; }
.quick-links-card h3, .quick-links-card > summary { margin: 0 0 .5rem; font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.quick-links-collapsible > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.quick-links-collapsible > summary::-webkit-details-marker { display: none; }
.quick-links-collapsible > summary::after { content: "▾"; font-size: .75rem; color: var(--text-muted); transition: transform .15s; }
.quick-links-collapsible[open] > summary::after { transform: rotate(180deg); }
.quick-links-collapsible > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.quick-links-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.quick-links-card a, .quick-links-card .btn-link { display: block; padding: .5rem .65rem; border-radius: 6px; color: var(--text-primary); text-decoration: none; font-weight: 500; font-size: .95rem; }
.quick-links-card a:hover { background: rgba(0,0,0,.04); color: var(--brand); }
.quick-links-card a:focus-visible { background: rgba(0,0,0,.04); color: var(--brand); outline: 2px solid var(--brand); outline-offset: 2px; }

.totals, .dl-grid { display: grid; grid-template-columns: max-content auto; gap: .5rem 1.5rem; margin: 1.5rem 0; background: var(--glass-bg); padding: 1.5rem; border-radius: var(--radius-soft); border: 1px solid var(--border); }
.totals dt, .dl-grid dt { color: var(--text-muted); }
.totals dd:last-child { font-weight: 700; color: var(--brand); font-size: 1.2rem; }

.success-panel { background: rgba(46, 125, 50, 0.05); border: 1px solid rgba(46, 125, 50, 0.2); border-radius: var(--radius-soft); padding: 2rem; text-align: center; }
.dev-note { margin-top: 3rem; padding: 1.5rem; background: rgba(0,0,0,0.02); border: 1px dashed var(--border); border-radius: var(--radius-soft); }

.site-footer { margin-top: 3rem; padding-top: 3rem; padding-bottom: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); background: transparent; color: rgba(243, 239, 231, 0.72); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); align-items: start; padding-bottom: 2.5rem; }
.footer-col-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: 0 0 1rem; color: #fff; letter-spacing: 0.02em; }
.footer-brand .footer-col-title { font-size: 1.5rem; }
.footer-logo { max-height: 56px; width: auto; filter: brightness(1.05); }
.footer-tagline { color: rgba(243, 239, 231, 0.6); margin: 0; max-width: 30ch; font-size: 0.95rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: rgba(243, 239, 231, 0.78); text-decoration: none; font-weight: 500; transition: color 0.18s ease; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--brand-light, #e87b64); }
.footer-link-btn { background: transparent; border: 0; padding: 0; font: inherit; color: rgba(243, 239, 231, 0.78); cursor: pointer; text-align: start; }
.footer-link-btn:hover, .footer-link-btn:focus-visible { color: var(--brand-light, #e87b64); }
.social-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #f3efe7; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.social-links a:hover, .social-links a:focus-visible { transform: translateY(-2px); background: var(--brand); color: #fff; border-color: var(--brand); }
.social-icon { width: 1.25rem; height: 1.25rem; display: block; }
.footer-contact { margin: 0; font-size: 0.9rem; }
.footer-contact a { color: rgba(243, 239, 231, 0.6); text-decoration: none; }
.footer-contact a:hover { color: var(--brand-light, #e87b64); }
.footer-bottom { padding: 1.25rem 1rem; border-top: 1px solid rgba(255, 255, 255, 0.06); text-align: center; }
.footer-copyright { margin: 0; color: rgba(243, 239, 231, 0.5); font-size: 0.85rem; letter-spacing: 0.03em; }
.footer-copyright span { font-weight: 600; color: rgba(243, 239, 231, 0.85); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Track-page landing */
.track-hero { text-align: center; padding-block: 3rem; }
.track-hero .lead { color: var(--text-muted); max-width: 50ch; margin: 1rem auto 2rem; }
.track-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.wa-float { position: fixed; bottom: 1.5rem; inset-inline-end: 1.5rem; z-index: 50; display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #25D366; color: #fff; text-decoration: none; box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
.wa-float:hover { transform: translateY(-4px) scale(1.05); transition: transform .3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.wa-float-icon { width: 1.75rem; height: 1.75rem; display: block; }
.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; }
.track-link { display: inline-block; padding: .25rem .5rem; background: var(--glass-bg); border: 1px dashed var(--border); border-radius: .25rem; word-break: break-all; }
.alert.error { background: #fee; border: 1px solid #f5b5b5; color: #7a1a1a; padding: .75rem 1rem; border-radius: .25rem; }
.alert.success { background: #e7f6ea; color: var(--ok); border: 1px solid #b6e0bf; padding: 0.6rem 0.9rem; border-radius: var(--radius-soft); }

.form-grid input[type=color] { width: 4rem; height: 2.25rem; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-soft); }
.logo-preview { max-height: 80px; border: 1px solid var(--border); border-radius: var(--radius-soft); padding: 0.25rem; background: #fff; }

.otp-fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.otp-boxes { display: flex; gap: 0.75rem; direction: ltr; justify-content: center; flex-wrap: wrap; }
.otp-box { width: 3.5rem; height: 4rem; font-size: 1.8rem; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-soft); background: var(--glass-bg); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; transition: border-color 0.2s, box-shadow 0.2s; }
.otp-box:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200,71,42,0.15); outline: none; }
.otp-success-pulse {
  border-color: var(--ok) !important;
  box-shadow: 0 0 0 4px rgba(46,125,50,0.3) !important;
  transform: scale(1.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radio-group { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0.5rem 0 0.75rem; }
.radio { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--glass-bg); cursor: pointer; }
.radio input { accent-color: var(--brand); }
.radio:has(input:checked) { border-color: var(--brand); background: rgba(200,71,42,0.05); }

.points-card { background: linear-gradient(135deg, var(--brand), #8e301a); color: #fff; padding: 2rem; border-radius: var(--radius-soft); margin: 1.5rem 0; box-shadow: 0 10px 30px rgba(200, 71, 42, 0.2); }
.points-card .balance { font-size: 3rem; font-weight: 700; line-height: 1; margin: 0.5rem 0; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }

@media (max-width: 768px) {
  html { font-size: 15px; }
  .hero h1 { font-size: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===== reviews ========================================================= */
.rating-fieldset { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.rating-fieldset legend { font-weight: 600; padding: 0 6px; }
.rating-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; justify-content: flex-end; }
.rating-stars .rating-star { cursor: pointer; padding: 4px; border-radius: 6px; }
.rating-stars .rating-star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-stars .rating-star-icon { font-size: 1.8rem; color: #d1d5db; transition: color .12s; }
.rating-stars .rating-star:hover .rating-star-icon,
.rating-stars .rating-star:hover ~ .rating-star .rating-star-icon,
.rating-stars .rating-star input:checked ~ .rating-star-icon,
.rating-stars .rating-star:focus-within .rating-star-icon,
.rating-stars .rating-star:focus-within ~ .rating-star .rating-star-icon { color: #f59e0b; }
.rating-stars .rating-star:focus-within { outline: 2px solid var(--brand, #c8472a); outline-offset: 2px; }

.rating-stars-static { color: #f59e0b; letter-spacing: 2px; }

.reviews-list, .review-list { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: 14px; }
.review-item, .review-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; }
.review-item-head, .review-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-item-author { color: #374151; }
.review-item-date, .review-card-meta small { color: #6b7280; font-size: 0.85rem; }
.review-item-title, .review-card-title { margin: 6px 0 4px; font-size: 1rem; }
.review-item-body, .review-card-body { color: #1f2937; line-height: 1.6; }
.review-item-images, .review-card-images { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.review-item-images img, .review-card-images img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; }
.review-card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.review-card-actions { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e5e7eb; display: grid; gap: 10px; }
.review-card-note { background: #fef3c7; border-radius: 6px; padding: 8px 12px; font-size: 0.9rem; color: #78350f; }

.order-items { margin-top: 18px; }
.order-items-list { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.order-item-row { display: flex; gap: 12px; align-items: center; padding: 8px 12px; background: #f9fafb; border-radius: 6px; }
.order-item-row .order-item-qty { color: #6b7280; }
.order-item-row .btn-link { margin-inline-start: auto; color: var(--brand, #c8472a); font-weight: 600; text-decoration: none; }
.order-item-row .btn-link:hover, .order-item-row .btn-link:focus-visible { text-decoration: underline; }

/* ===== live geolocation panel ========================================= */
.geo-field { display: grid; gap: 10px; }
.geo-panel {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    gap: 12px;
    animation: geoSlideIn .25s ease-out;
}
@keyframes geoSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.geo-panel.geo-saved { background: #ecfdf5; border-color: #6ee7b7; }
.geo-panel.geo-q-excellent { border-color: #34d399; }
.geo-panel.geo-q-good      { border-color: #fbbf24; }
.geo-panel.geo-q-fair      { border-color: #fb923c; }
.geo-panel.geo-q-poor      { border-color: #ef4444; }

.geo-status-row { display: flex; align-items: center; gap: 10px; }
.geo-status-line { margin: 0; color: #1f2937; font-weight: 500; }

.geo-pulse {
    width: 14px; height: 14px; border-radius: 50%;
    background: #c8472a;
    box-shadow: 0 0 0 0 rgba(200, 71, 42, 0.6);
    animation: geoPing 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
    flex-shrink: 0;
}
@keyframes geoPing {
    0%   { box-shadow: 0 0 0 0 rgba(200, 71, 42, 0.6); }
    70%  { box-shadow: 0 0 0 14px rgba(200, 71, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 71, 42, 0); }
}

.geo-check {
    width: 28px; height: 28px; border-radius: 50%;
    background: #10b981; color: #fff;
    display: inline-grid; place-items: center;
    font-weight: 700; flex-shrink: 0;
}

.geo-accuracy-row { display: grid; gap: 8px; }
.geo-readout { display: flex; gap: 16px; margin: 0; flex-wrap: wrap; }
.geo-readout > div { display: flex; flex-direction: column; gap: 2px; }
.geo-readout dt { font-size: 0.78rem; color: #6b7280; margin: 0; }
.geo-readout dd { margin: 0; font-weight: 600; color: #1f2937; }

.geo-progress {
    height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden;
    position: relative;
}
.geo-progress-bar {
    height: 100%; width: 0%; border-radius: 999px;
    background: linear-gradient(90deg, #fbbf24, #34d399);
    transition: width .35s ease-out;
}
.geo-progress.geo-q-excellent .geo-progress-bar { background: #10b981; }
.geo-progress.geo-q-good      .geo-progress-bar { background: linear-gradient(90deg, #fbbf24, #84cc16); }
.geo-progress.geo-q-fair      .geo-progress-bar { background: linear-gradient(90deg, #fb923c, #fbbf24); }
.geo-progress.geo-q-poor      .geo-progress-bar { background: #ef4444; }

.geo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.geo-actions .btn { flex: 1 1 auto; min-width: 140px; }

.geo-status-static.geo-status-ok    { color: #047857; }
.geo-status-static.geo-status-error { color: #b00020; }

.geo-reduced-motion .geo-pulse,
.geo-reduced-motion .geo-panel { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
    .geo-pulse { animation: none; box-shadow: 0 0 0 4px rgba(200,71,42,0.3); }
    .geo-panel { animation: none; }
    .geo-progress-bar { transition: none; }
}

/* ============================================================
   Cookie consent banner — minimal corner toast, non-intrusive
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    inset-inline-end: 1rem;
    inset-inline-start: auto;
    z-index: 60;
    width: min(22rem, calc(100vw - 2rem));
    background: rgba(20, 18, 26, 0.92);
    color: #f3efe7;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.18);
    padding: 1rem 1.1rem 0.95rem;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.cookie-banner-inner { display: flex; flex-direction: column; gap: 0.35rem; position: relative; }
.cookie-banner-title { font-size: 0.95rem; margin: 0; color: #fff; font-weight: 600; }
.cookie-banner-body { margin: 0; font-size: 0.82rem; line-height: 1.55; color: rgba(243, 239, 231, 0.75); }
.cookie-banner-body a { color: var(--brand-light, #e87b64); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-body a:hover { color: #fff; }
.cookie-banner-actions {
    display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; align-items: center;
}
.cookie-banner-accept {
    appearance: none; border: 0; cursor: pointer; font: inherit;
    padding: 0.5rem 1.1rem; border-radius: 9999px;
    background: linear-gradient(135deg, #fafafa 0%, #e8e6e0 100%);
    color: #14121a; font-weight: 600; font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cookie-banner-accept:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); }
.cookie-banner-decline {
    appearance: none; border: 0; cursor: pointer; font: inherit;
    background: transparent; color: rgba(243, 239, 231, 0.65);
    padding: 0.5rem 0.7rem; font-size: 0.8rem; text-decoration: underline; text-underline-offset: 3px;
}
.cookie-banner-decline:hover { color: #fff; }
.cookie-banner-close {
    position: absolute; top: -0.4rem; inset-inline-end: -0.4rem;
    appearance: none; border: 0; background: transparent;
    color: rgba(243, 239, 231, 0.55); font-size: 1.3rem; line-height: 1;
    cursor: pointer; padding: 0.2rem 0.45rem; border-radius: 999px;
}
.cookie-banner-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.cookie-banner.is-leaving { opacity: 0; transform: translateY(12px); transition: opacity 0.25s ease, transform 0.25s ease; }

@media (prefers-reduced-motion: no-preference) {
    .cookie-banner { animation: cookie-slide-up 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
    @keyframes cookie-slide-up {
        from { transform: translateY(20px); opacity: 0; }
        to   { transform: translateY(0); opacity: 1; }
    }
}

/* Footer button styled as link ("Manage cookies"). */
.footer-link-btn:focus-visible {
    outline: 2px solid var(--focus, #c8472a); outline-offset: 2px;
}

/* ============================================================
   Account orders page — neutralize brand orange (per design note)
   ============================================================ */
.account-orders-page .btn.primary {
    background: #111114;
    color: #fff;
    border-color: transparent;
}
.account-orders-page .btn.primary::before { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); opacity: 0.4; }
.account-orders-page .btn.primary:hover::before { opacity: 0.6; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); }
.account-orders-page a { color: #111114; }
.account-orders-page a:hover, .account-orders-page a:focus { color: #4a4a52; }

/* ============================================================
   Static policy pages typography
   ============================================================ */
.static-page { padding-block: 2rem 3rem; max-width: 56rem; }
.static-page > h1 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    margin-bottom: 1.5rem;
    color: var(--brand, #c8472a);
}
.static-page-body .policy-lead {
    font-size: 1.05rem; line-height: 1.8;
    padding: 1rem 1.1rem;
    background: rgba(0, 0, 0, 0.03);
    border-inline-start: 3px solid var(--brand, #c8472a);
    border-radius: 8px;
    margin-block: 0 1.5rem;
}
.static-page-body .policy-section { margin-block: 1.5rem; }
.static-page-body h2 {
    font-size: 1.3rem; margin: 1.8rem 0 0.75rem;
    color: var(--brand, #c8472a);
}
.static-page-body p { line-height: 1.85; margin: 0.5rem 0; }
.static-page-body ul,
.static-page-body ol {
    padding-inline-start: 1.5rem; line-height: 1.95; margin: 0.5rem 0;
}
.static-page-body li { margin-block: 0.25rem; }
.static-page-body a { color: var(--brand, #c8472a); text-decoration: underline; }
.static-page-body code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.95em;
}
.policy-table-wrap { overflow-x: auto; margin-block: 1rem; }
.policy-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.policy-table th,
.policy-table td {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.65rem 0.75rem;
    text-align: start; vertical-align: top;
}
.policy-table thead { background: rgba(0, 0, 0, 0.04); }
.policy-table th { font-weight: 600; color: var(--brand, #c8472a); }

/* ==== Cart Modern Layout 2026 ============================================
   Uses CSS grid for responsive split (items + sticky summary), container
   queries for stepper polish, scroll-snap on item rows, and view-friendly
   transitions on remove. All colours derive from the warm palette
   (--brand etc.) so theme changes propagate.
   ======================================================================= */

.cart-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1rem, 2vw + 0.5rem, 2.5rem) clamp(1rem, 2vw, 2rem);
}
.cart-head {
  text-align: center;
  margin-bottom: clamp(1rem, 2vw, 2rem);
}
.cart-title {
  font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.6rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.cart-encourage {
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.1rem);
  color: var(--brand);
  font-weight: 600;
  margin: 0;
  opacity: 0;
  animation: cartFadeIn 0.5s ease forwards;
}
@keyframes cartFadeIn { to { opacity: 1; } }

/* Free-shipping progress bar */
.freeship-bar {
  background: linear-gradient(90deg, var(--brand-light, #f5a62315), transparent);
  border: 1px solid color-mix(in srgb, var(--brand, #c8472a) 18%, transparent);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.freeship-track {
  height: 6px;
  background: color-mix(in srgb, var(--brand, #c8472a) 8%, #fff);
  border-radius: 999px;
  overflow: hidden;
}
.freeship-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand, #c8472a), #f5a623);
  border-radius: inherit;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.freeship-msg {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand, #c8472a);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.freeship-icon {
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand, #c8472a);
  color: #fff;
  font-size: 0.8rem;
}

/* Grid: items + sticky summary */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 880px) {
  .cart-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
  .cart-summary { position: sticky; top: 1.5rem; }
}

/* Cart items list */
.cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--brand, #c8472a) 8%, #e9e2d6);
  border-radius: 16px;
  padding: 0.9rem;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.25s,
              opacity 0.25s;
}
.cart-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--brand, #c8472a) 35%, transparent);
}
.cart-item.cart-item-leaving {
  opacity: 0;
  transform: translateX(20px) scale(0.96);
}
.cart-item-media {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f2ea;
}
.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-noimg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5e6d3, #e9d4b8);
}
.cart-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.cart-item-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cart-item-unit {
  margin: 0;
  font-size: 0.88rem;
  color: #6b6358;
}
.cart-item-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cart-item-line {
  font-weight: 700;
  color: var(--brand, #c8472a);
  font-variant-numeric: tabular-nums;
}

/* Stepper */
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid color-mix(in srgb, var(--brand, #c8472a) 25%, transparent);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  user-select: none;
}
.qty-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand, #c8472a);
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: color-mix(in srgb, var(--brand, #c8472a) 10%, transparent); }
.qty-btn:active { transform: scale(0.92); }
.qty-btn:focus-visible {
  outline: 2px solid var(--brand, #c8472a);
  outline-offset: 2px;
}
.qty-value {
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0 0.4rem;
}

/* Remove button (top-corner X) */
.cart-item-remove-form { display: contents; }
.cart-item-remove {
  align-self: start;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f5f0e8;
  color: #6b6358;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.cart-item-remove:hover {
  background: var(--brand, #c8472a);
  color: #fff;
  transform: rotate(90deg);
}
.cart-item-remove:focus-visible {
  outline: 2px solid var(--brand, #c8472a);
  outline-offset: 2px;
}

.cart-noscript-form {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Summary */
.cart-summary {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--brand, #c8472a) 10%, #e9e2d6);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px -16px color-mix(in srgb, var(--brand, #c8472a) 25%, transparent);
}
.cart-summary-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}
.cart-summary-list {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.cart-summary-row dt, .cart-summary-row dd { margin: 0; }
.cart-summary-row dd { font-variant-numeric: tabular-nums; }
.cart-summary-vat dt, .cart-summary-vat dd {
  color: #6b6358;
  font-size: 0.85rem;
}
.cart-summary-total {
  padding-top: 0.7rem;
  border-top: 1px dashed color-mix(in srgb, var(--brand, #c8472a) 20%, transparent);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand, #c8472a);
}
.cart-summary-note {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: #8a8278;
  line-height: 1.5;
}
.cart-checkout-btn { width: 100%; display: inline-flex; justify-content: center; }
.cart-continue-link {
  display: block;
  text-align: center;
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--brand, #c8472a);
  text-decoration: none;
}
.cart-continue-link:hover { text-decoration: underline; }
.cart-secure {
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #6b6358;
}

/* Empty state */
.cart-empty {
  text-align: center;
  padding: clamp(2rem, 4vw, 4rem) 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.cart-empty-art {
  width: 180px;
  max-width: 60vw;
  animation: cartFloat 4s ease-in-out infinite;
}
.cart-empty-art svg { width: 100%; height: auto; display: block; }
@keyframes cartFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.cart-empty-title {
  font-size: clamp(1.4rem, 2vw + 0.5rem, 1.8rem);
  margin: 0;
}
.cart-empty-subtitle {
  margin: 0 0 1rem;
  color: #6b6358;
  max-width: 32ch;
}

/* Header cart badge — animated pulse on update */
.cart-badge {
  display: inline-block;
  min-width: 1.4rem;
  height: 1.4rem;
  margin-inline-start: 0.35rem;
  padding: 0 0.4rem;
  background: var(--brand, #c8472a);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4rem;
  text-align: center;
  vertical-align: middle;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.4, 1.6, 0.6, 1);
  font-variant-numeric: tabular-nums;
}
.cart-badge-active { transform: scale(1); }
.cart-badge-pulse { animation: cartBadgePulse 0.6s ease-out; }
@keyframes cartBadgePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* App-wide toast */
.app-toast {
  position: fixed;
  inset-inline: 0;
  bottom: 2rem;
  margin-inline: auto;
  width: max-content;
  max-width: calc(100vw - 2rem);
  background: #1f1a14;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 1000;
}
.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Cross-tab cart update banner. Surfaces when the customer's cart
   has changed in another tab / device while they sit on /cart. */
.cart-crosstab-banner {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  margin-inline: auto;
  max-width: 32rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: #fff7ed;
  color: #7c2d12;
  border: 1px solid #fdba74;
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.18);
  font-size: 0.95rem;
  z-index: 1000;
}
.cart-crosstab-banner button {
  background: #c8472a;
  color: #fff;
  border: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}
.cart-crosstab-banner button:hover { background: #a73a22; }
@media (prefers-reduced-motion: no-preference) {
  .cart-crosstab-banner { animation: cart-banner-in 0.3s ease-out; }
}
@keyframes cart-banner-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 72px 1fr auto;
    padding: 0.75rem;
  }
  .cart-item-media { width: 72px; height: 72px; }
  .cart-item-name { font-size: 0.95rem; }
}


/* product-page-2026 placeholder */
/* ==== Product Detail 2026 ============================================ */
.breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #8a8278;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before {
  content: "›";
  margin-inline-end: 0.5rem;
  color: #c8b7a0;
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--brand, #c8472a); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #2a241d; font-weight: 600; }

.product-detail-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 2rem);
}
@media (min-width: 880px) {
  .product-detail-modern { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

.product-media {
  position: relative;
}
.product-detail-modern .product-gallery {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
  scroll-snap-type: x mandatory;
}
.product-detail-modern .product-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  scroll-snap-align: start;
}
@media (min-width: 600px) {
  .product-detail-modern .product-gallery:not(.product-gallery-single) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-info { display: flex; flex-direction: column; gap: 1rem; }
.product-title {
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2.2rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.product-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}
.product-rating-link .rating-stars-static { color: #f5a623; letter-spacing: 0.1em; }
.product-rating-link .rating-count { color: #8a8278; }
.product-rating-link:hover .rating-count { color: var(--brand, #c8472a); }

.product-price-modern {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
  font-weight: 800;
  color: var(--brand, #c8472a);
  margin: 0;
  letter-spacing: -0.02em;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.stock-pill.ok {
  background: color-mix(in srgb, #18a957 12%, #fff);
  color: #0d6b37;
}
.stock-pill.ok::before {
  content: "●"; color: #18a957;
}
.stock-pill.oos {
  background: color-mix(in srgb, var(--danger, #b00020) 10%, #fff);
  color: var(--danger, #b00020);
}
.stock-pill.low {
  background: color-mix(in srgb, #b45309 12%, #fff);
  color: #92400e;
  margin-inline-start: 0.4rem;
}
.stock-pill.low::before {
  content: "⏳";
}

/* Inventory-aware stepper: aria-disabled buttons stay focusable so
   screen-reader users can discover why the boundary is reached, but
   the cursor + opacity signal "no further" to sighted users too. */
.qty-stepper [data-pdp-op][aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #3a342c;
}

.add-to-cart-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.add-to-cart-modern .add-row {
  display: flex;
  gap: 0.7rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.add-to-cart-modern .qty-stepper { height: auto; }
.add-to-cart-modern .qty-input {
  width: 56px;
  text-align: center;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  appearance: textfield;
  -moz-appearance: textfield;
}
.add-to-cart-modern .qty-input::-webkit-outer-spin-button,
.add-to-cart-modern .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.add-to-cart-btn { flex: 1 1 200px; min-height: 48px; }

.product-share {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}
.share-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand, #c8472a) 20%, transparent);
  background: #fff;
  color: var(--brand, #c8472a);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.share-btn:hover { background: var(--brand, #c8472a); color: #fff; }
.share-btn:focus-visible { outline: 2px solid var(--brand, #c8472a); outline-offset: 2px; }

/* Sticky buy bar (mobile-first; visible only after main CTA scrolls off) */
.sticky-buy {
  position: fixed;
  inset-inline: 0;
  bottom: env(safe-area-inset-bottom, 0);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid color-mix(in srgb, var(--brand, #c8472a) 15%, transparent);
  padding: 0.7rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 90;
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.2);
}
.sticky-buy[inert] { pointer-events: none; }
.sticky-buy.show { transform: translateY(0); }
.sticky-buy-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.sticky-buy-name {
  flex: 1 1 auto;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-buy-price {
  font-weight: 700;
  color: var(--brand, #c8472a);
  font-variant-numeric: tabular-nums;
}
.sticky-buy-cta { padding: 0.7rem 1.2rem !important; }
@media (min-width: 880px) {
  /* On desktop the main CTA stays in view alongside the gallery, so the
     sticky bar isn't really needed. Hide it. */
  .sticky-buy { display: none; }
}

/* Reviews head: title + CTA side by side */
.product-reviews {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 clamp(1rem, 2vw, 2rem);
}
.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.reviews-head h2 { margin: 0; }
.reviews-cta-link {
  color: var(--brand, #c8472a);
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand, #c8472a) 25%, transparent);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.reviews-cta-link:hover { background: var(--brand, #c8472a); color: #fff; }

.review-item-images {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 0;
  padding: 0;
}
.review-item-images li { width: 84px; height: 84px; }
.review-item-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.2s;
}
.review-item-images img:hover { transform: scale(1.05); }

/* sr-only utility (safe alias if not defined elsewhere) */
.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;
}

