[hidden] { display: none !important; }
:root {
  --deep: #341625;
  --burgundy: #4a2136;
  --gold: #c9a46b;
  --gold-soft: rgba(201, 164, 107, 0.72);
  --beige: #f3ead9;
  --paper: #fbf7ef;
  --ink: #241b1d;
  --muted: #7b6e62;
  --stone: #958678;
  --line: rgba(36, 27, 29, 0.14);
  --header: 92px;
  --display: "IBM Plex Sans Arabic", sans-serif;
  --sans: "Noto Sans Arabic", sans-serif;
  --shadow: 0 18px 40px rgba(52, 22, 37, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}
.wrap-wide {
  width: min(1280px, calc(100% - 160px));
  margin-inline: auto;
}

h1, h2, h3, .logo-ar, .display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.rule {
  width: min(520px, 86%);
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(201, 164, 107, 0), var(--gold) 50%, rgba(201, 164, 107, 0));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border: 0;
  background: var(--gold);
  color: var(--deep);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  border-radius: 8px;
}
.btn:hover { background: #d4b27a; }
.btn-block {
  width: 100%;
  border-radius: 0;
  min-height: 40px;
  padding: 9px 12px;
  font-size: 13px;
}
.btn-line {
  background: transparent;
  color: var(--beige);
  border: 1px solid var(--beige);
  border-radius: 0;
}
.btn-line:hover { background: rgba(251, 247, 239, 0.12); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: rgba(201, 164, 107, 0.45);
  cursor: not-allowed;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: var(--deep);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(80px, calc((100% - 1280px) / 2));
  direction: ltr;
}
.header-tools, .nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  line-height: 22px;
}
.header-tools { justify-self: start; }
.nav { justify-self: end; direction: rtl; gap: 32px; }
.header a:hover, .menu-btn:hover { color: var(--gold); }
.tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--deep);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.count[hidden] { display: none; }
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gold);
  line-height: 1;
}
.logo-ar { font-size: 34px; line-height: 1; letter-spacing: 0; }
.logo-en {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.42em;
  color: var(--gold-soft);
  padding-inline-start: 0.42em;
}
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--paper);
  justify-self: end;
}
.menu-btn span, .menu-btn span:before, .menu-btn span:after {
  display: block;
  height: 1.5px;
  width: 18px;
  background: currentColor;
  position: relative;
}
.menu-btn span:before, .menu-btn span:after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span:before { top: -6px; }
.menu-btn span:after { top: 6px; }
.back-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--paper);
  place-items: center;
}
.tool-group { display: contents; }
.tool-ico { display: none; }
.footer-toggle {
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.nav a.is-active { color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  min-height: 546px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 120px 80px;
  color: var(--beige);
  text-align: center;
  overflow: hidden;
}
.hero-bg, .banner-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img, .banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(52, 22, 37, 0.4);
}
.hero > *:not(.hero-bg), .banner > *:not(.banner-bg) { position: relative; z-index: 1; }
.kicker {
  margin: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.hero h1 { font-size: 64px; color: var(--beige); }
.lede {
  margin: 0;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.8;
}

/* Categories */
.band {
  background: var(--beige);
  padding: 96px 0 100px;
}
.band-paper { background: var(--paper); }
.band h2, .section-title {
  text-align: center;
  color: var(--burgundy);
  font-size: 32px;
  margin-bottom: 44px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  direction: ltr;
}
.tile {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 52px 20px;
  direction: rtl;
  transition: background 0.2s ease;
}
.tile:hover { background: #fff; }
.tile img {
  width: min(280px, 100%);
  height: 165px;
  object-fit: cover;
  border-radius: 8px;
}
.tile .gold-line, .look .gold-line {
  width: 100%;
  height: 1px;
  background: var(--gold);
}
.tile span { font-size: 18px; font-weight: 500; }

/* Products */
.product-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  direction: ltr;
}
.product-row--scroll {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  padding-bottom: 6px;
}
.scroller-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 44px;
}
.scroller-head h2 { margin: 0; }
.scroll-nav {
  position: absolute;
  left: 0;
  display: flex;
  gap: 8px;
  direction: ltr;
}
.scroll-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(243, 234, 217, 0.35);
  background: transparent;
  color: var(--beige);
  font-size: 18px;
}
.scroll-nav button:hover { border-color: var(--gold); color: var(--gold); }

.card {
  width: 300px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  direction: rtl;
  scroll-snap-align: start;
  flex: 0 0 300px;
}
.card-visual {
  position: relative;
  height: 392px;
  background: var(--beige);
  overflow: hidden;
}
.card-visual img.photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-visual img.photo.cover { object-fit: cover; }
.badge, .fav {
  position: absolute;
  top: 16px;
  z-index: 2;
}
.badge {
  left: 16px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(251, 247, 239, 0.94);
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 700;
}
.badge.sale { background: rgba(74, 33, 54, 0.94); color: var(--beige); }
.best-flag {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 16px;
  width: 48px;
  height: 220px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--deep);
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  text-orientation: sideways;
  transform: rotate(180deg);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
}
.fav {
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 247, 239, 0.92);
  color: var(--burgundy);
  font-size: 16px;
  line-height: 1;
}
.fav.is-on { color: var(--deep); }
.card-body {
  padding: 22px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.card-body h3 { font-family: var(--sans); font-weight: 500; font-size: 18px; line-height: 28px; }
.card-body h3 a:hover { color: var(--burgundy); }
.price-line { display: flex; align-items: baseline; gap: 10px; }
.price { color: var(--burgundy); font-weight: 700; font-size: 15px; }
.was { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.meta { margin: 0; color: var(--muted); font-size: 12px; line-height: 19px; }
.stock { margin: 0; color: var(--burgundy); font-size: 12px; line-height: 19px; }
.swatches { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.swatch.is-selected { outline: 1px solid var(--gold); outline-offset: 2px; }
.card .btn { margin-top: auto; }

.illus {
  height: 100%;
  background: #f3ead9;
  position: relative;
  display: grid;
  place-items: center;
}
.illus .rail {
  position: absolute;
  top: 58px;
  width: 160px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
}
.illus .trim {
  position: absolute;
  top: 90px;
  height: 218px;
  width: 6px;
  background: var(--gold);
}
.illus img { position: relative; z-index: 1; margin-top: 28px; }

.best {
  background: var(--deep);
  padding: 96px 0 100px;
  color: var(--beige);
}
.best .section-title, .best h2 { color: var(--beige); font-size: 30px; }

/* Banner */
.banner {
  position: relative;
  min-height: 458px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 110px 80px;
  text-align: center;
  color: var(--beige);
  overflow: hidden;
}
.banner-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(52, 22, 37, 0.15) 0%, rgba(52, 22, 37, 0.45) 55%, rgba(52, 22, 37, 0.8) 100%);
}
.banner h2 { font-size: 38px; color: var(--beige); }
.banner p { margin: 0; max-width: 560px; font-size: 17px; }

/* Looks */
.looks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  direction: ltr;
}
.look {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  direction: rtl;
}
.look img { width: 100%; height: 320px; object-fit: cover; }
.look span { font-size: 16px; }
.look:hover span { color: var(--burgundy); }

/* Story */
.story {
  background: var(--paper);
  text-align: center;
  padding: 110px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.story .word { font-size: 64px; color: var(--burgundy); }
.story .def { margin: 0; color: var(--muted); font-size: 15px; }
.diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  margin: 4px 0;
}
.story .body {
  margin: 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.9;
}

/* Trust */
.trust {
  background: var(--beige);
  border-top: 1px solid var(--line);
  min-height: 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 28px max(80px, calc((100% - 1280px) / 2));
  direction: ltr;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  direction: rtl;
  font-size: 13px;
}
.trust-item img { width: 24px; height: 24px; }

/* Newsletter */
.news {
  background: var(--deep);
  color: var(--beige);
  text-align: center;
  padding: 110px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news h2 { font-size: 30px; color: var(--beige); margin-top: 32px; }
.news p { margin: 14px 0 32px; font-size: 16px; }
.email-field {
  width: min(420px, 100%);
  border: 1px solid var(--gold);
  display: flex;
  align-items: stretch;
  background: transparent;
}
.email-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--beige);
  padding: 12px 16px;
  font-size: 15px;
  text-align: right;
}
.email-field input::placeholder { color: rgba(243, 234, 217, 0.72); }
.email-field button {
  border: 1px solid rgba(243, 234, 217, 0.7);
  background: var(--gold);
  color: var(--deep);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
}
.form-note { min-height: 1.4em; margin: 12px 0 0; font-size: 13px; color: var(--gold); }

/* Footer */
.footer {
  background: var(--deep);
  color: var(--beige);
  padding: 64px max(80px, calc((100% - 1280px) / 2)) 32px;
}
.footer-grid {
  border-top: 1px solid rgba(201, 164, 107, 0.15);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 24px 0 8px;
  direction: ltr;
  text-align: center;
}
.footer-col { direction: rtl; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer-col a { font-size: 13px; }
.footer-col a:hover { color: var(--gold); }
.brand-lock {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
}
.brand-lock .logo-ar { font-size: 24px; }
.brand-lock .logo-en {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gold);
  margin: 0;
  padding: 0;
}
.footer-about { width: 220px; margin: 0; font-size: 13px; text-align: center; }
.social { display: flex; gap: 12px; }
.social a { display: grid; place-items: center; }
.social img { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(201, 164, 107, 0.12);
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  direction: ltr;
  color: var(--stone);
  font-size: 12px;
}
.footer-bottom p { margin: 0; }

/* Inner pages */
.page {
  background: var(--paper);
  padding: 48px 0 96px;
  min-height: 60vh;
}
.crumb { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.crumb a:hover { color: var(--burgundy); }
.page-title { font-size: 40px; color: var(--burgundy); text-align: center; }
.page-kicker { text-align: center; color: var(--muted); margin: 10px 0 36px; }
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
}
.chip.is-on, .chip:hover { border-color: var(--gold); color: var(--burgundy); background: #fff; }
.catalog {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  direction: ltr;
}
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
}
.gallery {
  background: var(--beige);
  border-radius: 8px;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.gallery img.photo { width: 100%; height: 640px; object-fit: contain; }
.gallery img.photo.cover { object-fit: cover; }
.detail h1 { font-family: var(--sans); font-weight: 500; font-size: 32px; color: var(--ink); }
.detail .price { font-size: 22px; }
.detail .fabric { color: var(--muted); margin: 8px 0 18px; font-size: 14px; }
.detail .desc { margin: 0 0 22px; font-size: 16px; }
.choice-label { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 46px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.size.is-on { background: var(--deep); color: var(--beige); border-color: var(--deep); }
.detail .swatches { justify-content: flex-start; }
.detail-actions { display: flex; gap: 12px; margin-top: 28px; }
.detail-actions .btn { flex: 1; border-radius: 8px; min-height: 48px; }
.ghost {
  background: transparent;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  border-radius: 8px;
}
.related { margin-top: 72px; }
.related h2 { text-align: center; color: var(--burgundy); font-size: 28px; margin-bottom: 28px; }

.cart-layout, .split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}
.line, .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  align-items: center;
}
.line img { width: 96px; height: 120px; object-fit: cover; background: var(--beige); }
.line h3 { font-family: var(--sans); font-size: 16px; font-weight: 500; }
.line p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.qty {
  display: inline-flex;
  border: 1px solid var(--line);
  margin-top: 8px;
}
.qty button, .qty span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 0;
}
.icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.panel { padding: 24px; }
.panel h2 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.sum-row, .sum-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  font-size: 14px;
}
.sum-total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; color: var(--burgundy); font-size: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.success {
  text-align: center;
  padding: 48px 16px;
}
.success h1 { color: var(--burgundy); font-size: 40px; margin-bottom: 12px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-family: var(--sans); font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }

/* Drawer + toast + menu */
.drawer-back, .menu-back {
  position: fixed;
  inset: 0;
  background: rgba(36, 27, 29, 0.45);
  z-index: 50;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--paper);
  z-index: 60;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer header, .drawer footer { padding: 20px; }
.drawer header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.drawer header h2 { font-family: var(--display); font-size: 28px; color: var(--burgundy); }
.drawer .body { flex: 1; overflow: auto; padding: 12px 20px 20px; }
.drawer footer { border-top: 1px solid var(--line); }
.close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--ink);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep);
  color: var(--beige);
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 70;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.menu-panel {
  position: fixed;
  inset: var(--header) 0 0 0;
  background: var(--deep);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 22px;
}
.menu-panel a { color: var(--beige); font-family: var(--display); }

@media (max-width: 1100px) {
  .header, .footer, .trust { padding-left: 24px; padding-right: 24px; }
  .wrap-wide { width: min(1280px, calc(100% - 48px)); }
  .hero, .banner { padding-left: 24px; padding-right: 24px; }
  .nav { gap: 18px; }
  .header-tools { gap: 16px; }
  .tiles, .looks, .trust, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .trust { gap: 18px 8px; padding-top: 22px; padding-bottom: 22px; }
  .catalog, .catalog.rtl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    direction: rtl;
    justify-content: stretch;
  }
  .catalog .card { width: 100%; }
  .contact-grid, .form-grid, .mini-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 900px) {
  :root { --header: 64px; }
  .menu-btn { display: grid; place-items: center; }
  .nav, .tool-extra, .logo-en { display: none; }
  .header { display: flex; align-items: center; padding-inline: 8px; }
  .header-tools { width: 100%; justify-content: space-between; }
  .tool-group { display: flex; align-items: center; gap: 4px; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .logo-ar { font-size: 28px; }
  .tool-label { display: none; }
  .tool-ico { display: block; }
  .tool-fav, .tool-cart { color: var(--paper); }
  body:not([data-page="home"]) .menu-btn { display: none; }
  body:not([data-page="home"]) .back-btn { display: grid; }
  .cart-layout, .account-layout, .split { grid-template-columns: 1fr; }
  .hero h1, .story .word { font-size: 40px; }
  .hero { min-height: 460px; padding-top: 64px; padding-bottom: 64px; }
  .tiles, .looks { grid-template-columns: 1fr 1fr; gap: 16px; }
  .look img { height: 200px; }
  .side nav { display: flex; gap: 8px; overflow-x: auto; }
  .side a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; }
}
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 40px; color: var(--burgundy); }
.page-head p { color: var(--muted); margin: 8px 0 0; }
.section-label { color: var(--muted); margin: 0 0 14px; }
.filter-bar, .panel, .note-card, .help-banner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.filter-bar { padding: 18px 20px 8px; margin-bottom: 28px; }
.filter-top, .order-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.filter-top select, .search-bar input, .phone-row input {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
}
.filter-bar .filters { justify-content: flex-start; margin-bottom: 12px; }
.catalog.rtl-grid { direction: rtl; justify-content: flex-start; }
.note-card { padding: 18px 20px; margin-top: 16px; }
.note-card p { margin: 8px 0; color: var(--muted); font-size: 14px; }
.panel .btn-block, .panel .ghost { border-radius: 8px; min-height: 48px; margin-top: 10px; }
.eyebrow { color: var(--gold); margin: 0 0 8px; font-size: 14px; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.buy-row .btn { flex: 1; border-radius: 8px; }
.accordion details { border-top: 1px solid var(--line); padding: 12px 0; }
.accordion summary { cursor: pointer; font-weight: 700; }
.accordion p { color: var(--muted); margin: 8px 0 0; }
.steps, .track, .tabs {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.steps li, .tabs a, .track li {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}
.steps li.is-on, .tabs a.is-on, .track li.is-on {
  background: var(--deep);
  color: var(--beige);
  border-color: var(--deep);
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.choice {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--paper);
}
.choice.is-on { border-color: var(--gold); background: #fff; }
.choice input { accent-color: var(--deep); }
.narrow { width: min(860px, calc(100% - 40px)); }
.center-card { text-align: center; padding: 48px 24px; }
.check {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--beige);
  color: var(--burgundy);
  font-size: 32px;
}
.help-banner {
  margin-top: 28px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--deep);
  color: var(--beige);
  border: 0;
}
.help-banner p { margin: 4px 0 0; color: var(--gold-soft); }
.help-banner .btn { background: var(--gold); color: var(--deep); }
.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 18px;
}
.side-hello { margin: 0; font-weight: 700; }
.side-mail { margin: 4px 0 16px; color: var(--muted); font-size: 14px; }
.side nav { display: flex; flex-direction: column; }
.side a { padding: 12px 10px; border-radius: 10px; }
.side a.is-on { background: var(--beige); }
.stats, .mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-grid { grid-template-columns: 1fr 1fr; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}
.stat strong { display: block; font-size: 28px; color: var(--burgundy); }
.order-row, .order-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.order-card .btn { width: auto; margin-top: 8px; }
.auth { min-height: 62vh; display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); text-align: center; padding: 36px 28px; }
.auth-card .logo-ar { color: var(--gold); font-size: 36px; }
.auth-card h1 { font-family: var(--sans); font-size: 26px; margin: 8px 0; }
.phone-row, .otp { display: flex; gap: 8px; align-items: center; }
.phone-row { border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: var(--paper); }
.phone-row input { border: 0; background: transparent; width: 100%; padding: 12px; }
.otp { justify-content: center; margin: 18px 0; }
.otp input {
  width: 52px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.search-bar { margin-bottom: 18px; }
.search-bar input { width: 100%; min-height: 52px; border-radius: 12px; padding-inline: 16px; }
.gallery .fav { right: 16px; }

@media (max-width: 760px) {
  .wrap, .narrow { width: min(1280px, calc(100% - 32px)); }
  .hero { min-height: 420px; padding: 88px 20px 48px; gap: 16px; }
  .hero h1 { font-size: 32px; }
  .lede, .kicker { font-size: 14px; }
  .band { padding: 36px 0 40px; }
  .band h2, .best h2, .related h2 { font-size: 22px; }
  .product-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    direction: rtl;
  }
  .product-row .card { flex: 0 0 82%; width: 82%; scroll-snap-align: start; }
  .scroll-nav { display: none; }
  .card-visual { height: 230px; }
  .card .meta, .card .stock, .card .swatches { display: none; }
  .card-body { padding: 12px 10px 12px; }
  .card-body h3 { font-size: 15px; line-height: 1.45; }
  .best-flag { width: 32px; height: 132px; font-size: 11px; top: 12px; left: 8px; }
  .page { padding: 20px 0 48px; }
  .page-head { margin-bottom: 16px; }
  .page-head h1, .page-title { font-size: 28px; }
  .filters, .filter-bar .filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-bottom: 16px;
  }
  .chip { flex: 0 0 auto; }
  .filter-top { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .filter-top strong { grid-column: 1 / -1; }
  .price-line { flex-wrap: wrap; }
  .card .price, .card .was { font-size: 13px; }
  .gallery { min-height: 0; border-radius: 0; }
  .gallery img.photo { height: 340px; }
  .product-layout { grid-template-columns: 1fr; gap: 18px; }
  body[data-page="product"] .buy-row {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 35;
    margin: 0;
    background: #fff;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
  }
  body[data-page="product"] .page { padding-bottom: 92px; }
  .line { grid-template-columns: 88px 1fr auto; }
  .line .line-side { grid-column: auto; text-align: start; }
  .steps, .track, .tabs { flex-direction: row; overflow-x: auto; }
  .steps li, .track li, .tabs a { flex: 0 0 auto; font-size: 13px; }
  .help-banner, .order-row, .order-meta { flex-direction: column; align-items: flex-start; display: flex; }
  .order-meta, .order-row { display: grid; grid-template-columns: 1fr 1fr; }
  .footer { padding: 28px 20px 20px; }
  .footer-grid { display: flex; flex-direction: column; gap: 0; direction: rtl; text-align: start; }
  .footer-col { align-items: stretch; border-bottom: 1px solid rgba(201, 164, 107, 0.2); padding: 4px 0; }
  .footer-col.brand { order: -1; border: 0; align-items: center; padding-bottom: 12px; }
  .footer-toggle {
    pointer-events: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 46px;
    cursor: pointer;
  }
  .footer-toggle:after { content: "‹"; color: var(--gold); }
  .footer-col.is-open .footer-toggle:after { content: "›"; }
  .footer-links { display: none; align-items: flex-start; padding-bottom: 12px; }
  .footer-col.is-open .footer-links { display: flex; }
  .auth { min-height: 48vh; }
  .auth-card { padding: 28px 16px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ── Responsive fixes (TKWN review) ─────────────────────────── */
.stack, .cart-layout > *, .account-layout > *, .split > * { min-width: 0; }
@media (max-width: 900px) {
  .cart-layout, .account-layout, .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding-inline: 8px; }
  .tabs, .steps, .track { max-width: 100%; }
}

/* ── Design refinements (TKWN review) ───────────────────────── */
.best-flag {
  writing-mode: horizontal-tb; transform: none; text-orientation: mixed;
  width: auto; height: auto; top: 14px; left: 14px;
  padding: 5px 12px; font-size: 12px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 2px 8px rgba(52, 22, 37, 0.15);
}
.card-sizes { gap: 6px; margin: 10px 0 12px; }
.card-sizes .size { min-width: 34px; height: 30px; padding: 0 8px; font-size: 12px; border-radius: 6px; cursor: pointer; }
.card-sizes.is-need .size { border-color: var(--gold); animation: amad-nudge .4s ease 2; }
@keyframes amad-nudge { 50% { transform: translateY(-2px); } }
.story { padding: 72px 24px; }
.news { padding: 80px 24px 48px; }
.news h2 { margin-top: 20px; }
.news .form-note:empty { display: none; }
.footer { padding-top: 40px; }
@media (max-width: 760px) {
  .best-flag { width: auto; height: auto; top: 10px; left: 10px; padding: 4px 10px; font-size: 11px; }
  .card .card-sizes { display: none; }
  .story { padding: 56px 20px; }
  .news { padding: 56px 20px 36px; }
}
