/* =========================================================
   OneFitOnly — Saudi clothing house
   Flag green + white · no black surfaces
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #f3faf6;
  --card: #ffffff;
  --card-2: #eaf6ef;
  --text: #0f5c32;
  --muted: #2e7a52;
  --faint: #3d8a5e;
  --gold-a: #006c35;
  --gold-b: #14914c;
  --gold: #006c35;
  --line: #c8e6d4;
  --hot: #1a9a55;
  --new: #006c35;
  --danger: #c44536;
  --white: #ffffff;
  --radius: 16px;
  --header-h: auto;
  --topbar-h: 40px;
  --space: 8px;
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 280ms var(--ease);
  --shadow: 0 18px 40px rgba(0, 108, 53, 0.12);
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: Inter, system-ui, sans-serif;
  --arabic: Cairo, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  scroll-padding-top: 120px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
}
body.is-locked { overflow: hidden; }

html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: var(--arabic);
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
ul { list-style: none; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 100;
  background: var(--gold);
  color: var(--white);
  padding: 8px 16px;
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

.gold-text { color: var(--white); }

#home, #shop, #bestsellers, #about, #contact, #promo {
  scroll-margin-top: 128px;
}

/* ---------- Top bar ---------- */
.topbar {
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--gold);
  font-size: 12px;
  color: var(--white);
}
.topbar-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.topbar-loc { display: flex; align-items: center; gap: 8px; }
.topbar-ship { color: var(--white); letter-spacing: 0.04em; text-align: center; }
.topbar-tools { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.icon-sm { width: 14px; height: 14px; fill: var(--white); }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-btn { color: rgba(255, 255, 255, 0.72); letter-spacing: 0.08em; font-size: 12px; font-weight: 600; }
.lang-btn.is-active, .lang-btn:hover { color: var(--white); }
.lang-div { color: rgba(255, 255, 255, 0.45); }
.currency {
  background: transparent;
  border: 0;
  color: var(--white);
  appearance: none;
  padding-inline-end: 8px;
}
.currency option { color: var(--text); background: var(--white); }

/* ---------- Header / brand ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t), border-color var(--t);
}
.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 28px rgba(0, 108, 53, 0.1);
}

.header-mast {
  position: relative;
}
.header-mast-inner {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 96px;
  padding: 10px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: center;
  min-width: 0;
}
.brand-seal {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 108, 53, 0.18));
  transition: transform var(--t), width var(--t), height var(--t);
}
.brand:hover .brand-seal,
.brand:focus-visible .brand-seal {
  transform: rotate(-6deg) scale(1.04);
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.brand-kicker {
  font-size: 10px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
}
.brand-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 0.95;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gold);
  margin: 8px 0 6px;
  opacity: 0.55;
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
html[dir="rtl"] .add-btn { right: auto; left: 12px; }
html[dir="rtl"] .product-body { padding: 16px 16px 16px 52px; }
html[dir="rtl"] .brand-lockup { align-items: flex-end; }

.brand-on-green {
  display: inline-flex;
  background: var(--white);
  border-radius: 18px;
  padding: 8px 18px 8px 8px;
  margin-bottom: 8px;
  justify-self: start;
}
.brand-on-green .brand-seal { width: 56px; height: 56px; filter: none; }
.brand-on-green .brand-name { font-size: 20px; letter-spacing: 0.1em; }
.brand-on-green .brand-kicker { font-size: 9px; }
.brand-sm { gap: 10px; }
.brand-sm .brand-seal { width: 42px; height: 42px; filter: none; }
.brand-sm .brand-name { font-size: 16px; letter-spacing: 0.1em; }

.nav {
  display: none;
}
.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  min-height: 48px;
}
.nav a {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 12px 0;
  position: relative;
}
.nav a:hover, .nav a.is-active, .nav a:focus-visible { color: var(--gold); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-a), var(--gold-b));
}

.header-actions {
  display: flex;
  gap: 4px;
  justify-self: end;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  color: var(--gold);
  position: relative;
  transition: background var(--t), color var(--t);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover, .icon-btn:focus-visible { background: var(--card-2); color: var(--gold); }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-a), var(--gold-b));
  color: var(--white); font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.cart-count[hidden] { display: none !important; }

.hamburger {
  display: block;
  visibility: visible;
  pointer-events: auto;
  width: 40px;
  height: 40px;
  position: relative;
  justify-self: start;
  flex-shrink: 0;
}
.hamburger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--gold);
  transition: transform 280ms var(--ease), opacity 200ms ease;
}
.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 25px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 10px;
  font-family: var(--serif);
  font-size: 14px; letter-spacing: 0.06em;
  font-weight: 600;
  transition: transform var(--t), background var(--t), box-shadow var(--t), opacity var(--t), color var(--t);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-a), var(--gold-b));
  color: var(--white);
}
.btn-gold:hover { box-shadow: 0 8px 24px rgba(0, 108, 53, 0.28); }
.btn-outline {
  border: 1px solid var(--gold-a);
  color: var(--gold);
  background: var(--white);
}
.btn-outline:hover { background: var(--card-2); }
.btn-on-hero {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn-on-hero:hover { background: rgba(255, 255, 255, 0.16); }
.btn-full { width: 100%; }

.text-link { color: var(--gold); font-size: 14px; font-weight: 500; }
.text-link:hover { color: var(--gold-b); }
.linkish { color: inherit; font-size: 14px; opacity: 0.9; }
.linkish:hover { opacity: 1; }

.eyebrow {
  color: var(--gold);
  font-family: var(--serif);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 12px;
}

h1, h2, h3 {
  font-family: var(--serif);
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.12;
}

.hero .eyebrow,
.hero .gold-text { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--gold);
}
.hero-track { position: relative; min-height: 640px; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateX(32px);
  pointer-events: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  background-size: cover;
  background-position: center 30%;
}
.hero-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 108, 53, 0.88) 0%, rgba(0, 108, 53, 0.48) 52%, rgba(0, 108, 53, 0.72) 100%);
}
.hero-grid {
  position: relative; z-index: 2;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 24px;
  padding: 64px 0 80px;
}
.hero h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 16px; color: var(--white); }
.hero h1 span { display: block; }
.hero-lead { max-width: 480px; color: var(--white); margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 24px;
  color: var(--white); font-size: 13px;
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--white); flex-shrink: 0; }
.hero-ar {
  font-family: var(--arabic);
  font-size: clamp(36px, 5vw, 64px);
  text-align: end;
  line-height: 1.2;
  color: var(--white);
}
.hero-arrow {
  position: absolute; top: 50%; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 108, 53, 0.45);
  color: var(--white); font-size: 22px;
  transition: border-color var(--t), background var(--t);
}
.hero-arrow:hover, .hero-arrow:focus-visible { border-color: var(--white); background: var(--gold); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-count {
  position: absolute; right: 40px; bottom: 24px; z-index: 3;
  letter-spacing: 0.22em; font-size: 12px; color: var(--white);
}
html[dir="rtl"] .hero-arrow.prev { left: auto; right: 16px; }
html[dir="rtl"] .hero-arrow.next { right: auto; left: 16px; }
html[dir="rtl"] .hero-count { right: auto; left: 40px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }
.section-sub { color: var(--faint); margin-top: 8px; }

.cat-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  justify-content: start;
  gap: 16px;
  padding: 4px 4px 12px;
}
@media (min-width: 1400px) {
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cat-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.cat-card:hover, .cat-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.cat-media { overflow: hidden; height: 220px; background: var(--card-2); }
.cat-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms var(--ease);
}
.cat-card:hover img { transform: scale(1.08); }
.cat-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.cat-grid .reveal:nth-child(2) { transition-delay: 60ms; }
.cat-grid .reveal:nth-child(3) { transition-delay: 120ms; }
.cat-grid .reveal:nth-child(4) { transition-delay: 180ms; }
.cat-grid .reveal:nth-child(5) { transition-delay: 240ms; }
.cat-grid .reveal:nth-child(6) { transition-delay: 300ms; }
.cat-card figcaption { padding: 16px; }
.cat-card h3 { font-size: 18px; margin-bottom: 4px; }
.cat-card span { color: var(--gold); font-size: 13px; }

.product-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 100%;
  transition: transform var(--t), box-shadow var(--t);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-hit {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.product-media { position: relative; background: var(--card-2); overflow: hidden; }
.product-media img {
  height: 220px; width: 100%; object-fit: cover;
  transition: transform 400ms var(--ease);
}
.product-card:hover img { transform: scale(1.06); }
.product-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.product-grid .reveal:nth-child(2) { transition-delay: 70ms; }
.product-grid .reveal:nth-child(3) { transition-delay: 140ms; }
.product-grid .reveal:nth-child(4) { transition-delay: 210ms; }
.product-grid .reveal:nth-child(5) { transition-delay: 280ms; }
.product-grid .reveal:nth-child(6) { transition-delay: 350ms; }
.badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
  color: var(--white);
}
.badge.hot { background: var(--hot); }
.badge.bestseller { background: linear-gradient(135deg, var(--gold-a), var(--gold-b)); }
.badge.new { background: var(--new); }
.product-body {
  padding: 16px 52px 16px 16px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.product-body h3 { font-size: 16px; font-weight: 600; }
.price { color: var(--gold); font-weight: 700; }
.stars { color: var(--gold); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.stars span { color: var(--faint); }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 8px; }

.add-btn {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-a), var(--gold-b));
  color: var(--white);
  display: grid; place-items: center;
  transition: transform var(--t), box-shadow var(--t);
}
.add-btn:hover { transform: scale(1.08); }
.add-btn.is-added { animation: pulse 360ms var(--ease); }
.add-btn svg { width: 16px; height: 16px; fill: currentColor; }
@keyframes pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

/* ---------- Promo ---------- */
.promo {
  display: grid;
  grid-template-columns: 1.15fr auto 0.85fr;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--gold);
  color: var(--white);
}
.promo-left, .promo-right {
  padding: 40px 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background-size: cover; background-position: center;
}
.promo-left {
  background-image:
    linear-gradient(180deg, rgba(0, 108, 53, 0.2), rgba(0, 108, 53, 0.82)),
    url("https://images.unsplash.com/photo-1469334031218-e382a71b716b?auto=format&fit=crop&w=1400&q=80");
}
.promo-right {
  align-items: flex-end; text-align: end;
  background-image:
    linear-gradient(180deg, rgba(0, 108, 53, 0.35), rgba(0, 108, 53, 0.86)),
    url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=1200&q=80");
}
.promo-seal {
  width: 72px; height: 72px; object-fit: contain;
  background: var(--white); border-radius: 50%; padding: 6px; margin-bottom: 12px;
}
.promo-left h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 12px; color: var(--white); }
.promo-left p { color: var(--white); margin: 8px 0 0; }
.promo-ar { font-size: 32px; font-family: var(--arabic); margin-bottom: 16px; color: var(--white); }
.promo-divider {
  width: 48px;
  background: var(--white);
  clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%);
}

/* ---------- Trust ---------- */
.trust-strip {
  padding: 32px 0 88px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-grid article { display: flex; gap: 12px; }
.trust-grid svg { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.trust-grid h3 { font-size: 16px; font-family: var(--serif); margin-bottom: 4px; }
.trust-grid p { color: var(--faint); font-size: 13px; }

/* ---------- About / contact ---------- */
.about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-grid p, .contact-grid p { color: var(--muted); margin-top: 12px; }
.contact-grid a { color: var(--gold); }
.contact-grid .btn { margin-top: 16px; }
.about-img { width: 100%; height: 420px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); }
.contact-form, .modal form, .newsletter { display: grid; gap: 12px; }
.contact-form label, .modal label { display: grid; gap: 6px; font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }
input, select, textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 44px;
  padding: 0 14px;
  outline: none;
  color: var(--text);
  transition: border-color var(--t);
}
textarea { height: auto; padding: 12px 14px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold-a); }
.form-note { color: var(--gold); font-size: 13px; margin-top: 8px; }
.form-note.is-error { color: var(--danger); }

/* ---------- Footer ---------- */
.footer {
  background: var(--gold);
  color: var(--white);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.5fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.footer-blurb { color: rgba(255, 255, 255, 0.9); margin: 16px 0 20px; max-width: 360px; }
.footer-contact { margin: 0 0 16px; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-whatsapp {
  background: var(--white);
  color: var(--gold);
  height: 48px;
  padding: 0 20px;
  margin: 0 0 18px;
  gap: 8px;
}
.btn-whatsapp svg { width: 20px; height: 20px; }
.footer .btn-whatsapp:hover { opacity: 1; background: var(--card-2); }
.footer .linkish { color: var(--white); font-size: 14px; }
.made-with { font-weight: 600; letter-spacing: 0.04em; }
.made-bar {
  text-align: center;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--gold-b);
}
.footer h3 {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: var(--white);
}
.footer li { margin-bottom: 10px; }
.footer a { color: var(--white); font-size: 14px; }
.footer a:hover { opacity: 0.85; }
.footer-news p { color: rgba(255, 255, 255, 0.9); margin-bottom: 12px; font-size: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: grid; place-items: center;
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--white);
  transition: background var(--t);
}
.socials a:hover { background: rgba(255, 255, 255, 0.14); }
.newsletter { display: flex; gap: 8px; max-width: 360px; width: 100%; }
.newsletter input { flex: 1; min-width: 0; }
.newsletter button {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--white);
  color: var(--gold); font-size: 18px;
  flex-shrink: 0;
}
.legal {
  margin-top: 40px; padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.85); font-size: 12px;
}

/* ---------- Overlays / drawers ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 108, 53, 0.28);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms var(--ease), visibility 280ms;
}
.overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.overlay[hidden] { display: none !important; }
.overlay-end { justify-content: flex-end; padding-top: 0; }
.overlay-start { justify-content: flex-start; padding-top: 0; }

.modal {
  width: min(480px, calc(100% - 32px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 8px 20px;
  transform: translateY(12px);
  transition: transform 320ms var(--ease);
  box-shadow: var(--shadow);
}
.overlay.is-open .modal { transform: none; }
.product-modal {
  width: min(860px, calc(100% - 24px));
  max-height: min(90dvh, 860px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 8px 20px;
}
.product-detail { padding: 0 12px 8px; }
@media (min-width: 720px) {
  .product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
}
.detail-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-2);
  margin-bottom: 16px;
}
.detail-media img {
  width: 100%;
  height: min(42vh, 340px);
  object-fit: cover;
  display: block;
}
@media (min-width: 720px) {
  .detail-media { margin-bottom: 0; }
  .detail-media img { height: min(52vh, 460px); }
}
.detail-sku { font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }
.detail-copy h3 {
  font-size: clamp(22px, 5vw, 32px);
  margin: 6px 0 8px;
  text-transform: none;
}
.detail-desc { color: var(--muted); margin: 12px 0; }
.detail-meta { font-size: 14px; color: var(--muted); margin-top: 6px; }
.size-label { margin: 16px 0 8px; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.size-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.size-chip {
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
}
.size-chip.is-on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.cart-thumb, .cart-name {
  display: block;
  text-align: start;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
.cart-name { font-weight: 700; }
.cart-size { font-size: 12px; color: var(--faint); margin-top: 2px; }
.collection-modal {
  width: fit-content;
  min-width: min(480px, calc(100% - 32px));
  max-width: min(920px, calc(100% - 32px));
  max-height: min(88vh, 920px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 24px;
}
.collection-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--white);
}
.collection-modal .product-media img { height: 200px; }
.whatsapp-modal { width: min(420px, calc(100% - 24px)); }
.whatsapp-body { padding: 8px 16px 12px; display: grid; gap: 10px; }
.whatsapp-phone {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.whatsapp-body .btn-whatsapp {
  background: var(--gold);
  color: var(--white);
  margin: 8px 0 0;
}
.whatsapp-body .btn-outline { margin: 0; }
.overlay#collection-overlay,
.overlay#product-overlay,
.overlay#whatsapp-overlay {
  align-items: center;
  padding: 4vh 16px;
}
.modal-head, .drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 12px 8px;
}
.product-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--white);
}
.search-modal input { width: calc(100% - 24px); margin: 0 12px 12px; height: 52px; }
.search-results { max-height: 40vh; overflow: auto; }
.search-hit {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 12px; border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.search-hit img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }

.drawer {
  width: min(420px, 100%);
  height: 100%;
  background: var(--white);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 360ms var(--ease);
}
.drawer-start {
  border-left: 0; border-right: 1px solid var(--line);
  transform: translateX(-100%);
}
.overlay.is-open .drawer { transform: none; }
html[dir="rtl"] .drawer { border-left: 0; border-right: 1px solid var(--line); transform: translateX(-100%); }
html[dir="rtl"] .drawer-start { border-right: 0; border-left: 1px solid var(--line); transform: translateX(100%); }
html[dir="rtl"] .overlay.is-open .drawer { transform: none; }
.drawer-body { flex: 1; overflow: auto; padding: 16px; }
.drawer-foot { padding: 16px; border-top: 1px solid var(--line); }
.subtotal-row { display: flex; justify-content: space-between; margin-bottom: 12px; }
.mobile-links { display: flex; flex-direction: column; padding: 8px 20px 32px; gap: 8px; }
.mobile-links a {
  font-family: var(--serif);
  font-size: 20px;
  padding: 10px 0;
  color: var(--text);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 8px; margin-top: 8px;
}
.qty button { width: 32px; height: 32px; }
.qty span { width: 28px; text-align: center; font-size: 13px; }
.remove { color: var(--danger); font-size: 12px; margin-top: 6px; }
.empty { text-align: center; color: var(--faint); padding: 40px 8px; }

.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translate(-50%, 80px);
  background: var(--white);
  border: 1px solid var(--gold-a);
  color: var(--text);
  padding: 12px 20px; border-radius: 999px;
  z-index: 220; opacity: 0; pointer-events: none;
  transition: transform 280ms var(--ease), opacity 280ms var(--ease);
  box-shadow: var(--shadow);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 769px) and (max-width: 1199px) {
  .header-mast-inner { min-height: 84px; padding: 8px 0; }
  .brand-seal { width: 64px; height: 64px; }
  .hero, .hero-track, .hero-grid { min-height: 560px; }
  .hero-grid { min-height: 560px; padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .collection-modal { width: min(840px, calc(100% - 48px)); }
  .product-modal { width: min(780px, calc(100% - 48px)); }
}

@media (max-width: 1100px) {
  .cat-grid, .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 240px)); }
  .hero-grid, .about-grid, .contact-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: auto; }
  .footer-links { max-width: 520px; }
  .newsletter { max-width: none; }
  .hero-ar { display: none; }
  .promo { grid-template-columns: 1fr; }
  .promo-divider { width: 100%; height: 16px; clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%); }
  .collection-modal { width: min(860px, calc(100% - 40px)); }
}

@media (max-width: 900px) {
  .header-mast-inner {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    grid-template-rows: auto auto;
    min-height: 0;
    padding: 8px 0 10px;
    gap: 6px 8px;
  }
  .hamburger { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 3; grid-row: 1; gap: 0; flex-shrink: 0; }
  .header .brand {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    gap: 8px;
    overflow: visible;
    max-width: 100%;
  }
  .header .brand-seal { width: 40px; height: 40px; filter: none; }
  .header .brand-kicker, .header .brand-rule, .header .brand-tag { display: none; }
  .header .brand-name {
    font-size: 18px;
    letter-spacing: 0.14em;
    overflow: visible;
  }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 18px; height: 18px; }
}

@media (max-width: 768px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .topbar-inner { grid-template-columns: 1fr; justify-items: center; }
  .topbar-loc, .topbar-tools { display: none; }
  .cat-grid, .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .trust-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer {
    padding-top: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: auto; }
  .footer-brand .brand-on-green {
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
    justify-content: flex-start;
  }
  .footer-blurb { max-width: none; font-size: 15px; line-height: 1.55; }
  .footer-contact a { font-size: 15px; word-break: break-word; }
  .footer .btn-whatsapp {
    width: 100%;
    justify-content: center;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
  }
  .socials { gap: 10px; }
  .socials a { width: 44px; height: 44px; }
  .footer-links {
    max-width: none;
    gap: 16px;
  }
  .footer h3 { font-size: 17px; margin-bottom: 12px; }
  .footer a, .footer .linkish { font-size: 15px; }
  .newsletter { max-width: none; }
  .newsletter input { min-width: 0; height: 48px; }
  .newsletter button { width: 48px; height: 48px; }
  .legal {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
  }
  .hero, .hero-track, .hero-grid { min-height: min(72dvh, 520px); }
  .hero-grid { grid-template-columns: 1fr; padding: 32px 0 64px; }
  .hero h1 { font-size: clamp(28px, 9vw, 44px); }
  .section { padding: 48px 0; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: clamp(24px, 7vw, 34px); }
  .cat-media { height: 140px; }
  .product-media img { height: 150px; }
  .cat-card figcaption { padding: 10px; }
  .product-body { padding: 10px 44px 10px 10px; }
  html[dir="rtl"] .product-body { padding: 10px 10px 10px 44px; }
  .cat-card h3, .product-body h3 { font-size: 13px; }
  .add-btn { width: 34px; height: 34px; right: 8px; bottom: 8px; }
  html[dir="rtl"] .add-btn { left: 8px; right: auto; }
  .reveal { opacity: 1; transform: none; }
  .brand:hover .brand-seal,
  .brand:focus-visible .brand-seal { transform: none; }
  .btn:hover, .product-card:hover, .cat-card:hover { transform: none; }
  .header { background: #fff; }
  .product-modal,
  .collection-modal {
    width: calc(100% - 16px);
    max-height: 88dvh;
    margin: 0 auto 8px;
  }
  .overlay#product-overlay,
  .overlay#collection-overlay { padding: 8px 0; align-items: flex-end; }
  .detail-media img { height: min(36vh, 260px); }
}

@media (max-width: 380px) {
  .header .brand-name { font-size: 16px; letter-spacing: 0.1em; }
  .header .brand-seal { width: 36px; height: 36px; }
  .icon-btn { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
