/* OBEDI — Mediterranean Editorial
   Layout idea: wide editorial margins, serif display over a quiet geometric sans,
   ivory ground, olive for action, gold only as hairline and ink accents. */
:root {
  /* OBEDI — Amande Signature palette
     Noir profond + ivoire chaud dominent · beige amande = douceur
     brun amande torréfiée + olive pistache = accents ponctuels */
  --ivory: #F5EFE5;        /* ivoire chaud */
  --paper: #FBF6EE;
  --cream: #E6D8C3;        /* beige amande */
  --champagne: #D8C7A8;
  --gold: #6B3E22;         /* brun amande torréfié — accent / hairline */
  --gold-ink: #572F1A;     /* brun profond */
  --pistachio: #8F8B4A;    /* olive pistache — accent ponctuel */
  --olive: #3C4328;        /* action, proche du noir chaud */
  --olive-deep: #272C18;
  --ink: #1E1B18;          /* noir profond */
  --ink-soft: #564F43;
  --line: #E3D6BF;
  --error: #9B2C2C;

  --f-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --f-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-arabic: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;

  --ease: cubic-bezier(.22, .68, .12, 1);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 84px;
  color-scheme: light;
}

[dir="rtl"] {
  --f-display: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
  --f-body: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--olive); }
a:hover { color: var(--olive-deep); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.site-footer :focus-visible, .box-dark :focus-visible { outline-color: var(--champagne); }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--ivory); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.display { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.005em; }
[dir="rtl"] .display { letter-spacing: 0; font-weight: 400; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500;
}
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); max-width: 36em; text-wrap: pretty; }
[lang="ar"] { font-family: var(--f-arabic); }
[dir="rtl"] [lang="ar"], [dir="rtl"] body { font-family: var(--f-body); }
[dir="rtl"] .display, [dir="rtl"] .product-mark[lang="ar"] { font-family: var(--f-display); }
[dir="rtl"] :is(.eyebrow, .btn, .nav-links a, .footer-label, .link-arrow, label, .per-kg, .lang-switch a, .menu-toggle-label) {
  letter-spacing: 0; text-transform: none;
}
[dir="rtl"] body { font-size: 18px; line-height: 1.8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 239, 229, .92);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(245, 239, 229, .78); backdrop-filter: saturate(1.2) blur(14px); }
}
/* when the menu panel is open, the header must be fully opaque (no page text showing through) */
body.menu-open .site-header { background: var(--ivory); backdrop-filter: none; }
body.menu-open .cart-fab { display: none; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(30, 28, 25, .35); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand:hover { color: var(--ink); }
.brand-word { font-family: "Cormorant Garamond", Garamond, serif; font-size: 30px; font-weight: 500; letter-spacing: .34em; line-height: 1; padding-inline-start: .34em; margin-inline-start: -.34em; }
.brand-word { position: relative; }
.brand-sign {
  display: inline-block; margin-inline-start: .5em; vertical-align: baseline;
  font-family: "Cormorant Garamond", Garamond, serif; font-style: italic; font-weight: 400;
  font-size: .4em; letter-spacing: .04em; color: var(--gold-ink);
}
.footer-brand .brand-sign { color: var(--champagne); }
.brand-top { display: inline-flex; align-items: flex-end; gap: .55em; }
.brand-logo { height: 30px; width: auto; display: block; }
.footer-brand .brand-logo { height: 38px; }
.brand-logo-light { filter: invert(1); }
.brand-sign { transform: translateY(-3px); }
.brand-tag { white-space: nowrap; font-family: "Jost", Arial, sans-serif; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-cta { white-space: nowrap; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  white-space: nowrap;
  color: var(--ink); text-decoration: none; font-size: 14px; letter-spacing: .06em; padding: 10px 0;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size .45s var(--ease), color .3s;
}
[dir="rtl"] .nav-links a { background-position: 100% 100%; }
.nav-links a:hover { background-size: 100% 1px; color: var(--olive); }

.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); padding: 3px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px;
  font-size: 12px; letter-spacing: .12em; color: var(--ink-soft); text-decoration: none; font-family: "Jost", Arial, sans-serif;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lang-switch a:hover { color: var(--ink); background: var(--cream); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--ivory); }

.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; cursor: pointer; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative;
  transition: transform .4s var(--ease), background-color .3s;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
  :root { --header-h: 72px; }
  .brand-word { font-size: 25px; }
  .brand-logo { height: 27px; }
  .brand-tag { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 28px;
    background: var(--ivory); padding: 32px var(--gutter); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-links a { font-family: var(--f-display); font-size: 34px; letter-spacing: 0; padding: 8px 0; display: inline-block; }
  .nav-cta { align-self: flex-start; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .lang-switch a { min-width: 34px; }
  .menu-toggle-label { display: none; }
}

/* ---------- Buttons & links ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 32px; border: 1px solid transparent; cursor: pointer;
  font-family: var(--f-body); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--olive); color: var(--ivory); }
.btn-primary::before { background: var(--olive-deep); }
.btn-primary:hover { color: var(--ivory); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--ivory); }
.btn:active { transform: translateY(1px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--olive); text-decoration: none;
}
.link-arrow .arrow { display: inline-block; transition: transform .45s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(6px); }
[dir="rtl"] .link-arrow .arrow { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .arrow { transform: scaleX(-1) translateX(6px); }

/* ---------- Media (with graceful fallback when a photo cannot load) ---------- */
.media {
  position: relative; overflow: hidden; background-color: var(--cream);
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(168, 132, 63, .5) 22.15% 22.4%, transparent 22.55%),
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(220, 201, 163, .55) 30.1% 33.5%, transparent 33.6%);
}
.media .photo { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing .photo { visibility: hidden; }

/* ---------- Hero ---------- */
/* Full-bleed hero: photo as background, ivory scrim keeps text legible */
.hero { position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: min(88vh, 760px); padding-block: clamp(44px, 7vw, 92px); }
.hero-bg { position: absolute; inset: -5%; z-index: 0;
  transform: translate3d(0, var(--py, 0), 0); will-change: transform; }
.hero-bg picture, .hero-bg .hero-photo, .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(245,239,229,.95) 0%, rgba(245,239,229,.88) 40%, rgba(245,239,229,.58) 74%, rgba(245,239,229,.40) 100%),
  linear-gradient(0deg, rgba(245,239,229,.55) 0%, rgba(245,239,229,0) 42%); }
[dir="rtl"] .hero-scrim { background:
  linear-gradient(270deg, rgba(245,239,229,.95) 0%, rgba(245,239,229,.88) 40%, rgba(245,239,229,.58) 74%, rgba(245,239,229,.40) 100%),
  linear-gradient(0deg, rgba(245,239,229,.55) 0%, rgba(245,239,229,0) 42%); }
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 620px; }
.hero-title { font-size: clamp(46px, 6.6vw, 94px); line-height: 1.02; text-wrap: balance; }
[dir="rtl"] .hero-title { line-height: 1.25; font-size: clamp(42px, 6vw, 80px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > * { display: inline-block; }
.hero-title em { font-style: italic; font-weight: 400; color: var(--olive); }
[dir="rtl"] .hero-title em { font-style: normal; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-soft); }
.hero-notes li { display: inline-flex; align-items: center; gap: 10px; }
.hero-notes li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--gold); }
@media (max-width: 720px) {
  /* Compact hero on mobile so "Nuestra colección" is reached with minimal scroll */
  .hero { min-height: auto; padding-block: 22px 32px; align-items: flex-start; }
  .hero-title { font-size: clamp(40px, 11.5vw, 58px); }
  .hero-copy { gap: 16px; max-width: 100%; }
  .hero .lead { font-size: 16px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(245,239,229,.9) 0%, rgba(245,239,229,.8) 55%, rgba(245,239,229,.72) 100%); }
}

/* ---------- Values ---------- */
.values { border-block: 1px solid var(--line); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px clamp(28px, 4vw, 64px); padding-block: 44px; }
.value { display: flex; flex-direction: column; gap: 6px; }
.value-title { font-size: 27px; line-height: 1.2; }
.value p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 10vw, 140px); }
.section-tint { background: var(--cream); border-block: 1px solid var(--line); }
.section-line { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(44px, 5vw, 72px); }
.section-title { font-size: clamp(38px, 4.8vw, 62px); line-height: 1.06; text-wrap: balance; }
[dir="rtl"] .section-title { line-height: 1.35; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.product {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), translate .5s var(--ease);
}
.product:hover { border-color: var(--champagne); box-shadow: 0 30px 60px -40px rgba(30, 28, 25, .35); translate: 0 -4px; }
.product-visual {
  position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, var(--paper) 0%, var(--cream) 70%);
  border-bottom: 1px solid var(--line);
}
.ring {
  position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(168, 132, 63, .7);
  box-shadow: inset 0 0 0 14px rgba(220, 201, 163, .32), 0 0 0 26px rgba(220, 201, 163, .14);
  transition: transform 1.2s var(--ease);
}
.product:hover .ring { transform: scale(1.06) rotate(8deg); }
.product-mark { position: relative; font-size: clamp(38px, 3.6vw, 50px); color: var(--gold-ink); line-height: 1.3; text-align: center; padding-inline: 12px; }
.product-mark[lang="ar"] { font-family: var(--f-arabic); }
.product-mark[lang="es"] { font-family: "Cormorant Garamond", Garamond, serif; font-style: italic; }
.product-body { display: flex; flex-direction: column; gap: 14px; padding: 28px; flex: 1; }
.product-name { font-size: 34px; line-height: 1.08; }
.product-sub { font-family: var(--f-display); font-style: italic; font-size: 19px; color: var(--ink-soft); margin-top: -8px; }
[dir="rtl"] .product-sub { font-style: normal; font-size: 18px; margin-top: -4px; }
.product-desc { font-size: 15.5px; color: #3D3830; flex: 1; text-wrap: pretty; }
.weights { display: flex; flex-wrap: wrap; gap: 8px; }
.weight {
  min-height: 44px; min-width: 78px; padding: 0 16px; cursor: pointer;
  background: transparent; border: 1px solid #CDBB95; color: var(--ink); font-size: 14px; letter-spacing: .04em;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.weight:hover { border-color: var(--gold-ink); }
.weight[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: var(--ivory); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.price { font-size: 38px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.per-kg { font-size: 13px; color: var(--ink-soft); }
.allergens { font-size: 13.5px; color: var(--ink-soft); }
.allergens span { color: var(--ink); }

/* ---------- Band ---------- */
.band { height: clamp(320px, 46vw, 580px); display: grid; place-items: center; }
.band .photo { position: absolute; inset: 0; scale: 1.12; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 28, 25, .15), rgba(30, 28, 25, .45)); }
.media.is-missing.band::after { background: none; }
.band-line {
  position: relative; z-index: 1; color: var(--ivory); font-style: italic; text-align: center;
  font-size: clamp(40px, 6vw, 84px); line-height: 1.05; padding-inline: var(--gutter);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.media.is-missing .band-line { color: var(--ink); text-shadow: none; }
[dir="rtl"] .band-line { font-style: normal; line-height: 1.4; }

/* ---------- Boxes ---------- */
.boxes-head { display: grid; gap: clamp(32px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.boxes-head .section-head { margin-bottom: 0; }
@media (min-width: 960px) { .boxes-head { grid-template-columns: 1.1fr .9fr; } }
.mood { aspect-ratio: 4 / 3; }
.mood figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 18px 20px; font-size: 13px; color: var(--ivory);
  background: linear-gradient(0deg, rgba(30, 28, 25, .6), transparent);
}
.media.is-missing figcaption { color: var(--ink-soft); background: none; }
.box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 22px; }
.box {
  display: flex; flex-direction: column; gap: 12px; padding: 34px 28px 22px;
  background: var(--paper); border: 1px solid var(--champagne);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.box:hover { translate: 0 -4px; box-shadow: 0 30px 60px -40px rgba(30, 28, 25, .4); }
.box-featured { border: 2px solid var(--olive); }
.box-featured > .eyebrow { color: var(--olive); }
.box-name { font-size: 32px; line-height: 1.1; }
.box-size { font-size: 14px; color: var(--ink-soft); }
.box-desc { font-size: 15.5px; color: #3D3830; flex: 1; }
.box-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.box-foot .price { font-size: 40px; }
.box-dark { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.box-dark .eyebrow { color: var(--champagne); }
.box-dark .box-size { color: #D6CCBA; }
.box-dark .box-desc { color: #E8E1D2; }
.box-dark .box-foot { border-top-color: #3A3631; }
.box-dark .link-arrow { color: var(--ivory); }

/* ---------- Maison ---------- */
.maison-grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .maison-grid { grid-template-columns: .95fr 1.05fr; } }
.maison-media { aspect-ratio: 4 / 5; max-height: 720px; }
.maison-media .photo { scale: 1.1; }
.maison-copy { display: flex; flex-direction: column; gap: 22px; }
.maison-copy > p:not(.eyebrow) { font-size: 17.5px; color: #3D3830; max-width: 34em; text-wrap: pretty; }
.quote { margin: 8px 0 0; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; font-style: italic; color: var(--olive); }
.quote::before { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin-bottom: 22px; }
[dir="rtl"] .quote { font-style: normal; }

/* ---------- Order ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; margin-bottom: clamp(56px, 7vw, 96px); }
.step { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--ink); padding-top: 22px; }
.step-num { font-size: 46px; line-height: 1; color: var(--gold-ink); font-variant-numeric: lining-nums; }
.step-title { font-size: 27px; line-height: 1.2; }
.step p { font-size: 15.5px; color: var(--ink-soft); }

.order-grid { display: grid; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .order-grid { grid-template-columns: .9fr 1.1fr; } }
.order-side { display: flex; flex-direction: column; gap: 24px; }
.delivery-media { aspect-ratio: 16 / 10; }
.delivery { background: var(--paper); border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.delivery-title { font-size: 30px; line-height: 1.15; margin-bottom: 4px; }
.delivery-row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 16px; }
.delivery-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.delivery-row:last-of-type .delivery-val { color: var(--olive); }
.delivery-val { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delivery-note { font-size: 14px; color: var(--ink-soft); }

.order-form { background: var(--paper); border: 1px solid var(--line); padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.form-title { font-size: 34px; line-height: 1.1; }
.form-intro { color: var(--ink-soft); font-size: 15.5px; margin-top: -8px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.field label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--ivory);
  border: 1px solid #D3C29E; border-radius: 0; font-size: 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field select { appearance: none; padding-inline-end: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .field select { background-position: 17px 50%, 22px 50%; }
.field select:disabled { opacity: .55; cursor: not-allowed; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gold); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); background: #fff; box-shadow: 0 0 0 3px rgba(74, 85, 53, .16); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); box-shadow: 0 0 0 3px rgba(155, 44, 44, .1); }
.field-msg { font-size: 13px; color: var(--error); min-height: 0; }
.field-msg:empty { display: none; }
.field-hint { font-size: 13px; color: var(--ink-soft); }
.form-error { border: 1px solid var(--error); color: var(--error); padding: 12px 14px; font-size: 14px; background: #FBF1EE; }
.form-result { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; animation: fadeUp .6s var(--ease); }
.form-result p { font-size: 15px; color: var(--ink); }
.result-text { width: 100%; padding: 12px 14px; background: var(--ivory); border: 1px dashed #CDBB95; font-size: 14px; line-height: 1.55; resize: vertical; }
.form-result .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); padding-block: 72px 36px; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--champagne); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #3A3631; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .brand-word { font-size: 36px; }
.footer-brand .brand-tag { color: #CFC5B3; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col em { color: #CFC5B3; }
.footer-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 24px; font-size: 13px; color: #BDB4A5; }
.credits summary { cursor: pointer; min-height: 32px; }
.credits ul { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.credits .footer-label { margin-top: 10px; }
.credits a { text-decoration: underline; text-underline-offset: 3px; color: #E8E1D2; }

/* ---------- Motion (only when the visitor allows it; JS adds .motion) ---------- */
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes settle { from { scale: 1.12; opacity: .35; } to { scale: 1.03; opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

html.motion .hero-in { opacity: 0; animation: heroIn 1.1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
html.motion .hero-title .line > .hero-in { opacity: 1; animation-name: lineUp; animation-duration: 1.2s; }
html.motion .hero-photo { animation: settle 2.4s var(--ease) both; }
html.motion .media .photo { translate: 0 var(--py, 0px); will-change: translate; }

html.motion [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 100ms);
}
html.motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 440px) {
  .header-inner { gap: 10px; }
  .brand-word { font-size: 20px; letter-spacing: .14em; padding-inline-start: .14em; margin-inline-start: -.14em; }
  .brand-logo { height: 19px; }
  .brand-sign { display: none; }
  .header-tools { gap: 7px; }
  .lang-switch { padding: 1px; }
  .lang-switch a { min-width: 24px; min-height: 34px; font-size: 10.5px; }
  .menu-toggle { padding: 0; }
}

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

/* ---------- Product photos ---------- */
.product-visual.media { display: block; background: #fff; }
.product-visual .photo { position: absolute; inset: 0; transition: opacity .8s var(--ease), scale 1.2s var(--ease); }
.product:hover .product-visual .photo { scale: 1.05; }
.product-visual.has-swap .p1 { opacity: 0; }
.product:hover .product-visual.has-swap .p1 { opacity: 1; }
.product-visual.is-duo .photo { width: 50%; }
.product-visual.is-duo .p1 { inset-inline-start: 50%; }
.product-visual.is-duo .p0 { inset-inline-end: 50%; }
.product-visual.is-duo::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; width: 1px; background: rgba(255,255,255,.9); }
.product-visual .product-mark {
  position: absolute; inset-inline-end: 14px; bottom: 10px; z-index: 1; font-size: 22px; line-height: 1.2;
  padding: 2px 12px 4px; background: rgba(251, 248, 241, .88); color: var(--gold-ink);
}
.product-visual.is-missing .product-mark { inset: 0; display: grid; place-items: center; background: none; font-size: 40px; }

/* ---------- Add buttons ---------- */
.add-btn { margin-top: 4px; }
.box .add-btn { min-height: 44px; padding: 0 18px; }
.add-btn.is-added { background: var(--gold-ink); border-color: var(--gold-ink); }
.add-btn.is-added::before { transform: scaleY(1); background: var(--gold-ink); }

/* ---------- Cart FAB ---------- */
.cart-fab {
  position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px;
  background: var(--ink); color: var(--ivory); border: 0; cursor: pointer;
  font-family: var(--f-body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 16px 36px -16px rgba(30, 28, 25, .6); transition: transform .3s var(--ease), background-color .3s;
}
.cart-fab:hover { background: var(--olive-deep); }
.cart-fab.pulse { transform: scale(1.06); }
.cart-count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: var(--gold); color: var(--ivory); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums;
}
@media (max-width: 440px) { .cart-fab { inset-block-end: 14px; inset-inline-end: 14px; padding: 0 16px; } .cart-fab-label { display: none; } }

/* ---------- Cart drawer ---------- */
.cart-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(30, 28, 25, .42); opacity: 0; transition: opacity .3s var(--ease); }
.cart-backdrop.is-open { opacity: 1; }
.cart-drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 71; width: min(420px, 92vw);
  display: flex; flex-direction: column; background: var(--ivory); border-inline-start: 1px solid var(--line);
  transform: translateX(100%); transition: transform .38s var(--ease); will-change: transform;
}
[dir="rtl"] .cart-drawer { transform: translateX(-100%); }
.cart-drawer.is-open { transform: none; }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-drawer-title { font-size: 28px; }
.cart-close { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line); cursor: pointer; color: var(--ink); }
.cart-close:hover { background: var(--cream); }
.cart-empty { padding: 32px 24px; color: var(--ink-soft); font-size: 15.5px; }
.cart-lines { flex: 1; overflow-y: auto; padding: 8px 24px; display: flex; flex-direction: column; }
.cart-line { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line-main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-line-name { font-family: var(--f-display); font-size: 20px; line-height: 1.2; }
[dir="rtl"] .cart-line-name { font-size: 18px; }
.cart-line-unit { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.cart-line-ctrls { display: flex; align-items: center; gap: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #CDBB95; }
.qty-btn { width: 40px; height: 40px; background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--ink); line-height: 1; }
.qty-btn:hover { background: var(--cream); }
.qty-n { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; font-size: 15px; }
.cart-line-total { margin-inline-start: auto; font-family: var(--f-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.cart-remove { width: 36px; height: 36px; background: none; border: 0; cursor: pointer; color: var(--ink-soft); font-size: 20px; line-height: 1; }
.cart-remove:hover { color: var(--error); }
.cart-foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; }
.cart-total-row .num { font-family: var(--f-display); font-size: 26px; font-variant-numeric: tabular-nums; }
.cart-total-row.muted { font-size: 13.5px; color: var(--ink-soft); }
.cart-foot .btn { margin-top: 6px; }

/* ---------- Order-form cart summary ---------- */
.order-cart { background: var(--ivory); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.order-cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.order-cart-title { font-family: var(--f-display); font-size: 22px; font-weight: 500; }
.order-cart-edit { min-height: 36px; font-size: 12px; }
.order-cart-empty { color: var(--ink-soft); font-size: 15px; }
.order-cart-lines { display: flex; flex-direction: column; }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.order-line:last-child { border-bottom: 0; }
.order-line-total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-cart-totals { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.order-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15.5px; }
.order-total-row .num { font-family: var(--f-display); font-size: 24px; font-variant-numeric: tabular-nums; }
.order-total-row.muted { font-size: 13px; color: var(--ink-soft); }
.form-phone { font-size: 14px; color: var(--ink-soft); text-align: center; }
.form-phone a { font-weight: 500; white-space: nowrap; }
.form-privacy { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); margin: 2px 0 10px; }
.order-zone-row { align-items: center; gap: 10px; }
.order-zone-row label { font-size: 14px; color: var(--ink-soft); }
.order-zone-row select { margin-left: auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; color: inherit; max-width: 62%; }
.legal { padding: 56px 0 72px; }
.wrap.narrow { max-width: 760px; }
.legal h1 { margin: 0 0 6px; }
.legal .legal-intro { font-size: 1.05rem; margin: 10px 0 8px; }
.legal h2 { margin: 30px 0 6px; font-size: 1.15rem; }
.legal p { line-height: 1.65; }
.form-turnstile { display: flex; flex-direction: column; gap: 6px; }
.form-turnstile-label { font-size: 13px; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) { .cart-drawer { transition: none; } }

/* ---------- Account + loyalty ---------- */
.order-account-link { align-self: flex-start; margin-top: -4px; min-height: 40px; }
.loyalty-strip { margin: 0; }
.loyalty-strip-in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--cream); border: 1px solid var(--line); padding: 12px 14px; }
.loyalty-strip-text { font-size: 14px; color: var(--ink); }
.stamps { display: inline-flex; gap: 7px; }
.stamp { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; }
.stamp.is-on { background: var(--gold); }
.account-body { flex: 1; overflow-y: auto; padding: 8px 24px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 24px; }
.account-intro { font-size: 14px; color: var(--ink-soft); }
.account-h { font-family: var(--f-display); font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.loyalty-card { background: var(--paper); border: 1px solid var(--champagne); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.loyalty-text { font-size: 15px; color: var(--ink); }
.loyalty-text.is-reward { color: var(--olive); font-weight: 500; }
.loyalty-note { font-size: 12.5px; color: var(--ink-soft); }
.account-form { display: flex; flex-direction: column; gap: 14px; }
.account-form .btn { align-self: flex-start; }
.history-empty { font-size: 14px; color: var(--ink-soft); }
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-item { border-bottom: 1px solid var(--line); padding-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.history-item:last-child { border-bottom: 0; }
.history-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.history-date { font-size: 13px; color: var(--ink-soft); }
.history-total { font-family: var(--f-display); font-size: 18px; font-variant-numeric: tabular-nums; }
.history-items { font-size: 13.5px; color: #3D3830; }
.account-clear { align-self: flex-start; background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.account-clear:hover { color: var(--error); }
.account-clear.is-arm { color: var(--error); font-weight: 500; text-decoration: none; }
.footer-link { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--ivory); font: inherit; font-size: 15px; cursor: pointer; text-align: start; }
.footer-link:hover { color: var(--champagne); }
[dir="rtl"] .account-form .btn, [dir="rtl"] .account-clear, [dir="rtl"] .order-account-link { align-self: flex-end; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin: 8px auto 0; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 22px; padding: 22px 2px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--f-display); font-size: clamp(19px, 2.1vw, 23px); font-weight: 500; line-height: 1.25; color: var(--ink); }
[dir="rtl"] .faq-q { font-weight: 400; }
.faq-item[open] > summary .faq-q { color: var(--gold-ink); }
.faq-mark { position: relative; flex: none; width: 18px; height: 18px; }
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; background: var(--gold);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-mark::before { inset-inline: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq-mark::after { inset-block: 0; inset-inline-start: 50%; width: 1.5px; transform: translateX(-50%); }
[dir="rtl"] .faq-mark::after { transform: translateX(50%); }
.faq-item[open] .faq-mark::after { opacity: 0; transform: scaleY(0); }
.faq-a { padding: 0 2px 24px; max-width: 62ch; }
.faq-a p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-a { animation: faqIn .34s var(--ease); }
  @keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* ---------- degressive price note + loyalty explanation ---------- */
.price-note { margin-top: 6px; font-size: 12px; letter-spacing: .02em; color: var(--ink-soft); opacity: .85; }
[dir="rtl"] .price-note { text-align: right; }
.loyalty-reward-line { margin-top: 10px; font-size: 14.5px; color: var(--ink); }
.loyalty-reward-line .reward-label { font-weight: 500; color: var(--gold-ink); }
.loyalty-how { margin: 18px 0 4px; }
.loyalty-how .account-h { margin-bottom: 10px; }
.how-list { display: grid; gap: 9px; }
.how-list li { position: relative; padding-inline-start: 20px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.how-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
/* optional gift-box photo */
.box-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; margin-bottom: 16px; }

/* ---------- Product detail pages (PDP) ---------- */
.breadcrumb { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) 0; font-size: 13px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--gold-ink); }
.breadcrumb span[aria-hidden] { opacity: .5; }
.pdp { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 72px; }
.pdp-grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 760px) { .pdp-grid { grid-template-columns: 1fr 1fr; } }
.pdp-media { aspect-ratio: 4 / 3; border-radius: 2px; position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 759px) { .pdp-media { position: static; } }
.pdp-body { display: flex; flex-direction: column; gap: 16px; }
.pdp-title { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; }
.pdp-sub { color: var(--gold-ink); font-size: 17px; }
.pdp-desc { color: var(--ink-soft); line-height: 1.7; max-width: 52ch; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.pdp-avail { font-size: 14.5px; color: var(--ink-soft); }
.pdp-info { display: grid; gap: 32px; margin-top: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .pdp-info { grid-template-columns: 1fr 1fr; } }
.pdp-h { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 14px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { text-align: start; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.price-table th { font-weight: 500; }
.price-table .muted { color: var(--ink-soft); }
.pdp-links a { color: var(--gold-ink); }
.pdp-related { margin-top: clamp(40px, 6vw, 72px); }
.rel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 760px) { .rel-grid { grid-template-columns: repeat(3, 1fr); } }
.rel-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.rel-photo { aspect-ratio: 1 / 1; border-radius: 2px; }
.rel-card .rel-photo .photo, .rel-card { transition: opacity .3s var(--ease); }
.rel-name { font-family: var(--f-display); font-size: 17px; }
.rel-card:hover .rel-name { color: var(--gold-ink); }
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { color: var(--gold-ink); }
.pdp-media.is-duo { display: flex; gap: 2px; }
.pdp-media.is-duo .photo { position: relative; width: 50%; inset: auto; }

/* PDP editorial story + clickable product photo */
.product-visual-link { display: block; color: inherit; }
.pdp-story { max-width: 820px; margin: clamp(32px, 5vw, 56px) auto 0; display: grid; gap: 24px; }
.pdp-story .pdp-h { margin-bottom: 8px; }
.pdp-story p { color: var(--ink-soft); line-height: 1.75; max-width: 64ch; text-wrap: pretty; }

/* PDP heritage / story band (e.g. Kaak Warka — Spain↔Tunisia) */
.pdp-heritage { background: var(--cream); border-radius: 3px; margin: clamp(32px, 5vw, 56px) auto 0; max-width: 980px;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px); }
.pdp-heritage-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.pdp-heritage .eyebrow { text-align: center; color: var(--gold-ink); }
.pdp-heritage-title { font-size: clamp(27px, 3.6vw, 42px); line-height: 1.14; margin: 10px 0 22px; }
.pdp-heritage p { color: var(--ink); line-height: 1.85; margin: 0 auto 14px; max-width: 60ch; text-wrap: pretty; }
.pdp-heritage p:last-child { margin-bottom: 0; }

/* ======================= Launch promotion (OBEDI10) ======================= */
.promo-bar { background: var(--ink); color: var(--ivory); font-size: 13px; letter-spacing: .02em; }
.promo-bar[hidden] { display: none; }
.promo-bar-inner { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px var(--gutter); text-align: center; flex-wrap: wrap; }
.promo-bar-short { display: none; }
.promo-bar-terms { background: none; border: 0; color: var(--champagne); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; padding: 0; }
.promo-bar-terms:hover { color: var(--ivory); }
@media (max-width: 640px) { .promo-bar-full { display: none; } .promo-bar-short { display: inline; } }

.hero-promo { margin-top: 6px; max-width: 440px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 3px; background: rgba(251, 246, 238, .78); }
@supports (backdrop-filter: blur(4px)) { .hero-promo { backdrop-filter: blur(3px); } }
.hero-promo[hidden] { display: none; }
.hero-promo-title { font-family: var(--f-display); font-size: 19px; line-height: 1.25; }
.hero-promo-text { font-size: 14px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.hero-promo-code { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.hero-promo-code-label { font-size: 13px; color: var(--ink-soft); }
.hero-promo-code-val { font-weight: 500; letter-spacing: .09em; background: var(--ink); color: var(--ivory); padding: 4px 11px; border-radius: 2px; font-size: 14px; }
.hero-promo-copy { background: none; border: 1px solid var(--line); border-radius: 2px; padding: 4px 11px; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); transition: background-color .2s var(--ease); }
.hero-promo-copy:hover { background: var(--cream); }

.cart-promo { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 6px; display: grid; gap: 9px; }
.cart-promo[hidden] { display: none; }
.cart-promo-label { font-size: 13px; color: var(--ink-soft); }
.cart-promo-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.cart-promo-row[hidden] { display: none; }
.cart-promo-input { flex: 1 1 62%; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 2px; font: inherit; background: var(--paper); text-transform: uppercase; letter-spacing: .04em; }
/* A2: the promo "apply" button must always be fully visible — never shrink or truncate. */
.cart-promo-row .btn { flex: 0 0 auto; white-space: nowrap; }
.cart-promo-input:focus-visible { outline: 2px solid var(--olive); outline-offset: 1px; }
.cart-promo-msg { font-size: 13px; color: var(--gold-ink); margin: 0; }
.cart-promo-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.cart-promo-applied[hidden] { display: none; }
.cart-promo-applied strong { letter-spacing: .06em; }
.promo-remove { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
.cart-promo-terms-link { background: none; border: 0; color: var(--gold-ink); text-decoration: underline; cursor: pointer; font: inherit; font-size: 12.5px; justify-self: start; padding: 0; }
.cart-total-row.promo span:last-child, .order-total-row.promo span:last-child { color: var(--gold-ink); }
.cart-total-final, .order-total-final { font-weight: 500; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.cart-total-row[hidden], .order-total-row[hidden] { display: none; }

.promo-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.promo-modal[hidden] { display: none; }
.promo-modal-backdrop { position: absolute; inset: 0; background: rgba(30, 27, 24, .5); opacity: 0; transition: opacity .25s var(--ease); }
.promo-modal.is-open .promo-modal-backdrop { opacity: 1; }
.promo-modal-panel { position: relative; z-index: 1; background: var(--ivory); max-width: 460px; width: 100%; border-radius: 3px; padding: 28px clamp(20px, 4vw, 32px); max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(30, 27, 24, .25); transform: translateY(8px); opacity: 0; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.promo-modal.is-open .promo-modal-panel { transform: none; opacity: 1; }
.promo-modal-close { position: absolute; top: 12px; inset-inline-end: 12px; }
.promo-modal-title { font-size: clamp(22px, 3vw, 28px); margin: 6px 0 10px; }
.promo-dates { font-size: 14px; color: var(--gold-ink); margin-bottom: 14px; }
.promo-dates[hidden] { display: none; }
.promo-terms-list { display: grid; gap: 8px; }
.promo-terms-list li { position: relative; padding-inline-start: 18px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.promo-terms-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* Product share */
.pdp-share { margin-top: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pdp-share-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.share-btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.share-btn:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.share-native { }
.share-feedback { font-size: 13px; color: var(--gold-ink); }
.share-feedback[hidden] { display: none; }
