/* fonts are served from this site (no wait on another server); the fallback is sized to match so text does not jump */
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/amiri-400-ar.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/amiri-400-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/amiri-700-ar.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Amiri'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/amiri-700-lat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('/fonts/cormorant-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/cormorant.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jost-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Fallback'; src: local('Georgia'); size-adjust: 86%; ascent-override: 96%; descent-override: 28%; line-gap-override: 0%; }
:root {
  --wine: #3f0a0e;
  --wine-raised: #521318;
  --wine-deep: #2a0507;
  --cream: #efe2c8;
  --cream-soft: rgba(239, 226, 200, .74);
  --cream-faint: rgba(239, 226, 200, .22);
  --brass: #b9975b;
  --ink: #2b1810;
  --serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  --ui: 'Jost', system-ui, sans-serif;
  --track: .32em;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
html[lang='ar'] {
  --serif: 'Amiri', 'Cormorant Garamond', serif;
  --ui: 'Amiri', system-ui, sans-serif;
  --track: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--wine);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang='ar'] body { font-size: 18px; line-height: 1.8; }
/* linen weave + vignette, fixed behind everything */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 20%, transparent 40%, rgba(20, 2, 4, .55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .45' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .8 0 0 0 0 .7 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--cream); color: var(--wine); }
:focus-visible { outline: 1px solid var(--cream); outline-offset: 4px; }
html { scrollbar-color: var(--wine-raised) var(--wine-deep); }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--wine-deep); }
::-webkit-scrollbar-thumb { background: var(--wine-raised); border: 2px solid var(--wine-deep); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--cream); color: var(--wine); padding: 10px 16px; }
.skip:focus { top: 12px; }
.num, .price, .bag-sums dd, .qty-n { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--pad);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.top.solid { background: rgba(48, 7, 10, .94); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
@supports (backdrop-filter: blur(8px)) { .top.solid { background: rgba(48, 7, 10, .82); backdrop-filter: blur(14px) saturate(1.1); } }
.top-nav { display: flex; gap: 26px; }
.top-nav a, .lang {
  font-family: var(--ui); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; color: var(--cream-soft); transition: color .2s;
}
html[lang='ar'] .top-nav a, html[lang='ar'] .lang { font-size: 16px; letter-spacing: 0; }
.top-nav a:hover, .lang:hover, .top-nav a[aria-current] { color: var(--cream); }
.top-nav a { background: linear-gradient(var(--cream), var(--cream)) 50% 100% / 0 1px no-repeat; padding-bottom: 5px; transition: color .2s, background-size .5s var(--ease-out); }
.top-nav a[aria-current] { background-size: 100% 1px; }
.brand { justify-self: center; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.brand img { height: 38px; width: auto; }
.top:not(.solid) .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility 0s .5s; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.lang { min-width: 44px; min-height: 44px; padding: 8px 6px; }
.lang[lang='ar'] { font-family: 'Amiri', serif; font-size: 17px; letter-spacing: 0; text-transform: none; }
.bag-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.bag-btn svg, .icon-btn svg { width: 24px; height: 24px; fill: none; stroke: var(--cream); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.bag-count {
  position: absolute; top: 3px; inset-inline-end: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--cream); color: var(--wine); border-radius: 10px;
  font: 600 11px/19px var(--ui); letter-spacing: 0; text-align: center;
}
.bag-count.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.35); } }
@media (max-width: 699px) {
  .top { grid-template-columns: auto 1fr; row-gap: 0; padding-bottom: 6px; }
  .brand { justify-self: start; } .brand img { height: 30px; }
  /* chapter links become a second row once you have scrolled into the beans */
  .top-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 6px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease-out), opacity .4s; }
  .top.solid .top-nav { max-height: 48px; opacity: 1; }
  .top-nav a { min-height: 44px; display: grid; place-items: center; padding: 0 12px; background-position: 50% 78%; }
}

/* ---------- hero: words above, the hanging line below ---------- */
.hero { display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.hero-copy { text-align: center; padding: calc(96px + env(safe-area-inset-top)) var(--pad) 0; max-width: 760px; position: relative; z-index: 1; }
.hero h1 { display: grid; justify-items: center; gap: 10px; }
.hero-logo { width: clamp(220px, 26vw, 380px); height: auto; filter: drop-shadow(0 6px 18px rgba(20, 2, 4, .45)); }
.hero-caps { font-size: clamp(15px, 1.4vw, 19px); letter-spacing: .5em; text-transform: uppercase; font-weight: 600; padding-inline-start: .5em; }
html[lang='ar'] .hero-caps { letter-spacing: 0; font-size: clamp(20px, 2vw, 26px); padding: 0; }
.hero-line { margin-top: 16px; font-style: italic; font-size: clamp(18px, 1.8vw, 22px); color: var(--cream-soft); text-wrap: balance; }
html[lang='ar'] .hero-line { font-style: normal; }
.hero-copy { order: 0; }
.hero-img { order: 1; position: relative; display: block; width: 100%; margin-top: clamp(-40px, -2vw, -10px); aspect-ratio: 16 / 9;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 86%, transparent 100%); }
.hero-img img, .hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img { background: #5a1014; }
#groups:empty { min-height: 300vh; }
.i18n-wait body { visibility: hidden; }
.hero-vid { opacity: 0; transition: opacity 1.6s ease; }
.hero-vid.on { opacity: 1; }
@media (max-width: 700px) {
  .hero-copy { padding-top: calc(86px + env(safe-area-inset-top)); }
  .hero-img { margin-top: 0; aspect-ratio: 941 / 1080; }
}
/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 34px;
  font: 600 15px/1 var(--serif); letter-spacing: var(--track); text-transform: uppercase; text-decoration: none;
  transition: background .25s, color .25s, box-shadow .35s var(--ease-out), transform .2s;
}
html[lang='ar'] .btn { font-size: 19px; font-weight: 700; }
.btn-cream { background: var(--cream); color: var(--wine); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8); }
.btn-cream:hover { background: #fbf0d9; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .9); }
.btn-cream:active { transform: translateY(1px); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .spinner { display: none; width: 16px; height: 16px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(1turn); } }
.btn-link { display: block; text-align: center; font-style: italic; font-size: 16px; color: var(--cream-soft); padding: 10px; }
.btn-link:hover { color: var(--cream); }

/* ---------- headings with rules, as on the poster ---------- */
.rule-title {
  display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 30px);
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
  padding-inline-start: var(--track);
}
.rule-title::before, .rule-title::after { content: ''; width: clamp(40px, 9vw, 110px); height: 1px; background: var(--cream); opacity: .75; }

/* ---------- collection: three chapters, each opens with a lead portrait ---------- */
.collection { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 90px); }
.group { scroll-margin-top: 90px; }
@media (max-width: 699px) { .group { scroll-margin-top: 128px; } }
.group + .group { margin-top: clamp(80px, 11vw, 150px); }
.group-head { text-align: center; padding: 0 var(--pad); }
.group-line { margin-top: 10px; font-style: italic; font-size: clamp(18px, 1.9vw, 22px); color: var(--cream-soft); }
html[lang='ar'] .group-line { font-style: normal; }
.plates {
  list-style: none; margin: clamp(26px, 4vw, 52px) auto 0; padding: 0 var(--pad); max-width: 1240px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(18px, 3vw, 44px);
}
.card { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.card-fig { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; margin: 0; container-type: inline-size;
  background: var(--tone, var(--wine-deep)); cursor: pointer; perspective: 900px;
  box-shadow: 0 30px 44px -28px rgba(10, 1, 2, .95); }
.card-art { position: absolute; inset: 0; display: block; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.06); transition: transform .9s var(--ease-out); will-change: transform; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
/* a hairline mat inside the photo: each flavour is its own framed print */
.card-fig::after { content: ''; position: absolute; inset: 3.2cqi; border: 1px solid rgba(239, 226, 200, .3); pointer-events: none; transition: inset .6s var(--ease-out), border-color .6s; }
.card-fig:hover::after, .card-fig:focus-visible::after { inset: 2.2cqi; border-color: rgba(239, 226, 200, .6); }
/* as you scroll, each still life drifts a little inside its frame */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card-art picture { display: block; height: 100%; animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .card-art .tag-label { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { translate: 0 2.4%; } to { translate: 0 -2.4%; } }
  }
}
.card-art picture { display: block; height: 100%; }
/* the name, written on the paper tag */
.tag-label {
  position: absolute; display: grid; place-items: center; pointer-events: none; text-align: center;
  color: var(--ink); font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 600; line-height: 1;
  font-size: var(--fs, 3cqi); mix-blend-mode: multiply; opacity: .9; transform-origin: 50% -30%;
  transition: transform 1.4s var(--ease-out);
}
html[lang='ar'] .tag-label { font-family: 'Amiri', serif; font-style: normal; font-weight: 700; line-height: 1.15; }
/* a photo fades in softly once it has fully arrived: no wipe, no pop */
.card-art img { opacity: 0; transition: opacity .7s ease; }
.card-art .tag-label { opacity: 0; transition: opacity .7s ease .15s; }
.card-art.ready img { opacity: 1; }
.card-art.ready .tag-label { opacity: .9; }

.card-body { width: 100%; max-width: 340px; padding: 20px 0 0; display: grid; gap: 14px; justify-items: center; }
.card-name { font-size: 28px; font-style: italic; font-weight: 500; line-height: 1.1; }
.card-name a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.card-name a:hover, .card-name a:focus-visible { background-size: 100% 1px; }
html[dir='rtl'] .card-name a { background-position: 100% 100%; }
.only-size { font: 500 13px/1 var(--ui); letter-spacing: .14em; color: var(--cream-soft); min-height: 46px; display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--cream-faint); }
html[lang='ar'] .only-size { font-size: 16px; letter-spacing: 0; }
html[lang='ar'] .card-name { font-style: normal; font-weight: 700; font-size: 26px; line-height: 1.4; }
.card-notes { font-size: 17.5px; color: rgba(239, 226, 200, .86); margin-top: -8px; text-wrap: balance; }
.buy { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.size-pick { display: flex; border: 1px solid var(--cream-faint); }
.size-pick label { position: relative; }
.size-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-pick span {
  display: grid; place-items: center; min-width: 72px; min-height: 44px; padding: 0 12px; text-align: center;
  font: 500 13px/1 var(--ui); letter-spacing: .14em; color: var(--cream-soft);
  transition: background .25s, color .25s;
}
html[lang='ar'] .size-pick span { font-size: 16px; letter-spacing: 0; }
.size-pick input:checked + span { background: var(--cream); color: var(--wine); }
.size-pick input:focus-visible + span { outline: 1px solid var(--cream); outline-offset: 3px; }
.size-pick label:hover input:not(:checked) + span { color: var(--cream); }
.price { font-size: 23px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.add {
  width: 100%; min-height: 50px; border: 1px solid var(--cream);
  font: 600 14px/1 var(--serif); letter-spacing: var(--track); text-transform: uppercase;
  transition: background .25s, color .25s, transform .2s;
}
html[lang='ar'] .add { font-size: 18px; font-weight: 700; }
.add:hover { background: var(--cream); color: var(--wine); }
.add:active { transform: scale(.985); }
.add.done { background: var(--cream); color: var(--wine); }
.add[disabled] { opacity: .5; cursor: not-allowed; border-style: dashed; }
.add[disabled]:hover { background: none; color: inherit; }
.sheet .add[disabled], .sheet .add[disabled]:hover { background: var(--cream); color: var(--wine); }

@media (min-width: 560px) {
  .plates-2 .card:not(.lead), .plates-3 .card:not(.lead) { grid-column: span 6; }
}
@media (min-width: 560px) and (max-width: 699px) { .plates-3 .card:last-child { grid-column: 4 / span 6; } }
@media (min-width: 700px) {
  /* lead: big portrait on one side, its words on the other; sides alternate by chapter */
  .card.lead { flex-direction: row; align-items: center; gap: clamp(28px, 6vw, 90px); text-align: start; }
  .group:nth-child(even) .card.lead { flex-direction: row-reverse; }
  .card.lead .card-fig { flex: 0 1 620px; min-width: 0; }
  .card.lead .card-body { flex: 1 1 0; max-width: 400px; justify-items: start; gap: clamp(14px, 1.6vw, 20px); padding: 0; }
  .card.lead .card-name { font-size: clamp(36px, 5vw, 68px); line-height: 1; }
  html[lang='ar'] .card.lead .card-name { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.3; }
  .card.lead .card-notes { font-size: clamp(18px, 1.7vw, 21px); margin-top: -6px; }
  .card.lead .buy { justify-content: flex-start; }
  .card.lead .add { max-width: 320px; }
  .plates-2 .card:not(.lead) { grid-column: span 5; }
  .plates-2 .card:nth-child(2) { grid-column: 2 / span 5; }
  .plates-3 .card:not(.lead) { grid-column: span 4; }
}

/* ---------- two sizes: a chooser that sets every bean ---------- */
.sizes { padding: clamp(50px, 8vw, 110px) var(--pad) clamp(30px, 5vw, 70px); display: grid; justify-items: center; text-align: center; }
.size-duo { margin-top: clamp(18px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 860px); }
.size-opt { position: relative; display: grid; justify-items: center; align-content: start; padding: clamp(10px, 2vw, 24px) clamp(8px, 2vw, 28px) clamp(18px, 2.4vw, 30px); cursor: pointer; }
.size-opt + .size-opt { border-inline-start: 1px solid var(--cream-faint); }
.size-opt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.size-num { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(60px, 21vw, 220px); line-height: .86; letter-spacing: -.02em; font-variant-numeric: lining-nums;
  color: transparent; -webkit-text-stroke: 1px rgba(239, 226, 200, .55); transition: color .6s var(--ease-out), -webkit-text-stroke-color .6s, transform .8s var(--ease-out); }
.size-opt:hover .size-num { -webkit-text-stroke-color: var(--cream); }
.size-opt input:checked ~ .size-num { color: var(--cream); -webkit-text-stroke-color: var(--cream); transform: translateY(-4px); }
.size-opt input:focus-visible ~ .size-num { outline: 1px solid var(--cream); outline-offset: 8px; }
.size-unit { margin-top: 10px; font-family: var(--ui); font-size: 12px; letter-spacing: .42em; text-transform: uppercase; padding-inline-start: .42em; color: var(--cream-soft); }
html[lang='ar'] .size-unit { font-size: 17px; letter-spacing: 0; padding: 0; }
.size-say { margin-top: clamp(12px, 1.6vw, 20px); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15; }
html[lang='ar'] .size-say { font-style: normal; font-weight: 700; line-height: 1.5; }
.size-cups { font-size: 17px; color: var(--cream-soft); }
.size-opt::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 1px; background: var(--cream); transition: width .7s var(--ease-out), left .7s var(--ease-out); }
.size-opt:has(input:checked)::after { width: 46%; left: 27%; }
.sizes-pick { margin-top: 22px; font-family: var(--ui); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-soft); }
html[lang='ar'] .sizes-pick { font-family: var(--serif); font-size: 16px; letter-spacing: 0; }
.sizes-line { margin-top: clamp(26px, 4vw, 44px); font-style: italic; color: var(--cream); font-size: clamp(18px, 2vw, 22px); text-wrap: balance; }
html[lang='ar'] .sizes-line { font-style: normal; }

/* ---------- the beans scene: pinned while you scroll; the scroll pours the beans ---------- */
.bar { position: relative; margin-top: clamp(30px, 6vw, 80px); --p: 0; }
.bar-pin { position: relative; height: min(100svh, 860px); min-height: 420px; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.bar.scrub { height: 240svh; }
.bar.scrub .bar-pin { position: sticky; top: 0; height: 100svh; }
.bar-img, .bar-img img, .bar-vid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.bar-img img, .bar-vid { object-fit: cover; object-position: 70% 50%; }
.bar-vid { opacity: 0; transition: opacity .8s ease; }
.bar-vid.on { opacity: 1; }
.bar-pin::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(63, 10, 14, .92) 0%, rgba(63, 10, 14, .5) 42%, rgba(63, 10, 14, 0) 68%), linear-gradient(180deg, var(--wine) 0%, transparent 16%, transparent 84%, var(--wine) 100%); }
html[dir='rtl'] .bar-img img, html[dir='rtl'] .bar-vid { transform: scaleX(-1); }
html[dir='rtl'] .bar-pin::before { background: linear-gradient(270deg, rgba(63, 10, 14, .92) 0%, rgba(63, 10, 14, .5) 42%, rgba(63, 10, 14, 0) 68%), linear-gradient(180deg, var(--wine) 0%, transparent 16%, transparent 84%, var(--wine) 100%); }
.bar-copy { padding: 0 var(--pad); max-width: 560px; margin-inline-start: clamp(0px, 6vw, 110px); }
.bar-copy h2 { font-size: clamp(34px, 4.6vw, 58px); font-style: italic; line-height: 1.05; font-weight: 500; text-wrap: balance; }
html[lang='ar'] .bar-copy h2 { font-style: normal; font-weight: 700; line-height: 1.4; }
.bar-copy p { margin-top: 18px; font-size: 20px; color: rgba(239, 226, 200, .88); max-width: 40ch; }
/* while scrubbing, the words arrive as the beans land */
.bar.scrub .bar-copy h2 { opacity: clamp(0, (var(--p) - .12) * 5, 1); transform: translateY(calc((1 - clamp(0, (var(--p) - .12) * 5, 1)) * 16px)); }
.bar.scrub .bar-copy p { opacity: clamp(0, (var(--p) - .38) * 5, 1); transform: translateY(calc((1 - clamp(0, (var(--p) - .38) * 5, 1)) * 16px)); }
@media (max-width: 700px) {
  .bar-pin { align-items: end; }
  .bar-img img, .bar-vid { object-position: 50% 50%; }
  html[dir='rtl'] .bar-img img, html[dir='rtl'] .bar-vid { transform: none; }
  .bar-pin::before, html[dir='rtl'] .bar-pin::before { background: linear-gradient(0deg, var(--wine) 6%, rgba(63, 10, 14, .78) 38%, rgba(63, 10, 14, .05) 70%), linear-gradient(180deg, var(--wine) 0%, transparent 18%); }
  .bar-copy { margin: 0; padding-bottom: clamp(36px, 9svh, 80px); }
}

/* ---------- closing: one line and a WhatsApp icon ---------- */
.closing { padding: clamp(70px, 10vw, 130px) var(--pad) clamp(60px, 8vw, 100px); display: grid; justify-items: center; gap: 28px; text-align: center; }
.closing h2 { font-size: clamp(30px, 4.4vw, 54px); font-style: italic; line-height: 1.1; text-wrap: balance; }
html[lang='ar'] .closing h2 { font-style: normal; font-weight: 700; line-height: 1.4; }
.wa { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--wine);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .85); transition: transform .5s var(--ease-out), background .25s, box-shadow .5s var(--ease-out); }
.wa:hover { transform: translateY(-3px); background: #fbf0d9; box-shadow: 0 22px 34px -16px rgba(0, 0, 0, .9); }
.wa-glyph { width: 30px; height: 30px; fill: currentColor; }
.wa[hidden] { display: none; }
.social { display: flex; gap: 18px; justify-content: center; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--cream-faint); padding: 40px var(--pad) calc(40px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 12px; text-align: center; background: var(--wine-deep); }
.foot img { height: 34px; width: auto; opacity: .9; }
.foot p { font-size: 15px; color: var(--cream-soft); }
.foot-small { font-family: var(--ui); font-size: 12px !important; letter-spacing: .14em; }

/* ---------- bag drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(20, 2, 4, .6); opacity: 0; transition: opacity .4s var(--ease-out); }
.scrim.on { opacity: 1; }
.bag {
  position: fixed; z-index: 31; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100vw);
  background: var(--wine-raised); box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .8);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(104%); transition: transform .5s var(--ease-out);
  padding-top: env(safe-area-inset-top);
}
html[dir='rtl'] .bag { transform: translateX(-104%); }
.bag.open { transform: none !important; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--cream-faint); }
.bag-head h2 { font-size: 20px; letter-spacing: var(--track); text-transform: uppercase; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; margin-inline-end: -10px; }
.bag-body { overflow-y: auto; padding: 8px 22px; overscroll-behavior: contain; }
.bag-body.busy { opacity: .55; transition: opacity .25s; }
.bag-empty { text-align: center; padding: 60px 10px; display: grid; gap: 18px; justify-items: center; }
.bag-empty p { font-style: italic; color: var(--cream-soft); font-size: 20px; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--cream-faint); }
.line img { width: 72px; height: 72px; object-fit: cover; }
.line-name { font-style: italic; font-size: 20px; line-height: 1.15; }
html[lang='ar'] .line-name { font-style: normal; font-weight: 700; font-size: 18px; }
.line-size { font-family: var(--ui); font-size: 12px; letter-spacing: .16em; color: var(--cream-soft); }
.line-ctrl { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
@media (max-width: 360px) { .line { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; } .line img { width: 56px; height: 56px; } .bag-head, .bag-body, .bag-foot { padding-inline: 14px; } }
.qty { display: flex; align-items: center; border: 1px solid var(--cream-faint); }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; }
.qty button svg { width: 14px; height: 14px; stroke: var(--cream); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty-n { min-width: 26px; text-align: center; font-size: 17px; }
.line-rm { min-height: 44px; padding: 0 4px; font-size: 14px; font-style: italic; color: var(--cream-soft); text-decoration: underline; text-decoration-color: var(--cream-faint); }
.line-rm:hover { color: var(--cream); }
.line-price { font-size: 19px; font-weight: 600; align-self: start; padding-top: 2px; }
.bag-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--cream-faint); background: var(--wine); display: grid; gap: 12px; }
.bag-foot[hidden] { display: none; }
.coupon { display: flex; border: 1px solid var(--cream-faint); }
.coupon[hidden] { display: none; }
.coupon input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; background: transparent; border: 0; color: var(--cream); font: inherit; font-size: 17px; text-transform: uppercase; caret-color: var(--cream); }
.coupon input::placeholder { color: var(--cream-soft); text-transform: none; }
.coupon input:focus { outline: 1px solid var(--cream); outline-offset: -1px; }
.coupon button { min-height: 44px; padding: 0 16px; border-inline-start: 1px solid var(--cream-faint); font-family: var(--ui); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
html[lang='ar'] .coupon button { font-family: var(--serif); font-size: 17px; letter-spacing: 0; }
.coupon button:hover { background: var(--cream); color: var(--wine); }
.coupon-msg { font-size: 15px; font-style: italic; color: #ffd9c9; margin-top: -6px; }
.coupon-msg:empty { display: none; }
#sumDiscRow[hidden] { display: none; }
#sumDiscRow { color: var(--cream); }
.coupon-off { width: 30px; height: 30px; display: inline-grid; place-items: center; vertical-align: middle; margin-block: -6px; position: relative; }
.coupon-off::after { content: ''; position: absolute; inset: -7px; }
.coupon-off svg { width: 12px; height: 12px; stroke: var(--cream); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.bag-sums { margin: 0; display: grid; gap: 4px; }
.bag-sums div { display: flex; justify-content: space-between; font-size: 17px; color: var(--cream-soft); }
.bag-sums dd { margin: 0; }
.bag-sums .bag-total { color: var(--cream); font-size: 21px; font-weight: 600; padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--cream-faint); }
.bag-free { font-size: 15px; font-style: italic; color: var(--brass); text-align: center; min-height: 1.2em; }
.bag-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bag-marks span { font-family: var(--ui); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--cream-faint); color: var(--cream-soft); }
.bag-msg { font-size: 16px; text-align: center; min-height: 0; }
.bag-msg:empty { display: none; }
.bag-msg.err { color: #ffd9c9; }

/* ---------- product view ---------- */
.sheet { border: 0; padding: 0; margin: auto; width: min(1040px, 100vw - 32px); max-height: min(92dvh, 760px); background: var(--tone-bg, var(--wine-raised)); color: var(--cream); overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); }
.sheet::backdrop { background: rgba(18, 2, 4, .72); }
.sheet[open] { animation: sheet-in .55s var(--ease-out); }
.sheet[open]::backdrop { animation: fade-in .4s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(26px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet[open], .sheet[open]::backdrop { animation: none; } }
.sheet-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); max-height: inherit; background: var(--tone); }
.sheet-in::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 3, 4, 0) 40%, rgba(20, 3, 4, .5) 100%); pointer-events: none; }
html[dir='rtl'] .sheet-in::before { transform: scaleX(-1); }
.sheet-fig { position: relative; margin: 0; aspect-ratio: 1; container-type: inline-size; overflow: hidden; align-self: center; }
.sheet-fig .card-art { transform: none; }
.sheet-body { position: relative; padding: clamp(28px, 4vw, 56px); display: grid; align-content: center; gap: 18px; overflow-y: auto; }
.sheet-body h2 { font-size: clamp(38px, 5vw, 62px); font-style: italic; line-height: 1; padding-inline-end: 34px; }
html[lang='ar'] .sheet-body h2 { font-style: normal; font-weight: 700; line-height: 1.3; }
.sheet-notes { font-size: 21px; color: rgba(239, 226, 200, .9); margin-top: -6px; }
.sheet .buy { justify-content: flex-start; }
.sheet .size-pick, .sheet .only-size { border-color: rgba(239, 226, 200, .4); }
.sheet .add { width: 100%; max-width: 340px; border: 0; }
.sheet-status { min-height: 1.5em; font-style: italic; font-size: 17px; margin-top: -6px; }
html[lang='ar'] .sheet-status { font-style: normal; }
.sheet-go { text-decoration: underline; text-underline-offset: .22em; font-style: inherit; }
.sheet-go[hidden] { display: none; }
.sheet-facts { margin: 6px 0 0; border-top: 1px solid rgba(239, 226, 200, .3); }
.sheet-facts div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid rgba(239, 226, 200, .3); font-size: 17px; }
.sheet-facts dt { font-family: var(--ui); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 226, 200, .8); align-self: center; }
html[lang='ar'] .sheet-facts dt { font-family: var(--serif); font-size: 16px; letter-spacing: 0; }
.sheet-facts dd { margin: 0; text-align: end; }
.sheet-x { position: absolute; z-index: 2; top: 10px; inset-inline-end: 10px; margin: 0; background: rgba(20, 3, 4, .35); border-radius: 50%; }
@media (max-width: 760px) {
  .sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
  .sheet-in { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100%; overflow-y: auto; }
  .sheet-in::before { background: linear-gradient(180deg, rgba(20, 3, 4, 0) 30%, rgba(20, 3, 4, .55) 70%); }
  .sheet-fig { aspect-ratio: auto; height: min(44dvh, 100vw); align-self: start; }
  .sheet-fig .card-art img { object-position: 50% 62%; }
  .sheet-fig .tag-label { display: none; }
  .sheet-body { align-content: start; overflow: visible; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .sheet .add { max-width: none; }
}

/* ---------- toast + preview ---------- */
.toast {
  position: fixed; z-index: 40; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--cream); color: var(--wine); padding: 12px 22px; font-size: 17px; font-style: italic;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .8); transition: opacity .35s, transform .5s var(--ease-out);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.preview-ribbon {
  position: fixed; z-index: 15; inset-inline-start: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  font-family: var(--ui); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); border: 1px solid rgba(185, 151, 91, .5); padding: 6px 10px; background: rgba(42, 5, 7, .85);
}
html[lang='ar'] .preview-ribbon { font-family: var(--serif); font-size: 14px; letter-spacing: 0; }
.noscript { text-align: center; padding: 30px var(--pad); }

/* reduced motion: state changes stay, movement goes */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .card-art { transform: none !important; }
}

@media (max-height: 620px) { .bag-marks { display: none; } .bag-foot { gap: 8px; padding-top: 12px; } }

/* very narrow phones (folded Galaxy Fold, 280px) */
@media (max-width: 359px) {
  .top-nav { gap: 0; }
  .top-nav a { padding: 0 7px; font-size: 10.5px; letter-spacing: .12em; }
  .top { padding-inline: 12px; }
  .top-actions { gap: 6px; }
}
/* very short screens (flip-phone cover, phone held sideways): the whole bag scrolls as one, pay button stays in reach */
@media (max-height: 520px) {
  .bag { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .bag-body { overflow: visible; }
  .bag-foot { border-top: 0; }
  #payBtn { position: sticky; bottom: 10px; z-index: 1; }
  .sheet { max-height: 100dvh; }
}
