/* NUREA storefront — mobile-first */
:root {
  --cream: #F5EEE4;
  --cream-2: #EFE5D7;
  --sand: #E4D5C1;
  --stone: #CDB89C;
  --paper: #FBF7F1;
  --wine: #7A3233;
  --wine-deep: #5C2326;
  --rose: #B4787A;
  --gold: #A0814F;
  --ink: #3B2B27;
  --muted: #84716A;
  --line: rgba(59, 43, 39, .14);
  --ok: #4F6B4A;
  --err: #A3332E;

  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 2px;
  --gutter: 20px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="ar"] {
  --display: 'El Messiri', 'Tajawal', serif;
  --body: 'Tajawal', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 17px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus {
  width: auto; height: auto; margin: 0; clip: auto; clip-path: none; overflow: visible;
  inset-inline-start: 12px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 12px;
}
html, body { overflow-x: clip; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }

/* Type */
.display, .display-sm {
  font-family: var(--display);
  font-weight: 500;
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .98;
  margin: 0;
}
.display { font-size: clamp(44px, 12vw, 92px); }
.display-sm { font-size: clamp(30px, 7.5vw, 48px); line-height: 1.05; }
html[lang="ar"] .display, html[lang="ar"] .display-sm { text-transform: none; letter-spacing: 0; line-height: 1.3; font-weight: 500; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s;
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 16px; text-transform: none; }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--wine); color: var(--paper); }
.btn-primary:hover { background: var(--wine-deep); }
.btn-primary:disabled { background: var(--stone); cursor: progress; }
.btn-outline { border-color: var(--wine); color: var(--wine); background: transparent; }
.btn-outline:hover { background: var(--wine); color: var(--paper); }
.btn-block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; font-size: 18px; border-radius: 50%;
}
.icon-btn:hover { background: var(--cream-2); }

/* Announcement + header */
.announce {
  background: var(--wine); color: var(--cream);
  text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px var(--gutter);
}
html[lang="ar"] .announce { letter-spacing: 0; font-size: 14px; text-transform: none; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px; padding: 0 calc(var(--gutter) - 8px);
  background: rgba(245, 238, 228, .92);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: 26px; letter-spacing: .32em; padding-inline-start: .32em;
  color: var(--gold); text-decoration: none; line-height: 1;
}
.wordmark.small { font-size: 20px; }
.lang-toggle {
  justify-self: start; border: 0; background: none; cursor: pointer;
  padding: 10px 8px; font-size: 14px; color: var(--ink);
}
html[lang="ar"] .lang-toggle { font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: .14em; }
.bag-btn {
  justify-self: end; position: relative; border: 0; background: none; cursor: pointer;
  width: 44px; height: 44px; display: grid; place-items: center;
}
.bag-btn svg { width: 24px; height: 24px; }
.bag-count {
  position: absolute; top: 4px; inset-inline-end: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--wine); color: var(--paper); font-size: 11px; line-height: 18px; text-align: center;
}
.bag-btn.bump .bag-count { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Hero */
.hero { display: grid; }
.hero-media { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--sand); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-copy { padding: 34px var(--gutter) 44px; }
.hero-sub {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 24px; color: var(--muted); margin: 14px 0 26px;
}
html[lang="ar"] .hero-sub { font-family: var(--body); font-style: normal; font-size: 20px; }

/* Trust */
.trust {
  list-style: none; margin: 0; padding: 18px var(--gutter);
  display: grid; gap: 8px;
  border-block: 1px solid var(--line); background: var(--cream-2);
  font-size: 14px; color: var(--ink);
}
.trust li { display: flex; gap: 10px; align-items: center; }
.trust-ico { color: var(--gold); font-size: 20px; line-height: 1; }

/* Sections */
.section-head { text-align: center; margin-bottom: 28px; padding: 0 var(--gutter); }
.collection, .how, .policies { padding: 56px 0; }

/* Products */
.product-grid {
  display: grid; gap: 40px;
  padding: 0 var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.loading { text-align: center; color: var(--muted); padding: 40px 0; }
.card { display: flex; flex-direction: column; }
.card-media {
  position: relative; display: block; border: 0; padding: 0; cursor: zoom-in;
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-media:hover img { transform: scale(1.03); }
.card-body { padding-top: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0; }
html[lang="ar"] .card-cat { letter-spacing: 0; font-size: 14px; }
.card-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-name {
  font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 500;
  color: var(--ink); margin: 0; line-height: 1.1;
}
.price { font-size: 17px; font-weight: 500; white-space: nowrap; color: var(--wine); }
.card-desc { margin: 0; color: var(--muted); font-size: 15px; }
.link-more {
  align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 14px; color: var(--wine); text-decoration: underline; text-underline-offset: 3px;
}

/* Shades */
.shade-label { font-size: 13px; color: var(--muted); margin: 8px 0 0; display: flex; justify-content: space-between; gap: 8px; }
.shade-label strong { color: var(--ink); font-weight: 500; }
.shades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 6px; padding: 0; border: 0; min-width: 0; }
.shade {
  position: relative; display: flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 4px 6px 4px 4px; min-width: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  cursor: pointer; font-size: 13px; line-height: 1.15; transition: border-color .2s, box-shadow .2s;
}
html[dir="rtl"] .shade { padding: 4px 4px 4px 6px; }
.shade > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.shade input { position: absolute; opacity: 0; pointer-events: none; }
.shade .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.shade:has(input:checked) { border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine); }
.shade:has(input:focus-visible) { outline: 2px solid var(--wine); outline-offset: 2px; }
.shades.need { animation: shake .4s; }
.shades.need .shade { border-color: var(--err); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.shade-err { color: var(--err); font-size: 13px; margin: 0; min-height: 0; }

.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty button:disabled { opacity: .3; cursor: default; }
.qty output { min-width: 28px; text-align: center; font-weight: 500; }

.card-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; }
.card-actions .btn { flex: 1; }

/* Glow band */
.glow-band { display: grid; background: var(--cream-2); }
.glow-band img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.glow-copy { padding: 40px var(--gutter); text-align: center; }
.glow-text { font-family: 'Cormorant Garamond', serif; font-size: 26px; line-height: 1.25; margin: 0 auto 22px; max-width: 26ch; }
html[lang="ar"] .glow-text { font-family: var(--body); font-size: 21px; line-height: 1.6; }

/* Steps */
.steps { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: grid; gap: 28px; counter-reset: s; }
.steps li { text-align: center; }
.step-n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 22px;
}
.steps h3 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 12px 0 4px; color: var(--ink); }
.steps p { margin: 0 auto; color: var(--muted); max-width: 32ch; }

/* Policies */
.accordion { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 22px; color: var(--gold); font-weight: 300; transition: transform .25s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .policy-body { padding: 0 0 20px; color: var(--muted); }
.accordion .policy-body p { margin: 0 0 10px; }
.accordion .policy-body ul { margin: 0; padding-inline-start: 20px; }

/* Footer */
.site-footer {
  background: var(--ink); color: var(--cream);
  padding: 40px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  text-align: center; display: grid; gap: 16px; justify-items: center;
}
.site-footer .wordmark { color: var(--stone); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { text-decoration: none; font-size: 14px; opacity: .85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.copyright { margin: 0; font-size: 12px; opacity: .6; }

/* Drawer */
.scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(40, 26, 22, .4);
  opacity: 0; transition: opacity .3s var(--ease);
}
.scrim.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 41;
  width: min(420px, 100vw); background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
  visibility: hidden;
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: none !important; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 14px var(--gutter); border-bottom: 1px solid var(--line); }
html[dir="rtl"] .drawer-head { padding: 14px var(--gutter) 14px 12px; }
.drawer-head h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px var(--gutter); overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 17px; }
.empty { text-align: center; padding: 56px 0; color: var(--muted); }
.empty .btn { margin-top: 16px; }

.line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 95px; object-fit: cover; background: var(--sand); }
.line-top { display: flex; justify-content: space-between; gap: 8px; }
.line-name { font-weight: 500; margin: 0; }
.line-shade { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin: 2px 0 10px; }
.line-shade .dot { width: 14px; height: 14px; border-radius: 50%; }
.line-bottom { display: flex; justify-content: space-between; align-items: center; }
.remove { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 8px 0; }

/* Product sheet */
.sheet {
  width: 100%; max-width: 980px; max-height: 92vh; margin: auto auto 0;
  padding: 0; border: 0; background: var(--paper); color: var(--ink);
  border-radius: 14px 14px 0 0; overflow: hidden;
}
.sheet::backdrop { background: rgba(40, 26, 22, .45); }
.sheet[open] { animation: sheetUp .35s var(--ease); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.sheet-close { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; background: rgba(251,247,241,.85); }
.sheet-inner { max-height: 92vh; overflow-y: auto; display: grid; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--sand); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.gallery-dots { display: flex; gap: 6px; justify-content: center; padding: 10px 0 0; }
.gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--stone); }
.gallery-dots span.on { background: var(--wine); }
.sheet-body { padding: 18px var(--gutter) 28px; display: grid; gap: 10px; }
.sheet-body .card-name { font-size: 34px; }
.sheet-body .card-desc { font-size: 16px; }

/* Checkout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 64px; }
.wrap.narrow { max-width: 620px; }
.back-link { display: inline-block; margin-bottom: 18px; font-size: 14px; color: var(--muted); text-decoration: none; }
html[dir="rtl"] .back-link { unicode-bidi: plaintext; }
.checkout h1 { margin-bottom: 24px; }
.checkout-grid { display: grid; gap: 28px; }
.checkout-grid .summary { order: -1; }
fieldset { border: 0; margin: 0 0 26px; padding: 0; }
legend { font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--ink); margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--stone); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
html[dir="rtl"] .field select { background-position: 20px 22px, 15px 22px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.err { margin: 6px 0 0; font-size: 13px; color: var(--err); min-height: 0; }
.err:empty { display: none; }
.form-err { font-size: 15px; margin: 0 0 14px; padding: 12px 14px; background: #F6E3DF; border-radius: var(--radius); }
.pay-option {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px;
  border: 1px solid var(--wine); border-radius: var(--radius); background: var(--paper); cursor: default;
}
.pay-option input { accent-color: var(--wine); width: 18px; height: 18px; margin-top: 3px; }
.pay-option small { display: block; color: var(--muted); font-size: 14px; }
.turnstile { margin: 4px 0 16px; min-height: 0; }
.fineprint { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }

.summary { background: var(--paper); border: 1px solid var(--line); padding: 20px; align-self: start; }
.summary-title { font-family: var(--display); font-size: 24px; font-weight: 500; margin: 0 0 6px; }
.summary-items { list-style: none; margin: 0; padding: 0; }
.summary-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-items img { width: 56px; height: 70px; object-fit: cover; background: var(--sand); }
.summary-items small { display: block; color: var(--muted); font-size: 13px; }
.totals { margin: 14px 0 0; display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: end; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 19px; }
.totals .grand dt { color: var(--ink); font-weight: 500; }
.totals .grand dd { font-weight: 500; color: var(--wine); }
.totals .pending { color: var(--muted); font-size: 14px; }

/* Confirmation */
.confirm { text-align: center; }
.confirm .wrap { padding-top: 56px; }
.confirm-mark {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-size: 28px;
}
.order-no { font-size: 17px; margin: 18px 0; }
.order-no strong { display: block; font-size: 26px; letter-spacing: .06em; color: var(--wine); margin-top: 4px; font-family: 'Jost', sans-serif; }
#confirmDetails { text-align: start; background: var(--paper); border: 1px solid var(--line); padding: 20px; margin: 0 0 24px; }
#confirmDetails p { margin: 0 0 10px; }
#confirmDetails .totals { margin-top: 10px; }

/* Toast */
.toast {
  position: fixed; left: 50%; top: 76px; z-index: 60;
  transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: 14px;
  transition: opacity .3s, transform .3s var(--ease); max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Larger screens ── */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .trust { grid-template-columns: repeat(3, auto); justify-content: center; gap: 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .sheet { margin: auto; border-radius: 6px; max-height: 88vh; }
  .sheet-inner { max-height: 88vh; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.35fr 1fr; align-items: center; min-height: 72vh; }
  .hero-media { aspect-ratio: auto; height: 100%; min-height: 72vh; }
  .hero-copy { padding: 48px 56px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .glow-band { grid-template-columns: 1fr 1fr; align-items: center; }
  .glow-copy { padding: 56px; }
  .checkout-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; }
  .checkout-grid .summary { order: 0; position: sticky; top: 84px; }
  .sheet-inner { grid-template-columns: 1fr 1fr; }
  .sheet-body { padding: 48px 40px; align-content: center; }
  .collection, .how, .policies { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
