/* BOUCHRA — Modest Fashion */

:root {
  --sand: #E9DFD0;
  --terracotta: #B78B6A;
  --terracotta-ink: #8A6448; /* terracotta darkened for small text contrast */
  --espresso: #44382F;
  --espresso-soft: #6B5D52;
  --ivory: #F8F5EF;
  --white: #FFFDF9;
  --line: #DCCFBD;
  --wa: #25D366;
  --wa-dark: #128C4B;

  --ok: #5E7A4F;
  --warn: #A0652F;
  --info: #6B5D52;
  --out: #9A4A3C;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --radius: 2px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --shadow: 0 18px 40px -24px rgba(68, 56, 47, .45);

  /* Amazigh-inspired diamond chain */
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14' viewBox='0 0 32 14'%3E%3Cpath d='M1 7 8 0.8 15 7 8 13.2Z M17 7 24 0.8 31 7 24 13.2Z' fill='none' stroke='%23B78B6A' stroke-width='1'/%3E%3Ccircle cx='8' cy='7' r='1.4' fill='%23B78B6A'/%3E%3Ccircle cx='24' cy='7' r='1.4' fill='%23B78B6A'/%3E%3Cpath d='M15 7h2' stroke='%23B78B6A'/%3E%3C/svg%3E");
  --motif-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14' viewBox='0 0 32 14'%3E%3Cpath d='M1 7 8 0.8 15 7 8 13.2Z M17 7 24 0.8 31 7 24 13.2Z' fill='none' stroke='%23E9DFD0' stroke-opacity='.45' stroke-width='1'/%3E%3Ccircle cx='8' cy='7' r='1.4' fill='%23E9DFD0' fill-opacity='.45'/%3E%3Ccircle cx='24' cy='7' r='1.4' fill='%23E9DFD0' fill-opacity='.45'/%3E%3C/svg%3E");
  /* Lattice for subtle backgrounds */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z M28 16 40 28 28 40 16 28Z' fill='none' stroke='%23B78B6A' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E");
}

/* Arabic: brand fonts have no Arabic glyphs, and letter-spacing breaks joined script. */
html[lang="ar"] {
  --serif: 'Noto Naskh Arabic', 'Playfair Display', serif;
  --sans: 'Cairo', 'Montserrat', sans-serif;
}
html[lang="ar"] body { font-size: 17px; line-height: 1.8; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; font-weight: 500; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--terracotta-ink); outline-offset: 3px; }

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

.small { font-size: 12.5px; color: var(--espresso-soft); line-height: 1.6; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--terracotta-ink);
  font-weight: 500;
  margin-bottom: 1.2em;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Motifs ---------- */

.motif-band { height: 14px; background: var(--motif) repeat-x center; opacity: .8; }
.motif-band--light { background-image: var(--motif-light); opacity: 1; }

.motif-rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--terracotta); margin: 0 auto 1.4em;
}
.motif-rule::before, .motif-rule::after { content: ''; width: 48px; height: 1px; background: currentColor; }
.motif-rule img { width: 22px; height: auto; opacity: .85; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  border: 1px solid var(--espresso); border-radius: var(--radius);
  background: var(--espresso); color: var(--ivory);
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: #2F2620; border-color: #2F2620; }
.btn:active { transform: translateY(1px); }

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

.btn--light { background: var(--ivory); color: var(--espresso); border-color: var(--ivory); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); }

.btn--wa { background: var(--espresso); border-color: var(--espresso); }
.btn--wa svg { color: var(--wa); }

.btn--wa-light { background: transparent; color: var(--ivory); border-color: rgba(248, 245, 239, .5); }
.btn--wa-light svg { color: var(--wa); }
.btn--wa-light:hover { background: var(--ivory); color: var(--espresso); border-color: var(--ivory); }

.btn--lg { min-height: 58px; font-size: 13px; letter-spacing: .22em; }
.btn--block { width: 100%; }

.link-btn {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--espresso-soft);
  text-decoration: underline; text-underline-offset: 4px;
}
.link-btn:hover { color: var(--espresso); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer; color: var(--espresso); border-radius: 50%;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--sand); }
.icon-btn--sm { width: 34px; height: 34px; }
.icon-btn--sm svg { width: 17px; height: 17px; }

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

.preview-bar {
  background: var(--terracotta-ink); color: var(--ivory); text-align: center;
  font-size: 12.5px; padding: 8px 16px;
}
.preview-bar button {
  margin-inline-start: 8px; background: none; border: 1px solid currentColor; color: inherit;
  padding: 2px 10px; cursor: pointer; font-size: 11.5px;
}

.announce {
  background: var(--espresso); color: var(--sand); text-align: center;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; padding: 9px 16px;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 245, 239, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Logo at the start (left in LTR, right in RTL), nav, then actions at the end. */
.site-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { flex: none; }
.brand img { height: 66px; width: auto; }

.site-nav { flex: 1; display: flex; align-items: center; gap: 20px; min-width: 0; }
.site-nav a {
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--terracotta); }

.nav-toggle { display: none; }

.site-header__actions { flex: none; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }

.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang-switch button {
  border: 0; background: none; cursor: pointer; border-radius: 999px;
  min-width: 36px; height: 32px; padding: 0 9px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--espresso-soft);
}
.lang-switch button[lang="ar"] { font-family: 'Cairo', 'Noto Naskh Arabic', sans-serif; font-size: 13.5px; letter-spacing: 0; }
.lang-switch button:hover { color: var(--espresso); }
.lang-switch button[aria-current="true"] { background: var(--espresso); color: var(--ivory); }
.lang-switch--bar { margin-inline-end: 4px; }
.lang-switch--menu { display: none; }
.lang-switch--footer { margin-top: 18px; background: transparent; border-color: rgba(248, 245, 239, .25); }
.lang-switch--footer button { color: rgba(248, 245, 239, .75); }
.lang-switch--footer button[aria-current="true"] { background: var(--ivory); color: var(--espresso); }
.header-wa svg { color: var(--wa-dark); }

.selection-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--white); border-radius: 999px; cursor: pointer;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.selection-btn svg { width: 20px; height: 20px; }
.selection-btn:hover { border-color: var(--espresso); }
.count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--terracotta); color: var(--white); font-size: 11px; letter-spacing: 0;
  display: inline-grid; place-items: center; font-weight: 600;
}
.count[hidden] { display: none; }

@media (max-width: 1400px) {
  .site-header__inner { gap: 20px; }
  .site-nav { gap: 16px; }
  .site-nav a { letter-spacing: .08em; font-size: 11px; }
  .selection-btn__label { display: none; }
  .selection-btn { padding: 0 10px; }
}

@media (max-width: 600px) {
  .announce { letter-spacing: .12em; font-size: 10px; }
}

@media (max-width: 1060px) {
  .nav-toggle { display: inline-grid; }
  .site-header__inner { justify-content: space-between; }
  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
  .lang-switch--menu { display: inline-flex; align-self: flex-start; margin-top: 16px; }
  .lang-switch--bar { display: none; }
}

@media (max-width: 900px) {
  .brand img { height: 50px; }
}

@media (max-width: 360px) {
  .header-wa { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--sand);
}
.hero::before {
  content: ''; position: absolute; inset: 0; background: var(--lattice); opacity: .9;
}
.hero__inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) var(--gutter);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero h1 { font-size: clamp(40px, 6vw, 76px); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--terracotta-ink); }
.hero__text { font-size: 16px; max-width: 34em; color: var(--espresso-soft); margin-bottom: 2.2em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 1.6em; font-size: 12px; color: var(--espresso-soft); letter-spacing: .04em; }

.arch {
  position: relative; border-radius: 999px 999px 0 0; overflow: hidden;
  aspect-ratio: 3 / 4.3; background: var(--ivory);
  box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero__visual { position: relative; isolation: isolate; max-width: 440px; justify-self: center; width: 100%; }
.hero__visual::after {
  content: ''; position: absolute; top: -14px; bottom: 14px; inset-inline-start: 14px; inset-inline-end: -14px; z-index: -1;
  border: 1px solid var(--terracotta); border-radius: 999px 999px 0 0;
}
.hero__visual .arch { z-index: 1; }
.hero__seal {
  position: absolute; z-index: 2; inset-inline-start: -28px; bottom: 36px;
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--espresso); display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.hero__seal img { width: 50px; }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual { max-width: 320px; order: -1; }
  .hero__seal { width: 80px; height: 80px; inset-inline-start: -12px; }
  .hero__seal img { width: 38px; }
}

@media (max-width: 480px) {
  .hero__ctas .btn { width: 100%; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--espresso-soft); }
.section-head--row {
  max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 16px; text-align: start;
}
.section-head--row h2 { margin: 0; }
.section-head--row a { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; text-underline-offset: 5px; }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.cat-tile { position: relative; display: block; text-decoration: none; color: var(--ivory); overflow: hidden; aspect-ratio: 3 / 4.2; background: var(--espresso); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; opacity: .92; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40, 32, 26, .72), transparent 55%); }
.cat-tile__label { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px; text-align: center; }
.cat-tile__label h3 { font-size: clamp(18px, 2vw, 24px); margin: 0 0 6px; }
.cat-tile__label span { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; }

@media (max-width: 860px) { .categories { grid-template-columns: repeat(2, 1fr); } }

/* How to order */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; padding: 8px 12px; }
.step__num {
  width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; color: var(--terracotta-ink);
  border: 1px solid var(--terracotta); transform: rotate(45deg);
}
.step__num span { transform: rotate(-45deg); }
.step h3 { font-size: 20px; }
.step p { font-size: 14px; color: var(--espresso-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Promo */
.promo { position: relative; background: var(--espresso); color: var(--ivory); overflow: hidden; }
.promo__inner {
  position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center;
}
.promo__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0 0; max-width: 360px; }
.promo__img img { width: 100%; height: 100%; object-fit: cover; }
.promo .eyebrow { color: var(--sand); }
.promo h2 { font-size: clamp(30px, 4vw, 48px); color: var(--ivory); }
.promo p { color: rgba(248, 245, 239, .8); max-width: 36em; font-size: 16px; }
.promo__perks { list-style: none; padding: 0; margin: 1.6em 0 2.2em; display: grid; gap: 10px; }
.promo__perks li { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.promo__perks li::before { content: ''; width: 8px; height: 8px; border: 1px solid var(--terracotta); transform: rotate(45deg); flex: none; }
.promo .btn--light svg { color: var(--wa-dark); }
.promo__motif { position: absolute; left: 0; right: 0; height: 14px; }
.promo__motif--top { top: 18px; } .promo__motif--bottom { bottom: 18px; }

@media (max-width: 820px) {
  .promo__inner { grid-template-columns: 1fr; text-align: center; }
  .promo__img { margin: 0 auto; max-width: 260px; }
  .promo p { margin-left: auto; margin-right: auto; }
  .promo__perks { justify-items: center; }
}

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story h2 { font-size: clamp(30px, 4vw, 44px); }
.story__script { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--terracotta-ink); }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.values li { border-top: 1px solid var(--line); padding-top: 16px; }
.values strong { display: block; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.values span { font-size: 14px; color: var(--espresso-soft); }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .values { grid-template-columns: 1fr; } }

/* ---------- Product grid & cards ---------- */

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px) clamp(12px, 2vw, 24px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.card { display: flex; flex-direction: column; }
.card__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--sand); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform .8s ease; }
.card__alt { opacity: 0; }
.card:hover .card__alt { opacity: 1; }
.card:hover .card__media img:first-child { transform: scale(1.03); }
.card__badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge {
  background: var(--ivory); color: var(--espresso); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  padding: 5px 10px; font-weight: 600;
}
.badge--dark { background: var(--espresso); color: var(--ivory); }
.badge--out { background: var(--out); color: var(--white); }
.card__body { padding-top: 14px; }
.card__cat { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--terracotta-ink); margin: 0 0 4px; }
.card__name { font-size: 18px; margin: 0 0 4px; }
.card__name a { text-decoration: none; }
.card__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card__price { font-size: 13.5px; font-weight: 500; margin: 0 0 8px; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__avail { font-size: 11px; color: var(--warn); }
.dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(68, 56, 47, .25); }

@media (max-width: 480px) {
  .card__name { font-size: 15.5px; }
  .card__badges { top: 8px; inset-inline-start: 8px; }
  .badge { font-size: 9px; padding: 4px 7px; letter-spacing: .14em; }
}

/* ---------- Collection page ---------- */

.page-hero { background: var(--sand); text-align: center; padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(32px, 5vw, 56px); position: relative; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: var(--lattice); opacity: .7; }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); }
.page-hero p { color: var(--espresso-soft); max-width: 36em; margin: 0 auto; }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0; border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px; cursor: pointer;
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.chip:hover { border-color: var(--espresso); }
.chip[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.toolbar__right { display: flex; align-items: center; gap: 16px; }
.toolbar__count { font-size: 12.5px; color: var(--espresso-soft); white-space: nowrap; }
.select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--white)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2344382F'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding-block: 9px; padding-inline: 12px 34px; border-radius: var(--radius); font-size: 13px; cursor: pointer;
}
[dir="rtl"] .select { background-position: left 12px center; }
.empty { text-align: center; padding: 64px 0; color: var(--espresso-soft); }

/* ---------- Product page ---------- */

.breadcrumb { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--espresso-soft); padding: 22px 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 8px; color: var(--terracotta); }

.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 72px; }

.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; position: sticky; top: 100px; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery:has(.gallery__thumbs[hidden]) { grid-template-columns: 1fr; }
.gallery__thumbs[hidden] { display: none; }
.gallery__thumb { padding: 0; border: 1px solid transparent; background: var(--sand); cursor: pointer; aspect-ratio: 3 / 4; overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--espresso); }
.gallery__main { position: relative; aspect-ratio: 3 / 4; background: var(--sand); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(248, 245, 239, .85); cursor: pointer;
  display: grid; place-items: center; font-size: 18px;
}
.gallery__nav--prev { inset-inline-start: 12px; } .gallery__nav--next { inset-inline-end: 12px; }

.pdp__cat { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--terracotta-ink); margin-bottom: 10px; }
.pdp h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: .25em; }
.pdp__ref { font-size: 12px; letter-spacing: .1em; color: var(--espresso-soft); margin-bottom: 18px; }
.pdp__price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.pdp__price { font-size: 22px; font-weight: 500; margin: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--ok { color: var(--ok); } .status--warn { color: var(--warn); } .status--info { color: var(--info); } .status--out { color: var(--out); }
.pdp__desc { color: var(--espresso-soft); margin-bottom: 26px; }

.option { margin-bottom: 22px; border: 0; padding: 0; min-width: 0; }
.option__label { display: flex; justify-content: space-between; align-items: baseline; width: 100%; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; padding: 0; }
.option__label em { font-style: normal; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--espresso-soft); font-size: 13px; }
.option__label .link-btn { font-size: 11px; padding: 0; }
.option__row { display: flex; flex-wrap: wrap; gap: 8px; }

.swatch { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); padding: 3px; background: var(--white); cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(68, 56, 47, .18); }
.swatch[aria-checked="true"] { border-color: var(--espresso); box-shadow: 0 0 0 1px var(--espresso); }

.size-btn {
  min-width: 52px; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font-size: 13px; font-weight: 500; border-radius: var(--radius);
}
.size-btn:hover { border-color: var(--espresso); }
.size-btn[aria-checked="true"] { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.option.has-error .size-btn { border-color: var(--out); }
.option.has-error .option__row { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .option.has-error .option__row { animation: none; } }
.option__error { color: var(--out); font-size: 12.5px; margin: 8px 0 0; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--white); height: 48px; border-radius: var(--radius); }
.qty button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.qty button svg { width: 16px; height: 16px; }
.qty button:hover { background: var(--sand); }
.qty span, .qty output { min-width: 36px; text-align: center; font-weight: 500; }
.qty--sm { height: 36px; }
.qty--sm button { width: 32px; }
.qty--sm span { min-width: 24px; font-size: 13px; }

.pdp__actions { display: grid; gap: 12px; margin: 28px 0 12px; }
.pdp__order svg { width: 22px; height: 22px; }
.pdp__ask { text-align: center; font-size: 13.5px; margin: 6px 0 0; }
.pdp__ask a { display: inline-flex; align-items: center; gap: 8px; text-underline-offset: 4px; }
.pdp__ask svg { width: 16px; height: 16px; color: var(--wa-dark); }
.pdp__how { font-size: 12.5px; color: var(--espresso-soft); text-align: center; margin: 12px 0 26px; }

.notice { background: var(--sand); padding: 14px 16px; font-size: 13px; margin-bottom: 18px; border-inline-start: 2px solid var(--terracotta); }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 18px; font-weight: 300; }
.accordion details[open] summary::after { content: '−'; }
.accordion details > div { padding: 0 0 20px; color: var(--espresso-soft); font-size: 14px; }

.sticky-order {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  background: var(--ivory); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-order.is-visible { transform: none; }
.sticky-order__info { min-width: 0; flex: 1; }
.sticky-order__info p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.sticky-order__info strong { font-weight: 600; font-size: 12.5px; }
.sticky-order .btn { padding: 0 16px; min-height: 46px; font-size: 11px; letter-spacing: .14em; }

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery__thumb { width: 64px; flex: none; }
  .sticky-order { display: flex; }
  body[data-page="product"] .wa-float { bottom: 88px; }
  body[data-page="product"] .toast { bottom: 96px; }
}

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 28px -8px rgba(18, 140, 75, .6);
  transition: transform .25s, bottom .3s;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.06); }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-float__tip {
  position: absolute; inset-inline-end: 72px; white-space: nowrap; background: var(--espresso); color: var(--ivory);
  font-size: 12px; padding: 7px 12px; border-radius: 2px; opacity: 0; transform: translateX(6px);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Drawer ---------- */

.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(40, 32, 26, .45); }
.drawer {
  position: fixed; top: 0; inset-inline-end: 0; bottom: 0; z-index: 61;
  width: min(440px, 100%); background: var(--ivory);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s;
  outline: none;
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; transition: transform .35s ease; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-block: 18px 14px; padding-inline: 24px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 24px; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); display: grid; gap: 10px; text-align: center; }
.drawer__foot:empty { display: none; }
.drawer__foot .small { margin: 0; }
.drawer__foot .btn { letter-spacing: .12em; padding: 0 16px; }
.drawer__total { display: flex; justify-content: space-between; font-size: 14px; }
.drawer__empty { text-align: center; padding: 56px 8px; display: grid; justify-items: center; gap: 4px; }
.drawer__empty img { opacity: .6; margin-bottom: 12px; }
.drawer__empty .btn { margin-top: 16px; }

.sel-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sel-item__img { aspect-ratio: 3 / 4; background: var(--sand); overflow: hidden; }
.sel-item__img img { width: 100%; height: 100%; object-fit: cover; }
.sel-item__top { display: flex; justify-content: space-between; gap: 8px; }
.sel-item__name { font-family: var(--serif); font-size: 17px; margin: 0 0 2px; }
.sel-item__top .small { margin: 0; }
.sel-item__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: end; }
.sel-item__opts label { display: grid; gap: 2px; }
.sel-item__opts label span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--espresso-soft); }
.sel-item__opts select {
  height: 36px; border: 1px solid var(--line); background: var(--white); padding: 0 8px; font-size: 13px; border-radius: var(--radius); max-width: 120px;
}

/* ---------- Modal ---------- */

.modal {
  border: 0; padding: 28px; width: min(560px, calc(100% - 32px)); background: var(--ivory); color: var(--espresso);
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(40, 32, 26, .5); }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal__head h2 { margin: 0; font-size: 26px; }
.table-wrap { overflow-x: auto; margin-bottom: 14px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.size-table th, .size-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.size-table thead th { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; background: var(--sand); }
.size-table tbody th { font-weight: 600; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translate(-50%, 20px);
  background: var(--espresso); color: var(--ivory); padding: 14px 20px; font-size: 13.5px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  width: max-content; max-width: calc(100% - 32px); display: flex; gap: 14px; align-items: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--sand); text-decoration: underline; cursor: pointer; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 0; white-space: nowrap; }

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

.site-footer { background: var(--espresso); color: rgba(248, 245, 239, .78); padding-top: 18px; font-size: 13.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.site-footer h4 { font-family: var(--sans); color: var(--ivory); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.site-footer__brand img { margin-bottom: 18px; }
.site-footer .small { color: rgba(248, 245, 239, .6); margin-top: 14px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(248, 245, 239, .14); font-size: 11.5px; letter-spacing: .12em; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer__base { padding-bottom: 96px; } }

/* ---------- Arabic sizing ----------
   The base sizes are tuned for small uppercase Latin with wide tracking.
   Arabic has neither, so it needs noticeably larger type to read well. */

html[lang="ar"] .announce { font-size: 13px; }
html[lang="ar"] .preview-bar { font-size: 14px; }
html[lang="ar"] .site-nav a { font-size: 15px; font-weight: 500; }
html[lang="ar"] .selection-btn { font-size: 14px; }
html[lang="ar"] .eyebrow { font-size: 14.5px; font-weight: 600; }
html[lang="ar"] .btn { font-size: 15px; font-weight: 700; }
html[lang="ar"] .btn--lg { font-size: 16px; }
html[lang="ar"] .link-btn { font-size: 14px; }
html[lang="ar"] .small { font-size: 14px; }

html[lang="ar"] .hero__text { font-size: 19px; }
html[lang="ar"] .hero__note { font-size: 14px; }
html[lang="ar"] .section-head p { font-size: 17px; }
html[lang="ar"] .section-head--row a { font-size: 14.5px; }
html[lang="ar"] .cat-tile__label h3 { font-size: clamp(20px, 2.2vw, 26px); }
html[lang="ar"] .cat-tile__label span { font-size: 13.5px; }
html[lang="ar"] .step h3 { font-size: 22px; }
html[lang="ar"] .step p,
html[lang="ar"] .promo__perks li,
html[lang="ar"] .values span { font-size: 16px; }
html[lang="ar"] .promo p { font-size: 17.5px; }
html[lang="ar"] .values strong { font-size: 16px; }
html[lang="ar"] .story__script { font-size: 24px; }

html[lang="ar"] .badge { font-size: 12px; font-weight: 700; }
html[lang="ar"] .card__cat { font-size: 13px; }
html[lang="ar"] .card__name { font-size: 20px; }
html[lang="ar"] .card__price { font-size: 15.5px; font-weight: 600; }
html[lang="ar"] .card__avail { font-size: 13px; }

html[lang="ar"] .page-hero p { font-size: 17px; }
html[lang="ar"] .chip { font-size: 14px; }
html[lang="ar"] .toolbar__count { font-size: 14.5px; }
html[lang="ar"] .select { font-size: 15px; }

html[lang="ar"] .breadcrumb { font-size: 14px; }
html[lang="ar"] .pdp__cat { font-size: 14px; }
html[lang="ar"] .pdp__ref, html[lang="ar"] .status { font-size: 14px; }
html[lang="ar"] .pdp__price { font-size: 24px; }
html[lang="ar"] .pdp__desc { font-size: 17px; }
html[lang="ar"] .option__label { font-size: 15px; }
html[lang="ar"] .option__label em { font-size: 15px; }
html[lang="ar"] .option__label .link-btn { font-size: 14px; }
html[lang="ar"] .option__error { font-size: 14.5px; }
html[lang="ar"] .pdp__ask { font-size: 15.5px; }
html[lang="ar"] .pdp__how, html[lang="ar"] .notice { font-size: 15px; }
html[lang="ar"] .accordion summary { font-size: 15.5px; }
html[lang="ar"] .accordion details > div { font-size: 16px; }
html[lang="ar"] .sticky-order__info p { font-size: 15px; }
html[lang="ar"] .sticky-order__info strong { font-size: 14px; }
html[lang="ar"] .sticky-order .btn { font-size: 14.5px; }

html[lang="ar"] .drawer__head h2 { font-size: 28px; }
html[lang="ar"] .sel-item__name { font-size: 19px; }
html[lang="ar"] .sel-item__opts label span { font-size: 13px; }
html[lang="ar"] .sel-item__opts select { font-size: 14.5px; }
html[lang="ar"] .drawer__total { font-size: 16px; }

html[lang="ar"] .size-table { font-size: 15px; }
html[lang="ar"] .size-table thead th { font-size: 14px; }
html[lang="ar"] .toast { font-size: 15px; }
html[lang="ar"] .wa-float__tip { font-size: 14px; }

html[lang="ar"] .site-footer { font-size: 15.5px; }
html[lang="ar"] .site-footer h4 { font-size: 15px; }
html[lang="ar"] .site-footer__base { font-size: 13.5px; }

@media (max-width: 1060px) {
  html[lang="ar"] .site-nav a { font-size: 16.5px; }
}
@media (max-width: 600px) {
  html[lang="ar"] .announce { font-size: 12.5px; }
}
@media (max-width: 480px) {
  html[lang="ar"] .card__name { font-size: 17.5px; }
  html[lang="ar"] .badge { font-size: 11px; }
}
