:root {
  --serif: "Cormorant Garamond", Palatino, Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --ink: #1a1714;
  --muted: #5c564e;
  --line: rgba(141, 107, 50, 0.28);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --chrome: calc(6.85rem + var(--safe-top));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus, .skip:focus-visible {
  position: fixed;
  inset-inline-start: 1rem;
  inset-inline-end: auto;
  top: calc(1rem + var(--safe-top));
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  overflow: visible;
  white-space: normal;
  background: var(--gold);
  color: var(--emerald);
  padding: 0.5rem 1rem;
  z-index: 20;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.announce {
  margin: 0;
  background: var(--emerald);
  color: var(--gold);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: calc(0.55rem + var(--safe-top)) 1.25rem 0.55rem;
}
.header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 243, 235, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.lockup { display: flex; gap: 0.7rem; align-items: center; text-decoration: none; min-width: 0; }
.lockup strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.04em; }
.lockup em { display: block; font-style: normal; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.logo-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--emerald); object-fit: cover; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
}
.nav { display: none; }
.nav-toggle:checked ~ .nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 1.25rem 1.2rem;
  box-shadow: 0 18px 40px rgba(16, 46, 37, 0.08);
}
.nav a { text-decoration: none; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.nav a:last-of-type { border-bottom: 0; }
.currency { display: none; }
.currency-in-nav { display: block; margin: 0.8rem 0 0.2rem; }
.currency select, .form input, .form select, .form textarea, .filters input, .filters select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 0.75rem 1rem;
}
.form textarea { border-radius: 1rem; }
.hero {
  position: relative;
  min-height: calc(100svh - var(--chrome));
  display: flex;
  align-items: flex-end;
  background: var(--emerald-deep);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.hero-photo picture,
.hero-photo .hero-img,
.hero-photo img {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
  pointer-events: none;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  background: linear-gradient(to top, rgba(11, 33, 27, 0.92) 0%, rgba(11, 33, 27, 0.35) 48%, rgba(11, 33, 27, 0.12) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.25rem calc(2.8rem + var(--safe-bottom));
  max-width: 44rem;
}
.hero h1, .page-intro h1, .prose h1, .product h1, .desk h1, .band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 10vw, 5.4rem);
  line-height: 0.95;
  margin: 0.2rem 0 0.8rem;
}
.lede { font-size: 1.05rem; max-width: 38rem; }
.kicker { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.72rem; color: var(--gold-deep); margin: 0 0 0.35rem; }
.hero .kicker { color: var(--gold); }
.actions, .section-head { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.25rem; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; background: transparent;
}
.btn-gold { background: var(--gold); color: var(--emerald-deep); }
.btn-line { border-color: currentColor; }
.hero .btn-line { color: var(--ivory); border-color: var(--gold); }
.section { padding: 2.75rem 1.25rem; }
.section-head { justify-content: space-between; margin-bottom: 1.1rem; }
.section-head a { color: var(--emerald); }
.collections, .grid { display: grid; gap: 1rem; }
.collection, .card, .band {
  display: block; text-decoration: none;
  border: 1px solid var(--line); padding: 1.3rem;
  background: white;
}
.collection h2, .card h3 { font-family: var(--serif); font-size: 2rem; font-weight: 500; margin: 0.2rem 0; }
.card h3 { font-size: 1.6rem; }
.media { background: var(--emerald); color: var(--gold); overflow: hidden; }
.media-dress, .media-couple { aspect-ratio: 3/4; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-dress img { object-position: center 18%; }
.media-couple img { object-position: center 42%; }
.plate { display: grid; place-items: end start; padding: 1rem; }
.plate span { font-family: var(--serif); font-size: 2rem; }
.price { margin: 0.2rem 0 0; }
.price-main { font-family: var(--serif); font-size: 1.7rem; }
.price-alts { display: flex; flex-wrap: wrap; gap: 0.7rem; color: var(--muted); font-size: 0.85rem; margin: 0.15rem 0; }
.price-note, .fine { color: var(--muted); font-size: 0.85rem; }
.trust { display: grid; gap: 1rem; padding: 1.7rem 1.25rem; background: var(--emerald); color: var(--ivory); }
.trust strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--gold); }
.trust span { color: #efe6d4; font-size: 0.92rem; }
.band { margin: 0 1.25rem 2rem; background: var(--emerald); color: var(--ivory); }
.band .kicker, .band h2 { color: var(--gold); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps strong { display: block; font-family: var(--serif); font-size: 1.5rem; }
.social { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.social a { font-family: var(--serif); font-size: 1.35rem; overflow-wrap: anywhere; }
.footer {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 1.25rem calc(6.5rem + var(--safe-bottom));
  background: var(--emerald-deep);
  color: #efe6d4;
}
.footer a { display: block; color: var(--gold); text-decoration: none; margin: 0.25rem 0; }
.footer-name { font-family: var(--serif); font-size: 2rem; margin: 0; color: white; }

.order-launch {
  position: fixed;
  z-index: 8;
  right: max(1rem, var(--safe-right));
  bottom: calc(1rem + var(--safe-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.05rem;
  padding: 0.45rem 1.2rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: #102E25;
  color: #DCBF83;
  border: 1px solid #DCBF83;
  box-shadow: 0 12px 32px rgba(16, 46, 37, 0.32), 0 0 0 1px rgba(220, 191, 131, 0.18);
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.order-launch.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.order-launch:hover, .order-launch:focus-visible {
  box-shadow: 0 16px 40px rgba(16, 46, 37, 0.4), 0 0 0 1px #DCBF83;
  outline: none;
}
.order-launch-mark {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  color: #DCBF83;
}
.order-launch-mark svg { width: 1.25rem; height: 1.25rem; display: block; }
.order-launch-label { color: #f7f3eb; padding-bottom: 0.05rem; }

.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem 1.25rem 2.5rem; }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
.product > * { min-width: 0; }
.gallery picture, .gallery img { width: 100%; height: 100%; object-fit: cover; }
.form { display: grid; gap: 0.7rem; margin-top: 1rem; padding-bottom: calc(1.2rem + var(--safe-bottom)); }
.product, .band { padding-bottom: calc(4.5rem + var(--safe-bottom)); }
.form label, .login label { display: grid; gap: 0.3rem; font-size: 0.85rem; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.prose { padding: 1.5rem 1.25rem 3rem; max-width: 42rem; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; }
.prose details { border-top: 1px solid var(--line); padding: 0.8rem 0; }
.prose summary { cursor: pointer; font-weight: 500; }

.chat[hidden] { display: none !important; }
.chat {
  position: fixed;
  z-index: 9;
  left: max(0.7rem, var(--safe-left));
  right: max(0.7rem, var(--safe-right));
  bottom: calc(1rem + var(--safe-bottom));
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid #DCBF83;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  max-height: min(72svh, 640px);
  box-shadow: 0 24px 70px rgba(16, 46, 37, 0.28);
  overflow: hidden;
}
.chat header, .chat form, .chat-suggest { padding: 0.75rem 0.9rem; }
.chat header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  background: #102E25;
  color: var(--ivory);
  border-bottom: 1px solid rgba(220, 191, 131, 0.45);
}
.chat header strong {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 4.2vw, 1.28rem);
  font-weight: 500;
  color: #DCBF83;
  letter-spacing: 0.02em;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}
.chat header > div {
  display: flex;
  gap: 0.28rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.chat header button {
  border: 1px solid rgba(220, 191, 131, 0.55);
  background: transparent;
  color: #f7f3eb;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.chat header button[aria-current="true"] {
  background: #DCBF83;
  color: #102E25;
  border-color: #DCBF83;
}
.chat-log { overflow: auto; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.55rem; min-height: 11rem; }
.bubble { max-width: 92%; padding: 0.7rem 0.85rem; border-radius: 1rem; white-space: pre-wrap; }
.bubble.assistant { background: white; border: 1px solid var(--line); }
.bubble.user { background: #102E25; color: var(--ivory); align-self: flex-end; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chat-suggest button, .filters button, .desk-bar button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.chat-suggest button:hover { border-color: #DCBF83; }
.chat form { display: flex; gap: 0.45rem; border-top: 1px solid var(--line); background: #fbf8f2; }
.chat form input { flex: 1; border: 0; background: transparent; outline: none; min-width: 0; }
.chat form button[type="submit"] {
  border: 0;
  background: #102E25;
  color: #DCBF83;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chat[dir="rtl"] { font-family: "Noto Naskh Arabic", var(--serif); }

.desk { background: var(--ivory); }
.desk-bar { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; padding: 0.8rem 1rem; background: var(--emerald); color: var(--ivory); }
.desk-bar a, .desk-bar button { color: var(--gold); background: transparent; border: 0; text-decoration: none; }
.desk-main { padding: 1rem 1rem 3rem; }
.banner, .error { background: #fff7e8; border: 1px solid var(--gold); padding: 0.8rem 1rem; }
.counts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.counts span { border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.8rem; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.table td, .table th { padding: 0.55rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.filters { display: grid; gap: 0.5rem; margin: 1rem 0; }
.login-body { min-height: 100svh; display: grid; place-items: center; background: var(--emerald); }
.login { width: min(420px, calc(100% - 2rem)); background: var(--ivory); padding: 1.5rem; display: grid; gap: 0.8rem; }
.login h1 { font-family: var(--serif); font-weight: 500; margin: 0; }
.check { display: flex; gap: 0.5rem; align-items: center; }

@media (max-width: 800px) {
  .table thead { display: none; }
  .table tr { display: block; border: 1px solid var(--line); margin-bottom: 0.8rem; padding: 0.4rem 0.6rem; background: white; }
  .table td { display: flex; justify-content: space-between; gap: 1rem; border: 0; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: 0.75rem; }
}
@media (min-width: 800px) {
  .nav-burger { display: none; }
  .nav { display: flex; gap: 1.15rem; margin-left: auto; align-items: center; }
  .nav a { border: 0; padding: 0; font-size: 0.92rem; }
  .currency-in-nav { display: none; }
  .currency-in-header { display: block; }
  .currency select { width: auto; border-radius: 999px; padding: 0.4rem 0.7rem; }
  .header { padding: 0.9rem 2rem; }
  .hero-copy, .section, .trust, .prose { padding-left: 3rem; padding-right: 3rem; }
  .hero-copy { padding-bottom: 3rem; max-width: 52rem; }
  .collections { grid-template-columns: 1.4fr 1fr 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .trust, .steps, .footer { grid-template-columns: repeat(4, 1fr); }
  .footer { padding: 3rem 3rem calc(3.5rem + var(--safe-bottom)); }
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem; align-items: start; padding: 2rem 3rem 4rem; }
  .band { margin: 0 3rem 2rem; }
  .chat {
    left: auto;
    right: max(1.5rem, var(--safe-right));
    width: 400px;
    bottom: calc(1.25rem + var(--safe-bottom));
  }
  .filters { grid-template-columns: 180px 1fr auto; }
  .collection, .card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .collection:hover, .card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(16, 46, 37, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .order-launch, .collection, .card { transition: none; }
}

.lang-switch { display: flex; gap: 0.2rem; align-items: center; }
.lang-switch a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.lang-switch a.is-active { background: var(--emerald); color: var(--gold); border-color: var(--emerald); }
.lang-in-header { margin-left: 0.4rem; }
.nav .lang-in-nav { margin: 0.8rem 0 0.4rem; }
@media (min-width: 800px) {
  .lang-in-nav { display: none; }
  .lang-in-header { display: flex; }
}
@media (max-width: 799px) {
  .lang-in-header { display: none; }
}

.chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: rgba(11, 33, 27, 0.46);
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  pointer-events: auto;
}
.chat-backdrop[hidden] { display: none !important; }
.chat-backdrop.is-open, .chat-backdrop:not([hidden]) { display: block; }
body.chat-open { overflow: hidden; }

.chat { z-index: 12; pointer-events: auto; }
.chat header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.45rem 0.6rem 0.5rem;
  flex-shrink: 0;
  overflow: visible;
}
.chat-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}
.chat-head-row .chat-close { margin-inline-start: 0; flex-shrink: 0; }
.chat-tools { display: flex; gap: 0.28rem; flex-wrap: wrap; flex-shrink: 0; }
.chat-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.7rem;
  flex-shrink: 0;
  z-index: 3;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(220, 191, 131, 0.35);
  pointer-events: auto;
  border: 1px solid #DCBF83;
  background: #DCBF83;
  color: #102E25;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.chat-close span[aria-hidden="true"] { font-size: 1.35rem; line-height: 1; font-weight: 500; }
.chat header button.chat-lang {
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.55rem;
  touch-action: manipulation;
}

.chat-catalog { display: grid; gap: 0.45rem; padding: 0.2rem 0 0.4rem; }
.chat-catalog h3 {
  margin: 0.45rem 0 0.1rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--emerald);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chat-pick {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 64px;
  text-align: start;
  border: 1px solid var(--line);
  background: white;
  border-radius: 0.85rem;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(220, 191, 131, 0.3);
  font: inherit;
  color: inherit;
}
.chat-pick img {
  width: 52px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
  background: var(--emerald);
}
.chat-pick span { display: grid; gap: 0.1rem; min-width: 0; }
.chat-pick strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.chat-pick em { font-style: normal; color: var(--muted); font-size: 0.85rem; }
.chat-chip, .chat-suggest button { min-height: 40px; touch-action: manipulation; }

html[dir="rtl"] body { font-family: "Noto Naskh Arabic", var(--sans); }
html[dir="rtl"] .lockup strong, html[dir="rtl"] .hero h1, html[dir="rtl"] .page-intro h1,
html[dir="rtl"] .product h1, html[dir="rtl"] .card h3, html[dir="rtl"] .collection h2,
html[dir="rtl"] .footer-name { font-family: "Noto Naskh Arabic", var(--serif); }
html[dir="rtl"] .lang-in-header { margin-left: 0; margin-right: 0.4rem; }
html[dir="rtl"] .chat-pick { text-align: start; }

.chat header button.chat-close {
  min-width: 44px; min-height: 44px; padding: 0 0.7rem;
  border: 1px solid #DCBF83; background: #DCBF83; color: #102E25;
  pointer-events: auto; z-index: 3;
}

/* ---- v4: language picker, currency, payments, tracking, measuring ---- */
html[lang^="fa"] body, html[lang^="ps"] body { font-family: Vazirmatn, "Noto Naskh Arabic", var(--sans); }
html[lang^="fa"] .hero h1, html[lang^="ps"] .hero h1, html[lang^="fa"] .page-intro h1, html[lang^="ps"] .page-intro h1,
html[lang^="fa"] .prose h1, html[lang^="ps"] .prose h1, html[lang^="fa"] .product h1, html[lang^="ps"] .product h1 { font-family: "Noto Naskh Arabic", Vazirmatn, var(--serif); }
.chat[lang^="fa"], .chat[lang^="ps"] { font-family: Vazirmatn, "Noto Naskh Arabic", var(--sans); }
.chat[lang="ar"] { font-family: "Noto Naskh Arabic", var(--sans); }
.chat[lang="en"] { font-family: var(--sans); }

.header-tools { display: flex; align-items: center; gap: 0.45rem; }
.header-tools .nav-burger { margin-inline-start: auto; margin-left: auto; }
html[dir="rtl"] .header-tools .nav-burger { margin-left: 0; margin-right: auto; }
.lang-pick { position: relative; }
.lang-pick summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem;
  border: 1px solid var(--emerald, #102E25); border-radius: 999px; padding: 0.38rem 0.75rem; min-height: 38px;
  font-size: 0.86rem; background: white; color: var(--emerald, #102E25); font-weight: 500;
}
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick .globe { width: 18px; height: 18px; }
.lang-pick .caret { width: 11px; height: 11px; opacity: 0.7; }
.lang-pick[open] summary { background: var(--emerald, #102E25); color: var(--gold, #C9A24B); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 20; min-width: 170px;
  background: white; border: 1px solid var(--line); border-radius: 14px; padding: 0.35rem;
  box-shadow: 0 18px 40px rgba(16, 46, 37, 0.16); display: grid;
}
.lang-menu a { text-decoration: none; padding: 0.65rem 0.8rem; border-radius: 10px; font-size: 1rem; }
.lang-menu a[lang^="fa"], .lang-menu a[lang^="ps"], .lang-menu a[lang="ar"], .lang-row a[lang^="fa"], .lang-row a[lang^="ps"], .lang-row a[lang="ar"] { font-family: Vazirmatn, "Noto Naskh Arabic", sans-serif; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(16, 46, 37, 0.07); }
.lang-menu a.is-active { background: var(--emerald, #102E25); color: var(--gold, #C9A24B); }
.lang-row { padding: 0.9rem 0 0.4rem; border-bottom: 1px solid var(--line); }
.lang-row-title { display: flex; gap: 0.4rem; align-items: center; margin: 0 0 0.5rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lang-row-title .globe { width: 16px; height: 16px; }
.lang-row div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
.lang-row a { text-align: center; border: 1px solid var(--line) !important; border-radius: 999px; padding: 0.55rem 0.3rem !important; font-size: 0.95rem; }
.lang-row a.is-active { background: var(--emerald, #102E25); color: var(--gold, #C9A24B); border-color: var(--emerald, #102E25) !important; }
.currency-in-header select { border: 1px solid var(--emerald, #102E25); color: var(--emerald, #102E25); font-weight: 500; min-height: 38px; padding: 0.35rem 0.7rem; border-radius: 999px; background: white; width: auto; max-width: 11.5rem; font-size: 0.86rem; }
.currency-title { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
@media (max-width: 799px) {
  :root { --chrome: calc(9.6rem + var(--safe-top)); }
  .header { flex-wrap: wrap; row-gap: 0.55rem; }
  .header .lockup { width: 100%; }
  .header-tools { width: 100%; }
  .currency-in-header { display: block; }
  .currency-in-nav { display: none; }
}
@media (min-width: 800px) {
  .lang-row { display: none; }
  .header-tools .nav-burger { display: none; }
  .header-tools { margin-inline-start: 0.6rem; }
}

.price { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; align-items: baseline; }
.price-alt { color: var(--muted); font-size: 0.92em; }
.deposit-line { font-size: 0.9rem; color: var(--emerald, #102E25); background: rgba(201, 162, 75, 0.12); border-radius: 12px; padding: 0.6rem 0.8rem; }
.badge { display: inline-block; background: #b3261e; color: white; font-family: var(--sans); font-size: 0.8rem; border-radius: 999px; padding: 0.15rem 0.6rem; vertical-align: middle; }

.pay-page h1 { margin-bottom: 0.4rem; }
.pay-summary { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; margin: 1rem 0; }
.pay-summary h2, .instalments h2, .pay-page > h2 { font-size: 1.1rem; margin: 0.2rem 0 0.6rem; }
.pay-lines { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.pay-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--line); }
.pay-figures { margin: 0; display: grid; gap: 0.3rem; }
.pay-figures div { display: flex; justify-content: space-between; gap: 1rem; }
.pay-figures dt { color: var(--muted); }
.pay-figures dd { margin: 0; font-weight: 500; }
.pay-figures .is-due { background: var(--emerald, #102E25); color: var(--ivory, #F7F3EB); border-radius: 12px; padding: 0.55rem 0.75rem; }
.pay-figures .is-due dt { color: inherit; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.5rem; margin: 0.6rem 0 1rem; }
.pay-btn { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid var(--emerald, #102E25); background: white; color: var(--emerald, #102E25); }
.pay-applepay, .pay-googlepay { background: #000; color: #fff; border-color: #000; }
.pay-card { background: var(--emerald, #102E25); color: var(--gold, #C9A24B); }
.pay-klarna, .pay-klarna_balance { background: #ffb3c7; color: #17120f; border-color: #ffb3c7; }
.pay-paypal, .pay-paypal_later { background: #ffc439; color: #003087; border-color: #ffc439; }
.pay-tabby { background: #3effc0; color: #121212; border-color: #3effc0; }
.pay-tamara { background: #f6e3d4; color: #1a1a1a; border-color: #e8c8ad; }
.pay-fallback, .pay-done { background: rgba(16, 46, 37, 0.06); border-radius: 16px; padding: 1rem 1.2rem; }
.instalments { border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; margin: 1rem 0; }
.pay-policy { font-size: 0.9rem; color: var(--muted); }

.track-form { max-width: 28rem; }
.track-miss { background: #fdf0ef; border-radius: 12px; padding: 0.8rem 1rem; }
.timeline { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0.55rem 0; padding-inline-start: 2rem; color: var(--muted); }
.timeline li .dot { position: absolute; inset-inline-start: 0.35rem; top: 0.85rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 2px solid var(--line); background: white; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0.76rem; top: 1.75rem; bottom: -0.85rem; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done .dot { background: var(--emerald, #102E25); border-color: var(--emerald, #102E25); }
.timeline li.is-current { color: var(--emerald, #102E25); font-weight: 600; }
.timeline li.is-current .dot { background: var(--gold, #C9A24B); border-color: var(--emerald, #102E25); box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.25); }

.measure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.measure figure { margin: 0; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 0.8rem; }
.measure figcaption { text-align: center; color: var(--muted); font-size: 0.9rem; }
.measure-svg { width: 100%; height: auto; }
.measure-svg .m-body { fill: rgba(16, 46, 37, 0.08); stroke: #102E25; stroke-width: 1.4; }
.measure-svg .m-line { fill: none; stroke: #C9A24B; stroke-width: 2.4; stroke-dasharray: 5 4; }
.measure-svg .m-badge { fill: #102E25; }
.measure-svg .m-num { fill: #C9A24B; font: 600 11px sans-serif; }
.measure-svg .m-label { fill: #102E25; font: 500 12px Vazirmatn, "Noto Naskh Arabic", sans-serif; }

.reviews .review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.review { margin: 0; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; }
.review cite { display: block; margin-top: 0.5rem; font-style: normal; color: var(--muted); font-size: 0.9rem; }

.chat .bubble-img { width: 96px; height: auto; border-radius: 10px; margin-bottom: 0.4rem; }
.chat .bubble > div { white-space: pre-line; }
.chat .chat-pay { display: flex; justify-content: center; margin-top: 0.7rem; min-height: 48px; align-items: center; font-weight: 600; text-decoration: none; }
.chat .chat-chip-primary { background: var(--emerald, #102E25) !important; color: var(--gold, #C9A24B) !important; border-color: var(--emerald, #102E25) !important; }
.chat .chat-chip-link { text-decoration: none; display: inline-flex; align-items: center; }
.chat .chat-foot { margin: 0; padding: 0.35rem 0.9rem calc(0.45rem + var(--safe-bottom)); font-size: 0.75rem; color: var(--muted); text-align: center; }
.chat .chat-foot a { color: inherit; }
.chat .typing { opacity: 0.6; }
.chat-suggest a.chat-chip { border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.8rem; background: white; font-size: 0.86rem; min-height: 40px; }

/* ---------- v5: size guide ---------- */
body.bare { background: var(--ivory); }
body.bare main { padding: 0; }
.size-guide { max-width: 64rem; }
.size-guide.is-embed { padding: 0.9rem 1rem 2rem; }
.size-guide.is-embed h1 { font-size: 1.7rem; margin-top: 0.2rem; }
.back-to-order { margin: 0 0 1rem; }
.back-to-order .btn { width: 100%; justify-content: center; }
.back-bottom { margin-top: 2rem; }
.m-jump { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 1.2rem; }
.m-jump a { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.85rem; text-decoration: none; background: white; }
.m-tips { background: #fff; border: 1px solid #DCBF83; border-radius: 16px; padding: 0.9rem 1.1rem; margin: 1rem 0 1.5rem; }
.m-tips h2 { margin-top: 0; font-size: 1.2rem; }
.m-tips ul { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: 0.3rem; }
.m-section { margin: 2rem 0; scroll-margin-top: 10rem; }
.size-guide.is-embed .m-section { scroll-margin-top: 0.5rem; }
.m-grid { display: grid; gap: 1rem; }
.m-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0.6rem; align-self: start; }
@media (min-width: 760px) { .m-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } .m-grid figure { position: sticky; top: 8rem; } }
.measure-svg { width: 100%; height: auto; max-height: 560px; display: block; margin: 0 auto; }
.measure-svg .m-dress { fill: #1c4a3b; stroke: #0b211b; stroke-width: 1.2; }
.measure-svg .m-sleeve { fill: #23584a; stroke: #0b211b; stroke-width: 1.2; }
.measure-svg .m-shirt { fill: #efe7d6; stroke: #5c564e; stroke-width: 1.2; }
.measure-svg .m-vest { fill: #1c4a3b; stroke: #0b211b; stroke-width: 1.2; }
.measure-svg .m-trouser { fill: #e6dcc6; stroke: #5c564e; stroke-width: 1.2; }
.measure-svg .m-skin { fill: #e9c9a6; stroke: #a9825e; stroke-width: 1; }
.measure-svg .m-embroidery { fill: none; stroke: #dcbf83; stroke-width: 2; }
.measure-svg .m-line { fill: none; stroke: #c9a24b; stroke-width: 2.6; stroke-linecap: round; }
.measure-svg .m-dash { stroke-dasharray: 6 5; }
.measure-svg .m-pin circle { fill: #c9a24b; stroke: #0b211b; stroke-width: 1.2; }
.measure-svg .m-pin text { fill: #0b211b; font: 700 11px Vazirmatn, Outfit, sans-serif; }
.m-legend { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.55rem; }
.m-legend li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.6rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.6rem 0.75rem; }
.m-legend .m-n { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #c9a24b; color: #0b211b; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.m-legend strong { display: block; }
.m-legend p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.unit-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 0.4rem 0 0.8rem; background: #fff; }
.unit-toggle button, .unit-toggle label { border: 0; background: transparent; padding: 0.45rem 0.95rem; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; }
.unit-toggle button[aria-pressed="true"], .unit-toggle label:has(input:checked) { background: var(--emerald); color: #f7f3eb; }
.unit-toggle label { position: relative; }
.unit-toggle label input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; inset: 0; margin: 0; }
.size-table-wrap { overflow-x: auto; margin: 0 0 1.2rem; -webkit-overflow-scrolling: touch; }
.size-table { border-collapse: collapse; width: 100%; min-width: 30rem; background: #fff; font-size: 0.92rem; }
.size-table caption { text-align: start; font-weight: 600; padding: 0.4rem 0; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 0.45rem 0.5rem; text-align: center; }
.size-table th[scope="row"] { text-align: start; font-weight: 500; white-space: nowrap; }
.size-table thead th { background: var(--emerald); color: #f7f3eb; }

/* ---------- v5: product-page measurement fields ---------- */
.m-form { border: 1px solid var(--line); border-radius: 16px; padding: 0.8rem 0.9rem; margin: 0.4rem 0; background: #fff; display: grid; gap: 0.6rem; }
.m-form legend { padding: 0 0.3rem; font-weight: 600; }
.m-mode { display: grid; gap: 0.35rem; }
.m-mode label { display: flex; gap: 0.5rem; align-items: center; font-weight: 400; }
.m-sub { margin: 0.4rem 0 0; font-weight: 600; font-size: 0.92rem; }
.m-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.5rem; }
.m-field span { font-size: 0.82rem; line-height: 1.3; display: block; min-height: 2.1em; }
.m-field b { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #c9a24b; color: #0b211b; font-size: 0.7rem; }
.m-field input { width: 100%; }
[data-fit-panel][hidden] { display: none !important; }

/* ---------- v5: chat ---------- */
.chat-restart { margin-inline-start: auto; background: transparent; border: 1px solid rgba(220, 191, 131, 0.5); color: #dcbf83; border-radius: 999px; padding: 0.3rem 0.65rem; font: inherit; font-size: 0.78rem; cursor: pointer; white-space: nowrap; }
.chat-head-row { gap: 0.4rem; }
.chat .typing { opacity: 1; display: inline-flex; gap: 0.25rem; align-items: center; min-height: 1.6rem; width: auto; }
.chat .typing span { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: #8d6b32; animation: az-dot 1s infinite ease-in-out; }
.chat .typing span:nth-child(2) { animation-delay: 0.15s; }
.chat .typing span:nth-child(3) { animation-delay: 0.3s; }
.chat .typing[data-slow]::after { content: attr(data-slow); font-size: 0.8rem; color: var(--muted); margin-inline-start: 0.4rem; }
@keyframes az-dot { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
.chat-suggest[hidden] { display: none !important; }
.chat-suggest { max-height: 9.5rem; overflow-y: auto; }
.chat-sheet { position: absolute; inset: 0; background: var(--ivory); z-index: 5; display: flex; flex-direction: column; border-radius: inherit; overflow: hidden; }
.chat-sheet-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.7rem; background: var(--emerald); color: #f7f3eb; }
.chat-sheet-bar strong { font-weight: 500; }
.chat-sheet-back { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.chat-sheet iframe { flex: 1; width: 100%; border: 0; background: var(--ivory); }
.chat { position: fixed; }
.chat bdi { unicode-bidi: isolate; }
@media (max-width: 799px) {
  .chat { max-height: min(86svh, 760px); top: auto; }
  .chat.kb-open .chat-foot, .chat.kb-open .chat-tools { display: none; }
  .chat.kb-open .chat-suggest { max-height: 5.2rem; }
  .chat form input { font-size: 16px; }
}
@media (min-width: 800px) { .chat { max-height: min(80vh, 720px); } .chat-sheet { position: absolute; } }
.chat.has-sheet { height: min(86svh, 760px); }
@media (min-width: 800px) { .chat.has-sheet { height: min(80vh, 720px); } }
.m-mode label { display: flex !important; flex-direction: row; align-items: center; justify-content: flex-start; gap: 0.6rem; text-align: start; }
.m-mode label input { width: auto !important; flex: none; margin: 0; min-height: 0; }
.m-mode label span { flex: 1; }
/* Arabic script must never be letter-spaced: it breaks the joins between letters. */
html[dir="rtl"] *, [dir="rtl"] *, .chat[dir="rtl"] * { letter-spacing: 0 !important; }
@media (max-width: 520px) {
  .size-table { min-width: 0; font-size: 0.8rem; }
  .size-table th, .size-table td { padding: 0.4rem 0.25rem; }
  .size-table th[scope="row"] { white-space: normal; min-width: 5.5rem; }
}
