/* ============ Keina Legacy – design tokens ============ */
:root {
  --brand: #A3101C;          /* logo red */
  --brand-deep: #7A0C15;
  --brand-soft: #F7E1DE;
  --gold: #9A6B12;           /* text-safe gold on cream */
  --gold-btn: #F2C14E;       /* stepper buttons (ref: lime) */
  --cream: #FBF5EA;
  --cream-2: #F3E7CF;
  --surface: #FFFFFF;
  --ink: #2B1715;
  --muted: #6B5550;
  --line: #E9DCC8;
  --ok: #1E7A44;
  --err: #B3261E;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 36px; --r-pill: 999px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --shadow-1: 0 1px 2px rgb(43 23 21 / .06), 0 4px 14px rgb(43 23 21 / .06);
  --shadow-2: 0 10px 30px rgb(43 23 21 / .14);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 150ms; --t-med: 260ms;

  --gutter: 20px;
  --maxw: 1180px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { touch-action: pan-x pan-y; /* no pinch / double-tap zoom */ scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #1B66C9; outline-offset: 2px; border-radius: 6px; }
/* Headings/containers that only receive focus when a popup opens: no ring */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
/* Touch screens: no ring after tapping buttons (keyboard users on computers still get it) */
@media (hover: none) and (pointer: coarse) { button:focus, a:focus { outline: none; } }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-5); border-radius: var(--r-md);
  font-weight: 700; font-size: 16px; border: 2px solid transparent;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgb(163 16 28 / .28); }
.btn--primary:hover { background: var(--brand-deep); }
.btn--outline { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand-soft); }
.btn--block { width: 100%; }
.btn:active { opacity: .85; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; box-shadow: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-pill);
  border: 0; background: transparent; color: var(--ink); position: relative;
  transition: background-color var(--t-fast);
}
.icon-btn:hover { background: rgb(43 23 21 / .06); }
.round-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid currentColor; background: rgb(255 255 255 / .12); color: inherit;
  transition: background-color var(--t-fast);
}
.round-btn:hover { background: rgb(255 255 255 / .24); }

/* ============ Top bar ============ */
/* Phones/tablets: header stays at the top of the page and scrolls away (the View cart bar covers cart access).
   Desktop (≥900px, no cart bar): header stays visible so the cart is always reachable. */
.topbar {
  position: relative; top: 0; z-index: 30;
  background: rgb(251 245 234 / .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color var(--t-med);
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; }
.topbar__logo img { height: 30px; width: auto; }
.topbar__nav { display: none; margin-left: auto; gap: var(--s-2); }
.topbar__nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: var(--r-sm); }
.topbar__nav a:hover { background: rgb(43 23 21 / .06); }
.cart-btn { margin-left: auto; background: var(--surface); box-shadow: var(--shadow-1); }
.cart-btn__badge {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
  border: 2px solid var(--cream);
}
.cart-btn__badge.bump { animation: bump 320ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.3); } }
@media (min-width: 900px) { .topbar { position: sticky; } .topbar__nav { display: flex; } .topbar__nav + .cart-btn { margin-left: var(--s-2); } }

/* ============ Hero ============ */
.hero { padding: var(--s-5) 0 var(--s-6); }
.hero__grid { display: grid; gap: var(--s-6); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-3); }
.hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 8.5vw, 64px); letter-spacing: -.01em; color: var(--ink); }
.hero__title em { font-style: italic; color: var(--brand); }
/* Malay tagline: a calm second line, smaller and lighter than the headline */
.hero__tagline {
  display: block; margin-top: .35em;
  font-size: .56em; font-weight: 700; line-height: 1.3; letter-spacing: .005em;
}
.hero__lead { margin-top: var(--s-4); color: var(--muted); font-size: 17px; max-width: 46ch; }

.search { position: relative; display: block; margin-top: var(--s-5); max-width: 520px; }
.search input {
  width: 100%; height: 52px; padding: 0 52px 0 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1);
}
.search input::placeholder { color: #8C7670; }
.search .ico { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.chips { display: flex; gap: var(--s-2); margin-top: var(--s-4); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { border-color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Promo carousel */
.promo { position: relative; }
.promo__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto;
  scroll-snap-type: x mandatory; border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  scrollbar-width: none;
}
.promo__track::-webkit-scrollbar { display: none; }
.promo__slide { position: relative; scroll-snap-align: start; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.promo__slide img { width: 100%; height: 100%; object-fit: cover; }
.promo__slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgb(43 10 12 / .78) 100%); }
.promo__text {
  position: absolute; right: var(--s-5); bottom: var(--s-5); z-index: 1; text-align: right; color: #fff;
  display: grid; justify-items: end; gap: var(--s-2);
}
.promo__text p { font-weight: 600; font-size: 17px; line-height: 1.3; text-shadow: 0 1px 8px rgb(0 0 0 / .35); }
.promo__text strong { font-family: var(--font-display); font-size: 26px; }
.promo__tag { background: var(--gold-btn); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); }
.promo__cta { min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 0; background: #fff; color: var(--brand); font-weight: 700; }
.promo__cta:hover { background: var(--cream); }
.promo__dots { display: flex; justify-content: center; gap: 2px; margin-top: var(--s-2); }
.promo__dot { width: 32px; height: 32px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.promo__dot::before { content: ''; width: 8px; height: 8px; border-radius: var(--r-pill); background: #CDBBA6; transition: width var(--t-med) var(--ease-out), background-color var(--t-med); }
.promo__dot.is-active::before { width: 22px; background: var(--brand); }

@media (min-width: 900px) {
  .hero { padding: var(--s-7) 0; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--s-7); }
  .promo__slide { aspect-ratio: 1 / 1; }
}

/* ============ Sections ============ */
.section { padding: var(--s-7) 0; }
.section--tint { background: var(--cream-2); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-5); }
.section__head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 5vw, 40px); }
.section__note { color: var(--muted); font-size: 15px; }
.sub-head { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: var(--s-7) 0 var(--s-4); }
.sub-head__icon { width: 1em; height: 1em; margin-left: 4px; vertical-align: -0.1em; color: var(--brand); stroke-width: 2.2; }
.empty { color: var(--muted); padding: var(--s-5) 0; }
@media (min-width: 900px) { .section { padding: var(--s-8) 0; } }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); } }
.pcard {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden;
  transition: box-shadow var(--t-med), transform var(--t-med) var(--ease-out);
}
.pcard:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
/* Image box: sized only by the card width (absolute image), so Safari can't
   stretch it to the photo's natural width and push it past the card edge. */
.pcard__media {
  position: relative; display: block; min-width: 0; aspect-ratio: 1 / 1;
  margin: var(--s-2) var(--s-2) 0; border-radius: var(--r-md); overflow: hidden;
  background: var(--soft, var(--cream-2));
}
.pcard__media img {
  position: absolute; inset: var(--s-3); width: calc(100% - 2 * var(--s-3)); height: calc(100% - 2 * var(--s-3));
  max-width: none; object-fit: contain; filter: drop-shadow(0 8px 12px rgb(43 23 21 / .18));
  transform: scale(var(--img-scale, 1));
}.pcard__body { padding: var(--s-2) var(--s-4) var(--s-4); display: grid; gap: 2px; flex: 1; }
.pcard__name { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.pcard__name a { color: var(--ink); text-decoration: none; }
.pcard__name a::after { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.pcard__tag { font-size: 13px; color: var(--muted); font-style: italic; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-3); }
.pcard__price { font-weight: 700; font-size: 15px; }
.pcard__price small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.pcard__add {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: var(--accent, var(--brand)); color: #fff; display: grid; place-items: center;
  transition: opacity var(--t-fast);
}
.pcard__add:hover { opacity: .88; }
.pcard__badge { position: absolute; top: 16px; left: 16px; z-index: 1; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface); color: var(--accent, var(--brand)); box-shadow: var(--shadow-1); }

/* Combo cards */
.combo-grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .combo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .combo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); } }
.ccard { position: relative; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: box-shadow var(--t-med); }
.ccard:hover { box-shadow: var(--shadow-2); }
.pcard, .ccard { min-width: 0; }
.ccard__media { position: relative; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.ccard__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ccard__labels { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.ccard__save, .ccard__badge { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); box-shadow: 0 2px 8px rgb(0 0 0 / .18); }
.ccard__save { background: var(--brand); color: #fff; }
.ccard__badge { background: #7B2CBF; color: #fff; } /* purple, white text */
.ccard__body { padding: var(--s-4); display: grid; gap: var(--s-2); flex: 1; align-content: start; }
.ccard__name { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.ccard__name a { color: var(--ink); text-decoration: none; }
.ccard__name a::after { content: ''; position: absolute; inset: 0; }
.ccard__usage { margin-top: -4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ccard__contents { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ccard__contents li { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--soft); color: var(--accent); }
.ccard__foot { display: flex; align-items: end; justify-content: space-between; gap: var(--s-3); padding: 0 var(--s-4) var(--s-4); }
.ccard__price { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--brand); line-height: 1; }
.ccard__price s { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.ccard .btn { position: relative; z-index: 1; min-height: 44px; padding: 0 16px; font-size: 15px; }

/* Trust */
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust__item { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-1); }
.trust__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: var(--s-3); }
.trust__item h3 { font-size: 18px; margin-bottom: 6px; }
.trust__item p { color: var(--muted); font-size: 15px; }
.free { color: var(--ok); font-weight: 700; }
.phone { color: var(--ink); font-weight: 700; white-space: nowrap; -webkit-user-select: text; user-select: text; }

/* Galleries */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.gallery__item { border: 0; padding: 0; background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); text-align: left; transition: box-shadow var(--t-med); }
.gallery__item:hover { box-shadow: var(--shadow-2); }
.gallery__item img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.gallery__item span { display: block; padding: 10px 12px; font-weight: 600; font-size: 14px; }

/* All reviews visible at once, stacked like a masonry wall */
.reviews { columns: 1; column-gap: var(--s-4); }
@media (min-width: 640px) { .reviews { columns: 2; } }
@media (min-width: 1024px) { .reviews { columns: 3; } }
.review {
  display: block; width: 100%; margin: 0 0 var(--s-4); padding: 0; border: 0; break-inside: avoid;
  background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1);
}
.review { position: relative; border-top: 4px solid var(--accent, var(--brand)); }
.review__tag {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--accent, var(--brand)); color: #fff;
}
.review-filter { margin: 0 0 var(--s-4); }
.chip__count { font-size: 12px; font-weight: 700; opacity: .7; margin-left: 2px; }
.review img { width: 100%; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { display: flex; gap: var(--s-3); align-items: flex-start; }
.steps__n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: 18px; }
.steps h3 { font-size: 17px; margin: 6px 0 4px; }
.steps p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: var(--s-3); }
.faq details { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 56px; padding: var(--s-3) var(--s-5); font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform var(--t-med) var(--ease-out); color: var(--muted); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 var(--s-5) var(--s-5); color: var(--muted); }

/* Footer */
.footer { background: #3B0A10; color: #F6E8DA; padding: var(--s-7) 0 var(--s-5); padding-bottom: calc(var(--s-8) + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } .footer { padding-bottom: var(--s-5); } }
.footer__logo { height: 36px; width: auto; margin-bottom: var(--s-3); }
.footer__company { font-size: 14px; color: #E2CBBE; }
.footer__head { font-family: var(--font-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #E9B95A; margin-bottom: var(--s-3); }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer__text { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #F6E8DA; -webkit-user-select: text; user-select: text; }
.footer__links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #F6E8DA; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__legal { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid rgb(255 255 255 / .14); font-size: 13px; color: #D9BFB2; }

/* Mobile cart bar */
.footer { padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom)); }
body.has-cartbar .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
/* No full-width backdrop: on iPhone Safari a moving band behind the button looked like the bar "dragging".
   JS (pinCartbar) keeps it glued to the bottom of the visible screen while Safari's toolbar shows/hides. */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; pointer-events: none;
  padding: 0 var(--gutter) calc(12px + env(safe-area-inset-bottom));
  will-change: transform; transform: translate3d(0, 0, 0); -webkit-backface-visibility: hidden;
}
.cartbar__btn { pointer-events: auto; }
.cartbar__btn { width: 100%; max-width: 560px; margin-inline: auto; display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 var(--s-5); border: 0; border-radius: var(--r-md); background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 8px 22px rgb(163 16 28 / .35); }
@media (min-width: 900px) { .cartbar { display: none; } .footer, body.has-cartbar .footer { padding-bottom: var(--s-5); } }

/* ============ Dialogs shared ============ */
dialog { border: 0; padding: 0; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgb(30 10 10 / .55); }
body.no-scroll { overflow: hidden; }

/* Product sheet (reference screen 2) */
.sheet {
  width: 100%; height: 100%; margin: 0; background: var(--surface); overflow-y: auto; overscroll-behavior: contain;
}
.sheet[open] { animation: sheet-in var(--t-med) var(--ease-out); }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
.sheet__top {
  position: relative; background: var(--p-bg, var(--brand)); color: var(--p-fg, #fff);
  padding: calc(var(--s-4) + env(safe-area-inset-top)) var(--s-5) 72px; overflow: hidden;
}
.sheet__top::before { /* subtle songket-like pattern */
  content: ''; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(circle at 10px 10px, currentColor 1.2px, transparent 1.6px), radial-gradient(circle at 30px 30px, currentColor 1.2px, transparent 1.6px);
  background-size: 40px 40px;
}
.sheet__intro { position: relative; z-index: 1; max-width: 62%; margin-top: var(--s-4); }
.sheet__tagline { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.sheet__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 9vw, 52px); margin: 6px 0 var(--s-2); }
.sheet__desc { font-size: 15px; opacity: .92; }
.sheet__price { margin: var(--s-4) 0 var(--s-3); font-size: 18px; font-weight: 600; }
.sheet__price s { font-weight: 500; font-size: 15px; opacity: .75; margin-left: 6px; }
.sheet__img {
  position: absolute; right: -3%; bottom: 8px; width: 52%; max-width: 360px; height: auto; z-index: 3;
  filter: drop-shadow(0 18px 22px rgb(0 0 0 / .35));
  transform: scale(var(--img-scale, 1)); transform-origin: center bottom;
}
.sheet__img--photo { transform: none; }
.sheet__img--photo {
  width: 40%; max-width: 280px; aspect-ratio: 1 / 1; object-fit: cover; right: var(--s-4); bottom: 64px;
  border-radius: var(--r-lg); border: 4px solid rgb(255 255 255 / .9); filter: none; box-shadow: var(--shadow-2);
}
.sheet__body { position: relative; z-index: 2; background: var(--surface); margin-top: -44px; border-radius: var(--r-xl) 0 0 0; padding: var(--s-6) var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom)); }

.stepper { display: inline-flex; align-items: center; border-radius: 12px; overflow: hidden; }
.stepper button { width: 48px; height: 48px; border: 0; background: var(--gold-btn); color: var(--ink); display: grid; place-items: center; border-radius: 12px; transition: filter var(--t-fast); }
.stepper button:hover { filter: brightness(.95); }
.stepper button:disabled { opacity: .5; cursor: not-allowed; }
.stepper output { min-width: 52px; text-align: center; font-weight: 700; font-size: 18px; }
.stepper--light output { color: inherit; }
.stepper--sm button { width: 36px; height: 36px; border-radius: 10px; background: var(--cream-2); }
.stepper--sm output { min-width: 36px; font-size: 16px; }

.opts { margin: 0; display: grid; gap: var(--s-3); }
.opts__row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: var(--s-3); min-height: 48px; }
.opts__row--top { align-items: start; }
.opts dt { font-weight: 600; }
.opts dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) {
  .opts__row { grid-template-columns: 1fr; gap: 6px; min-height: 0; }
  .opts__row + .opts__row { padding-top: var(--s-3); border-top: 1px solid var(--line); }
  .seg { display: flex !important; }
  .seg button { flex: 1; }
}
.seg { display: inline-flex; background: var(--cream-2); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; font-size: 14px; color: var(--muted); transition: background-color var(--t-fast), color var(--t-fast); }
.seg button[aria-checked="true"] { background: var(--p-bg, var(--brand)); color: #fff; box-shadow: var(--shadow-1); }
.seg button small { display: block; font-size: 11px; font-weight: 600; opacity: .85; line-height: 1.1; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--line); color: var(--ink); }
.sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-6); }
.sheet .btn--primary { background: var(--p-bg, var(--brand)); box-shadow: none; }
.sheet .btn--primary:hover { filter: brightness(.92); }
.sheet .btn--outline { color: var(--p-bg, var(--brand)); border-color: var(--p-bg, var(--brand)); }
.sheet .round-btn { position: relative; z-index: 2; }

@media (min-width: 768px) {
  .sheet { width: min(760px, 94vw); height: auto; max-height: 92vh; margin: auto; border-radius: var(--r-xl); }
  .sheet__img { width: 46%; right: -2%; }
  .sheet__intro { max-width: 56%; }
}

/* Drawer (cart / checkout) */
.drawer {
  width: min(460px, 100%); height: 100%; margin: 0 0 0 auto; background: var(--cream);
  display: none; flex-direction: column; overflow: hidden;
}
.drawer[open] { display: flex; animation: drawer-in var(--t-med) var(--ease-out); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; gap: var(--s-2); padding: calc(var(--s-3) + env(safe-area-inset-top)) var(--s-4) var(--s-3); border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer__head h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; flex: 1; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s-4); overscroll-behavior: contain; }
.drawer__foot { padding: var(--s-4); padding-bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: var(--s-3); }
.drawer__secure { text-align: center; font-size: 13px; color: var(--muted); }

.cart-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s-3); align-items: center; background: var(--surface); padding: var(--s-3); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.cart-item__img { width: 72px; height: 72px; border-radius: 12px; object-fit: contain; background: var(--soft, var(--cream-2)); padding: 6px; }
.cart-item__img--cover { object-fit: cover; padding: 0; }
.cart-item__title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.cart-item__meta { font-size: 13px; color: var(--muted); }
.cart-item__right { display: grid; justify-items: end; gap: 6px; }
.cart-item__price { font-weight: 700; }
.cart-item__remove { width: 44px; height: 44px; margin: -8px -8px -8px 0; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; border-radius: 10px; }
.cart-item__remove:hover { color: var(--err); background: #FBEAEA; }
.cart-item__row { display: flex; align-items: center; gap: var(--s-2); margin-top: 6px; }
.cart-empty { text-align: center; padding: var(--s-7) var(--s-4); display: grid; gap: var(--s-4); justify-items: center; color: var(--muted); }

.totals { margin: 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; gap: var(--s-3); }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; }
.totals__grand { padding-top: 8px; border-top: 1px dashed var(--line); font-size: 18px; }
.totals__grand dt { color: var(--ink); font-weight: 700; }
.totals__grand dd { font-weight: 800; color: var(--brand); }

/* Forms */
.checkout fieldset { border: 0; padding: 0; margin: 0 0 var(--s-5); display: grid; gap: var(--s-3); }
.checkout legend { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: var(--s-2); padding: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #D9C8B0; background: var(--surface);
  font-size: 16px; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(163 16 28 / .18); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__err { font-size: 14px; color: var(--err); font-weight: 600; }
.field__err:empty { display: none; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-row { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-3); }
.error-summary { border: 2px solid var(--err); background: #FDF1F0; border-radius: 12px; padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4); color: var(--err); }
.error-summary ul { margin: 6px 0 0; padding-left: 20px; }
.error-summary a { color: var(--err); }
.form-error { color: var(--err); font-weight: 600; font-size: 14px; background: #FDF1F0; border-radius: 10px; padding: 10px 12px; }

/* Lightbox */
.lightbox { width: 100%; height: 100%; background: rgb(20 8 8 / .94); display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox figure { margin: 0; padding: 64px 16px 24px; display: grid; gap: var(--s-3); justify-items: center; }
.lightbox img { max-width: min(92vw, 900px); max-height: 80vh; object-fit: contain; border-radius: var(--r-md); }
.lightbox figcaption { color: #F3E7DA; font-weight: 600; }
.lightbox__close { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; color: #fff; }

/* Toast */
.toast {
  position: fixed; left: 50%; top: 76px; z-index: 60; transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-2); transition: opacity var(--t-med), transform var(--t-med) var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Simple content pages (policies / thank you) */
.page { padding: var(--s-7) 0 var(--s-8); }
.page h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 6vw, 48px); margin-bottom: var(--s-4); }
.page h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: var(--s-6) 0 var(--s-3); }
.page p, .page li { color: var(--muted); max-width: 70ch; }
.page p + p { margin-top: var(--s-3); }
.result-card { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-1); padding: var(--s-6) var(--s-5); text-align: center; display: grid; gap: var(--s-3); justify-items: center; max-width: 560px; margin-inline: auto; }
.result-card__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; }
.result-card__icon .ico { width: 36px; height: 36px; }
.result-card--ok .result-card__icon { background: #E3F3E9; color: var(--ok); }
.result-card--fail .result-card__icon { background: #FDF1F0; color: var(--err); }
.result-card--wait .result-card__icon { background: var(--cream-2); color: var(--gold); }
.result-card dl { margin: var(--s-2) 0 0; display: grid; gap: 6px; width: 100%; max-width: 320px; text-align: left; }
.result-card dl div { display: flex; justify-content: space-between; gap: var(--s-3); }
.result-card dt { color: var(--muted); }
.result-card dd { margin: 0; font-weight: 700; }

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