/* Hanan Accessories — "Sand warmth" direction.
   Layout: sticky header, then full-width bands (hero, strip, collections, story) inside a 1200px column.
   Arabic (RTL) is the default; English swaps fonts and direction via html[lang]. */

:root {
  --sand: #f3eadd;
  --sand-2: #e9dcc8;
  --paper: #fbf7f1;
  --ink: #3a2c20;
  --ink-2: #6b5a49;
  --gold: #a9803a;
  --gold-deep: #8a6526;
  --line: #dccbb3;
  --sold: #9b4a3a;
  --ok: #4f6b45;

  --display: "El Messiri", "Marcellus", Georgia, serif;
  --body: "Tajawal", "Jost", Tahoma, "Segoe UI", sans-serif;
  --latin-display: "Marcellus", Georgia, serif;
  --latin-body: "Jost", "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  color-scheme: light;
}
html[lang="en"] {
  --display: "Marcellus", Georgia, serif;
  --body: "Jost", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.25; margin: 0; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 400; }
p { margin: 0; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.price { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--sand); text-decoration: none; font-weight: 500;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--sand); }
.btn.wa { background: #2f6b4f; border-color: #2f6b4f; color: #fff; }
.btn.wa:hover { background: #24543e; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(243, 234, 221, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 86px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; direction: ltr; text-align: start; }
.brand-text b { font-family: var(--latin-display); font-weight: 400; font-size: 1.05rem; letter-spacing: .32em; }
.brand-text small { font-family: var(--latin-body); font-size: .58rem; letter-spacing: .22em; color: var(--gold); }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.main-nav a { text-decoration: none; font-size: .95rem; padding-block: 6px; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--gold); }
/* the seasonal collection link: gold, with a small dot so it reads as "new" */
.main-nav a.nav-new { color: var(--gold-deep); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.main-nav a.nav-new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.coll-band { background: var(--paper); }
.coll-band .split { grid-template-columns: .9fr 1.1fr; }
.coll-band .ph { aspect-ratio: 5 / 4; }
.coll-hero { background: var(--sand-2); }
.coll-hero .wrap { padding-block: clamp(32px, 6vw, 72px); }
.coll-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.coll-hero .ph { aspect-ratio: 4 / 3; }
.head-tools { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 4px 12px; font-size: .8rem; cursor: pointer; font-family: var(--latin-body);
}
.bag-btn {
  position: relative; border: none; background: transparent; cursor: pointer; padding: 6px;
  display: inline-flex;
}
.bag-btn svg { width: 24px; height: 24px; }
.bag-count {
  position: absolute; top: -2px; inset-inline-end: -4px; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--gold); color: #fff; font-size: .7rem; display: grid; place-items: center; padding: 0 4px;
  font-family: var(--latin-body);
}
.bag-count[hidden] { display: none; }
.menu-btn { display: none; border: none; background: transparent; cursor: pointer; padding: 6px; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 72px);
  align-items: center; padding-block: clamp(32px, 6vw, 80px);
}
.hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.kicker { color: var(--gold); font-weight: 700; font-size: .9rem; letter-spacing: .02em; }
html[lang="en"] .kicker { letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; font-weight: 500; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.hero p.lead { font-size: 1.1rem; max-width: 40ch; color: var(--ink-2); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; max-width: 100%; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- strip ---------- */
.strip { background: var(--ink); color: #eadcc6; font-size: .9rem; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; padding-block: 12px; }
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- sections ---------- */
.section { padding-block: clamp(40px, 6vw, 80px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.section-head p { color: var(--ink-2); max-width: 52ch; }
.section-head a { color: var(--gold-deep); font-weight: 500; }

/* ---------- category chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid transparent; background: var(--sand-2); border-radius: 999px; padding: 7px 16px;
  font-size: .9rem; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-current="true"] { background: var(--ink); color: var(--sand); }
.chip .n { font-size: .75rem; opacity: .65; margin-inline-start: 4px; font-family: var(--latin-body); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.card .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--sand-2); max-width: 100%; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .ph img { transform: scale(1.04); }
.card h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; }
.card .row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card .price { color: var(--gold-deep); font-weight: 700; }
.was { text-decoration: line-through; color: var(--ink-2); font-size: .85em; font-weight: 400; }
.badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.badge.new { background: var(--gold); color: #fff; }
.badge.sold { background: var(--sold); color: #fff; }
.badge.mto { background: var(--paper); color: var(--gold-deep); }
.card.is-sold .ph img { filter: grayscale(.5); opacity: .8; }
.empty {
  grid-column: 1 / -1; padding: 40px 24px; text-align: center; border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--ink-2); display: flex; flex-direction: column; gap: 14px; align-items: center;
}

/* ---------- feature bands ---------- */
.story-band { background: var(--sand-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; }
.split .ph img { width: 100%; height: 100%; object-fit: cover; }
.split-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.split-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.prose p + p { margin-top: 14px; }
.prose { max-width: 56ch; color: var(--ink-2); font-size: 1.05rem; }
.custom-band { text-align: center; }
.custom-band .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 760px; }
.custom-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.custom-band p { color: var(--ink-2); font-size: 1.05rem; }
.ornament { width: 120px; height: 12px; color: var(--gold); }

/* ---------- product page ---------- */
.crumbs { font-size: .85rem; color: var(--ink-2); padding-block: 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); padding-block: 24px 64px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery .main { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sand-2); max-width: 100%; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs button { width: 72px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; padding: 0; border: 2px solid transparent; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-info { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 100px; min-width: 0; }
.p-info h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.p-price { font-size: 1.5rem; font-weight: 700; color: var(--gold-deep); display: flex; gap: 12px; align-items: baseline; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.available { color: var(--ok); }
.status.sold_out { color: var(--sold); }
.status.made_to_order { color: var(--gold-deep); }
.p-desc { color: var(--ink-2); font-size: 1.05rem; }
.opt { display: flex; flex-direction: column; gap: 8px; border: none; padding: 0; margin: 0; }
.opt legend, .opt label { font-weight: 600; font-size: .92rem; padding: 0; }
.opt-values { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-values input { position: absolute; opacity: 0; pointer-events: none; }
.opt-values label { font-weight: 400; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; background: var(--paper); }
.opt-values input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--sand); }
.opt-values input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.field { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); align-self: flex-start; }
.qty button { width: 38px; height: 38px; border: none; background: none; cursor: pointer; font-size: 1.1rem; }
.qty output { min-width: 28px; text-align: center; font-family: var(--latin-body); }
.p-actions { display: flex; flex-direction: column; gap: 10px; }
.p-actions .btn { width: 100%; }
.form-msg { font-size: .88rem; color: var(--sold); min-height: 1.3em; }
.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; line-height: 1; }
.details details[open] summary::after { content: "−"; }
.details .prose { margin-top: 10px; font-size: .95rem; }
.details ul { margin: 10px 0 0; padding-inline-start: 20px; color: var(--ink-2); font-size: .95rem; }

/* ---------- page header (about / wholesale) ---------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) 8px; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-head p { color: var(--ink-2); font-size: 1.1rem; max-width: 56ch; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.info-card { background: var(--paper); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.info-card h3 { font-size: 1.25rem; }
.info-card p, .info-card li { color: var(--ink-2); }
.info-card ul { margin: 0; padding-inline-start: 20px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: "✦"; color: var(--gold); font-size: .8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #eadcc6; padding-block: 48px 28px; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: var(--body); font-size: .8rem; letter-spacing: .1em; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.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: #fff; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand img { width: 120px; }
.foot-brand p { max-width: 36ch; font-size: .95rem; opacity: .85; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(234, 220, 198, .2); padding-top: 18px; font-size: .82rem; opacity: .7; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 20px; z-index: 25;
  width: 56px; height: 56px; border-radius: 50%; background: #2f6b4f; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(58, 44, 32, .25);
}
.wa-float svg { width: 28px; height: 28px; }

/* ---------- bag drawer ---------- */
.drawer-back { position: fixed; inset: 0; background: rgba(58, 44, 32, .35); z-index: 40; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); z-index: 41;
  background: var(--paper); display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(58, 44, 32, .2);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; }
.x-btn { border: none; background: none; cursor: pointer; font-size: 1.6rem; line-height: 1; padding: 4px 8px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 16px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start; }
.line img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.line b { font-weight: 600; display: block; }
.line small { color: var(--ink-2); display: block; }
.line .rm { border: none; background: none; color: var(--sold); cursor: pointer; font-size: .82rem; padding: 0; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
.total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.drawer-foot p { font-size: .82rem; color: var(--ink-2); }

.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: var(--sand); padding: 10px 20px; border-radius: 999px; font-size: .92rem;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards3 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .main-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--sand); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-flex; }
  .head-tools { margin-inline-start: auto; }
  .hero .wrap, .split, .product { grid-template-columns: 1fr; }
  .hero-img { max-width: 420px; justify-self: center; width: 100%; }
  .p-info { position: static; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: 1fr; }
  /* one swipeable row of collections instead of a tall block of chips */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
}
@media (max-width: 420px) {
  .brand-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card .ph img { transition: none; }
}
