/* =============================================================================
 * Rotitoo storefront — mesue.tech Aurora flavour, cognac signal.
 * Tokens: docs/DESIGN_SYSTEM.md. The photo is the hero; paper and ink are the stage.
 * ============================================================================= */

:root {
  --bg: #f6f3ee;            --bg-soft: #efe9e0;       --bg-elevated: #fffdf9;
  --surface: #fffdf9;       --surface-2: #f4ece2;     --surface-3: #ffffff;
  --border: rgba(26, 22, 18, 0.09);  --border-strong: rgba(26, 22, 18, 0.16);
  --ink-rule: rgba(26, 22, 18, 0.1);

  --bg-card: #fffdf9;       --bg-subtle: #f4ece2;     --text-muted: #6b6258;
  --input-bg: #ffffff;      --input-border: rgba(26, 22, 18, 0.18);

  --text: #1a1612;          --text-2: #3a332c;        --muted: #6b6258;

  --accent: #8a5a2b;        --accent-deep: #6b4423;   --accent-bright: #a8703a;
  --accent-solid: #8a5a2b;  --accent-solid-hover: #6b4423;
  --accent-soft: rgba(138, 90, 43, 0.10);
  --accent-glow: rgba(168, 112, 58, 0.30);
  --peach: #f5e7da;         --peach-deep: #e8cfb9;

  --ok: #2f6b4f;            --danger: #8c3a32;        --sun: #b7791f;
  --on-dark: #f7f2ea;       --on-dark-muted: rgba(247, 242, 234, 0.72);

  --r-sm: 12px;  --r-md: 16px;  --r-lg: 24px;  --radius-cta: 999px;

  --shadow-1: 0 1px 2px rgba(26, 18, 10, 0.05), 0 2px 8px rgba(26, 18, 10, 0.04);
  --shadow-2: 0 10px 30px -8px rgba(26, 18, 10, 0.14), 0 2px 6px rgba(26, 18, 10, 0.05);
  --shadow-3: 0 30px 60px -18px rgba(70, 40, 15, 0.26), 0 8px 20px -8px rgba(26, 18, 10, 0.12);

  --glass: rgba(250, 247, 242, 0.72);  --glass-strong: rgba(255, 253, 249, 0.9);
  --glass-border: rgba(26, 22, 18, 0.08);
  --focus-ring: 0 0 0 3px rgba(168, 112, 58, 0.32);

  --font-display: "Cairo", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --max: 1240px;

  --gutter: clamp(1rem, 4vw, 1.75rem);
  --edition-h: 31px;
  --scroll-thumb: rgba(138, 90, 43, 0.35);
  /* Image well: product photos are shot/cut out on white, so every frame is a white square and the whole bag is
     contained and centred (no crop, no stretch), like production. */
  --img-well: #fff;
  --img-pad: 4%; /* most source photos already carry their own white margin */
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0e0b08;            --bg-soft: #14100c;       --bg-elevated: #1a140f;
  --surface: #17120e;       --surface-2: #211a14;     --surface-3: #1c1611;
  --border: rgba(245, 230, 210, 0.09);  --border-strong: rgba(245, 230, 210, 0.17);
  --ink-rule: rgba(245, 230, 210, 0.1);

  --bg-card: #1c1611;       --bg-subtle: #211a14;     --text-muted: #a89c8c;
  --input-bg: #17120e;      --input-border: rgba(245, 230, 210, 0.18);

  --text: #f5efe6;          --text-2: #ddd3c5;        --muted: #a89c8c;

  --accent: #d9a46a;        --accent-deep: #e8c195;   --accent-bright: #d9a46a;
  --accent-solid: #a8703a;  --accent-solid-hover: #b97f45;
  --accent-soft: rgba(217, 164, 106, 0.14);
  --accent-glow: rgba(201, 140, 80, 0.40);
  --peach: rgba(245, 214, 190, 0.08);  --peach-deep: #e8cfb9;

  --ok: #6fcf97;            --danger: #f08a7e;        --sun: #f2c14e;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 230, 210, 0.04);
  --shadow-3: 0 30px 70px -20px rgba(0, 0, 0, 0.75), 0 0 40px -10px rgba(168, 112, 58, 0.22);

  --glass: rgba(14, 11, 8, 0.68);  --glass-strong: rgba(23, 18, 14, 0.92);
  --glass-border: rgba(245, 230, 210, 0.08);
  --focus-ring: 0 0 0 3px rgba(217, 164, 106, 0.45);
  --scroll-thumb: rgba(217, 164, 106, 0.3);
  /* = the photos' white background after the dark-mode brightness(.94) below, so frame and photo stay seamless. */
  --img-well: #f0f0f0;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.3; letter-spacing: 0; text-wrap: balance; color: var(--text); }
p, li { text-wrap: pretty; }
a { color: var(--accent-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-bright); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
bdi { unicode-bidi: isolate; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-offset, 72px) + 16px); }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 1100;
  padding: .65rem 1.1rem; border-radius: 12px;
  background: var(--accent-solid); color: #fff; font-weight: 700;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; color: #fff; }

.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 85% -5%, rgba(168, 112, 58, 0.10), transparent 60%),
    radial-gradient(45% 35% at 5% 25%, rgba(232, 207, 185, 0.45), transparent 60%),
    linear-gradient(180deg, #faf7f2 0%, var(--bg) 40%, var(--bg-soft) 100%);
}
html[data-theme="dark"] .ambient {
  background:
    radial-gradient(55% 40% at 85% -5%, rgba(168, 112, 58, 0.20), transparent 60%),
    radial-gradient(40% 35% at 0% 35%, rgba(107, 68, 35, 0.16), transparent 60%),
    radial-gradient(35% 30% at 100% 80%, rgba(232, 207, 185, 0.05), transparent 60%),
    linear-gradient(180deg, #120d09 0%, var(--bg) 50%, #0b0906 100%);
}

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { position: relative; z-index: 1; display: block; }
.site-main:focus { outline: none; box-shadow: none; }

/* ---------- Header / chrome ---------- */
.site-header {
  position: sticky; top: calc(-1 * var(--edition-h)); z-index: 200;
  isolation: isolate;
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow .3s ease;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  transition: background-color .3s ease;
}
.site-header.is-compact { box-shadow: 0 10px 30px -18px rgba(26, 18, 10, 0.35); }
.site-header.is-compact::before { background: var(--glass-strong); }
/* Smart App Hub for mobile */
.smart-app-banner {
  background: #1a1612;
  color: #f7f2ea;
  border-bottom: 1px solid rgba(168, 112, 58, 0.35);
  font-size: 0.85rem;
  padding-block: 0.45rem;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.sab-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.sab-close {
  font-size: 1.3rem;
  line-height: 1;
  color: rgba(247, 242, 234, 0.65);
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
}
.sab-close:hover {
  color: #fff;
}
.sab-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.sab-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.sab-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sab-sub {
  font-size: 0.72rem;
  color: rgba(247, 242, 234, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sab-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.btn-sab-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-solid));
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(138, 90, 43, 0.35);
  white-space: nowrap;
}
.btn-sab-outline {
  border: 1px solid rgba(247, 242, 234, 0.35);
  color: #f7f2ea !important;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.btn-sab-outline:hover {
  border-color: var(--accent-bright);
  color: #fff !important;
}
@media (min-width: 769px) {
  .smart-app-banner {
    display: none !important;
  }
}

.edition-bar {
  height: var(--edition-h);
  border-bottom: 1px solid var(--glass-border);
  font-size: .78rem; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden;
}
.edition-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }
.edition-contact { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.edition-bar a { color: var(--accent-deep); font-weight: 700; }
.edition-mid { font-family: var(--font-display); font-weight: 700; color: var(--text-2); }

.header-inner {
  display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1rem);
  min-height: 66px; transition: min-height .3s var(--ease-out);
}
.site-header.is-compact .header-inner { min-height: 56px; }

.brand { display: inline-flex; align-items: center; color: inherit; min-width: 0; flex-shrink: 0; text-decoration: none; line-height: 0; }
.brand:hover { color: inherit; }
.brand-glyph { line-height: 0; flex-shrink: 0; display: inline-flex; align-items: center; }
.brand-icon-img {
  width: 40px; height: 40px;
  object-fit: contain;
  transition: transform .35s var(--ease-out);
}
.brand:hover .brand-icon-img { transform: rotate(-5deg) scale(1.05); }

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 125px;
  object-fit: contain;
  transition: transform .3s var(--ease-out), opacity .2s ease;
}
.brand:hover .brand-logo-img { transform: scale(1.03); opacity: .95; }

/* Theme-adaptive display helper classes */
.theme-dark-only { display: none !important; }
.theme-light-only { display: inline-block !important; }

html[data-theme="dark"] .theme-dark-only { display: inline-block !important; }
html[data-theme="dark"] .theme-light-only { display: none !important; }

html[data-theme="light"] .theme-dark-only { display: none !important; }
html[data-theme="light"] .theme-light-only { display: inline-block !important; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark-only { display: inline-block !important; }
  :root:not([data-theme="light"]) .theme-light-only { display: none !important; }
}

html[data-theme="dark"] .brand-icon-img,
html[data-theme="dark"] .brand-logo-img,
html[data-theme="dark"] .sab-icon-img,
html[data-theme="dark"] .footer-logo-wrap img {
  filter: none !important;
}

@media (max-width: 480px) {
  .brand-logo-img { height: 36px; max-width: 100px; }
}

.nav { display: flex; align-items: center; justify-content: center; gap: .1rem; flex: 1; min-width: 0; }
.nav > a {
  position: relative;
  padding: .5rem .85rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.nav > a::after {
  content: ""; position: absolute; inset-inline: .9rem; bottom: .3rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-bright), var(--peach-deep));
  transform: scaleX(0); transition: transform .3s var(--ease-out);
}
.nav > a:hover { color: var(--text); }
.nav > a:hover::after { transform: scaleX(1); }
.nav > a.active { background: var(--accent-soft); color: var(--accent-deep); }
.nav-search, .nav-mobile-cta, .nav-mobile-note { display: none; }

.header-actions { display: flex; align-items: center; gap: .45rem; margin-inline-start: auto; flex-shrink: 0; }
.header-icon-btn, .burger, .theme-toggle {
  position: relative;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  transition: border-color .2s, color .2s, background-color .2s, transform .2s;
}
.header-icon-btn:hover, .theme-toggle:hover, .burger:hover {
  border-color: var(--accent-bright); color: var(--accent-deep); transform: translateY(-1px);
}
.header-icon-btn[aria-expanded="true"] { border-color: var(--accent-bright); color: var(--accent-deep); background: var(--accent-soft); }

.theme-toggle { overflow: hidden; padding: 0; }
.theme-toggle svg { position: absolute; transition: transform .45s var(--ease-out), opacity .3s; }
.theme-toggle .icon-moon { transform: translateY(0) rotate(0); opacity: 1; }
.theme-toggle .icon-sun { transform: translateY(140%) rotate(90deg); opacity: 0; }
html[data-theme="dark"] .theme-toggle .icon-moon { transform: translateY(-140%) rotate(-90deg); opacity: 0; }
html[data-theme="dark"] .theme-toggle .icon-sun { transform: none; opacity: 1; }

.cart-count {
  position: absolute; top: -5px; inset-inline-end: -5px;
  min-width: 19px; height: 19px; padding-inline: 5px;
  display: grid; place-items: center;
  border-radius: 999px; border: 2px solid var(--bg);
  background: var(--accent-solid); color: #fff;
  font-family: var(--font-display); font-size: .66rem; font-weight: 800; line-height: 1;
}

.wish-count {
  position: absolute; top: -5px; inset-inline-end: -5px;
  min-width: 19px; height: 19px; padding-inline: 5px;
  display: grid; place-items: center;
  border-radius: 999px; border: 2px solid var(--bg);
  background: #e11d48; color: #fff;
  font-family: var(--font-display); font-size: .66rem; font-weight: 800; line-height: 1;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}
.header-icon-btn.wish-btn:hover {
  color: #e11d48; border-color: rgba(225, 29, 72, 0.4);
}

.burger { display: none; }
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.burger::before { transform: translate(-50%, -7px); }
.burger span { transform: translate(-50%, -1px); }
.burger::after { transform: translate(-50%, 5px); }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::before { transform: translate(-50%, -1px) rotate(45deg); }
.burger[aria-expanded="true"]::after { transform: translate(-50%, -1px) rotate(-45deg); }

.search-panel {
  border-top: 1px solid var(--glass-border);
  padding-block: .85rem;
  animation: panelIn .28s var(--ease-out) both;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.search-form {
  display: flex; align-items: center; gap: .5rem;
  max-width: 640px; margin-inline: auto;
  padding: .3rem .35rem .3rem .3rem; padding-inline-start: 1rem;
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface-3); color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within { border-color: var(--accent-bright); box-shadow: var(--focus-ring); }
.search-form input {
  flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: var(--text); outline: none;
}
.search-form input::placeholder { color: var(--muted); }
.search-form .btn { flex-shrink: 0; }

@media (max-width: 1179px) {
  .nav > a { padding-inline: .6rem; font-size: .86rem; }
  .edition-mid { display: none; }
}

@media (max-width: 768px) {
  .edition-end { display: none; }
  .burger { display: grid; }
  .header-account { display: none; }
  .nav {
    position: fixed; z-index: 190;
    inset: var(--header-offset, 98px) 0 0 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .25rem;
    padding: 1.25rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background:
      radial-gradient(80% 50% at 100% 0%, var(--accent-soft), transparent 70%),
      var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility .28s;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
    padding: .85rem .6rem; border-radius: 12px;
    border-bottom: 1px solid var(--ink-rule); color: var(--text);
  }
  .nav > a::after { display: none; }
  .nav-search { display: flex; margin-top: 1rem; }
  .nav-search {
    align-items: center; gap: .5rem; padding: .3rem; padding-inline-start: 1rem;
    border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-3);
  }
  .nav-search input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; outline: none; }
  .nav-mobile-cta { display: flex; gap: .6rem; margin-top: .9rem; }
  .nav-mobile-cta .btn { flex: 1 1 0; }
  .nav-mobile-note { display: block; margin-top: 1rem; font-size: .85rem; color: var(--muted); text-align: center; }
  .nav.open > * { animation: navItemIn .45s var(--ease-out) both; }
  .nav.open > *:nth-child(2) { animation-delay: .04s; }
  .nav.open > *:nth-child(3) { animation-delay: .08s; }
  .nav.open > *:nth-child(4) { animation-delay: .12s; }
  .nav.open > *:nth-child(5) { animation-delay: .16s; }
  .nav.open > *:nth-child(n+6) { animation-delay: .2s; }
  html.nav-open, html.nav-open body { overflow: hidden; }
}
@media (max-width: 420px) {
  .edition-ship { display: none; }
  .brand-copy small { display: none; }
  .header-actions { gap: .3rem; }
}
@keyframes navItemIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.6rem;
  border-radius: var(--radius-cta); border: 1.5px solid transparent;
  font-family: var(--font-display); font-size: .97rem; font-weight: 700; line-height: 1.2;
  text-align: center; white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s, border-color .2s, color .2s, box-shadow .25s, filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-solid) 60%, var(--accent-deep) 130%);
  color: #fff;
  box-shadow: 0 10px 26px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 16px 34px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
html[data-theme="dark"] .btn-primary { background: linear-gradient(135deg, #c48a4f 0%, #a8703a 55%, #8a5a2b 120%); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--peach-deep); background: var(--accent-soft); color: var(--accent-deep); }
.btn-light { background: #fff; color: #1a1612; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5); }
.btn-light:hover { background: var(--peach); color: #1a1612; }
html[data-theme="dark"] .btn-light:hover { background: #f5e7da; }
.btn-glass {
  color: #fff; border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-glass:hover { color: #fff; background: rgba(255, 255, 255, 0.16); border-color: var(--peach-deep); }
.btn-sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .86rem; }
.btn-lg { min-height: 54px; padding: .95rem 1.8rem; font-size: 1.02rem; }

/* ---------- Typography helpers ---------- */
.dept {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: 0;
  color: var(--accent-bright); margin-bottom: .45rem;
}
.dept::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-bright), var(--peach-deep)); }
.dept-on-dark { color: var(--peach-deep); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.35rem); line-height: 1.25; }
.section-sub { color: var(--muted); font-size: 1.02rem; max-width: 42rem; margin-top: .35rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3rem); }
.section-soft {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-2) 55%, transparent) 18%, color-mix(in srgb, var(--surface-2) 55%, transparent) 82%, transparent);
}
.section-end { padding-top: clamp(1rem, 3vw, 2rem); }
.section-shop { padding-top: clamp(1.25rem, 3vw, 2rem); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.sec-head-copy { min-width: 0; }
.sec-more {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--accent-deep);
}
.sec-more::after { content: "←"; transition: transform .3s var(--ease-out); }
.sec-more:hover::after { transform: translateX(-4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 780px);
  display: flex; align-items: flex-end;
  overflow: clip;
  color: var(--on-dark);
  background:
    radial-gradient(70% 60% at 85% 100%, rgba(168, 112, 58, 0.55), transparent 70%),
    radial-gradient(50% 50% at 0% 0%, rgba(232, 207, 185, 0.12), transparent 70%),
    #120c07;
}
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-photo {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.04);
  animation: kenBurns 28s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(1.2%, -0.8%, 0); }
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 85% 100%, rgba(107, 68, 35, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(18, 12, 7, 0.28) 0%, rgba(18, 12, 7, 0.14) 35%, rgba(18, 12, 7, 0.88) 100%),
    linear-gradient(270deg, rgba(18, 12, 7, 0.72) 0%, rgba(18, 12, 7, 0.18) 60%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; padding-top: clamp(5rem, 12vh, 8rem); padding-bottom: clamp(4.5rem, 10vh, 6.5rem); }
.hero-copy > * { animation: fadeUp .8s var(--ease-out) backwards; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.hero-copy > *:nth-child(5) { animation-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.signal-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .38rem .9rem; margin-bottom: 1.1rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .82rem; font-weight: 600; color: var(--peach);
}
.signal-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e8cfb9; box-shadow: 0 0 0 4px rgba(232, 207, 185, 0.22); }
.hero h1 {
  max-width: 17ch; margin-bottom: .9rem;
  font-size: clamp(2.1rem, 5.6vw, 3.8rem); line-height: 1.18; color: #fff;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}
.hero .lead { max-width: 34rem; margin-bottom: 1.75rem; font-size: clamp(1.02rem, 1.7vw, 1.15rem); line-height: 1.8; color: var(--on-dark-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-top: 1.5rem; }
.hero-facts li {
  padding: .28rem .8rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06);
  font-size: .82rem; font-weight: 600; color: var(--on-dark-muted);
}
.hero-tag {
  position: absolute; inset-inline-end: var(--gutter); bottom: clamp(4.5rem, 10vh, 6.5rem);
  display: grid; gap: .1rem; max-width: 260px;
  padding: .85rem 1.1rem; border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(18, 12, 7, 0.38);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  color: #fff; transition: transform .3s var(--ease-out), border-color .3s;
}
.hero-tag:hover { color: #fff; transform: translateY(-3px); border-color: var(--peach-deep); }
.hero-tag-label { font-size: .74rem; color: var(--peach-deep); font-weight: 600; }
.hero-tag strong { font-family: var(--font-display); font-size: .98rem; line-height: 1.4; }
.hero-tag-price { font-size: .9rem; color: var(--on-dark-muted); }
.hero-plain { min-height: min(72vh, 620px); }
@media (max-width: 960px) {
  .hero-tag { display: none; }
}
@media (max-width: 768px) {
  .hero { min-height: min(84vh, 680px); }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; padding-inline: 1rem; }
  .hero-photo { animation: none; }
}
html[data-theme="dark"] .hero-photo { filter: saturate(1.02) contrast(1.05) brightness(.86); }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; gap: clamp(.75rem, 2vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.cat-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  aspect-ratio: 4 / 5; max-height: 460px;
  border-radius: var(--r-md); background: var(--surface-2);
  border: 1px solid var(--border); box-shadow: var(--shadow-1);
  color: #fff;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s;
}
.cat-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.cat-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(18, 12, 7, 0.78) 100%);
}
.cat-tile:not(:has(img)) { background: radial-gradient(80% 80% at 80% 0%, rgba(168, 112, 58, 0.45), transparent 70%), #2a1d12; }
.cat-tile:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: color-mix(in srgb, var(--accent-bright) 40%, var(--border)); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile-copy { display: grid; gap: .1rem; width: 100%; padding: 1.1rem 1.15rem; }
.cat-tile-copy strong { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 800; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cat-tile-copy strong::after { content: "←"; font-weight: 700; opacity: .8; transition: transform .3s var(--ease-out); }
.cat-tile:hover .cat-tile-copy strong::after { transform: translateX(-4px); }
.cat-tile-copy span { font-size: .85rem; color: var(--on-dark-muted); }

/* ---------- Product cards ---------- */
.p-grid { display: grid; gap: clamp(.75rem, 2vw, 1.4rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p-card {
  position: relative; min-width: 0;
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s, background-color .3s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: color-mix(in srgb, var(--accent-bright) 40%, var(--border)); }
.p-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.p-card-link:hover { color: inherit; }
.p-card-link:focus-visible { box-shadow: inset 0 0 0 3px var(--accent-glow); border-radius: var(--r-md); }
.p-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--img-well); border-bottom: 1px solid var(--border); }
.p-card-media img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; padding: var(--img-pad);
  transition: transform .7s var(--ease-out), filter .3s, opacity .3s;
}
@media (hover: hover) { .p-card:hover .p-card-media img { transform: scale(1.05); } }
.p-card-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--peach-deep);
  background: radial-gradient(60% 60% at 50% 40%, var(--accent-soft), transparent 70%);
}
.p-card-badges { position: absolute; top: .65rem; inset-inline-start: .65rem; z-index: 1; display: flex; gap: .35rem; }
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .22rem .65rem; border-radius: 999px;
  font-family: var(--font-display); font-size: .74rem; font-weight: 700; line-height: 1.5;
}
.badge-sale { background: var(--accent-solid); color: #fff; box-shadow: 0 6px 16px -6px var(--accent-glow); }
.badge-out {
  background: rgba(26, 22, 18, 0.78); color: #fff; border: 1px solid transparent;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.p-card.is-out .p-card-media img { filter: saturate(.55); opacity: .82; }
.p-card-body { display: flex; flex-direction: column; gap: .2rem; padding: .85rem 1rem 1rem; flex: 1; }
.p-card-cat { font-size: .76rem; font-weight: 600; color: var(--muted); }
.p-card-name {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.9em; /* two lines reserved so names, option counts and prices line up across a row */
  text-align: right; /* dir="auto": Latin names truncate at their own end but stay aligned with the RTL card */
}
.p-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .55rem; margin-top: auto; padding-top: .35rem; }
.price-now { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--text); }
.price-was { font-size: .86rem; color: var(--muted); text-decoration-thickness: 1px; }
.price-from { font-size: .82rem; font-weight: 600; color: var(--muted); }
.p-card-variants { font-size: .78rem; color: var(--accent-deep); font-weight: 600; }
.p-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}
.p-card-footer .p-card-price {
  margin-top: 0;
  padding-top: 0;
}
.p-card-quick-add {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent-deep);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.p-card-quick-add:hover {
  background: var(--accent-solid);
  color: #fff;
  border-color: var(--accent-solid);
  transform: translateY(-1px);
}
.badge-craft {
  background: rgba(138, 90, 43, 0.12);
  color: var(--accent-deep);
  border: 1px solid rgba(138, 90, 43, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
}
html[data-theme="dark"] .badge-craft {
  background: rgba(217, 164, 106, 0.16);
  color: var(--accent-bright);
  border-color: rgba(217, 164, 106, 0.35);
}

/* Wishlist heart button on product card */
.p-card-wish-btn {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 22, 18, 0.1);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(26, 22, 18, 0.08);
}
.p-card-wish-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
  color: #c2185b;
  box-shadow: 0 6px 16px rgba(194, 24, 91, 0.2);
}
.p-card-wish-btn.is-wished {
  color: #c2185b;
  background: #ffffff;
  border-color: rgba(194, 24, 91, 0.3);
}
.p-card-wish-btn.is-wished .icon-wish-heart {
  fill: #c2185b;
  stroke: #c2185b;
  animation: wishPulse 0.35s ease;
}
@keyframes wishPulse {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
html[data-theme="dark"] .p-card-wish-btn {
  background: rgba(23, 18, 14, 0.85);
  border-color: rgba(245, 230, 210, 0.15);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .p-card-wish-btn:hover,
html[data-theme="dark"] .p-card-wish-btn.is-wished {
  background: #211a14;
  color: #f48fb1;
}
html[data-theme="dark"] .p-card-wish-btn.is-wished .icon-wish-heart {
  fill: #f48fb1;
  stroke: #f48fb1;
}

/* PDP Wishlist button */
#btnWishlist.is-wished {
  color: #c2185b;
  border-color: #c2185b;
}
#btnWishlist.is-wished .icon-wish-heart {
  fill: #c2185b;
  stroke: #c2185b;
}
html[data-theme="dark"] #btnWishlist.is-wished {
  color: #f48fb1;
  border-color: #f48fb1;
}
html[data-theme="dark"] #btnWishlist.is-wished .icon-wish-heart {
  fill: #f48fb1;
  stroke: #f48fb1;
}

/* Quick Order Modal & Cart Toast */
.modal-dialog {
  border: 0;
  border-radius: var(--r-lg, 24px);
  padding: 0;
  max-width: 520px;
  width: calc(100% - 2rem);
  max-height: min(92dvh, calc(100vh - 2rem));
  margin: auto;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-3);
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  inset: 0;
  z-index: 10000;
}
/* A closed <dialog> must stay hidden: an author `display` on the base rule overrides the UA
   `dialog:not([open]) { display: none }`, which left the quick-order sheet painted on every PDP. */
.modal-dialog:not([open]) {
  display: none !important;
}
.modal-dialog[open] {
  display: flex;
}
html.has-modal, html.has-modal body { overflow: hidden; }
.modal-dialog::backdrop {
  background: rgba(14, 11, 8, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}
.modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
}
html[data-theme="dark"] .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.modal-body {
  padding: 1.25rem 1.4rem 1.75rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
}
.qo-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(46, 125, 50, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.3);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.qo-user-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .modal-dialog {
    width: calc(100% - 1.25rem);
    max-height: 88dvh;
    border-radius: 18px;
  }
  .modal-header {
    padding: 0.9rem 1.15rem;
  }
  .modal-body {
    padding: 1rem 1.15rem 1.5rem;
  }
}
.modal-item-summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  margin-bottom: 1.25rem;
}
.modal-item-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
}
.modal-item-price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-deep);
  margin-top: 0.2rem;
}
.order-form-grid {
  display: grid;
  gap: 0.85rem;
}
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--accent-bright);
  box-shadow: var(--focus-ring);
}
.form-status {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}
.form-status.is-error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.25);
}
.form-guarantee {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.4;
}
.order-success-box {
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f6b4f, #459a72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: bold;
}
.order-success-box h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.success-order-num {
  font-size: 1.05rem;
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
}
.success-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.pdp-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.order-toast {
  position: fixed;
  bottom: 2rem;
  inset-inline: 1rem;
  max-width: 440px;
  margin-inline: auto;
  z-index: 1000;
  background: #1a1612;
  color: #fff;
  border: 1px solid rgba(168, 112, 58, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-radius: 16px;
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: toastUp 0.3s ease-out;
}
@keyframes toastUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Story band ---------- */
.story-band {
  position: relative; overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7rem);
  color: var(--on-dark);
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(168, 112, 58, 0.38), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(232, 207, 185, 0.12), transparent 60%),
    #120d09;
}
.story-inner { position: relative; display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 960px) { .story-inner { grid-template-columns: 1.15fr .85fr; } }
.story-year {
  position: absolute; inset-inline-end: var(--gutter); top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 800; line-height: .9;
  font-size: clamp(7rem, 22vw, 15rem);
  background: linear-gradient(180deg, rgba(232, 207, 185, 0.22), rgba(168, 112, 58, 0.04));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  pointer-events: none; user-select: none;
}
.story-copy { position: relative; max-width: 38rem; }
.story-copy .section-title { color: #fff; margin-bottom: 1rem; }
.story-copy p { color: var(--on-dark-muted); font-size: 1.06rem; line-height: 1.95; margin-bottom: 1.6rem; }
.story-facts { position: relative; list-style: none; display: grid; gap: .65rem; }
.story-facts li {
  display: grid; gap: .1rem; padding: .95rem 1.1rem;
  border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, 0.1);
  border-inline-start: 3px solid var(--peach-deep);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.story-facts strong { font-family: var(--font-display); font-size: 1.02rem; color: #fff; }
.story-facts span { font-size: .9rem; color: var(--on-dark-muted); }
.story-facts-light li { border-color: var(--border); border-inline-start-color: var(--accent-bright); background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
.story-facts-light strong { color: var(--text); }
.story-facts-light span { color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust-strip {
  list-style: none; display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden;
}
.trust-strip li { display: flex; gap: .85rem; align-items: flex-start; padding: 1.25rem 1.3rem; border-inline-start: 1px solid var(--ink-rule); }
.trust-strip li:first-child { border-inline-start: 0; }
.trust-strip svg { flex-shrink: 0; color: var(--accent-bright); margin-top: .15rem; }
.trust-strip strong { display: block; font-family: var(--font-display); font-size: .98rem; color: var(--text); }
.trust-strip span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.65; }
@media (max-width: 960px) { .trust-strip li { border-inline-start: 0; border-top: 1px solid var(--ink-rule); } .trust-strip li:first-child { border-top: 0; } }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background:
    radial-gradient(60% 100% at 100% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(50% 100% at 0% 100%, color-mix(in srgb, var(--peach-deep) 30%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-2);
}
.cta-band > div:first-child { flex: 1 1 24rem; }
.cta-band p { color: var(--muted); margin-top: .4rem; max-width: 36rem; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

/* ---------- Page hero / breadcrumbs ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(1.75rem, 5vw, 3.25rem) clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(50% 120% at 90% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(40% 100% at 0% 100%, color-mix(in srgb, var(--peach-deep) 25%, transparent), transparent 70%);
  border-bottom: 1px solid var(--ink-rule);
}
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.2; }
.page-lead { color: var(--text-2); font-size: 1.05rem; max-width: 40rem; margin-top: .55rem; }
.page-count { color: var(--muted); font-size: .9rem; margin-top: .65rem; }
.page-hero-center { text-align: center; padding-block: clamp(3rem, 9vw, 5.5rem); }
.page-hero-center .page-lead { margin-inline: auto; }
.page-hero-center .dept { justify-content: center; }
.page-hero-center .search-form { margin-top: 1.75rem; }
.page-hero-center .suggest-list, .page-hero-center .empty-actions { justify-content: center; }
.breadcrumb { margin-bottom: .9rem; font-size: .84rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .45rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; }
.breadcrumb li + li::before { content: "‹"; color: var(--border-strong); font-size: 1.05em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb [aria-current] { color: var(--text-2); font-weight: 600; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Shop toolbar ---------- */
.staging-note {
  margin-bottom: 1rem; padding: .7rem 1rem; border-radius: var(--r-sm);
  border: 1px dashed var(--border-strong); background: var(--accent-soft);
  font-size: .88rem; color: var(--text-2);
}
.shop-toolbar { display: grid; gap: .9rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); max-width: 100%; overflow: hidden; }
@media (min-width: 1060px) { .shop-toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.shop-toolbar-primary { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: .88rem; font-weight: 600; color: var(--text-2); white-space: nowrap;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}
.chip:hover { border-color: var(--accent-bright); color: var(--accent-deep); transform: translateY(-1px); }
.chip.is-on { background: var(--text); border-color: var(--text); color: var(--bg); }
.view-switch-tabs {
  display: inline-flex; align-items: center; background: var(--surface-3);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px; gap: 3px;
}
.view-tab {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem;
  border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted);
  text-decoration: none; transition: background .2s, color .2s, box-shadow .2s;
}
.view-tab:hover { color: var(--text); }
.view-tab.is-active { background: var(--surface); color: var(--accent-deep); box-shadow: var(--shadow-1); font-weight: 700; }
@media (max-width: 768px) {
  .shop-toolbar-primary { flex-direction: column; align-items: stretch; gap: .6rem; }
  .view-switch-tabs { align-self: flex-start; }
  .shop-toolbar .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: .15rem;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  }
  .shop-toolbar .chips::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; }
}

/* Price Inquiry & Reveal Buttons */
.price-inquiry-wrap { display: inline-flex; align-items: center; }
.btn-price-reveal {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.35rem 0.85rem; font-size: 0.82rem; font-weight: 700;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep);
  border: 1.5px solid var(--accent-bright); cursor: pointer; transition: all 0.2s ease;
  font-family: inherit;
}
.btn-price-reveal:hover {
  background: var(--accent-bright); color: #fff; transform: translateY(-1px);
}
.btn-price-inquiry.is-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.35rem 0.85rem; font-size: 0.82rem; font-weight: 700;
  border-radius: 999px; background: #25D366; color: #fff; text-decoration: none;
  transition: all 0.2s ease; font-family: inherit;
}
.btn-price-inquiry.is-wa:hover { filter: brightness(1.08); transform: translateY(-1px); }
.price-revealed-text {
  font-family: var(--font-display); font-weight: 800; color: var(--accent-deep);
  animation: sfFadeIn 0.3s ease;
}
.pdp-inquiry-wrap .btn-price-reveal, .pdp-inquiry-wrap .btn-price-inquiry {
  padding: 0.6rem 1.4rem; font-size: 1.05rem;
}
@keyframes sfFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.shop-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.field { display: flex; align-items: center; gap: .5rem; }
.field-search {
  flex: 1 1 220px; min-width: 0;
  padding-inline: .95rem .5rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface-3); color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.field-search:focus-within { border-color: var(--accent-bright); box-shadow: var(--focus-ring); }
.field-search input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; color: var(--text); outline: none; }
.field-sort label { font-size: .84rem; color: var(--muted); font-weight: 600; }
.field-sort select {
  height: 44px; padding-inline: 1rem 2.4rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background-color: var(--surface-3); color: var(--text);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a5a2b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 1rem center;
  transition: border-color .2s, box-shadow .2s;
}
.field-sort select:focus-visible { border-color: var(--accent-bright); }
.js .shop-apply { display: none; }

/* Filter Toggle Button in Toolbar */
.filter-toggle-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 44px; padding-inline: 1.1rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background-color: var(--surface-3); color: var(--text);
  font-family: var(--font-display); font-size: .88rem; font-weight: 700; cursor: pointer;
  transition: all .2s var(--ease-out); position: relative;
}
.filter-toggle-btn:hover {
  border-color: var(--accent-bright); color: var(--accent-deep); background-color: var(--surface);
  transform: translateY(-1px);
}
.filter-toggle-btn[aria-expanded="true"] {
  border-color: var(--accent-solid); color: var(--accent-deep); background: var(--accent-soft);
}
.filter-badge {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px;
  background: var(--accent-solid); color: #fff; font-size: .72rem; font-weight: 800; line-height: 1;
}

/* Filter Drawer Box */
.filters-drawer {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg, 18px);
  padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  transition: all .3s var(--ease-out);
}
.filters-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.filter-group { display: flex; flex-direction: column; gap: .6rem; }
.filter-block-title {
  font-family: var(--font-display); font-size: .95rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: .5rem; margin: 0;
}
.filter-block-title svg { color: var(--accent-solid); flex-shrink: 0; }
.filter-options-wrap {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
}
.filter-opt-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .95rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface-3); color: var(--text);
  font-family: var(--font-body); font-size: .84rem; font-weight: 600; cursor: pointer;
  transition: all .2s var(--ease-out); user-select: none;
}
.filter-opt-chip:hover {
  border-color: var(--accent-bright); color: var(--accent-deep); background: var(--surface);
  transform: translateY(-1px);
}
.filter-opt-chip.is-active {
  background: var(--accent-solid); color: #fff; border-color: var(--accent-solid);
  font-weight: 700; box-shadow: 0 4px 12px rgba(138, 90, 43, 0.28);
}
.filter-opt-chip.is-active .color-dot {
  border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.color-dot {
  width: 14px; height: 14px; border-radius: 50%; display: inline-block;
  border: 1px solid rgba(0,0,0,0.2); flex-shrink: 0;
}
.filters-actions {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; align-items: center; gap: .75rem;
}

.empty-state {
  text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem;
  border-radius: var(--r-lg); border: 1px dashed var(--border-strong); background: var(--surface);
}
.empty-state h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.empty-state p { color: var(--muted); max-width: 34rem; margin: .5rem auto 0; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 1.4rem; }
.suggest-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 1.5rem; }

.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: clamp(2rem, 5vw, 3rem); }
.pager ol { list-style: none; display: flex; align-items: center; gap: .35rem; }
.pager a, .pager [aria-current], .pager-step {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding-inline: .8rem;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--text-2);
  transition: border-color .2s, color .2s, background-color .2s;
}
.pager a:hover { border-color: var(--accent-bright); color: var(--accent-deep); }
.pager [aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }
.pager-gap { color: var(--muted); padding-inline: .2rem; }

/* ---------- Product page ---------- */
.pdp-crumbs { padding-top: clamp(1rem, 3vw, 1.75rem); }
.pdp {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr); /* single column on phones: never wider than the viewport (thumb strip/track) */
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
@media (min-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: start; }
  .pdp-info { position: sticky; top: calc(var(--header-offset, 72px) + 1.25rem); }
}
.gallery-main {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1; border-radius: var(--r-lg);
  background: var(--img-well); border: 1px solid var(--border); box-shadow: var(--shadow-2);
}
.gallery-track {
  display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { box-shadow: inset 0 0 0 3px var(--accent-glow); border-radius: var(--r-lg); }
.gallery-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-zoom { display: block; width: 100%; height: 100%; padding: 0; cursor: zoom-in; }
.gallery-zoom:focus-visible { box-shadow: inset 0 0 0 3px var(--accent-glow); border-radius: 0; }
.gallery-zoom img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 3%; }
.gallery-empty { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--peach-deep); }
.gallery-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass-strong); color: var(--text); box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .25s, transform .25s var(--ease-out), border-color .2s;
}
.gallery-prev { inset-inline-start: .85rem; }
.gallery-next { inset-inline-end: .85rem; }
.gallery-main:hover .gallery-nav, .gallery-nav:focus-visible { opacity: 1; }
.gallery-nav:hover { border-color: var(--accent-bright); color: var(--accent-deep); }
.gallery-nav:disabled { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .gallery-nav { display: none; } }
.gallery-count {
  position: absolute; bottom: .85rem; left: 50%; transform: translateX(-50%); z-index: 2;
  padding: .2rem .75rem; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: var(--text-2);
}
.gallery-badge { position: absolute; top: .85rem; inset-inline-start: .85rem; z-index: 2; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; scrollbar-width: none; padding: .2rem .1rem; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex: 0 0 auto; width: 68px; aspect-ratio: 1 / 1; padding: 0; overflow: hidden;
  border-radius: 12px; border: 2px solid var(--border); background: var(--img-well);
  opacity: .7; transition: opacity .2s, border-color .2s, transform .2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 6%; }
.gallery-thumb:hover { opacity: 1; transform: translateY(-2px); }
.gallery-thumb.is-on { opacity: 1; border-color: var(--accent-bright); }

.pdp-cat {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 32px;
  font-size: .84rem; font-weight: 700; color: var(--accent-bright);
}
.pdp-cat::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-bright), var(--peach-deep)); }
.pdp-title { font-size: clamp(1.65rem, 3.4vw, 2.35rem); line-height: 1.3; margin: .2rem 0 .9rem; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .8rem; }
.pdp-price .price-now { font-size: clamp(1.45rem, 2.6vw, 1.8rem); }
.pdp-price .price-was { font-size: 1.02rem; }
.price-save {
  padding: .15rem .7rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: .84rem; font-weight: 700;
}
.stock-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1rem; padding: .45rem .95rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; line-height: 1.5;
}
.stock-pill .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stock-pill.is-in { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.stock-pill.is-in .dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.stock-pill.is-out { color: var(--text-2); background: var(--surface-2); }
.stock-pill.is-out .dot { background: var(--muted); }

.pdp-variants { margin-top: 1.5rem; }
.pdp-label { display: block; margin-bottom: .6rem; font-family: var(--font-display); font-size: .92rem; font-weight: 700; color: var(--text-2); }
.pdp-variants ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-chip {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px;
  padding: .3rem .4rem; padding-inline-end: .95rem;
  border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--surface);
  color: var(--text); transition: border-color .2s, background-color .2s, transform .2s;
}
.variant-chip img {
  width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; object-position: center; padding: 3px;
  border-radius: 9px; border: 1px solid var(--border); background: var(--img-well);
}
.variant-chip:not(:has(img)) { padding-inline-start: .95rem; }
.variant-chip:hover { color: var(--text); border-color: var(--accent-bright); transform: translateY(-1px); }
.variant-chip.is-current { border-color: var(--accent-bright); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-bright) inset; }
.variant-chip.is-out { opacity: .62; }
.variant-text { display: grid; line-height: 1.35; }
.variant-name { font-weight: 700; font-size: .9rem; }
.variant-meta { font-size: .76rem; color: var(--muted); }

.pdp-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-top: 1.4rem; }
.pdp-specs > div { padding: .6rem .9rem; border-radius: var(--r-sm); background: var(--surface-2); }
.pdp-specs dt { font-size: .76rem; color: var(--muted); font-weight: 600; }
.pdp-specs dd { font-weight: 700; font-size: .95rem; color: var(--text); }

.pdp-cta { display: grid; gap: .65rem; margin-top: 1.6rem; }
@media (min-width: 560px) { .pdp-cta { grid-template-columns: 1.35fr 1fr; } }
.btn-disabled, .btn-disabled:hover {
  background: var(--surface-2); border-color: var(--border-strong); color: var(--muted);
  box-shadow: none; transform: none; filter: none; cursor: not-allowed;
}
.pdp-alt-link {
  grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--accent-deep);
}
.pdp-alt-link::after { content: "←"; transition: transform .3s var(--ease-out); }
.pdp-alt-link:hover::after { transform: translateX(-4px); }
.pdp-assure { list-style: none; display: grid; gap: .35rem; margin-top: 1.1rem; font-size: .9rem; color: var(--text-2); }
.pdp-assure li { display: flex; gap: .55rem; align-items: baseline; }
.pdp-assure li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); transform: translateY(-2px); }

.accordion { margin-top: 1.75rem; border-bottom: 1px solid var(--ink-rule); }
.accordion details { border-top: 1px solid var(--ink-rule); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding-block: .85rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--text);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; width: 10px; height: 10px; flex-shrink: 0;
  border-inline-end: 2px solid var(--accent-bright); border-bottom: 2px solid var(--accent-bright);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease-out);
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.accordion summary:hover { color: var(--accent-deep); }
.accordion-body { padding-bottom: 1.25rem; color: var(--text-2); }
.prose p, .prose li { line-height: 1.9; }
.prose p + p, .prose ul, .prose ol, .prose h3, .prose h4, .prose blockquote { margin-top: .7rem; }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }
.prose li + li { margin-top: .25rem; }
.prose h3, .prose h4 { font-size: 1.02rem; }
.prose blockquote { padding: .75rem 1rem; border-inline-start: 3px solid var(--accent-bright); background: var(--accent-soft); border-radius: var(--r-sm); }
.pdp-sku { margin-top: 1rem !important; font-size: .82rem; color: var(--muted); }
.dot-list { list-style: none; display: grid; gap: .5rem; }
.dot-list li { position: relative; padding-inline-start: 1.1rem; line-height: 1.8; }
.dot-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); opacity: .75; }

.pdp-bar { display: none; }
@media (max-width: 959px) {
  .pdp-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 250;
    display: flex; align-items: center; gap: .85rem;
    padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
    background: var(--glass-strong); border-top: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 -12px 30px -18px rgba(26, 18, 10, 0.35);
  }
  .pdp-bar-info { flex: 1; min-width: 0; display: grid; line-height: 1.4; }
  .pdp-bar-info strong { font-family: var(--font-display); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-bar-info span { font-size: .86rem; color: var(--text-2); font-weight: 700; }
  .pdp-bar .btn { flex-shrink: 0; min-height: 46px; padding-inline: 1.2rem; }
  body.has-pdp-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(12, 8, 5, 0.95); color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox[open] { animation: lbIn .3s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.lb-stage img {
  width: auto; height: auto; max-width: min(94vw, 1100px); max-height: 88dvh; object-fit: contain; background: #fff;
  cursor: zoom-in; transition: transform .35s var(--ease-out); user-select: none; -webkit-user-drag: none;
}
.lb-stage.is-zoomed img { transform: scale(2.2); cursor: zoom-out; }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s, border-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: var(--peach-deep); }
.lb-close { top: calc(1rem + env(safe-area-inset-top)); inset-inline-end: 1rem; }
.lb-prev { top: 50%; transform: translateY(-50%); inset-inline-start: 1rem; }
.lb-next { top: 50%; transform: translateY(-50%); inset-inline-end: 1rem; }
.lb-hint {
  position: absolute; bottom: calc(1rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  font-size: .85rem; color: rgba(255, 255, 255, 0.72); white-space: nowrap;
}

/* ---------- About ---------- */
.about-jump { margin-top: 1.4rem; }
.about-story { display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .about-story { grid-template-columns: .8fr 1.2fr; } }
.about-year {
  display: grid; place-items: center; align-content: center; gap: .25rem;
  aspect-ratio: 1; max-width: 380px; width: 100%; margin-inline: auto;
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 70% at 70% 20%, rgba(168, 112, 58, 0.5), transparent 70%),
    #18110b;
  color: var(--peach); box-shadow: var(--shadow-3);
}
@media (max-width: 899px) { .about-year { aspect-ratio: 16 / 9; max-width: none; } }
.about-year bdi { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 12vw, 6.5rem); line-height: 1; background: linear-gradient(180deg, #f5e7da, #c48a4f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-year span { font-family: var(--font-display); font-weight: 700; color: var(--on-dark-muted); }
.about-story-copy p { color: var(--text-2); font-size: 1.06rem; line-height: 1.95; margin: .9rem 0 1.4rem; }
.policy-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.policy-card {
  padding: 1.4rem 1.35rem; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s;
}
.policy-card:hover, .policy-card:target { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--peach-deep); }
.policy-num { font-family: var(--font-display); font-weight: 800; font-size: .82rem; color: var(--accent-bright); }
.policy-card h3 { font-size: 1.15rem; margin: .25rem 0 .75rem; }
.policy-card .dot-list { font-size: .93rem; color: var(--text-2); }
.policy-page-wrap { max-width: 880px; margin-inline: auto; }
.policy-stack { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.policy-card-featured {
  border-inline-start: 4px solid var(--accent-bright);
  background: color-mix(in srgb, var(--surface) 95%, var(--accent-soft));
}
.deletion-box {
  margin-top: 1.25rem; padding: 1.35rem; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px dashed var(--accent-bright);
}
.deletion-box h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .5rem; color: var(--accent-deep); }
.deletion-box p { font-size: .92rem; line-height: 1.8; color: var(--text-2); margin-bottom: .6rem; }
.deletion-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .9rem; }
.faq-stack { display: flex; flex-direction: column; gap: .85rem; margin-top: 1.5rem; }
.faq-item {
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--accent-bright); box-shadow: var(--shadow-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem; font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--text); cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.35rem; font-weight: 500; color: var(--accent-bright);
  transition: transform .2s; flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body {
  padding: 1rem 1.35rem 1.25rem; font-size: .95rem; line-height: 1.85; color: var(--text-2);
  border-top: 1px solid var(--border);
}
.policy-subnav { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 2rem; }
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.contact-card {
  display: grid; gap: .3rem; align-content: start;
  padding: 1.3rem 1.3rem 1.2rem; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-1);
  color: var(--text);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s;
}
a.contact-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: color-mix(in srgb, var(--accent-bright) 40%, var(--border)); }
.contact-k { font-size: .8rem; font-weight: 700; color: var(--accent-bright); }
.contact-card strong { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; }
.contact-card strong[dir="ltr"] { text-align: end; }
.contact-go { font-size: .86rem; color: var(--muted); }
a.contact-card .contact-go::after { content: " ←"; display: inline-block; transition: transform .3s var(--ease-out); }
a.contact-card:hover .contact-go::after { transform: translateX(-4px); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  margin-top: clamp(1rem, 4vw, 2.5rem);
  padding: clamp(2.75rem, 6vw, 3.75rem) 0 1.5rem;
  background:
    radial-gradient(50% 80% at 100% 0%, var(--accent-soft), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--ink-rule);
}
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand { display: block; margin-bottom: .45rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--text); }
.footer-brand span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.footer-col p { color: var(--muted); font-size: .92rem; line-height: 1.85; }
.footer-hours { margin-top: .6rem; font-size: .86rem !important; }
.footer-col h2 { font-size: .95rem; margin-bottom: .7rem; color: var(--text); }
.footer-col a { display: block; width: fit-content; padding: .22rem 0; font-size: .9rem; color: var(--muted); transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--accent-deep); transform: translateX(-3px); }
.footer-ltr { unicode-bidi: isolate; }
.footer-address { display: block; margin-top: .35rem; font-size: .86rem; color: var(--muted); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding-top: 1.25rem; border-top: 1px solid var(--ink-rule);
  font-size: .82rem; color: var(--muted);
}
.footer-legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent-deep); }
.staging-tag { padding: .1rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; z-index: 240;
  inset-inline-end: clamp(.9rem, 3vw, 1.5rem); bottom: calc(clamp(.9rem, 3vw, 1.5rem) + env(safe-area-inset-bottom));
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--glass-border);
  background: var(--glass-strong); color: var(--accent-deep); box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s, border-color .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent-bright); transform: translateY(-2px); }
@media (max-width: 959px) { .to-top.has-bar { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------- Reveal ---------- */
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal].is-in { animation: revealIn .7s var(--ease-out) backwards; }
.js .p-grid > [data-reveal].is-in:nth-child(4n+2), .js .cat-grid > [data-reveal].is-in:nth-child(3n+2), .js .contact-grid > .is-in:nth-child(3n+2) { animation-delay: .06s; }
.js .p-grid > [data-reveal].is-in:nth-child(4n+3), .js .cat-grid > [data-reveal].is-in:nth-child(3n+3), .js .contact-grid > .is-in:nth-child(3n+3) { animation-delay: .12s; }
.js .p-grid > [data-reveal].is-in:nth-child(4n+4) { animation-delay: .18s; }
@keyframes revealIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Touch & dark ---------- */
@media (pointer: coarse), (max-width: 860px) {
  .header-icon-btn, .burger, .theme-toggle { width: 44px; height: 44px; }
  .chip { min-height: 44px; }
  .btn-sm { min-height: 44px; }
  .edition-bar a { display: inline-block; padding-block: .35rem; }
  .breadcrumb a { display: inline-block; padding-block: .55rem; }
  .footer-col a { min-height: 44px; display: flex; align-items: center; padding-block: .5rem; }
}
@media (max-width: 380px) {
  .header-icon-btn, .burger, .theme-toggle { width: 42px; height: 42px; }
  .brand-glyph svg, .brand-icon-img { width: 32px; height: 32px; }
  .brand-logo-img { height: 30px; max-width: 80px; }
}
html[data-theme="dark"] img:not([src$=".svg"]):not(.brand-icon-img):not(.brand-logo-img):not(.sab-icon-img):not(.footer-logo-wrap img) { filter: brightness(.94); }
html[data-theme="dark"] .p-card.is-out .p-card-media img { filter: saturate(.55) brightness(.94); }
html[data-theme="dark"] .chip.is-on, html[data-theme="dark"] .pager [aria-current] { background: var(--accent-deep); border-color: var(--accent-deep); color: #1a1612; }
html[data-theme="dark"] .skip-link, html[data-theme="dark"] .btn-primary { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-photo { animation: none !important; transform: none; }
  .js [data-reveal]:not(.is-in) { opacity: 1; }
}

@media print {
  .site-header, .site-footer, .pdp-bar, .to-top, .ambient, .gallery-nav, .gallery-thumbs { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ══════════════════════════════════════════════════════════════════
   CUSTOMER ACCOUNT & AUTH STYLES
══════════════════════════════════════════════════════════════════ */
.user-active-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #2e7d32;
  border: 1.5px solid #fff;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 125, 50, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

.rot-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(138, 90, 43, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: rot-spin 0.8s linear infinite;
}
@keyframes rot-spin { to { transform: rotate(360deg); } }

/* Guest Card & Tabs */
.account-auth-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e6ded3);
  border-radius: 22px;
  box-shadow: 0 8px 30px rgba(26, 22, 18, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
}
.auth-tabs-nav {
  display: flex;
  background: var(--bg-subtle, #f7f3ec);
  border-bottom: 1px solid var(--border, #e6ded3);
}
.auth-tab-btn {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-muted, #78716c);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.auth-tab-btn.is-active {
  color: var(--accent, #8a5a2b);
  background: var(--bg-card, #ffffff);
}
.auth-tab-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--accent, #8a5a2b);
}
.auth-tabs-content {
  padding: 28px 24px;
}
.auth-panel-head {
  margin-bottom: 22px;
  text-align: center;
}
.auth-panel-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text, #1a1612);
}
.auth-panel-head p {
  color: var(--text-muted, #78716c);
  font-size: 0.92rem;
  margin: 0;
}
.auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.auth-alert.is-error {
  background: #fdf2f2;
  border: 1px solid #f8b4b4;
  color: #b3261e;
}
.auth-alert.is-success {
  background: #f4f9f4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* Form inputs & rows */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text, #1a1612);
}
.form-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border, #dcd4c7);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--bg, #fff);
  color: var(--text, #1a1612);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent, #8a5a2b);
  box-shadow: 0 0 0 3px rgba(138, 90, 43, 0.12);
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted, #78716c);
  margin-top: 4px;
}
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-wrap .form-input {
  padding-left: 44px;
}
.btn-toggle-pass {
  position: absolute;
  left: 10px;
  background: none;
  border: none;
  color: var(--text-muted, #78716c);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-auth-submit {
  width: 100%;
  height: 48px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 12px;
  margin-top: 10px;
}
.auth-helper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-link {
  background: none;
  border: none;
  color: var(--accent, #8a5a2b);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}
.btn-link:hover { opacity: 0.85; }

/* Trust Box */
.auth-trust-box {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e6ded3);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.at-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.at-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.at-item strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  margin-bottom: 2px;
}
.at-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted, #78716c);
}

/* ══════════════════════════════════════════════════════════════════
   AUTHENTICATED USER DASHBOARD
══════════════════════════════════════════════════════════════════ */
.account-header-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e6ded3);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  box-shadow: 0 6px 24px rgba(26, 22, 18, 0.04);
  flex-wrap: wrap;
}
.account-header-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #a8703a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(138, 90, 43, 0.25);
}
.account-header-info {
  flex: 1;
  min-width: 240px;
}
.account-badge {
  display: inline-block;
  background: rgba(138, 90, 43, 0.1);
  color: var(--accent, #8a5a2b);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.account-header-info h2 {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0 0 6px;
  color: var(--text, #1a1612);
}
.account-meta-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.chip-info {
  font-size: 0.85rem;
  color: var(--text-muted, #78716c);
}
.account-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-logout {
  color: #b3261e !important;
  border-color: rgba(179, 38, 30, 0.2) !important;
}
.btn-logout:hover {
  background: #fdf2f2 !important;
}

/* Dashboard Grid */
.account-dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .account-dashboard-grid {
    grid-template-columns: 1fr;
  }
}
.account-dash-nav {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e6ded3);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text, #1a1612);
  cursor: pointer;
  text-align: right;
  transition: all 0.2s ease;
}
.dash-nav-item:hover {
  background: var(--bg-subtle, #f7f3ec);
  color: var(--accent, #8a5a2b);
}
.dash-nav-item.is-active {
  background: var(--accent, #8a5a2b);
  color: #fff;
}
.dash-nav-item.is-active svg {
  stroke: #fff;
}
.nav-badge {
  margin-right: auto;
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
}
.dash-nav-item:not(.is-active) .nav-badge {
  background: var(--bg-subtle, #f7f3ec);
  color: var(--text-muted, #78716c);
}

/* Dash Main Content */
.account-dash-main {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border, #e6ded3);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(26, 22, 18, 0.03);
}
.dash-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 700px) {
  .dash-cards-row { grid-template-columns: 1fr; }
}
.dash-stat-card {
  background: var(--bg-subtle, #fcf9f5);
  border: 1px solid var(--border, #e6ded3);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-icon {
  font-size: 2rem;
  line-height: 1;
}
.stat-body strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent, #8a5a2b);
}
.stat-body span {
  font-size: 0.82rem;
  color: var(--text-muted, #78716c);
}
.dash-box {
  background: var(--bg-subtle, #fcf9f5);
  border: 1px solid var(--border, #e6ded3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}
.dash-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.dash-box-head h2, .dash-box-head h3 {
  margin: 0;
  font-weight: 800;
  font-size: 1.15rem;
}
.overview-order-mini-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e6ded3);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.dash-promo-card {
  background: linear-gradient(135deg, rgba(138, 90, 43, 0.08) 0%, rgba(168, 112, 58, 0.12) 100%);
  border: 1px dashed var(--accent, #8a5a2b);
  border-radius: 16px;
  padding: 24px;
}
.dash-promo-content h3 {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 1.15rem;
}
.dash-promo-content p {
  color: var(--text-muted, #78716c);
  margin: 0 0 16px;
  font-size: 0.92rem;
}

/* Order Record Cards */
.orders-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-record-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e6ded3);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(26, 22, 18, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.order-record-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 22, 18, 0.06);
}
.order-record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border, #f0ebe1);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.order-id-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text, #1a1612);
  margin-left: 8px;
}
.order-date-label {
  font-size: 0.85rem;
  color: var(--text-muted, #78716c);
}
.badge-status {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-block;
}
.badge-status.status-new { background: #e0f2fe; color: #0369a1; }
.badge-status.status-proc { background: #fef3c7; color: #92400e; }
.badge-status.status-ship { background: #e0e7ff; color: #4338ca; }
.badge-status.status-done { background: #dcfce7; color: #15803d; }
.badge-status.status-cancel { background: #fee2e2; color: #b91c1c; }

.order-record-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.order-items-thumb-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.order-thumb-item {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 1px solid var(--border, #eee);
  background: var(--bg-subtle, #f9f6f0);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.order-thumb-qty {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(26, 22, 18, 0.75);
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: bold;
}
.order-record-pricing {
  text-align: left;
}
.price-title {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted, #78716c);
}
.price-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent, #8a5a2b);
}
.pay-method-note {
  font-size: 0.78rem;
  color: #15803d;
  font-weight: 700;
}
.order-record-footer {
  display: flex;
  gap: 10px;
  align-items: center;
}
.account-empty-card {
  text-align: center;
  padding: 40px 20px;
}

/* Dark mode adjustments */
html[data-theme="dark"] .account-auth-card,
html[data-theme="dark"] .account-header-card,
html[data-theme="dark"] .account-dash-nav,
html[data-theme="dark"] .account-dash-main,
html[data-theme="dark"] .order-record-card,
html[data-theme="dark"] .overview-order-mini-card {
  background: #201b17;
  border-color: #383028;
}
html[data-theme="dark"] .auth-tabs-nav,
html[data-theme="dark"] .dash-stat-card,
html[data-theme="dark"] .dash-box {
  background: #191512;
  border-color: #383028;
}
html[data-theme="dark"] .auth-tab-btn.is-active {
  background: #201b17;
  color: #c48a4f;
}
html[data-theme="dark"] .form-input {
  background: #191512;
  border-color: #453b32;
  color: #f7f3ec;
}
html[data-theme="dark"] .dash-nav-item:hover {
  background: #2d2620;
}

/* ══════════════════════════════════════════════════════════════════
   CART PAGE STYLES (/cart/)
   ══════════════════════════════════════════════════════════════════ */
.cart-empty-panel {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.cart-empty-icon {
  margin: 0 auto 16px;
  stroke: var(--accent);
}
.cart-empty-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.cart-empty-desc {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 24px;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 991px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.cart-items-wrap {
  display: flex;
  flex-direction: column;
}
.cart-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cart-items-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-item-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  transition: background-color .3s, border-color .3s;
}
.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--img-well);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-item-placeholder {
  width: 72px;
  height: 72px;
  background: var(--surface-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}
.cart-item-info {
  flex: 1 1 auto;
  min-width: 0;
}
.cart-item-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.cart-item-price {
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 700;
}
.cart-item-qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 2px 8px;
  background: var(--surface-2);
  flex-shrink: 0;
}
.btn-qty-sub, .btn-qty-add {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: bold;
  padding: 2px 6px;
  color: var(--text);
}
.cart-qty-num {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  color: var(--text);
}
.cart-item-total-col {
  text-align: end;
  min-width: 80px;
  flex-shrink: 0;
}
.cart-item-total-val {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text);
}
.btn-item-del {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
  font-family: inherit;
  font-weight: 700;
}
.btn-item-del:hover {
  text-decoration: underline;
}

@media (max-width: 540px) {
  .cart-item-card {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 12px;
  }
  .cart-item-img, .cart-item-placeholder {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 60px;
    height: 60px;
  }
  .cart-item-info {
    grid-column: 2;
    grid-row: 1;
  }
  .btn-item-del {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    align-self: start;
  }
  .cart-item-qty-box {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .cart-item-total-col {
    grid-column: 3;
    grid-row: 2;
    text-align: end;
    min-width: auto;
  }
}

.cart-checkout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.cart-checkout-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  color: var(--text);
}
.shipping-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .shipping-method-grid {
    grid-template-columns: 1fr;
  }
}
.shipping-pill-label {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-3);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s ease;
  color: var(--text);
}
.shipping-pill-label:hover {
  border-color: var(--accent);
}
.shipping-pill-label.is-selected {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--accent);
}
.shipping-pill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.shipping-pill-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
}
.shipping-pill-sub {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.shipping-pill-price {
  font-size: 0.92rem;
  color: var(--accent);
}
.shipping-pill-price.is-free {
  color: var(--ok);
}

.cart-verified-badge-card {
  background: rgba(46, 125, 50, 0.08);
  border: 1.5px solid rgba(46, 125, 50, 0.35);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  color: var(--text);
}
.cart-verified-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.cart-verified-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #2e7d32;
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: bold;
}
.cart-verified-title {
  font-weight: 800;
  color: var(--ok);
  font-size: 0.95rem;
}
.cart-verified-body {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

.cart-pickup-card {
  background: var(--surface-2);
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  color: var(--text);
}
.cart-pickup-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.cart-pickup-name {
  font-size: 1.05rem;
  color: var(--text);
  margin-top: 2px;
}
.cart-pickup-hours {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.cart-map-wrap {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 12px;
}

.cart-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 540px) {
  .cart-form-row-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.btn-geo-detect {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
}
.btn-geo-detect:hover {
  background: var(--surface-3);
}

.cart-totals-breakdown {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  color: var(--text);
}
.cart-breakdown-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-2);
}
.cart-breakdown-row strong {
  color: var(--text);
}
.cart-breakdown-final {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--border-strong);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--text);
}
.cart-grand-val {
  color: var(--accent);
  font-weight: 900;
}

.cart-success-panel {
  background: var(--surface);
  border: 2px solid var(--ok);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  max-width: 620px;
  margin: 30px auto;
  box-shadow: var(--shadow-2);
  color: var(--text);
}
.cart-success-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(46, 125, 50, 0.12);
  color: var(--ok);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cart-success-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}
.cart-success-ord-num {
  font-size: 1.25rem;
  color: var(--accent);
  background: var(--surface-2);
  padding: 2px 10px;
  border-radius: 6px;
}

/* Dark mode adjustments for Cart */
html[data-theme="dark"] .cart-item-card,
html[data-theme="dark"] .cart-checkout-card,
html[data-theme="dark"] .cart-empty-panel,
html[data-theme="dark"] .cart-success-panel {
  background: var(--surface);
  border-color: var(--border-strong);
}
html[data-theme="dark"] .shipping-pill-label {
  background: var(--surface-3);
  border-color: var(--border-strong);
}
html[data-theme="dark"] .shipping-pill-label.is-selected {
  background: var(--surface-2);
  border-color: var(--accent);
}
html[data-theme="dark"] .cart-totals-breakdown,
html[data-theme="dark"] .cart-pickup-card {
  background: var(--surface-2);
  border-color: var(--border);
}
html[data-theme="dark"] .cart-item-qty-box {
  background: var(--surface-3);
  border-color: var(--border-strong);
}



/* Selected option (colour) on the PDP, disabled CTAs for an out-of-stock option. */
.pdp-variant-current { color: var(--text); font-weight: 800; margin-inline-start: .25rem; }
.pdp-bar-opt { font-weight: 600; color: var(--text-2); }
.pdp-cta .btn:disabled, .pdp-bar .btn:disabled {
  opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.25);
}
.variant-chip.is-out .variant-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.p-card-option::before {
  content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
  background: currentColor; opacity: .55; margin-inline-end: .35rem; vertical-align: middle;
}

/* ==========================================================================
   Editorial Craftsmanship Showcase
   ========================================================================== */
.pdp-craft-showcase {
  margin-block: 3.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(26,22,18,0.04);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .pdp-craft-showcase {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
  }
}
.pdp-craft-img-wrap {
  width: 100%;
  height: 100%;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.pdp-craft-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp-craft-content {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.pdp-craft-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}
.pdp-craft-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
}
.pdp-craft-lead {
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--text-2);
  margin: 0;
}
.pdp-craft-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.pdp-craft-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface-2);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-sm);
}

/* ==========================================================================
   PDP: share, reviews, review dialog (2026-10-09)
   ========================================================================== */
.pdp-share {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}
.pdp-share-label { font-size: 0.86rem; font-weight: 700; color: var(--text-2); }
.pdp-share-icons { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pdp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.pdp-share-btn:hover { border-color: var(--accent); }
.pdp-share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-share-wa svg { color: #1fa855; }
.pdp-share-fb svg { color: #1877f2; }
.pdp-share-btn[hidden] { display: none; }

.pdp-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.2rem 0 0.75rem;
  font-size: 0.9rem;
  color: inherit;
  text-decoration: none;
}
.pdp-rating-link:hover .pdp-rating-count { text-decoration: underline; }
.pdp-rating-count { color: var(--muted); font-size: 0.85rem; }
.stars { display: inline-flex; gap: 2px; color: #d99a1e; vertical-align: middle; }

.pdp-reviews { margin-block: 2.5rem 3.5rem; }
.pdp-reviews-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.pdp-reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.pdp-reviews-head h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0; }
.pdp-reviews-sub { margin: 0.2rem 0 0; font-size: 0.86rem; color: var(--muted); }
.pdp-reviews-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-soft, var(--border));
}
@media (min-width: 720px) {
  .pdp-reviews-summary { grid-template-columns: 200px 1fr; align-items: center; }
}
.pdp-score { text-align: center; }
.pdp-score-num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 900; line-height: 1; }
.pdp-score .stars { margin: 0.45rem 0 0.25rem; }
.pdp-score-sub { font-size: 0.85rem; color: var(--muted); }
.pdp-breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pdp-breakdown li { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--text-2); }
.pdp-breakdown-star { min-width: 2.2em; font-weight: 700; }
.pdp-breakdown-n { min-width: 2em; color: var(--muted); }
.pdp-bar-track { flex: 1; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.pdp-bar-fill { display: block; height: 100%; background: #d99a1e; border-radius: 4px; }
.review-item { padding-block: 1.2rem; border-bottom: 1px solid var(--border-soft, var(--border)); }
.review-item:last-child { border-bottom: 0; padding-bottom: 0; }
.review-header { display: flex; align-items: flex-start; gap: 0.75rem; }
.review-avatar {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft, var(--surface-2));
  color: var(--accent-deep, var(--accent));
  font-weight: 800;
}
.review-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.review-author { font-weight: 800; }
.review-verified { font-size: 0.76rem; font-weight: 700; color: #1f8a5b; }
.review-sub { font-size: 0.8rem; color: var(--muted); }
.review-stars { flex: none; }
.review-body { margin: 0.6rem 0 0; line-height: 1.85; color: var(--text-2); overflow-wrap: anywhere; }
.review-reply {
  margin-top: 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
}
.review-reply p { margin: 0.2rem 0 0; }
.pdp-reviews-empty { text-align: center; padding: 1.5rem 0.5rem 0.5rem; color: var(--text-2); }
.pdp-reviews-empty-title { font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 0 0 0.4rem; }
.pdp-reviews-empty p { margin: 0 0 1rem; }

#reviewDialog .modal-body { overflow-y: auto; }
.review-for { margin: 0 0 1rem; font-size: 0.92rem; color: var(--text-2); }
.stars-field { border: 0; padding: 0; margin: 0; text-align: center; }
.stars-field legend { font-weight: 700; margin: 0 auto 0.4rem; padding: 0; }
.stars-picker { display: inline-flex; gap: 4px; }
.stars-picker-star {
  font-size: 2rem;
  line-height: 1;
  width: 44px; height: 44px;
  border: 0;
  background: none;
  color: var(--border-strong);
  cursor: pointer;
  padding: 0;
  transition: transform .15s, color .15s;
}
.stars-picker-star.is-on { color: #d99a1e; }
.stars-picker-star:hover { transform: scale(1.12); }
.stars-picker-star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.stars-picker-label { font-size: 0.84rem; color: var(--muted); margin: 0.2rem 0 0; min-height: 1.2em; }
.stars-field.is-invalid .stars-picker-label { color: #dc3545; font-weight: 700; }
.form-input.is-invalid { border-color: #dc3545; }
.form-opt { font-weight: 400; color: var(--muted); font-size: 0.82em; }
#reviewForm .field-hint { margin-top: 0.2rem; }
#reviewForm textarea.form-input { height: auto; min-height: 7.5rem; resize: vertical; line-height: 1.7; padding-block: 0.6rem; }
/* .btn-outline is used by several pages but had no rule; give it the ghost look. */
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--peach-deep); background: var(--accent-soft); color: var(--accent-deep); }
#revSubmit { width: 100%; margin-top: 0.4rem; }
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ==========================================================================
   Order tracking (/track/)
   ========================================================================== */
.track-wrap { max-width: 780px; }
.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  margin-bottom: 1.5rem;
}
.track-card h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 1rem; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.75rem; align-items: end; }
@media (max-width: 640px) { .track-form { grid-template-columns: 1fr; } }
.track-form .form-group { margin: 0; }
.track-form .btn { min-height: 46px; }
.track-alert { margin-top: 1rem; }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-soft, var(--border)); }
.track-no { font-size: 1.3rem; font-weight: 900; color: var(--accent-deep, var(--accent)); }
.track-date { font-size: 0.85rem; color: var(--muted); }
.track-pill { display: inline-block; padding: 0.35rem 0.9rem; border-radius: 999px; font-weight: 800; font-size: 0.88rem; background: var(--surface-2); }
.track-pill.is-done { background: rgba(31, 138, 91, .12); color: #1f8a5b; }
.track-pill.is-stopped { background: rgba(220, 53, 69, .1); color: #c52a3a; }
.track-pill.is-active { background: rgba(217, 154, 30, .14); color: #a86f0b; }
.track-steps { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; counter-reset: step; }
.track-step { position: relative; text-align: center; font-size: 0.8rem; color: var(--muted); padding-top: 2.4rem; }
.track-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%);
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); border: 2px solid var(--border-strong);
  font-weight: 800; color: var(--muted);
  z-index: 1;
}
[dir="ltr"] .track-step::before { transform: translateX(-50%); }
.track-step::after {
  content: ""; position: absolute; top: 0.9rem; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--border-strong);
}
.track-step:last-child::after { display: none; }
.track-step.is-done { color: var(--text); font-weight: 700; }
.track-step.is-done::before { content: "✓"; background: #1f8a5b; border-color: #1f8a5b; color: #fff; }
.track-step.is-done::after { background: #1f8a5b; }
.track-step.is-current { color: var(--text); font-weight: 800; }
.track-step.is-current::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.track-note { margin: 0 0 1rem; color: var(--text-2); font-size: 0.92rem; }
.track-items { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.track-item { display: flex; align-items: center; gap: 0.75rem; background: var(--surface-2); border-radius: var(--r-md, 12px); padding: 0.65rem 0.85rem; }
.track-item img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.track-item-name { flex: 1; min-width: 0; font-weight: 700; font-size: 0.9rem; }
.track-item-qty { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.track-item-total { font-weight: 800; white-space: nowrap; }
.track-totals { margin: 0; display: grid; gap: 0.35rem; border-top: 1px dashed var(--border-strong); padding-top: 0.85rem; }
.track-totals div { display: flex; justify-content: space-between; font-size: 0.92rem; }
.track-totals dt, .track-totals dd { margin: 0; }
.track-totals .is-grand { font-size: 1.1rem; font-weight: 900; }
.track-help { text-align: center; margin-top: 1.25rem; }

/* ---------- Home «أحدث القطع»: random set + ↻ ---------- */
.sec-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; }
.sec-shuffle {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem;
  border-radius: var(--radius-cta); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-2); font-family: var(--font-display); font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.sec-shuffle[hidden] { display: none; }
.sec-shuffle:hover { border-color: var(--accent-bright); color: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.sec-shuffle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sec-shuffle svg { flex: none; }
.sec-shuffle.is-spinning svg { animation: secShuffleSpin .6s var(--ease-out); }
@keyframes secShuffleSpin { to { transform: rotate(360deg); } }
[data-latest-grid] { transition: opacity .2s var(--ease-out); }
[data-latest-grid].is-swapping { opacity: 0; }

/* ==========================================================================
   Header Wishlist Badge
   ========================================================================== */
.wish-btn { position: relative; }
.wish-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e11d48;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 999px;
  text-align: center;
  padding: 0 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  pointer-events: none;
}
.wish-count-mobile {
  display: inline-block;
  margin-right: 0.35rem;
  font-weight: 700;
  color: #e11d48;
}

/* ==========================================================================
   Advanced Filters Drawer & Chips
   ========================================================================== */
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: var(--radius-cta, 10px);
  border: 1px solid var(--border-strong, #ddd);
  background: var(--surface, #fff);
  color: var(--text, #1a1a1a);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-toggle-btn:hover {
  border-color: var(--color-primary, #b76e79);
  color: var(--color-primary, #b76e79);
}
.filter-toggle-btn .filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, #b76e79);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 0.25rem;
}

.filters-drawer {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
  transition: all 0.25s ease;
}
.filters-drawer[hidden] {
  display: none !important;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.filter-block-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  color: var(--text, #1f2937);
}
.filter-block-title svg {
  color: var(--color-primary, #b76e79);
  flex-shrink: 0;
}

.filter-options-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.filter-opt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-2, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  color: var(--text-2, #4b5563);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.filter-opt-chip:hover {
  background: var(--surface-hover, #f3f4f6);
  border-color: var(--border-strong, #cbd5e1);
  color: var(--text, #111827);
  transform: translateY(-1px);
}
.filter-opt-chip.is-active {
  background: var(--color-primary, #b76e79) !important;
  border-color: var(--color-primary, #b76e79) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(183, 110, 121, 0.3);
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
  flex-shrink: 0;
}
.filter-opt-chip.is-active .color-dot {
  border-color: #fff;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.6);
}

.filters-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border, #e5e7eb);
  display: flex;
  justify-content: flex-end;
}
.filters-actions .btn {
  font-size: 0.84rem;
}

