/* =========================================================
   Sorneh — Atelier design system
   Deep navy + muted brass on soft ivory. Bodoni Moda for
   display, Manrope for interface text, Vazirmatn for
   the Persian (RTL) locale.
   ========================================================= */

:root {
  /* ---- Color ---- */
  --ink:          #18263D;
  --ink-2:        #101B2D;
  --ink-soft:     #626978;
  --emerald:      #253A57;
  --emerald-2:    #3D526E;
  --emerald-soft: #EDF0F3;
  --gold:         #B78D49;
  --gold-soft:    #D8BB87;
  --gold-deep:    #795B2D;
  --gold-pale:    #EFE7D8;
  --burgundy:     #6E2A35;
  --ivory:        #F8F6F1;
  --ivory-2:      #EEEAE2;
  --ivory-3:      #FFFDF9;
  --stone:        #CEC8BC;
  --stone-2:      #E4E0D7;

  /* ---- Type ---- */
  --serif: "Bodoni Moda", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Surfaces ---- */
  --rule: 1px solid var(--stone);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(12, 20, 37, 0.05);
  --shadow-sm: 0 2px 8px rgba(12, 20, 37, 0.04);
  --shadow-md: 0 8px 28px rgba(12, 20, 37, 0.08);
  --shadow-lg: 0 24px 64px rgba(12, 20, 37, 0.16);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .35s;

  --container: 1220px;
  --header-h: 96px;
  --gutter: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--gold-soft); color: var(--ink); }

/* Subtle, refined scrollbar (progressive — falls back gracefully) */
html { scrollbar-color: var(--stone) var(--ivory); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 20px; border: 3px solid var(--ivory); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--ivory);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.4em;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 440; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7em;
}

.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }

/* ---------- Provenance rule (signature divider) ---------- */

.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stone);
}
.rule .diamond {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- Reveal-on-scroll (progressive enhancement — see main.js) ---------- */

.reveal.reveal-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.reveal-ready.in-view { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.fade-in-up { animation: fadeUp .8s var(--ease) both; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ivory);
  border-bottom: 1px solid rgba(217, 175, 102, 0.12);
  transition: box-shadow .3s ease, border-color .3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(12, 20, 37, .12);
  border-color: rgba(217, 175, 102, 0.22);
}

.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-soft); }

/* ---------- Main navigation bar ---------- */

.site-header .bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 var(--gutter);

  /* Lives here (not on .site-header) on purpose: backdrop-filter creates a
     new containing block for `position: fixed` descendants, and the
     full-screen .mobile-nav drawer is nested inside .site-header. Having it
     on the header confined the "fixed" drawer to the header's own box
     instead of the viewport, squashing it into a sliver at the top. */
  background: rgba(16, 27, 45, 0.97);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- Left navigation ---------- */

.nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 1.5vw, 24px);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
}

.nav-left a,
.nav-link-btn {
  position: relative;
  color: var(--ivory);
  white-space: nowrap;
}

.nav-left a::after,
.nav-link-btn::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}

[dir="rtl"] .nav-left a::after,
[dir="rtl"] .nav-link-btn::after {
  transform-origin: left;
}

.nav-left a:hover,
.nav-link-btn:hover {
  color: var(--gold-soft);
}

.nav-left a:hover::after,
.nav-link-btn:hover::after {
  transform: scaleX(1);
}

[dir="rtl"] .nav-left a:hover::after,
[dir="rtl"] .nav-link-btn:hover::after {
  transform-origin: right;
}

.nav-form {
  display: contents;
}

.nav-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

/* ---------- Search toggle ---------- */

.nav-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  color: var(--ivory);
  cursor: pointer;
  flex: none;
  transition: color .2s ease;
}
.nav-search-toggle:hover,
.nav-search-toggle[aria-expanded="true"] { color: var(--gold-soft); }
.search-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.site-search-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  background: var(--ink-2);
  transform: translateY(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .28s var(--ease), opacity .22s var(--ease), visibility 0s linear .28s;
}
.site-search-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .28s var(--ease), opacity .22s var(--ease), visibility 0s linear 0s;
}
.site-search-panel__form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.site-search-panel__form .search-icon {
  flex: none;
  width: 18px; height: 18px;
  color: var(--gold-soft);
}
.site-search-panel__form input {
  flex: 1;
  min-width: 0;
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 1rem;
}
.site-search-panel__form input::placeholder { color: var(--ink-soft); opacity: 1; }
.site-search-panel__form input:focus { outline: 2px solid var(--gold-soft); outline-offset: 2px; border-color: var(--gold); }
.site-search-panel__form .btn.small { padding: 10px 20px; font-size: 0.74rem; flex: none; }
.site-search-panel__form .btn-gold { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink-2); }
.site-search-panel__form .btn-gold:hover { background: var(--ivory); border-color: var(--ivory); }
.site-search-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  padding: 0;
  background: none;
  border: none;
  color: var(--ivory);
  cursor: pointer;
  flex: none;
}
.site-search-panel__close svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
}
.site-search-panel__close:hover { color: var(--gold-soft); }

/* ---------- Center logo ---------- */

.main-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  color: var(--ivory);
  transition: transform .3s var(--ease), opacity .2s ease;
}

.main-logo:hover {
  transform: translateY(-1px);
}

.logo-img {
  height: 64px;
  width: 128px;
  object-fit: contain;
  display: block;
}

/* ---------- Right navigation ---------- */

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

/* ---------- Bag ---------- */

.nav-cart {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 8px 17px;
  border: 1px solid rgba(216, 187, 135, .4);
  border-radius: var(--radius-sm);
  color: var(--ivory);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-cart { gap: 10px; }
.nav-cart__icon { display: inline-flex; position: relative; flex: none; }
.bag-icon { display: block; width: 20px; height: 20px; }
.nav-cart__addition {
  position: absolute;
  top: -9px;
  inset-inline-end: -10px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 18px;
  padding-inline: 4px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.nav-cart:hover {
  background: var(--gold-soft);
  color: var(--ink);
  transform: translateY(-1px);
}

/* ---------- Language switch ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
}

.lang-switch button {
  background: transparent;
  border: 1px solid rgba(217, 175, 102, 0.35);
  color: var(--stone);
  padding: 5px 9px;
  cursor: pointer;
  border-radius: 7px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.lang-switch button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.lang-switch button:hover:not(.active) {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

/* ---------- Mobile menu button ---------- */

.nav-toggle {
  display: none;
  flex: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Mobile navigation: side drawer ---------- */

.mobile-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;

  width: min(90vw, 390px);
  height: 100dvh;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;

  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;

  background: var(--ivory);
  color: var(--ink);
  border-inline-start: 1px solid var(--stone-2);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateX(100%);

  transition:
    transform .35s var(--ease),
    opacity .3s ease,
    visibility 0s linear .35s;

  z-index: 70;

  box-shadow: -20px 0 60px rgba(12, 20, 37, 0.25);
}

[dir="rtl"] .mobile-nav {
  transform: translateX(-100%);
}

/* Dimmed backdrop behind the mobile nav drawer, tap to close.
   Defined here (not just inside the mobile media query) so it's always
   inert/hidden by default no matter the viewport. */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 26, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
  z-index: 65;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .3s ease;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);

  transition:
    transform .35s var(--ease),
    opacity .3s ease;
}

[dir="rtl"] .mobile-nav.open { transform: translateX(0); }
.mobile-nav__header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: max(22px, env(safe-area-inset-top)) 24px 22px;
  background: var(--ink);
  border-bottom: 1px solid var(--gold-soft);
}
.mobile-nav__brand { display: block; }
.mobile-nav__brand img { width: 120px; height: auto; }
.mobile-nav__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(217, 175, 102, .4);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.mobile-nav__close svg { width: 22px; height: 22px; }
.mobile-nav__close:hover { background: rgba(217, 175, 102, .12); border-color: var(--gold-soft); }

.mobile-nav__body { padding: 28px 24px; }
.mobile-nav__section + .mobile-nav__section { margin-top: 28px; }
.mobile-nav .mobile-nav__label {
  display: block;
  padding: 0;
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
[dir="rtl"] .mobile-nav .mobile-nav__label { letter-spacing: 0; }
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding-block: 12px;
  border-bottom: 1px solid var(--stone-2);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  line-height: 1.4;
  transition: color .2s ease;
}
.mobile-nav__arrow { flex: none; font-family: var(--sans); font-size: 1.1rem; color: var(--gold-deep); }
[dir="rtl"] .mobile-nav__arrow { transform: scaleX(-1); }
.mobile-nav__link:hover,
.mobile-nav__link[aria-current="page"] { color: var(--gold-deep); }
.mobile-nav__account-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  text-align: start;
  font-size: .9rem;
  cursor: pointer;
}
.mobile-nav__account form { margin: 0; }
.mobile-nav__account-link:hover,
.mobile-nav__account-link[aria-current="page"] { color: var(--gold-deep); }

.mobile-nav__footer {
  flex: none;
  margin-top: auto;
  padding: 24px 24px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--stone-2);
  background: var(--ivory-2);
}
.mobile-nav .lang-switch { display: block; margin: 0; }
.mobile-nav .lang-switch fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.mobile-nav__languages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
  background: var(--ivory-3);
}
.mobile-nav .lang-switch button {
  min-height: 44px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: .85rem;
  letter-spacing: 0;
}
.mobile-nav .lang-switch button[lang="fa"] { font-family: "Vazirmatn", var(--sans); }
.mobile-nav .lang-switch button.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.mobile-nav .lang-switch button:hover:not(.active) { background: var(--gold-pale); color: var(--ink); border-color: var(--stone); }

/* ---------- RTL navigation ---------- */

[dir="rtl"] .nav-left,
[dir="rtl"] .nav-right,
[dir="rtl"] .mobile-nav,
[dir="rtl"] .lang-switch {
  letter-spacing: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
  min-height: 44px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--emerald); border-color: var(--emerald); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.btn-gold {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
  box-shadow: none;
}
.btn-gold:hover { background: var(--emerald); border-color: var(--emerald); box-shadow: var(--shadow-sm); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--stone);
}
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

.btn-quiet {
  background: transparent;
  border-color: var(--stone);
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 9px 16px;
}
.btn-quiet:hover { border-color: var(--burgundy); color: var(--burgundy); background: transparent; transform: none; }

.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.is-loading { opacity: 0.8; cursor: progress; transform: none; }

/* ---------- Quantity stepper ---------- */

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  overflow: hidden;
}
.qty-stepper input[type="number"] {
  flex: none;
  width: 44px;
  border: none;
  text-align: center;
  padding: 12px 2px;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-btn {
  flex: none;
  width: 44px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.qty-btn:hover { background: var(--ivory-2); color: var(--ink); }

/* ---------- Forms ---------- */

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

input[type="text"], input[type="tel"], input[type="number"],
input[type="password"], textarea, select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--stone);
  background: var(--ivory-3);
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(183, 141, 73, 0.12);
}
textarea { resize: vertical; min-height: 90px; }

.field { margin-bottom: 20px; }

.errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: var(--burgundy);
  font-size: 0.85rem;
}

.form-errors {
  border: 1px solid var(--burgundy);
  border-radius: var(--radius-sm);
  color: var(--burgundy);
  padding: 14px 16px;
  font-size: 0.88rem;
  margin-bottom: 22px;
  background: #F8EEEE;
}

/* ---------- Messages (soft, contained toasts) ---------- */

.messages-wrap { padding-top: 20px; }
.messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  box-shadow: var(--shadow-xs);
}
.msg-icon {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
}
.msg-success { background: var(--emerald-soft); color: var(--emerald); }
.msg-success .msg-icon { background: var(--emerald); color: var(--ivory); }
.msg-error { background: #F8EEEE; color: var(--burgundy); }
.msg-error .msg-icon { background: var(--burgundy); color: var(--ivory); }
.cart-addition { border: 1px solid var(--gold); font-weight: 600; }
.cart-addition__count {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  padding-inline: 8px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--ivory);
  font-size: 1.25rem;
  font-weight: 700;
}

/* ---------- Layout scaffolding ---------- */

main { min-height: 60vh; }

.page-head {
  padding-block: 48px 28px;
  border-bottom: var(--rule);
  position: relative;
}
.page-head h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); }

.section { padding-block: 40px 64px; }

/* ---------- Hero masthead (collection landing) ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
  padding: 96px 0 84px;
}
.hero-glow {
  position: absolute;
  inset: -30% -10% -10% -10%;
  background:
    radial-gradient(560px 380px at 12% 15%, rgba(217, 175, 102, 0.22), transparent 60%),
    radial-gradient(640px 440px at 88% 70%, rgba(58, 78, 125, 0.55), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: var(--ivory); }
.hero-rule { margin: 24px 0; max-width: 220px; }
.hero-rule::before, .hero-rule::after { background: rgba(246, 241, 231, 0.22); }
.hero-sub { color: var(--stone-2); max-width: 48ch; font-size: 1.08rem; }

/* ---------- Native scrolling slideshow ---------- */
.hero-slides { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.hero-slides::-webkit-scrollbar { display: none; }
.hero-slides.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.hero-slide { position: relative; flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: var(--ink); }
.hero-slide-link { display: block; width: 100%; height: 100%; cursor: pointer; }
.hero-slide-link:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: -4px; }
.hero-slides.is-dragging .hero-slide-link { cursor: grabbing; }
.hero-slide img, .hero-slide video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; user-select: none; -webkit-user-drag: none; }
/* Cover Safari's native play overlay until a real video frame is rendering.
   Keep the video visible underneath so inline autoplay remains eligible. */
.hero-video-cover { position: absolute; inset: 0; z-index: 1; background: var(--ink); pointer-events: none; }
.hero-slide[data-video-state="playing"] > .hero-video-cover { visibility: hidden; }
.hero-slide video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero--collection { padding: 0; min-height: clamp(440px, 42vw, 620px); display: grid; align-items: end; }
.hero--collection .hero-inner { width: 100%; max-width: var(--container); padding-block: 80px 92px; pointer-events: none; }
.hero--collection h1 { max-width: 15ch; font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.15; text-wrap: balance; }
.hero--collection .hero-sub { max-width: 34ch; font-size: .9375rem; line-height: 1.8; }
.hero--collection .eyebrow { font-size: .75rem; letter-spacing: .12em; }
.hero--collection .hero-rule { max-width: 100px; margin-block: 18px; }
.hero--collection .hero-glow { display: none; }
.hero--collection::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(12,20,37,.32), rgba(12,20,37,.1) 65%, rgba(12,20,37,.02)); }
[dir="rtl"] .hero--collection::after { background: linear-gradient(270deg, rgba(12,20,37,.32), rgba(12,20,37,.1) 65%, rgba(12,20,37,.02)); }
.hero-controls { position: absolute; bottom: 24px; inset-inline: var(--gutter); display: flex; justify-content: flex-end; z-index: 2; pointer-events: none; }
.hero-dots { display: flex; align-items: center; gap: 8px; direction: inherit; }
.hero-dots span { width: 6px; height: 6px; border-radius: 6px; background: rgba(246,241,231,.6); transition: width .2s ease; }
.hero-dots span.is-active { width: 24px; background: var(--gold-soft); }
.hero-slides:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: -4px; }
[data-hero-status] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.media-pause { min-height: 44px; padding: 8px 14px; border: 1px solid currentColor; border-radius: var(--radius-pill); color: inherit; background: transparent; cursor: pointer; font-size: .75rem; }
@media (min-width: 861px) {
  .hero--collection .hero-slides { inset-inline-start: 45%; inset-inline-end: max(0px, calc((100% - var(--container)) / 2)); }
  .hero--collection .hero-slide img, .hero--collection .hero-slide video { object-fit: contain; object-position: center; }
  .hero--collection::after { display: none; }
}
@media (max-width: 860px) {
  .hero--collection::after, [dir="rtl"] .hero--collection::after { background: linear-gradient(0deg, rgba(12,20,37,.32), rgba(12,20,37,.08) 65%, rgba(12,20,37,.02)); }
  .hero--collection .hero-inner { text-shadow: 0 1px 2px rgba(12,20,37,.9), 0 2px 8px rgba(12,20,37,.6); }
  /* Fade with the swipe, not the settled slide; keep the navy tint throughout. */
  .hero--collection .hero-inner { opacity: var(--hero-caption-opacity, 1); }
  .hero--collection[data-hero-media="video"] .hero-inner { opacity: var(--hero-caption-opacity, 0); }
  .hero-controls { justify-content: center; }
}

/* ---------- Video reel: looped spinning-dress clips as clickable tiles ---------- */

.video-reel {
  background: var(--ivory);
  padding: 28px 0 32px;
  border-bottom: var(--rule);
}
.video-reel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-block: 2px 12px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.video-reel__track::-webkit-scrollbar { display: none; }
.video-tile {
  position: relative;
  flex: 0 0 auto;
  width: calc((100% - 48px) / 4);
  min-width: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ivory-2);
  scroll-snap-align: start;
  box-shadow: var(--shadow-xs);
}
.video-tile__video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink-2); }
.video-tile > img { width: 100%; height: 100%; object-fit: cover; }
.reel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.reel-heading h2 { margin: 0; }
.video-tile__badge {
  position: absolute;
  top: 8px; inset-inline-end: 8px;
  background: rgba(12, 20, 37, 0.72);
  color: var(--ivory);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
}
.video-tile__label {
  position: absolute;
  bottom: 0; inset-inline: 0;
  padding: 20px 9px 9px;
  font-family: var(--serif);
  font-size: 0.82rem;
  color: var(--ivory);
  background: linear-gradient(0deg, rgba(12, 20, 37, 0.88), transparent);
}

/* ---------- Sale badge + discounted price ---------- */

.sale-badge {
  position: absolute;
  top: 12px; inset-inline-start: 12px;
  z-index: 1;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}
.sale-badge--inline { position: static; margin-inline-start: 10px; vertical-align: middle; }
.price-was { text-decoration: line-through; color: var(--ink-soft); font-size: 0.85em; margin-inline-end: 8px; }
.price-now { color: var(--emerald); font-weight: 600; }

/* ---------- Product grid / filters ---------- */

.catalog-all-products { display: flex; justify-content: center; padding-top: 12px; }
.all-products-page { padding-top: 24px; }
.all-products-disclosure { margin-bottom: 24px; }
.all-products-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  margin: 12px 0 0;
  background: var(--ivory-3);
  border: var(--rule);
  border-radius: var(--radius);
}
.all-products-filters > * { min-width: 0; }
.all-products-filters__search, .all-products-filters__actions { grid-column: 1 / -1; }
.all-products-filters input[type="search"] {
  width: 100%;
  padding: 14px 16px;
  font: 1rem var(--sans);
  background: var(--ivory-3);
  color: var(--ink);
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
}
.all-products-filters label { line-height: 1.6; }
.all-products-filters__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.all-products-filters__discount { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; margin-inline-end: auto; text-transform: none; letter-spacing: normal; cursor: pointer; }
.all-products-filters__discount input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--gold-deep); }
.all-products-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.all-products-heading h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.price-on-request { font-size: .78rem; line-height: 1.6; }
.all-products-page .product-rail--two-row {
  grid-template-rows: repeat(2, max-content);
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, calc((100% - 64px) / 4.5), 190px);
  gap: 16px;
}
.product-rail--two-row:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.product-rail--two-row::-webkit-scrollbar { height: 8px; }
.product-rail--two-row::-webkit-scrollbar-track { background: var(--ivory-2); border-radius: 8px; }
.product-rail--two-row::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 8px; }
.product-card--compact .product-card-body { padding: 12px 10px 14px; flex: 1; }
.product-card.product-card--compact h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: .875rem;
  line-height: 1.6;
  margin: 0;
}
.product-card--compact .stock-flag { align-self: flex-start; margin-top: 6px; padding: 3px 7px; font-size: .65rem; }
.product-card--compact .sale-badge { top: 8px; inset-inline-start: 8px; font-size: .65rem; padding: 4px 7px; }
.product-card-price {
  margin-top: 4px;
  color: var(--ink);
  font: 400 .8125rem/1.7 var(--sans);
  font-variant-numeric: tabular-nums;
  text-align: start;
  overflow-wrap: anywhere;
}
.product-card-price .price-was { font-size: .75rem; margin-inline-end: 5px; color: var(--ink-soft); }
.product-card-price .price-was, .product-card-price .price-now { display: inline-block; }
.product-card-price .price-now { color: var(--ink); font-weight: 500; }
.product-card-price .price-on-request { font-size: .8125rem; font-weight: 400; }
@media (max-width: 640px) {
  .all-products-page .product-rail--two-row { grid-auto-columns: clamp(145px, 42%, 170px); gap: 10px; }
  .all-products-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 12px; }
  .all-products-filters input, .all-products-filters select { padding-inline: 10px; }
  .all-products-filters__discount { flex-basis: 100%; }
}

.collection-jumps { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 12px 36px; }
.catalog-section { padding-block: 12px 40px; scroll-margin-top: 20px; }
.catalog-section + .catalog-section { padding-top: 36px; border-top: var(--rule); }
.catalog-section__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.catalog-section__heading h2 { margin-bottom: 6px; line-height: 1.35; }
.catalog-section__heading p { margin: 0; }
.catalog-section__count { flex: none; color: var(--ink-soft); font-size: .8rem; }
.catalog-section__empty { padding: 24px; border: 1px dashed var(--stone); border-radius: var(--radius-sm); color: var(--ink-soft); }
.catalog-section__empty p { margin: 0; }
@media (max-width: 640px) {
  .collection-jumps { gap: 8px; margin-bottom: 24px; }
  .collection-jumps .chip { padding-inline: 0; font-size: .8125rem; }
  .catalog-section__heading { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .catalog-section { padding-bottom: 28px; }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: var(--rule);
  min-width: 0;
  max-width: 100%;
}

.filter-bar__chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 260px;
  min-width: 0;
}
.filter-bar__chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stone-2);
  color: var(--ink-soft);
  font-size: 0.82rem;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip.is-active,
.chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

/* Section links remain in the same row, with lighter navigation styling. */
.collection-jumps { column-gap: 24px; row-gap: 4px; }
.collection-jumps .chip { padding-inline: 0; border-color: transparent; border-radius: 0; color: var(--ink-soft); }
.collection-jumps .chip:hover, .collection-jumps .chip:focus-visible { color: var(--ink); background: transparent; border-bottom-color: var(--gold-deep); }

.filter-bar__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: none;
  min-width: 0;
  max-width: 100%;
}
.filter-bar__price-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-inline-end: 2px;
}
.filter-bar__price input {
  width: 88px;
  min-width: 0;
  flex: 1 1 76px;
  padding: 8px 10px;
  font-size: 0.85rem;
}
.filter-bar__sep { color: var(--ink-soft); }
.filter-bar__price .btn.small { padding: 8px 16px; font-size: 0.74rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.toolbar select { width: auto; min-height: 44px; padding: 9px 12px; font-size: .875rem; border-color: var(--stone); border-radius: var(--radius-sm); background-color: transparent; color: var(--ink); }

/* Keep catalog filters off the page until requested, without requiring JS. */
.catalog-toolbar { position: relative; flex-wrap: wrap; gap: 12px; }
.catalog-toolbar > form { margin-inline-start: auto; }
.catalog-filters summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 12px; box-sizing: border-box; border: 1px solid var(--stone); border-radius: var(--radius-sm); color: var(--ink); font-size: .875rem; cursor: pointer; list-style: none; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.catalog-filters summary::-webkit-details-marker { display: none; }
.catalog-filters summary svg { width: 18px; height: 18px; }
.catalog-filters[open] summary { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.catalog-filters .filter-bar { position: absolute; inset-inline-start: 0; top: calc(100% + 10px); z-index: 5; width: min(680px, 100%); box-sizing: border-box; padding: 20px; margin: 0; border: var(--rule); border-radius: var(--radius); background: var(--ivory-3); box-shadow: var(--shadow-md); }
.catalog-filters .filter-bar__chips { flex-basis: 100%; flex-wrap: wrap; overflow: visible; }
.catalog-filters .filter-bar__price { flex: 1 1 100%; }
.catalog-filters .filter-bar__price input { flex: 1; min-width: 0; }
.catalog-filter-reset { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; text-decoration: underline; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, calc((100% - 72px) / 4), 280px);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-block: 8px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-soft) var(--ivory-2);
}
.product-rail > .product-card { scroll-snap-align: start; }
.catalog-rail-end { display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 16px; border: 1px solid var(--stone-2); border-radius: var(--radius-sm); background: var(--ivory-2); scroll-snap-align: start; transition: border-color .2s ease; }
.catalog-rail-end:hover { border-color: var(--gold-deep); }
.catalog-rail-end:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: -4px; }

@media (max-width: 640px) {
  .product-rail {
    /* Roughly two visible cards, with a peek at the next on wider phones. */
    grid-auto-columns: clamp(150px, 46%, 190px);
    gap: 10px;
  }
  .product-rail .product-card-body { padding: 12px 10px 14px; }
  .product-rail .product-card .price { padding-top: 6px; }
}

.product-card {
  min-width: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Retain the border footprint to preserve existing rail/card geometry. */
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.product-card-figure {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  background: var(--ivory-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  position: relative;
}
.product-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card-figure img { transform: scale(1.025); }
}

.figure-placeholder {
  font-family: var(--serif);
  font-style: italic;
  color: var(--stone);
  font-size: 0.95rem;
}

.product-card-body {
  padding: 16px 14px 18px;
  background: linear-gradient(to top, #D8BB87, #F0E5CF 55%, rgba(240, 229, 207, 0));
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card .cat {
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.product-card .price > span { display: inline-block; }

.product-card h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  margin-bottom: 0;
  border-bottom: 1px solid transparent;
  display: inline-block;
  transition: border-color .2s ease;
}
.product-card a.name-link:hover h3 { border-color: var(--gold); }

.product-card .price {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.product-card .price-now { font-weight: 500; color: var(--ink); }

.stock-flag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  margin-top: 10px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
}
.stock-flag.out { color: var(--burgundy); background: #F8EEEE; }
.stock-flag.low { color: var(--gold-deep); background: var(--gold-pale); }

.empty-state {
  text-align: center;
  padding: 100px 20px;
  color: var(--ink-soft);
}
.empty-state h3 { color: var(--ink); }
.empty-icon { width: 54px; height: 54px; color: var(--stone); margin: 0 auto 24px; display: block; }

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 46px;
  font-size: 0.85rem;
}
.pagination a, .pagination span {
  min-width: 40px;
  padding: 9px 10px;
  text-align: center;
  border: 1px solid var(--stone);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.pagination .current { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.pagination a:hover { border-color: var(--gold); color: var(--gold-deep); }

/* ---------- Product detail ---------- */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  padding-block: 40px 64px;
}

.product-figure {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  align-self: start;
}
.figure-main {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--stone);
  font-family: var(--serif);
  font-style: italic;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  position: relative;
}
.figure-main::-webkit-scrollbar { display: none; }
.figure-main:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.figure-main.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.gallery-slide { flex: 0 0 100%; height: 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery-slide img { user-select: none; cursor: grab; }
.gallery-caption { display: flex; justify-content: space-between; gap: 12px; padding-inline: 0; font-size: .75rem; color: var(--ink-soft); }
.figure-main img, .figure-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-thumbs {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 0 0 4px;
}
.figure-thumbs .thumb {
  flex: 0 0 66px;
  width: 66px; height: 66px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--ivory);
  position: relative;
  transition: border-color 0.2s ease, transform .2s ease;
}
.figure-thumbs .thumb:hover { transform: translateY(-2px); }
.figure-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.figure-thumbs .thumb.active,
.figure-thumbs .thumb:hover { border-color: var(--gold); }
.figure-thumbs .thumb-video .play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 33, 61, 0.35);
  color: var(--ivory);
  font-size: 0.9rem;
}

.product-info { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }

.product-info .cat-link {
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.product-info .cat-link:hover { color: var(--gold); }

.product-info h1 { margin-top: 12px; font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.35; }

.product-info .price-row {
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  margin: 20px 0 24px;
}

.product-info .desc { color: var(--ink-soft); margin-bottom: 32px; max-width: 46ch; }

.add-form { display: flex; gap: 12px; align-items: flex-end; margin-top: 28px; flex-wrap: wrap; }
.add-form .field { margin-bottom: 0; min-width: 0; flex: 1 1 120px; }
.add-form select { max-width: 100%; }
.wholesale-series { display: inline-block; margin-top: 8px; padding: 5px 10px; border-radius: var(--radius-pill); background: var(--gold-pale); color: var(--gold-deep); font: 600 .8rem/1.5 var(--sans); }
.wholesale-colours { flex: 1 1 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.wholesale-colours legend { margin-bottom: 6px; font-size: .8rem; }
.wholesale-colour { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: .85rem; letter-spacing: normal; text-transform: none; cursor: pointer; }
.wholesale-colour input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--gold-deep); }
.wholesale-colour.is-unavailable { opacity: .55; cursor: default; }
.wholesale-page .product-rail--two-row { grid-template-rows: repeat(2, max-content); grid-auto-columns: clamp(150px, calc((100% - 64px) / 4.5), 190px); gap: 16px; }
.product-card--wholesale .product-card-body { padding: 10px; flex: 1; }
.product-card--wholesale h3 { overflow-wrap: anywhere; }
.product-card--wholesale .wholesale-series { align-self: flex-start; padding: 3px 7px; font-size: .68rem; }
.wholesale-order { margin-top: auto; padding-top: 10px; }
.wholesale-order > summary { display: flex; justify-content: center; min-height: 44px; padding: 8px 12px; font-size: .75rem; list-style: none; }
.wholesale-order > summary::-webkit-details-marker { display: none; }
.wholesale-order-fields .add-form { margin-top: 14px; }
.wholesale-order-fields .add-form .field { flex-basis: 100%; }
.wholesale-order-fields .wholesale-colour span { overflow-wrap: anywhere; min-width: 0; }
.wholesale-order-fields input[type="number"] { min-height: 44px; font-size: 16px; }
.wholesale-order-panel { width: min(480px, calc(100% - 32px)); max-height: min(85dvh, 760px); margin: auto; padding: 0; color: var(--ink); background: var(--ivory-3); border: 1px solid var(--stone); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.wholesale-order-panel[open] { display: flex; flex-direction: column; }
.wholesale-order-panel::backdrop { background: rgba(10, 24, 43, .55); }
.wholesale-order-panel__header { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: var(--rule); flex: none; }
.wholesale-order-panel__header h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.15rem; line-height: 1.5; overflow-wrap: anywhere; }
.wholesale-order-panel__close { flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--stone); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.7rem; cursor: pointer; }
.wholesale-order-panel__close:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.wholesale-order-panel__content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 22px; }
.wholesale-order-panel .wholesale-order-series { display: block; margin: 0; color: var(--gold-deep); font-size: .9rem; }
.wholesale-order-panel .wholesale-colour-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.wholesale-order-panel .add-form { margin-top: 12px; }
.wholesale-order-panel .add-form > button { min-height: 48px; background: var(--ink); color: var(--ivory); }
@media (max-width: 640px) {
  .wholesale-page .product-rail--two-row { grid-auto-columns: clamp(145px, 42%, 170px); gap: 10px; }
  .wholesale-order-panel { width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .wholesale-order-panel__content { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}
.add-form .field > small { display: block; margin-top: 6px; font-size: .75rem; line-height: 1.5; }

.meta-line {
  display: flex;
  gap: 30px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: var(--rule);
  font-size: 0.85rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

/* ---------- Line items (cart / order / checkout summary) ---------- */

.line-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.line-item > div:last-child, .mini-list .row-name { min-width: 0; }
.line-thumb {
  width: 60px; height: 60px;
  flex: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ivory-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-thumb .figure-placeholder { font-size: 0.62rem; padding: 2px; }

/* ---------- Cart / checkout ---------- */

.cart-table { width: 100%; border-collapse: collapse; margin-top: 28px; }
.cart-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stone-2);
}
[dir="rtl"] .cart-table th { text-align: right; }
.cart-table td {
  padding: 22px 0;
  border-bottom: 1px solid var(--stone-2);
  vertical-align: middle;
}
.cart-table .item-name { font-family: var(--serif); font-size: 1.05rem; transition: color .2s ease; }
a.item-name:hover { color: var(--gold-deep); }
.cart-table .item-cat { font-size: 0.78rem; color: var(--ink-soft); margin-top: 3px; }
.qty-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.summary-panel {
  border: var(--rule);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--ivory-3);
  box-shadow: none;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
  padding: 10px 0;
}
.summary-row.total {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  color: var(--emerald);
  padding-top: 20px;
  margin-top: 8px;
  border-top: var(--rule);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.cart-layout .summary-panel { position: static; width: 100%; max-width: 400px; justify-self: end; }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 40px;
  align-items: start;
}

.mini-list { font-size: 0.9rem; display: flex; flex-direction: column; gap: 14px; }
.mini-list .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--stone); }
.mini-list .row:last-child { border-bottom: none; padding-bottom: 0; }
.mini-list .row-name { display: flex; align-items: center; gap: 12px; }
.mini-list .line-thumb { width: 44px; height: 44px; }

/* ---------- Orders ---------- */

.order-card {
  border: var(--rule);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--ivory-3);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}
.order-card:hover { border-color: var(--gold-soft); box-shadow: var(--shadow-sm); }
.order-id { font-family: var(--serif); font-size: 1.18rem; }

.order-thumbs { display: flex; margin-top: 12px; }
.order-thumbs .thumb-mini {
  width: 42px; height: 42px;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid var(--ivory-3);
  margin-inline-start: -12px;
  background: var(--ivory-2);
  flex: none;
}
.order-thumbs .thumb-mini:first-child { margin-inline-start: 0; }
.order-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.status-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 15px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
}
.status-pending_payment { color: var(--gold-deep); }
.status-paid            { color: var(--emerald); }
.status-payment_failed  { color: var(--burgundy); }
.status-shipped         { color: var(--emerald-2); }
.status-delivered       { color: var(--ink); }
.status-cancelled       { color: var(--ink-soft); }
.status-refunded        { color: var(--ink-soft); }

.order-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

/* Status tracker */
.status-track {
  display: flex;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}
.status-track li {
  flex: 1;
  position: relative;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 30px;
}
.status-track li::before {
  content: "";
  position: absolute;
  top: 6px;
  inset-inline-start: 50%;
  width: 14px; height: 14px;
  margin-inline-start: -7px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--stone);
  z-index: 2;
}
.status-track li::after {
  content: "";
  position: absolute;
  top: 12px;
  inset-inline-start: -50%;
  width: 100%; height: 2px;
  background: var(--stone-2);
  z-index: 1;
}
.status-track li:first-child::after { display: none; }
.status-track li.done { color: var(--emerald); }
.status-track li.done::before { background: var(--emerald); border-color: var(--emerald); }
.status-track li.done::after { background: var(--emerald); }

.status-banner {
  margin-top: 30px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--ivory-2);
  color: var(--ink-soft);
  border: var(--rule);
}

.address-block {
  border: var(--rule);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 28px;
  background: var(--ivory-3);
}

/* ---------- Auth ---------- */

.auth-page {
  position: relative;
  background: var(--ivory-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  min-height: calc(100vh - var(--header-h) - 300px);
}
.auth-wrap {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  margin: 0;
  padding: 54px 46px;
  background: var(--ivory-3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.auth-page .hero-glow { display: none; }
.auth-wrap .eyebrow { color: var(--gold-deep); }
.auth-wrap .rule { margin-bottom: 36px; }
.otp-hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 20px; text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-2);
  color: var(--stone);
  margin-top: 32px;
  padding: 44px 0 28px;
  font-size: .875rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.1);
}
.footer-brand .mark { display: flex; align-items: baseline; gap: 10px; color: var(--gold-soft); margin-bottom: 10px; font: 500 1.5rem/1.4 var(--serif); letter-spacing: .03em; }
.footer-brand .glyph { font-size: .875rem; }
.footer-brand p { max-width: 32ch; color: var(--stone); margin: 0; }
.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
  font-family: var(--sans);
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--stone);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--ivory); }
.footer-locations { padding-bottom: 32px; margin-bottom: 28px; border-bottom: 1px solid rgba(246, 241, 231, .1); }
.footer-locations h2 { margin: 0 0 24px; color: var(--ivory); font-size: 1.5rem; }
.footer-locations__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.footer-location { min-width: 0; padding-inline-start: 16px; border-inline-start: 1px solid rgba(216, 187, 135, .3); }
.footer-location--wholesale { grid-column: 1 / -1; }
.footer-location__contact { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.footer-location__phones { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-location__phones a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(216, 187, 135, .3);
  border-radius: var(--radius-sm);
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}
.footer-location__phones a:hover { background: rgba(246, 241, 231, .06); color: var(--ivory); }
.footer-location__phones a:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.footer-location h3 { margin: 0 0 10px; font: 600 .88rem/1.6 var(--sans); color: var(--gold-soft); }
.footer-location address { font-style: normal; line-height: 1.9; overflow-wrap: anywhere; }
.footer-location address span { display: block; }
@media (max-width: 860px) {
  .footer-locations__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--stone);
  font-size: 0.8rem;
}
.footer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 300px; max-width: 100%; }
.footer-trust-seal, .footer-directions, .footer-instagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  gap: 8px;
  max-width: 100%;
  padding: 12px 10px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}
.footer-directions, .footer-instagram { background: transparent; border-color: rgba(216, 187, 135, .3); color: var(--ivory); }
.footer-instagram .footer-instagram__handle { color: var(--stone); }
.footer-trust-seal img { display: block; width: 100px; height: 100px; object-fit: contain; }
.footer-directions svg { display: block; max-width: 100%; flex: 0 0 auto; color: var(--gold-soft); }
.footer-trust-seal span, .footer-directions span { font-size: .8125rem; line-height: 1.6; }
.footer-trust-seal:hover, .footer-directions:hover, .footer-instagram:hover { border-color: var(--gold-deep); }
.footer-trust-seal:focus-visible, .footer-directions:focus-visible, .footer-instagram:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; }
.footer-instagram { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; flex-wrap: wrap; min-height: 48px; padding: 12px 16px; }
.footer-instagram__label { display: inline-flex; align-items: center; gap: 8px; }
.footer-instagram__label svg { flex: 0 0 auto; color: var(--gold-soft); }
.footer-instagram__handle { font-size: .8125rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  :root { --header-h: 80px; }
  .site-header .bar { gap: 12px; }
  .logo-img { height: 56px; width: 112px; }
  .nav-left { gap: 0; }
  .nav-left > a, .nav-left > .nav-form { display: none; }
  .nav-right { gap: 10px; }
  .nav-toggle { display: flex; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-layout .summary-panel { position: static; }
}

@media (max-width: 860px) {
  .filter-bar__price { flex: 1 1 100%; }
  .filter-bar__price input { flex: 1; width: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { gap: 24px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .summary-panel { position: static; }
  .video-tile { width: calc((100% - 32px) / 3); }
}

.toolbar > *, .cart-layout > *, .checkout-layout > *, .product-info { min-width: 0; }

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .logo-img { width: 96px; height: 48px; }
  .nav-right { gap: 2px; }
  .nav-cart { padding: 10px; width: 44px; height: 44px; justify-content: center; border: 0; }
  .nav-cart .nav-cart__label { display: none; }
  .nav-cart .bag-icon { display: block; }
  .hero:not(.hero--collection) { padding: 48px 0; }
  .hero--collection { min-height: 500px; min-height: clamp(400px, 68svh, 560px); }
  .hero--collection .hero-inner { padding-block: 120px 80px; }
  .hero--collection h1 { font-size: clamp(1.875rem, 7vw, 2.25rem); }
  .hero--collection::after,
  [dir="rtl"] .hero--collection::after { background: linear-gradient(0deg, rgba(12,20,37,.32), rgba(12,20,37,.08) 65%, rgba(12,20,37,.02)); }
  .hero-sub { font-size: .95rem; }
  .hero-controls { justify-content: center; }
  .video-reel { padding-block: 24px; }
  .video-reel__track { gap: 12px; }
  .video-tile { width: 43%; }
  .page-head { padding-block: 32px 20px; }
  .section { padding-block: 28px 40px; }
  .product-detail { grid-template-columns: minmax(0, 1fr); padding-block: 24px 40px; }
  .product-info { position: static; }
  .summary-panel { padding: 22px 18px; }
  .site-search-panel__form { gap: 8px; }
  .site-search-panel__form > .search-icon { display: none; }
  .site-search-panel__form .btn.small { padding: 10px; }
  .site-search-panel__close { width: 44px; height: 44px; }
  input, select, textarea, .toolbar select, .filter-bar__price input { font-size: 16px; }
  .filter-bar__price { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; width: 100%; }
  .filter-bar__price-label { grid-column: 1 / -1; }
  .filter-bar__price input { width: 100%; }
  .filter-bar__price input[type="hidden"] { display: none; }
  .toolbar { font-size: .78rem; }
  .toolbar select { max-width: 100%; }
  .hero-dots { inset-inline-end: 20px; bottom: 16px; }
  .auth-page { padding: 48px 18px; }
  .auth-wrap { padding: 40px 26px; }
}

@media (max-width: 980px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    border: var(--rule);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
    background: var(--ivory-3);
  }

  .cart-table td {
    border-bottom: none;
    padding: 7px 0;
  }

  .cart-table td[data-label] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .cart-table td[data-label]::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .cart-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .cart-table td:first-child, .cart-table td:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .order-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .order-card > div:last-child { text-align: start !important; }

  .order-detail-head {
    flex-direction: column;
  }

  .status-track li {
    font-size: 0.62rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .footer-links {
    gap: 24px;
  }
  .footer-col { flex: 1; }
  .footer-bottom { flex-direction: column; align-items: stretch; gap: 24px; }
  .footer-actions { order: -1; width: 100%; }
  .footer-location__phones { font-size: .8125rem; }

  /* Two smaller cards per row instead of one oversized card per row */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card-body {
    padding: 12px 10px 14px;
  }

  .product-card .cat {
    font-size: .75rem;
    margin-bottom: 6px;
  }

  .product-card h3 {
    font-size: .9375rem;
    margin-bottom: 0;
  }

  .product-card .price {
    font-size: .8125rem;
    padding-top: 10px;
  }

  .stock-flag {
    font-size: 0.6rem;
    padding: 4px 10px;
    margin-top: 6px;
  }
  .product-card .sale-badge { inset-inline-start: 8px; top: 8px; padding: 3px 7px; }
  .product-card .add-form { margin-top: 14px; gap: 10px; }
  .product-card .add-form .field { flex-basis: 100%; }
  .product-card .add-form select, .product-card .add-form input { padding: 10px 6px; }
  .stock-flag { align-self: flex-start; }
  .mini-list .row { flex-wrap: wrap; }
  .mini-list .row > span { margin-inline-start: auto; }
  .status-track li { min-width: 0; padding-inline: 4px; letter-spacing: 0; }
  .footer-col a { min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 360px) {
  .site-header .bar { gap: 4px; }
  .hero-dots button { width: 20px; }
  .qty-form { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- RTL (Persian) ---------- */

[dir="rtl"] {
  /* Redefining the tokens (not just body/h1-h4) means every var(--serif) /
     var(--sans) usage site-wide — price rows, order ids, summary totals,
     video captions, anything added later — gets Vazirmatn automatically. */
  --serif: "Vazirmatn", "Bodoni Moda", Georgia, serif;
  --sans: "Vazirmatn", "Manrope", -apple-system, sans-serif;
}

[dir="rtl"] body {
  font-family: "Vazirmatn", var(--sans);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: "Vazirmatn", var(--serif);
  font-weight: 600;
}

[dir="rtl"] .catalog-section__heading h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); line-height: 1.6; }
[dir="rtl"] .product-info h1 { line-height: 1.6; letter-spacing: 0; }
[dir="rtl"] .product-info .cat-link { letter-spacing: 0; }
[dir="rtl"] .hero--collection h1 { line-height: 1.6; letter-spacing: 0; }
[dir="rtl"] .footer-col h4, [dir="rtl"] .footer-brand .mark { letter-spacing: 0; }

[dir="rtl"] .eyebrow,
[dir="rtl"] label,
[dir="rtl"] .cat,
[dir="rtl"] .btn,
[dir="rtl"] .status-pill,
[dir="rtl"] .status-track li,
[dir="rtl"] .filter-bar__price-label,
[dir="rtl"] .toolbar,
[dir="rtl"] .stock-flag {
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] .product-figure .figure-main {
  font-style: normal;
}

[dir="rtl"] .figure-placeholder {
  font-style: normal;
}

.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.lang-switch button {
  background: transparent;
  border: 1px solid var(--emerald-2);
  color: var(--stone);
  padding: 6px 11px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.lang-switch button.active { background: rgba(216, 187, 135, .12); color: var(--gold-soft); border-color: var(--gold-soft); }
.lang-switch button:hover:not(.active) { border-color: var(--gold-soft); color: var(--gold-soft); }

.header-language { gap: 0; direction: ltr; align-items: center; }
.header-language button {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  border: 0;
  border-radius: 0;
  color: var(--stone-2);
  font-size: .8125rem;
  letter-spacing: 0;
}
.header-language button.active { background: transparent; color: var(--gold-soft); }
.header-language button.active::after { content: ""; position: absolute; bottom: 4px; inset-inline: 10px; height: 1px; background: currentColor; }
.header-language button:hover:not(.active) { color: var(--ivory); }
.header-language button[lang="fa"] { font-family: "Vazirmatn", var(--sans); }
.header-language--mobile { display: none; }

@media (max-width: 1199px) {
  .header-language--desktop { display: none; }
  .header-language--mobile { display: flex; }
}

@media (max-width: 640px) {
  .nav-left { gap: 2px; }
  .site-header .bar { column-gap: 8px; }
  .nav-right { gap: 0; }
  .nav-search-toggle { width: 36px; }
  .nav-right > .nav-cart, .nav-right > .nav-toggle { width: 36px; padding-inline: 8px; }
  .header-language--mobile button { min-width: 36px; padding-inline: 3px; font-size: .75rem; }
  .header-language--mobile button[lang="fa"] { min-width: 44px; }
}

@media (max-width: 360px) {
  .logo-img { width: 80px; }
  .site-header .bar { column-gap: 4px; }
  .nav-search-toggle { width: 32px; }
  .nav-right > .nav-cart, .nav-right > .nav-toggle { width: 32px; padding-inline: 6px; }
}
.variant-selectors { min-width: 0; width: 100%; }
.variant-selectors [data-variant-controls]:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.variant-selectors select { width: 100%; min-width: 0; }
.variant-selectors [hidden] { display: none !important; }
