/* ==========================================================================
   The Aromaverse — "Maison" finish, applied to every page
   Champagne dawn at the top of each page, white display-case panels with
   soft depth, pill controls, and a cart built around honest rewards.
   ========================================================================== */

:root {
  --r-pill: 999px;
  --panel-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 30px 60px -44px rgba(70, 52, 28, .45), 0 0 0 1px rgba(185, 154, 99, .14);
  --lift-shadow: 0 40px 70px -46px rgba(70, 52, 28, .55), 0 0 0 1px rgba(185, 154, 99, .2);
  --champagne-wash: linear-gradient(180deg, #F2E6D3 0%, #F8F1E6 40%, rgba(252, 251, 248, 0) 100%);
}

/* A soft dawn at the top of every inner page */
main { position: relative; isolation: isolate; overflow-x: clip; }
main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; background: var(--champagne-wash); z-index: -1; pointer-events: none; }
main::after { content: ""; position: absolute; top: 0; right: -8vw; width: 46vw; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), transparent); }

/* Controls */
.choice span { border-radius: 999px; background: #fff; }
.chip { border-radius: 999px; background: #fff; }
.input, .select, .textarea { border-radius: 14px; background-color: #fff; border-color: var(--hairline-strong); min-height: 54px; }
.textarea { border-radius: 16px; }
.qty { border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--hairline-strong); border: 0; }
.qty button { border-radius: 999px; }
.size-opt span { border-radius: 16px; background: #fff; padding: 12px 10px; }
.size-opt input:checked + span { box-shadow: inset 0 0 0 1.5px var(--oud), 0 16px 30px -24px rgba(70, 52, 28, .6); }
.btn-primary { box-shadow: 0 18px 34px -20px rgba(27, 24, 21, .7); }
.btn-primary:hover { box-shadow: 0 22px 40px -20px rgba(27, 24, 21, .75), inset 0 0 0 1px rgba(217, 194, 154, .6); }
.btn-secondary { background: rgba(255, 255, 255, .7); }
.panel, .details-side, .review-form, .auth-card, .catalog-help, .policy-help, .confirm-panel, .quiz-cta, .care-channel, .account-stats > div, .finder-form {
  background: #fff; border: 0; border-radius: 26px; box-shadow: var(--panel-shadow); }
.toast { border-radius: 999px; padding: 12px 12px 12px 22px; border-left: 0; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(217, 194, 154, .35); }
.crumbs { margin-bottom: 6px; }
.h1 { letter-spacing: -.01em; }

/* ---------- Catalogue ---------- */
.catalog-head { padding-block: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 36px); }
.catalog-title-row .h1 { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem); }
@media (min-width: 1021px) {
  .filters-drawer .drawer-panel { background: #fff; border-radius: 26px; box-shadow: var(--panel-shadow); padding: 24px 20px; }
}
.facet legend, .facet-legend { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.facet-opt span { border-radius: 12px; }
.facet-opt input:checked + span { background: #F6EFE3; box-shadow: none; }
.active-filters .chip { background: var(--oud); color: #fff; }
.catalog-toolbar { padding: 10px 10px 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .75); backdrop-filter: blur(8px); box-shadow: var(--panel-shadow); }
.catalog-toolbar .select-sm { border: 0; background-color: #F6F3EE; }
.pagination a, .pagination span { border-radius: 999px; }
.pagination [aria-current="page"] { background: var(--oud); color: #fff; border: 0; }

/* ---------- Product page ---------- */
.product-top { padding-top: clamp(20px, 3vw, 40px); }
.product-media { background: radial-gradient(70% 60% at 50% 30%, #FFFFFF 0%, #F7F2EA 55%, #EADFCC 100%) !important; box-shadow: var(--panel-shadow); }
.product-media::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 8%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 66, 32, .28), transparent); z-index: 0; }
.product-media img { z-index: 1; }
.product-name { font-size: clamp(2.8rem, 1.8rem + 3vw, 4.4rem); font-weight: 300; }
.buy-form { margin-top: 8px; padding: clamp(18px, 2.4vw, 28px); border-radius: 26px; background: #fff; box-shadow: var(--panel-shadow); }
.product-price [data-price] { font-size: 2.4rem; font-weight: 400; }
.buy-add { border-radius: 999px; }
.buy-wish { border-radius: 50%; border: 0; box-shadow: 0 0 0 1px var(--hairline-strong); background: #fff; }
.assurances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 0; padding-top: 0; }
.assurances li { flex-direction: column; gap: 8px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px var(--hairline); font-size: .82rem; }
@media (max-width: 560px) { .assurances { grid-template-columns: 1fr; } .assurances li { flex-direction: row; } }
.notes { gap: 12px; }
.notes-row { border: 0 !important; padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: var(--panel-shadow); }
.notes-row:nth-child(1) { background: linear-gradient(120deg, #FFFFFF, #F7F4EE); }
.notes-row:nth-child(2) { background: linear-gradient(120deg, #FFFFFF, #F6EDE3); }
.notes-row:nth-child(3) { background: linear-gradient(120deg, #FBF6EE, #EFE2CD); }
.notes dd a { border-radius: 999px; }
.product-details, .reviews { border-top: 0; }
.profile div { border-top-color: var(--hairline); }

/* ---------- Auth: a quiet photograph beside the form ---------- */
.auth { place-items: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); max-width: 1120px; margin: 0 auto; align-items: stretch; padding-block: clamp(28px, 5vw, 64px); }
.auth::before { content: ""; width: 100%; border-radius: 30px; min-height: 560px; background: linear-gradient(to top, rgba(27, 20, 14, .35), transparent 50%), url("/assets/images/discover/arabian.webp") center / cover; box-shadow: var(--lift-shadow); }
.auth-card { width: 100%; align-self: center; padding: clamp(28px, 4vw, 48px); }
.auth-card .h2 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); font-weight: 300; }
.auth-strips { display: none; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth::before { min-height: 180px; } }

/* ---------- Checkout / payment / confirmation ---------- */
.checkout-page > .h1 { font-size: clamp(2.6rem, 1.6rem + 3vw, 4rem); font-weight: 300; }
.checkout-form fieldset.panel { padding: clamp(22px, 3vw, 34px); }
.checkout-form fieldset.panel legend { font-size: 1.5rem; }
.input-prefix span { border-radius: 14px 0 0 14px; background: #F6F3EE; }
.input-prefix .input { border-radius: 0 14px 14px 0; }
.summary { background: #fff; border: 0; border-radius: 28px; box-shadow: var(--panel-shadow); }
.summary::before, .receipt-card::before { content: ""; display: block; height: 3px; margin: -1px 30% 22px; border-radius: 3px; background: var(--gold-foil); }
.steps .step-num { border-radius: 50%; background: #fff; }
.steps .is-current .step-num { background: var(--oud); }
.confirm-mark { width: 72px; height: 72px; background: radial-gradient(circle, #F4E9D2, #E3CDA2); color: var(--oud); box-shadow: 0 0 0 10px rgba(227, 205, 162, .25); animation: confirm-pop 1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes confirm-pop { from { transform: scale(.4); opacity: 0; } }
.next-steps li::before { background: #fff; border-color: var(--saffron); }

/* ---------- Account, wishlist, help ---------- */
.account-stats > div { padding: 22px 24px; }
.account-stats dd { font-weight: 300; font-size: 2.6rem; }
.order-table { border-top: 0; background: #fff; border-radius: 24px; box-shadow: var(--panel-shadow); padding: 6px 22px; }
.care-head .h1, .policy .h1, .finder-head .h1, .account-head .h1 { font-size: clamp(2.6rem, 1.6rem + 3vw, 4.2rem); font-weight: 300; }
.faq { border-top: 0; background: #fff; border-radius: 26px; box-shadow: var(--panel-shadow); padding: 4px 26px; }
.faq details:last-child { border-bottom: 0; }
.care-topics a { border: 0; background: #fff; border-radius: 22px; box-shadow: var(--panel-shadow); transition: transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s; }
.care-topics a:hover { transform: translateY(-4px); box-shadow: var(--lift-shadow); }
.policy-body { border-top: 0; background: #fff; border-radius: 26px; box-shadow: var(--panel-shadow); padding: clamp(24px, 4vw, 48px); max-width: 78ch; }
.finder-opt span { border-radius: 22px; border: 0; box-shadow: var(--panel-shadow); }
.finder-opt input:checked + span { box-shadow: inset 0 0 0 1.5px var(--oud), var(--lift-shadow); background: #FBF6EE; }
.empty-strips { background: radial-gradient(circle, #F4E9D2, #E3CDA2); border: 0; }

/* Footer: a warmer, fuller close */
.site-footer { background: linear-gradient(180deg, #F6F1E8 0%, #EFE5D5 100%); border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-foil); opacity: .7; }
.footer-brand .wordmark { font-size: 2.4rem; }

/* ==========================================================================
   Cart
   ========================================================================== */
.cart-hero { padding-block: clamp(22px, 3vw, 40px) clamp(18px, 2.4vw, 28px); }
.cart-hero-title { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.cart-hero-title .h1 { font-size: clamp(2.8rem, 1.6rem + 3.6vw, 4.6rem); font-weight: 300; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: clamp(24px, 3.4vw, 48px); align-items: start; }
@media (max-width: 1020px) { .cart-grid { grid-template-columns: minmax(0, 1fr); } }

/* Perks: the two meters */
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
@media (max-width: 720px) { .perks { grid-template-columns: 1fr; } }
.perk { position: relative; overflow: hidden; padding: 20px 22px 22px; border-radius: 24px; background: #fff; box-shadow: var(--panel-shadow); transition: box-shadow .6s; }
.perk-head { display: flex; gap: 14px; align-items: flex-start; }
.perk-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #F5ECDD; color: var(--saffron-ink); transition: background-color .6s, color .6s; }
.perk-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.perk-sub { font-size: .8rem; color: var(--smoke); margin-top: 3px; }
.perk.is-unlocked .perk-icon { background: var(--oud); color: #F4E3BF; }
.perk.is-celebrating { animation: perk-glow 1.6s ease-out; }
.perk.is-celebrating::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(241, 221, 166, .55) 50%, transparent 70%); animation: sweep 1.2s ease-out forwards; }
@keyframes perk-glow { 0% { box-shadow: var(--panel-shadow), 0 0 0 0 rgba(201, 164, 90, .6); } 100% { box-shadow: var(--panel-shadow), 0 0 0 18px rgba(201, 164, 90, 0); } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.meter { position: relative; height: 10px; margin: 20px 0 6px; border-radius: 999px; background: #F2ECE2; box-shadow: inset 0 1px 2px rgba(70, 52, 28, .12); }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, #C9A45A, #E9D6AE, #B99A63); background-size: 200% 100%; animation: shimmer 3s linear infinite; transition: width 1s cubic-bezier(.16, 1, .3, 1); }
.meter-fill::after { content: ""; position: absolute; right: -2px; top: 50%; width: 16px; height: 16px; transform: translate(50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #C9A45A, 0 4px 10px rgba(70, 52, 28, .3); }
.perk.is-unlocked .meter-fill::after { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.meter-goal { position: absolute; right: 0; top: 16px; font-size: .72rem; color: var(--ash); letter-spacing: .04em; }

.reward-track { list-style: none; display: grid; grid-template-columns: repeat(10, 1fr); margin: 20px 0 0; padding: 0; position: relative; }
.reward-track::before { content: ""; position: absolute; left: 5%; right: 5%; top: 7px; height: 2px; background: #F2ECE2; }
.reward-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.reward-track span { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--hairline-strong); transition: background-color .5s, box-shadow .5s, transform .5s; }
.reward-track li.is-on span { background: linear-gradient(135deg, #C9A45A, #EBD8B0); box-shadow: 0 0 0 1.5px #B99A63; }
.reward-track li.is-next span { box-shadow: 0 0 0 1.5px var(--oud); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 1.5px var(--oud), 0 0 0 7px rgba(27, 24, 21, .08); } }
.reward-track b { font-size: .64rem; font-weight: 500; color: var(--ash); }
.reward-track li.is-on b { color: var(--oud); }

/* Lines */
.cart-main .lines { border-top: 0; display: grid; gap: 12px; }
.cart-main .line { grid-template-columns: 124px minmax(0, 1fr) auto; gap: 22px; padding: 16px 22px 16px 16px; border-radius: 24px; background: #fff; box-shadow: var(--panel-shadow); border: 0; align-items: center; }
.cart-main .line-media { aspect-ratio: 4 / 5; border-radius: 18px; background: radial-gradient(80% 60% at 50% 20%, #fff, #F2ECE2) !important; }
.cart-main .line-media img { filter: drop-shadow(0 12px 10px rgba(70, 52, 28, .18)); }
.cart-main .line-name { font-size: 1.55rem; font-weight: 400; }
.line-inspired { font-size: .82rem; font-style: italic; color: var(--smoke); }
.line-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.size-chip { display: inline-flex; padding: 3px 12px; border-radius: 999px; background: #F5ECDD; font-size: .78rem; font-weight: 500; }
.line-actions { gap: 16px; flex-wrap: wrap; }
.line-actions .text-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.line-actions .text-btn svg { width: 15px; height: 15px; }
.cart-main .line-total { font-family: var(--serif); font-size: 1.5rem; }
@media (max-width: 560px) {
  .cart-main .line { grid-template-columns: 96px minmax(0, 1fr); padding: 14px; }
  .cart-main .line-total { grid-column: 2; }
}

/* Boosters */
.boosters { margin-top: clamp(32px, 4vw, 52px); }
.boosters-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.boosters-head .muted { margin-top: 6px; max-width: 52ch; }
.booster-rail { grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; }
@media (max-width: 760px) { .booster-rail { grid-auto-columns: 62%; } }
.booster { display: flex; flex-direction: column; padding: 12px 12px 14px; border-radius: 24px; background: #fff; box-shadow: var(--panel-shadow); transition: transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s; }
.booster:hover { transform: translateY(-4px); box-shadow: var(--lift-shadow); }
.booster-media { position: relative; display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: radial-gradient(80% 60% at 50% 20%, #fff, #F2ECE2); margin-bottom: 12px; }
.booster-media img { position: absolute; inset: 10% 14% 16%; width: 72%; height: 74%; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(70, 52, 28, .2)); transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.booster:hover .booster-media img { transform: translateY(-5px) scale(1.04); }
.booster-perk { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--oud); color: #F4E3BF; font-size: .7rem; letter-spacing: .04em; }
.booster .pcard-brand { padding-inline: 4px; }
.booster-name { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.15; padding-inline: 4px; margin-top: 2px; }
.booster-inspired { font-size: .76rem; font-style: italic; color: var(--smoke); padding-inline: 4px; margin-top: 2px; }
.booster-form { margin-top: auto; padding-top: 12px; }
.booster-add { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: #F6F1E8; font-size: .82rem; transition: background-color .3s, color .3s; }
.booster-add b { font-weight: 600; }
.booster-add:hover { background: var(--oud); color: #fff; }

/* Receipt */
.receipt { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.receipt-card { padding: 26px 28px 28px; border-radius: 28px; background: #fff; box-shadow: var(--panel-shadow); }
.receipt-card .h3 { font-size: 1.7rem; margin-bottom: 6px; }
.receipt-card .totals dd s { color: var(--ash); margin-right: 6px; font-size: .85rem; }
.receipt-card .totals .grand dd { font-size: 2rem; }
.savings { display: flex; align-items: center; gap: 10px; margin: 16px 0 18px; padding: 11px 16px; border-radius: 999px; background: #EAF1E8; color: #2F5540; font-size: .86rem; }
.savings svg { flex: none; }
.checkout-btn { min-height: 60px; font-size: .9rem; }
.receipt .pay-note { margin-top: 10px; }
.receipt .coupon { border-top: 1px solid var(--hairline); }
.receipt-assure { list-style: none; display: grid; gap: 10px; padding: 18px 20px; border-radius: 24px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px var(--hairline); }
.receipt-assure li { display: flex; gap: 12px; font-size: .82rem; color: var(--smoke); line-height: 1.45; }
.receipt-assure svg { flex: none; color: var(--saffron-ink); margin-top: 1px; }
.receipt-assure b { color: var(--oud); font-weight: 600; }

/* Mobile checkout bar */
.cart-bar { display: none; }
@media (max-width: 1020px) {
  .cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 22px; border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); box-shadow: var(--lift-shadow);
    transform: translateY(140%); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
  .cart-bar.is-visible { transform: none; }
  .cart-bar > div { display: grid; line-height: 1.2; }
  .cart-bar b { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
  .receipt { position: static; }
}

/* Empty cart */
.cart-empty { text-align: center; max-width: 560px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) 0 clamp(20px, 4vw, 40px); }
.cart-empty-mark { width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #FFFFFF, #EFE2CD); box-shadow: var(--panel-shadow); color: var(--saffron-ink); }
.cart-empty-mark svg { width: 34px; height: 34px; }
.cart-empty .lede { margin: 12px auto 0; }
.cart-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.totals .grand { align-items: baseline; }
.line-low { font-size: .76rem; font-weight: 600; color: #8C6E3C; }
