/* Doré storefront · Palette B, Blanc & Champagne.
   Colours and fonts come from includes/theme.php (printed as CSS variables in the page head).
   Mobile first: base styles are for phones; min-width queries add tablet and desktop layouts. */

:root {
  /* Fallbacks in case theme.php variables are missing */
  --bg: #FFFFFF; --surface: #F7F5F1; --tint: #F4ECDD; --line: #ECE6DB;
  --gold: #CDB07A; --gold-deep: #85683A; --muted: #6E6E6E; --ink: #232323;
  --f-title: "Cinzel"; --f-wordmark: "Bodoni Moda"; --f-body: "Jost";
  --f-ar-title: "El Messiri"; --f-ar-body: "IBM Plex Sans Arabic";
  --w-heading: 400; --w-hero: 600; --w-name: 700; /* weights from Admin → Settings → Fonts */

  --danger: #A23B2C;
  --ok: #2F6B4F;
  --title: var(--f-title), "Trajan Pro", Georgia, serif;
  --wordmark: var(--f-wordmark), "Didot", "Bodoni 72", Georgia, serif;
  --sans: var(--f-body), "Futura", "Century Gothic", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 9vw, 112px);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[lang="ar"] {
  --title: var(--f-ar-title), serif;
  --wordmark: var(--f-ar-title), serif;
  --sans: var(--f-ar-body), "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
s { color: var(--muted); margin-inline-end: .4em; font-weight: 400; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type ---------- */

.section-title {
  font-family: var(--wordmark); font-weight: var(--w-heading);
  font-size: clamp(1.875rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.005em;
}
.sub-h { font-size: 1rem; font-weight: 500; margin-bottom: 14px; }
.gilt-rule { display: block; width: 40px; height: 1.5px; background: var(--gold); margin: 18px 0; }
.wordmark { font-family: "Bodoni Moda", var(--wordmark); font-weight: 700; letter-spacing: .14em; line-height: 1; }

/* ---------- Buttons and links ---------- */

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-size: .9375rem; font-weight: 500; color: var(--gold-deep);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--gold);
  transition: text-decoration-color .2s var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.arrow-link:hover .icon { transform: translateX(4px); }
[dir="rtl"] .arrow-link:hover .icon { transform: scaleX(-1) translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 500; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn-gold { background: var(--gold-deep); color: #fff; }
.btn-gold:hover { background: #6F5630; }
/* The main action of a page (Go to checkout, Try again): the same gold as everywhere else in the shop and the admin. */
.btn-solid { background: var(--gold-deep); color: #fff; }
.btn-solid:hover { background: #6F5630; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); background: var(--surface); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tint); }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-google:hover { background: var(--surface); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

.icon { width: 22px; height: 22px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: 50%; cursor: pointer; text-decoration: none; color: var(--ink);
  transition: background-color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface); }

/* ---------- Announcement and header ---------- */


.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; }
.menu-btn { justify-self: start; }
.logo { justify-self: center; display: block; position: relative; padding-bottom: 6px; }
.logo img { height: 28px; width: auto; }
.logo::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 26px; height: 1.5px; background: var(--gold); }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 0; }
.header-tools .icon { width: 20px; height: 20px; }
.lang-link { display: none; font-size: .875rem; text-decoration: none; padding: 10px 12px; }
.lang-link:hover { color: var(--gold-deep); }
.bag-link { position: relative; }
.bag-count {
  position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--gold-deep); color: #fff; font-size: .6875rem; font-weight: 500; line-height: 18px; text-align: center;
}

.site-nav { position: absolute; inset-inline: 0; top: 100%; display: none; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 20px; }
.site-nav.is-open { display: flex; }
.site-nav a { padding: 14px 0; text-decoration: none; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current] { color: var(--gold-deep); }

@media (min-width: 960px) {
  .header-row { grid-template-columns: auto 1fr auto; gap: 32px; min-height: 76px; }
  .menu-btn { display: none; }
  .logo { justify-self: start; }
  .logo img { height: 32px; }
  .site-nav { position: static; display: flex; flex-direction: row; justify-content: center; gap: 34px; background: none; border: 0; padding: 0; }
  .site-nav a { padding: 8px 0; border: 0; font-size: .9375rem; }
  .site-nav a:hover, .site-nav a[aria-current] { color: var(--gold-deep); }
  .site-nav .nav-lang { display: none; }
  .lang-link { display: inline-block; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed; z-index: 60; inset-inline: 0; bottom: 20px; margin-inline: auto; width: max-content; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: var(--r-sm); font-size: .9375rem;
  box-shadow: 0 10px 30px rgba(35, 35, 35, .18); animation: toast-in .3s var(--ease);
}
.toast[hidden] { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Hero video ---------- */

.hero { position: relative; display: grid; align-items: end; min-height: min(88svh, 820px); overflow: hidden; background: #1c1a17; color: #fff; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 17, 12, .85) 0%, rgba(20, 17, 12, .45) 35%, rgba(20, 17, 12, 0) 65%); }
.hero-copy { position: relative; z-index: 1; padding-block: 48px clamp(48px, 9vw, 96px); display: grid; justify-items: start; gap: 16px; }
.hero-title { font-family: var(--wordmark); font-weight: var(--w-heading); font-size: clamp(2.25rem, 6.5vw, 4.25rem); line-height: 1.02; max-width: 14ch; }
.hero-sub { max-width: 40ch; font-size: 1.0625rem; font-weight: 300; color: #EFE8DA; }
.hero .btn { margin-top: 8px; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-inline: var(--gutter); margin-bottom: clamp(28px, 5vw, 48px); }
.section-sub { color: var(--muted); font-size: 1rem; }

/* ---------- Product grid and cards ---------- */

.grid-3, .grid-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}

.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; }
.card-media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tint); border-radius: var(--r-sm); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s var(--ease); }
.card-alt { opacity: 0; }
.card:hover .card-media img:first-child { transform: scale(1.03); }
.card:hover .card-alt { opacity: 1; }
.card-flag { position: absolute; top: 10px; inset-inline-start: 10px; background: #fff; padding: 3px 10px; border-radius: 99px; font-size: .75rem; }
.card-flag.is-sale { background: var(--gold-deep); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 6px 6px; flex: 1; }
.card-name { font-family: var(--title); font-weight: var(--w-name); font-size: clamp(.9375rem, 2.2vw, 1.125rem); line-height: 1.25; letter-spacing: .02em; }
.card-name a { text-decoration: none; }
.card-name a:hover { color: var(--gold-deep); }
.card-meta { display: flex; gap: 12px; font-size: .8125rem; color: var(--muted); }
.card-price { margin: 6px 0 2px; font-size: .9375rem; font-weight: 500; }
.card .text-link { margin-top: auto; padding-bottom: 0; }
.price-sale { color: var(--gold-deep); }
.price-soon { color: var(--muted); font-weight: 400; font-style: italic; }

@media (max-width: 899px) {
  /* Best sellers become a swipeable row on phones. */
  /* contain: paint keeps the swipe row from widening the whole page on right-to-left (Arabic) pages. */
  .bestsellers .grid-4 { contain: paint; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .bestsellers .grid-4::-webkit-scrollbar { display: none; }
  .bestsellers .card { flex: 0 0 68%; scroll-snap-align: start; }
}

/* ---------- Offer banner ---------- */

.offers { display: grid; gap: 16px; margin-bottom: var(--section); }
.offer {
  display: grid; gap: 16px; align-items: center; justify-items: start;
  background: var(--tint); border: 1px solid var(--gold); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px);
}
.offer-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--gold-deep); }
.offer-title { font-family: var(--wordmark); font-weight: var(--w-heading); font-size: clamp(1.5rem, 3.6vw, 2.125rem); line-height: 1.15; }
.offer-copy p { color: var(--muted); margin-top: 4px; }
@media (min-width: 760px) { .offer { grid-template-columns: auto 1fr auto; } }

/* ---------- Wearer tiles ---------- */

.wearers { background: var(--surface); }
.wear-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .wear-grid { gap: 24px; } }
.wear-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; }
.wear-media { display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tint); border-radius: var(--r-md); }
.wear-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.wear-tile:hover img { transform: scale(1.04); }
.wear-name { font-family: var(--title); font-weight: var(--w-name); font-size: clamp(.875rem, 2.6vw, 1.25rem); letter-spacing: .06em; }
.wear-tile:hover .wear-name { color: var(--gold-deep); }

/* ---------- Story ---------- */

.story { padding-block: var(--section); }
.story-grid { display: grid; gap: 24px; }
.story-title { font-family: var(--wordmark); font-weight: var(--w-heading); font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.05; }
.story-body { display: grid; gap: 16px; max-width: 60ch; }
.story-body p { color: var(--muted); font-size: 1.0625rem; line-height: 1.75; }
.facts { display: grid; gap: 18px; margin-top: 18px; }
.facts div { border-top: 1.5px solid var(--gold); padding-top: 12px; }
.facts dt { font-family: var(--wordmark); font-weight: var(--w-heading); font-size: 1.5rem; line-height: 1.2; }
.facts dd { color: var(--muted); font-size: .9375rem; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .story-grid { grid-template-columns: 1fr 1.3fr; gap: 64px; } }

/* ---------- Reviews ---------- */

.reviews { background: var(--bg); border-top: 1px solid var(--line); }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: grid; gap: 14px; align-content: start; }
.stars { display: flex; gap: 2px; }
.star { width: 16px; height: 16px; color: var(--line); }
.star.on { color: var(--gold); fill: var(--gold); }
.review blockquote { font-size: 1rem; line-height: 1.7; }
.review-by { font-size: .875rem; font-weight: 500; }
.review-by span { color: var(--muted); font-weight: 400; }
.review-by a { color: var(--gold-deep); }
.empty-note { text-align: center; color: var(--muted); }
.review-cta { display: grid; justify-items: center; margin-top: 32px; }
.review-form-wrap { width: 100%; max-width: 640px; display: grid; justify-items: center; }
.review-form-wrap summary { list-style: none; }
.review-form-wrap summary::-webkit-details-marker { display: none; }
.review-form-wrap[open] summary { margin-bottom: 20px; }
.review-form { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: clamp(48px, 8vw, 80px); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-deep); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-brand, .footer-contact { grid-column: 1 / -1; }
.footer-brand .wordmark { font-size: 2rem; }
.footer-brand .gilt-rule { margin: 14px 0 10px; }
.footer-brand .tagline { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }
.footer-line { color: var(--muted); margin-top: 10px; max-width: 32ch; }
.social { display: flex; gap: 4px; margin-top: 14px; margin-inline-start: -10px; }
.social .icon-btn { color: var(--gold-deep); }
.social .icon-btn:hover { background: var(--tint); }
.footer-h { font-size: .9375rem; font-weight: 500; margin-bottom: 14px; }
.footer-links { display: grid; gap: 9px; font-size: .9375rem; color: var(--muted); }
.footer-contact { display: grid; gap: 10px; align-content: start; }
.footer-contact .footer-h { margin-bottom: 4px; }
.footer-contact :where(input, textarea) { background: #fff; }
.footer-contact .btn { justify-self: start; }
.footer-base { margin-top: 48px; padding-block: 22px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.3fr .8fr 1fr 1.4fr; gap: 48px; }
  .footer-brand, .footer-contact { grid-column: auto; }
}

/* ---------- Shop ---------- */

.shop-tools { display: grid; gap: 12px; margin-bottom: 24px; }
.search-field { position: relative; }
.search-field .icon { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-field input { padding-inline-start: 46px; }
.sort-field { display: flex; align-items: center; gap: 12px; }
.sort-field label { white-space: nowrap; font-size: .875rem; color: var(--muted); }
.sort-field select { width: auto; }
@media (min-width: 760px) { .shop-tools { grid-template-columns: 1fr auto auto; align-items: center; } }

.segmented { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.segmented::-webkit-scrollbar { display: none; }
.segmented a { flex: none; padding: 8px 18px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: .9375rem; color: var(--muted); }
.segmented a:hover { border-color: var(--gold); color: var(--ink); }
.segmented a[aria-current] { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.result-count { font-size: .875rem; color: var(--muted); margin-bottom: 24px; }
.empty { display: grid; justify-items: center; gap: 18px; text-align: center; padding-block: 40px; }
.empty p { max-width: 44ch; color: var(--muted); }

/* ---------- Forms ---------- */

/* :where() keeps these base styles at zero specificity so component rules can override them. */
:where(input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), select, textarea) {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 1rem; line-height: 1.4; transition: border-color .2s var(--ease);
}
textarea { resize: vertical; }
:where(input, select, textarea):hover { border-color: var(--gold); }
:where(input, select, textarea):focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 0; border-color: var(--gold-deep); }
input[readonly] { background: var(--surface); color: var(--muted); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23232323' stroke-width='1.4'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
[dir="rtl"] select { background-position: left 14px center; }

fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .875rem; font-weight: 500; }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .8125rem; color: var(--muted); }
.hint.ok { color: var(--ok); }
.field-error { font-size: .8125rem; color: var(--danger); margin-top: 4px; }
.form-alert { background: #F8E9E5; color: var(--danger); padding: 12px 16px; margin-bottom: 20px; border-radius: var(--r-sm); font-size: .9375rem; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.stack { display: grid; gap: 4px; }

.promo-row { display: flex; gap: 10px; }
.promo-row input { text-transform: uppercase; }
.promo-row .btn { flex: none; min-height: 48px; }

.pay-options { display: grid; gap: 10px; }
.pay-option { position: relative; display: block; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; }
.pay-body { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.pay-body .icon { flex: none; color: var(--gold-deep); }
.pay-body strong { display: block; font-weight: 500; }
.pay-body small { display: block; color: var(--muted); font-size: .8125rem; }
.pay-option input:checked + .pay-body { border-color: var(--gold-deep); box-shadow: inset 0 0 0 1px var(--gold-deep); background: var(--surface); }
.pay-option input:focus-visible + .pay-body { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* ---------- Product page ---------- */

.product { display: grid; gap: 28px; padding-block: clamp(20px, 4vw, 48px) var(--section); }
.product-gallery { display: grid; gap: 12px; }
.product-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--tint); border-radius: var(--r-lg); }
.crumbs { display: flex; gap: 8px; font-size: .8125rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-deep); }
.product-name { font-family: var(--title); font-weight: var(--w-name); font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
:root[lang="ar"] .product-name { text-transform: none; }
.product-tagline { font-size: 1.125rem; color: var(--muted); line-height: 1.5; max-width: 40ch; }
.inspired { margin-top: 6px; font-size: .8125rem; color: var(--gold-deep); }
.inspired-note { margin-top: 4px; font-size: .6875rem; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.product-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; font-size: .875rem; color: var(--muted); }
.product-price { font-size: 1.5rem; font-weight: 500; margin: 20px 0; }

.buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.buy .btn { flex: 1 1 200px; }
.qty { display: grid; gap: 6px; }
.qty-label { font-size: .8125rem; color: var(--muted); }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); height: 50px; }
.qty-control .icon-btn { border-radius: 0; width: 44px; height: 48px; }
.qty-control .icon { width: 16px; height: 16px; }
.qty-control input { width: 44px; min-height: 0; height: 48px; padding: 0; border: 0; background: none; text-align: center; font-weight: 500; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-note { margin-top: 10px; font-size: .875rem; color: var(--gold-deep); }

.assurances { display: grid; gap: 8px; margin: 24px 0 32px; padding: 18px 0; border-block: 1px solid var(--line); font-size: .9375rem; }
.assurances li { display: flex; gap: 12px; align-items: center; }
.assurances .icon { color: var(--gold-deep); flex: none; width: 20px; height: 20px; }
/* Perfume page order: tagline, notes, the scent, price and Add to bag, inspired by, delivery lines. */
.product-notes { margin-top: 26px; }
.product-desc { margin-top: 28px; }
.product-buy { margin-top: 8px; }
.product-inspired { margin-top: 22px; }
.product-desc p { color: var(--muted); line-height: 1.8; max-width: 62ch; }
.product-desc p + p { margin-top: .9em; }
.notes { display: grid; }
.notes div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.notes div:last-child { border-bottom: 1px solid var(--line); }
.notes dt { color: var(--muted); }
.disclaimer { padding-bottom: 32px; font-size: .75rem; line-height: 1.6; color: var(--muted); max-width: 900px; text-align: center; }

@media (min-width: 900px) {
  .product { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .product-info { position: sticky; top: 100px; }
}

/* ---------- Bag, checkout, account ---------- */

.cart-grid, .checkout-grid, .account-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) {
  .cart-grid { grid-template-columns: 1fr 340px; gap: 56px; }
  .checkout-grid { grid-template-columns: 1fr 380px; gap: 56px; }
  .account-grid { grid-template-columns: 1fr 360px; gap: 56px; }
  .summary { position: sticky; top: 100px; }
}
.cart-lines { border-top: 1px solid var(--line); }
.cart-line {
  display: grid; grid-template-columns: 84px 1fr auto; grid-template-areas: "thumb info info" "thumb qty total" "thumb remove remove";
  gap: 6px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.cart-thumb { grid-area: thumb; align-self: start; }
.cart-thumb img { width: 84px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--tint); border-radius: var(--r-sm); }
.cart-line-info { grid-area: info; }
.cart-line-info .card-meta { margin: 2px 0 4px; }
.cart-line-name { font-family: var(--title); font-weight: var(--w-name); font-size: 1.0625rem; line-height: 1.25; }
.cart-line-name a { text-decoration: none; }
.cart-qty { grid-area: qty; }
.cart-qty select { width: 84px; min-height: 42px; padding-block: 6px; }
.cart-line-total { grid-area: total; font-weight: 500; text-align: end; }
.cart-line > form:last-child { grid-area: remove; }
.remove { font-size: .8125rem; color: var(--muted); }
@media (min-width: 700px) {
  .cart-line { grid-template-columns: 100px 1fr 96px 120px auto; grid-template-areas: "thumb info qty total remove"; gap: 20px; }
  .cart-thumb img { width: 100px; }
}

.summary { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: grid; gap: 16px; border-radius: var(--r-md); }
.totals { display: grid; }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.totals dd { white-space: nowrap; }
.totals dt { color: var(--muted); }
.totals small { color: var(--muted); }
.totals .discount-row dt, .totals .discount-row dd { color: var(--gold-deep); }
.totals .grand { border-bottom: 0; font-size: 1.125rem; }
.totals .grand dt { color: var(--ink); font-weight: 500; }
.totals .grand dd { font-weight: 500; }
.mini-lines { display: grid; gap: 12px; }
.mini-lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: .9375rem; }
.mini-lines img { width: 52px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: var(--tint); }
.mini-lines small { display: block; color: var(--muted); }

.order-done .wrap { display: grid; justify-items: center; gap: 16px; text-align: center; }
.order-done .lead { font-size: 1.125rem; }
.done-mark { display: grid; place-items: center; width: 60px; height: 60px; border: 1.5px solid var(--gold); border-radius: 50%; color: var(--gold-deep); }
.order-box { width: 100%; text-align: start; background: var(--surface); padding: 6px 22px; margin: 10px 0; border-radius: var(--r-md); }

.order-list { display: grid; border-top: 1px solid var(--line); }
.order-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.order-list li > div { display: flex; gap: 14px; align-items: center; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--tint); color: var(--gold-deep); font-size: .75rem; white-space: nowrap; }

/* ---------- Log in / sign up ---------- */

.auth-box { width: 100%; max-width: 440px; margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 16px; }
.auth-box .section-title { text-align: center; }
.auth-box > .muted { text-align: center; margin-bottom: 8px; }
.btn-google .icon { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .8125rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-switch { text-align: center; color: var(--muted); font-size: .9375rem; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Phones: tighter header icons so the centred logo keeps its breathing room. */
@media (max-width: 420px) {
  .header-tools .icon-btn { width: 38px; height: 40px; }
  .logo img { height: 25px; }
}

/* ---------- WhatsApp ---------- */
.btn-wa { background: #1F7A4D; color: #fff; }
.btn-wa:hover { background: #17603C; }
.btn-wa .icon, .wa-ask .icon { width: 20px; height: 20px; }
.wa-confirm { display: grid; justify-items: center; gap: 14px; width: 100%; padding: 22px; background: var(--tint); border: 1px solid var(--gold); border-radius: var(--r-md); }
.wa-confirm p { max-width: 44ch; }
.wa-ask { margin: 18px 0 0; }

/* ---------- Legal pages ---------- */
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal { padding-top: clamp(40px, 6vw, 72px); }
.legal .section-title { margin-bottom: 8px; }
.legal-body { margin-top: 28px; color: var(--ink); }
.legal-body h2 { font-family: var(--wordmark); font-weight: var(--w-heading); font-size: 1.375rem; margin: 30px 0 10px; }
.legal-body p, .legal-body li { line-height: 1.8; color: #444; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul, .legal-body ol { padding-inline-start: 22px; display: grid; gap: 6px; margin: 8px 0; }
.legal-body ul { list-style: disc; }
.legal-body a { color: var(--gold-deep); }

.forgot-link { margin: -6px 0 6px; font-size: .875rem; }
.forgot-link .text-link { font-size: .875rem; }

.guest-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 22px; font-size: .9375rem; }

.inapp-tip { background: var(--tint); border: 1px solid var(--gold); border-radius: var(--r-sm); padding: 12px 14px; font-size: .875rem; line-height: 1.6; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--announce-bg, var(--tint)); color: var(--announce-fg, var(--ink)); font-size: .8125rem; line-height: 1.4; overflow: hidden; }
.announce a, .announce span { color: inherit; text-decoration: none; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }
.announce-one { text-align: center; padding: 9px var(--gutter); }
/* Rotate: one message at a time, fading */
.announce-track { position: relative; height: 36px; }
.announce-item { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 var(--gutter); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.announce-item.is-active { opacity: 1; transform: none; }
/* Marquee: one long line scrolling sideways */
.announce-marquee { display: flex; width: max-content; animation: announce-scroll var(--announce-duration, 30s) linear infinite; }
.announce-run { display: flex; align-items: center; gap: 28px; padding: 9px 14px; white-space: nowrap; }
.announce-dot { opacity: .6; }
.announce:hover .announce-marquee, .announce:focus-within .announce-marquee { animation-play-state: paused; }
@keyframes announce-scroll { to { transform: translateX(-50%); } }
[dir="rtl"] .announce-marquee { animation-name: announce-scroll-rtl; }
@keyframes announce-scroll-rtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .announce-marquee { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .announce-marquee .announce-run[aria-hidden] { display: none; }
  .announce-run { flex-wrap: wrap; justify-content: center; white-space: normal; row-gap: 4px; }
  .announce-item { transition: none; }
}

/* ---------- Carousels (customer videos and comments) ---------- */
.carousel-shell { position: relative; }
[data-carousel] { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; contain: paint; padding: 4px 2px 10px; }
[data-carousel]::-webkit-scrollbar { display: none; }
[data-carousel] > li { scroll-snap-align: start; flex: none; }
.carousel-arrow { display: none; position: absolute; top: 42%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; place-items: center; box-shadow: 0 6px 18px rgba(35,35,35,.12); transition: opacity .2s var(--ease); }
.carousel-arrow .icon { width: 18px; height: 18px; }
.carousel-arrow.is-prev { inset-inline-start: -8px; }
.carousel-arrow.is-prev .icon { transform: scaleX(-1); }
[dir="rtl"] .carousel-arrow.is-prev .icon { transform: none; }
.carousel-arrow.is-next { inset-inline-end: -8px; }
.carousel-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (min-width: 900px) and (hover: hover) { .carousel-arrow { display: grid; } }

/* Customer videos (9:16 cards) */
.ugc { padding-inline: var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto 36px; }
.ugc-card { position: relative; width: clamp(150px, 42vw, 220px); }
.ugc-media { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: #1c1a17; cursor: pointer; }
.ugc-media video, .ugc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ugc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 25%, transparent 60%, rgba(0,0,0,.45)); pointer-events: none; }
.ugc-play { position: absolute; top: 50%; left: 50%; z-index: 1; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink); display: grid; place-items: center; transition: transform .2s var(--ease), opacity .3s var(--ease); }
.ugc-play svg { width: 20px; height: 20px; margin-inline-start: 2px; }
.ugc-card.is-playing .ugc-play { opacity: 0; }
.ugc-media:hover .ugc-play { transform: scale(1.08); opacity: 1; }
.ugc-mute { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ugc-mute svg { width: 18px; height: 18px; }
.ugc-mute .i-on, .ugc-mute[aria-pressed="true"] .i-off { display: none; }
.ugc-mute[aria-pressed="true"] .i-on { display: block; }
.ugc-handle { position: absolute; top: 12px; left: 12px; z-index: 2; max-width: 60%; color: #fff; font-size: .75rem; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ugc-platform { position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 1; color: #fff; font-size: .6875rem; letter-spacing: .04em; opacity: .9; }
.ugc-card .mini-product { margin-top: 8px; }

/* Small product card under videos and comments */
.mini-product { display: flex; gap: 10px; align-items: center; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.mini-product img { width: 44px; height: 58px; object-fit: cover; border-radius: 6px; background: var(--tint); flex: none; }
.mini-product-body { display: grid; gap: 1px; min-width: 0; font-size: .8125rem; line-height: 1.35; }
.mini-product-name { font-family: var(--title); font-weight: var(--w-name); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-product-price { color: var(--muted); font-size: .75rem; }
.mini-product-price s { margin-inline-end: .3em; }
.mini-product-cta { color: var(--gold-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.mini-product:hover { border-color: var(--gold); }

/* Comments: sliding cards */
.comments .review { width: min(86vw, 340px); display: flex; flex-direction: column; gap: 12px; }
.comments .review blockquote { flex: 1; }
.comments .review .mini-product { background: var(--surface); }

/* Full-screen video viewer */
.ugc-viewer { position: fixed; inset: 0; z-index: 90; background: rgba(12,10,8,.92); display: grid; grid-template-columns: auto 1fr auto; align-items: center; justify-items: center; padding: 16px; }
.ugc-viewer[hidden] { display: none; }
.ugc-viewer-stage { display: grid; gap: 10px; justify-items: center; max-height: 100%; }
.ugc-viewer video { max-height: calc(100svh - 150px); max-width: min(92vw, 480px); aspect-ratio: 9 / 16; border-radius: 14px; background: #000; }
.ugc-viewer-product .mini-product { min-width: 240px; }
.ugc-viewer-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ugc-viewer-nav { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ugc-viewer-nav.is-prev .icon { transform: scaleX(-1); }
[dir="rtl"] .ugc-viewer-nav.is-prev .icon { transform: none; }
[dir="rtl"] .ugc-viewer-nav.is-next .icon { transform: scaleX(-1); }
@media (max-width: 600px) { .ugc-viewer { grid-template-columns: 1fr; padding: 60px 8px 12px; } .ugc-viewer-nav { display: none; } .ugc-viewer video { max-width: 100%; max-height: calc(100svh - 160px); } }
html.ugc-locked, html.ugc-locked body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { [data-carousel] { scroll-behavior: auto; } }

/* The handle is always left-to-right text, so place it by the page's direction rather than its own. */
[dir="rtl"] .ugc-handle { left: auto; right: 12px; }

/* ---------- Cookie banner ---------- */
.consent {
  position: fixed; z-index: 85; bottom: 16px; inset-inline-start: 16px; width: min(460px, calc(100% - 32px));
  display: grid; gap: 10px; padding: 20px 20px 18px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 16px; box-shadow: 0 18px 50px rgba(35, 35, 35, .18);
  animation: consent-in .35s var(--ease);
}
.consent[hidden] { display: none; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
.consent-title { font-family: var(--title); font-weight: 600; font-size: 1.0625rem; letter-spacing: .02em; margin: 0; }
.consent-text { font-size: .875rem; line-height: 1.55; color: var(--muted); margin: 0; }
.consent-text .text-link { font-size: inherit; }
.consent-choices { display: grid; gap: 8px; }
.consent-choices[hidden] { display: none; }
.consent-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.consent-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-deep); flex: none; }
.consent-opt span { display: grid; gap: 2px; }
.consent-opt strong { font-size: .875rem; font-weight: 600; }
.consent-opt small { font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions .btn { flex: 1 1 auto; min-height: 44px; padding-inline: 14px; font-size: .875rem; }
.consent-actions .btn-gold { flex-basis: 100%; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html.consent-open .quiz-pill, html.consent-open .goldie-fab { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
  .consent { inset-inline: 0; bottom: 0; width: 100%; border-radius: 18px 18px 0 0; border-inline: 0; border-bottom: 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }

.test-note { display: block; margin-top: 4px; color: var(--danger); font-weight: 500; }

/* ---------- Homepage hero: photos (Admin → Homepage hero) ---------- */
/* Laptops: the text beside the photo, on the cream of the photos. Phones: the photo fills the screen, text on top. */
.hero-slides { display: block; min-height: 0; background: var(--tint); color: var(--ink); }
.hero-slides::after { content: none; }
.hero-track { position: relative; height: min(78svh, 720px); min-height: 520px; overflow: hidden; touch-action: pan-y; }
.hero-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s linear .9s; }
.hero-slide.is-active { z-index: 2; opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
.hero-slide.is-leaving { z-index: 1; opacity: 1; visibility: visible; transition: none; }
.hero-media { position: relative; display: block; grid-column: 2; grid-row: 1; overflow: hidden; }
.hero-media picture { display: contents; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.hero-slide.is-active .hero-media img { animation: hero-zoom var(--hero-dur, 6s) linear both; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-text { grid-column: 1; grid-row: 1; align-self: center; display: grid; justify-items: start; gap: 16px; padding: 48px clamp(24px, 6vw, 88px) 96px; }
.hero-slides .hero-title { color: var(--ink); max-width: 16ch; font-size: clamp(2.25rem, 4.4vw, 3.75rem); font-weight: var(--w-hero); }
.hero-slides .hero-sub { color: #4F4A43; font-weight: 500; max-width: 34ch; }
/* Changing slides: the old text fades out first, then the new text rises in, so the two never overlap. */
.hero-slide.is-leaving .hero-text { opacity: 0; transition: opacity .25s var(--ease); }
.hero-slide.is-active .hero-text > * { animation: hero-rise .7s var(--ease) both; animation-delay: .25s; }
.hero-slide.is-active .hero-text > :nth-child(2) { animation-delay: .37s; }
.hero-slide.is-active .hero-text > :nth-child(3) { animation-delay: .49s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } }

.hero-controls { position: absolute; z-index: 2; bottom: 32px; inset-inline-start: clamp(24px, 6vw, 88px); display: flex; align-items: center; gap: 10px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(35, 35, 35, .25); transition: width .3s var(--ease), background-color .3s var(--ease); }
.hero-dot[aria-current="true"]::before { width: 26px; background: var(--gold-deep); }
.hero-arrow, .hero-pause { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(35, 35, 35, .18); background: rgba(255, 255, 255, .6); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.hero-arrow:hover, .hero-pause:hover { background: #fff; border-color: var(--gold); }
.hero-arrow .icon { width: 18px; height: 18px; transform: scaleX(-1); }
.hero-arrow.is-next .icon { transform: none; }
[dir="rtl"] .hero-arrow .icon { transform: none; }
[dir="rtl"] .hero-arrow.is-next .icon { transform: scaleX(-1); }
.hero-pause svg { width: 16px; height: 16px; }
.hero-pause .i-play, .hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }

@media (max-width: 859px) {
  /* Ends above the floating "Find your scent" button, so it never covers the dots, and hints that the page goes on. */
  .hero-track { height: min(calc(100svh - 190px), 720px); min-height: 460px; }
  .hero-slides .hero-title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .hero-slide { grid-template-columns: 1fr; }
  .hero-media { grid-column: 1; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 16, 10, .86) 0%, rgba(20, 16, 10, .55) 30%, rgba(20, 16, 10, .12) 52%, rgba(20, 16, 10, 0) 64%); }
  .hero-text { grid-column: 1; align-self: end; position: relative; z-index: 1; padding: 0 20px 76px; gap: 12px; }
  .hero-slides .hero-title { color: #fff; }
  .hero-slides .hero-sub { color: #F3EDE2; font-weight: 400; }
  .hero-controls { inset-inline: 0; bottom: 18px; justify-content: center; }
  .hero-arrow { display: none; }
  .hero-dot::before { background: rgba(255, 255, 255, .45); }
  .hero-dot[aria-current="true"]::before { background: #fff; }
  .hero-pause { width: 32px; height: 32px; border-color: rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .18); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active { transition: none; }
  .hero-slide.is-active .hero-media img, .hero-slide.is-active .hero-text > * { animation: none; }
}

/* ---------- Bundle builder ---------- */
.bundle-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .bundle-grid { grid-template-columns: 1fr 360px; gap: 48px; } .bundle-summary { position: sticky; top: 100px; } }
.bundle-list { display: grid; gap: 10px; }
.bundle-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.bundle-item[hidden] { display: none; }
.bundle-item img { width: 64px; height: 84px; object-fit: cover; border-radius: var(--r-sm); background: var(--tint); }
.bundle-item.is-picked { border-color: var(--gold-deep); background: var(--tint); box-shadow: inset 0 0 0 1px var(--gold-deep); }
.bundle-item.is-out { opacity: .55; }
.bundle-item-name { font-family: var(--title); font-weight: var(--w-name); font-size: 1rem; letter-spacing: .02em; }
.bundle-item-name a { text-decoration: none; }
.bundle-item-price { font-size: .9375rem; font-weight: 500; margin-top: 2px; }
.bundle-count { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.bundle-count .icon-btn { width: 40px; height: 40px; }
.bundle-count .icon-btn:disabled { opacity: .3; cursor: default; }
.bundle-count .icon { width: 16px; height: 16px; }
.bundle-count output { min-width: 18px; text-align: center; font-weight: 600; }
.bundle-out { font-size: .8125rem; color: var(--muted); padding-inline: 8px; }
.bundle-slots { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; counter-reset: slot; }
.bundle-slot { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 8px 12px; border: 1px dashed var(--gold); border-radius: var(--r-sm); background: #fff; font-size: .875rem; }
.bundle-slot.is-empty { color: var(--muted); justify-content: center; }
.bundle-slot:not(.is-empty) { border-style: solid; border-color: var(--line); }
.bundle-slot img { width: 44px; height: 58px; object-fit: cover; border-radius: 4px; }
.bundle-slot-text { display: grid; flex: 1; min-width: 0; }
.bundle-slot-name { font-family: var(--title); font-weight: var(--w-name); }
.bundle-slot-price { color: var(--muted); font-size: .8125rem; }
.bundle-summary .totals { margin-top: 4px; }
.bundle-badge { margin-top: 4px; }
.bundle-note { font-size: .875rem; color: var(--gold-deep); background: var(--tint); border-radius: var(--r-sm); padding: 10px 12px; }
.bundle-note .text-link { font-size: .875rem; padding: 0; }
@media (max-width: 899px) {
  /* Phones: the bundle summary stays at the bottom of the list, easy to reach after picking. */
  .bundle-page .section-head { margin-bottom: 20px; }
}

/* ---------- Newsletter: popup and footer ---------- */
.nl-pop {
  position: fixed; z-index: 84; bottom: 20px; inset-inline-start: 20px; width: min(380px, calc(100% - 40px));
  display: grid; gap: 10px; padding: 26px 22px 18px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(35, 35, 35, .2); text-align: center;
  opacity: 0; transform: translateY(18px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.nl-pop[hidden] { display: none; }
.nl-pop.is-open { opacity: 1; transform: none; }
.nl-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.nl-x:hover { background: var(--surface); color: var(--ink); }
.nl-x .icon { width: 18px; height: 18px; }
.nl-kicker { font-family: "Bodoni Moda", var(--wordmark); letter-spacing: .3em; font-size: .75rem; color: var(--gold-deep); }
.nl-title { font-family: var(--wordmark); font-weight: var(--w-heading); font-size: 1.625rem; line-height: 1.15; }
.nl-sub { color: var(--muted); font-size: .9375rem; margin-bottom: 6px; }
.nl-pop form { display: grid; gap: 10px; }
.nl-no { border: 0; background: none; color: var(--muted); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: center; padding: 4px; }
.nl-privacy { font-size: .6875rem; color: var(--muted); }
.nl-msg { font-size: .875rem; color: var(--gold-deep); }
.nl-msg.is-error { color: var(--danger); }
.nl-code { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px; border: 1px dashed var(--gold); border-radius: var(--r-sm); background: var(--tint); }
.nl-code[hidden] { display: none; }
.nl-code strong { font-size: 1.25rem; letter-spacing: .08em; color: var(--gold-deep); }
form.is-done input[type="email"], form.is-done [type="submit"] { display: none; }
.footer-nl { display: grid; gap: 6px; margin-top: 22px; max-width: 360px; }
.footer-nl .footer-h { margin-bottom: 0; }
.footer-nl-sub { color: var(--muted); font-size: .875rem; }
.footer-nl-row { display: flex; gap: 8px; }
.footer-nl-row input { background: #fff; }
.footer-nl-row .btn { flex: none; min-height: 48px; padding-inline: 16px; }
.footer-nl .nl-code { justify-content: flex-start; }
@media (max-width: 600px) {
  .nl-pop { inset-inline: 0; bottom: 0; width: 100%; border-radius: 20px 20px 0 0; border-inline: 0; border-bottom: 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}
html.nl-open .quiz-pill { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .nl-pop { transition: none; } }

/* ---------- "Tell me when it's available" ---------- */
.notify-box { margin-top: 14px; padding: 16px; background: var(--tint); border: 1px solid var(--gold); border-radius: var(--r-md); display: grid; gap: 8px; }
.notify-box h2 { font-size: 1rem; font-weight: 600; }
.notify-box p { font-size: .875rem; color: var(--muted); }
.notify-row { display: flex; gap: 8px; }
.notify-row input { background: #fff; }
.notify-row .btn { flex: none; min-height: 48px; }
.notify-box .notify-msg { color: var(--gold-deep); font-weight: 500; }
.notify-box.is-done .notify-row { display: none; }

/* ---------- Track your order ---------- */
.track-form { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.track-form .hint { margin-top: 10px; text-align: center; }
.track-card { display: grid; gap: 16px; }
.track-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.track-steps { list-style: none; padding: 0; margin: 6px 0; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: .875rem; color: var(--muted); }
.track-steps li { position: relative; display: grid; justify-items: center; gap: 8px; }
.track-steps li::before { content: ""; position: absolute; top: 15px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.track-steps li:first-child::before { content: none; }
.track-steps li.is-done::before, .track-steps li.is-now::before { background: var(--gold-deep); }
.track-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: #fff; }
.track-dot .icon { width: 16px; height: 16px; }
.track-steps .is-done .track-dot, .track-steps .is-now .track-dot { background: var(--gold-deep); border-color: var(--gold-deep); }
.track-steps .is-now { color: var(--ink); font-weight: 600; }
.track-steps .is-now .track-dot { box-shadow: 0 0 0 5px rgba(133, 104, 58, .18); }
.track-state { padding: 14px 16px; background: var(--tint); border-radius: var(--r-sm); }
.track-state.is-bad { background: #F8E9E5; color: var(--danger); }
.track-note { font-size: .9375rem; padding: 12px 14px; background: var(--tint); border-radius: var(--r-sm); }
.track .order-box { margin: 0; }
.track .text-link .icon { width: 18px; height: 18px; }
