/* ==========================================================================
   OSSUM — storefront styles
   ========================================================================== */

:root {
    --ink: #111;
    --ink-soft: #3b3433;
    --muted: #7d716f;
    --line: #ebe2df;
    --cream: #fdfbf8;
    --white: #fff;
    --blush-hero: #f9e2dd;
    --blush: #f6dbd5;
    --blush-deep: #f3cfc7;
    --rose: #b4566c;
    --success: #2f6b4f;
    --danger: #a3323f;

    --font: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
    --wrap: 1360px;
    --gutter: clamp(16px, 4.4vw, 64px);
    --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html, body { overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.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;
}

/* ---------- Type helpers ---------- */
.eyebrow {
    display: block;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 18px;
}
.section-title { font-size: clamp(22px, 2vw, 28px); font-weight: 400; }
.display { font-size: clamp(30px, 3.1vw, 46px); font-weight: 400; }
.link-underline {
    font-size: 11px;
    letter-spacing: 0.04em;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    white-space: nowrap;
    transition: opacity .2s;
}
.link-underline:hover { opacity: .6; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px;
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s, color .25s, opacity .25s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--cream);
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.site-header .wrap {
    height: var(--header-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.logo {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1;
    justify-self: start;
    display: inline-flex;
    align-items: flex-start;
}
.logo sup { font-size: 10px; font-weight: 500; margin-left: 2px; letter-spacing: 0; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 38px; }
.main-nav a, .main-nav button {
    font-size: 13px; font-weight: 400; background: none; border: 0; padding: 6px 0; cursor: pointer;
    position: relative;
}
.main-nav a::after, .main-nav > ul > li > button::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor;
    transition: right .25s;
}
.main-nav a:hover::after, .main-nav a.is-active::after, .main-nav > ul > li > button:hover::after { right: 0; }
.main-nav .has-drop { position: relative; }
.main-nav .plus { display: inline-block; margin-left: 6px; font-weight: 300; transition: transform .25s; }
.main-nav .has-drop.is-open .plus { transform: rotate(45deg); }

.dropdown {
    position: absolute; top: calc(100% + 18px); left: 50%; transform: translate(-50%, 6px);
    min-width: 240px; padding: 18px 22px;
    background: var(--cream); border: 1px solid var(--line);
    box-shadow: 0 18px 40px -20px rgba(80, 40, 40, .25);
    opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown ul { display: block !important; }
.dropdown li + li { margin-top: 8px; }
.dropdown a { font-size: 13px; }
.dropdown .dropdown-all { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.has-drop:hover .dropdown, .has-drop.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-drop::before { content: ""; position: absolute; left: -20px; right: -20px; top: 100%; height: 22px; }

.utility-nav { justify-self: end; display: flex; gap: 20px; align-items: center; }
.utility-nav a, .utility-nav button {
    font-size: 11px; background: none; border: 0; padding: 0; cursor: pointer; transition: opacity .2s;
}
.utility-nav a:hover, .utility-nav button:hover { opacity: .55; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: -8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Search overlay */
.search-panel {
    position: fixed; inset: 0 0 auto 0; z-index: 60;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 36px 0;
    transform: translateY(-100%); transition: transform .35s ease;
}
.search-open .search-panel { transform: translateY(0); }
.search-panel form { display: flex; align-items: center; gap: 18px; }
.search-panel input {
    flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent;
    font-size: clamp(20px, 2.4vw, 32px); padding: 8px 0; outline: none;
}
@media (max-width: 560px) { .search-panel form { gap: 10px; } .search-panel .btn { padding-inline: 14px; } }
.search-panel .close { flex: 0 0 auto; background: none; border: 0; font-size: 28px; cursor: pointer; line-height: 1; }
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(30,20,20,.25); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.search-open .backdrop, .menu-open .backdrop { opacity: 1; visibility: visible; }

/* ==========================================================================
   Flash / toast
   ========================================================================== */
.flash-stack { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast {
    background: var(--ink); color: #fff; padding: 14px 18px; font-size: 13px;
    box-shadow: 0 12px 30px -12px rgba(0,0,0,.4);
    animation: toast-in .35s ease both;
}
.toast--error { background: var(--danger); }
.toast a { text-decoration: underline; }
.toast.is-leaving { animation: toast-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ==========================================================================
   Home — hero
   ========================================================================== */
.hero {
    display: grid;
    grid-template-columns: 51% 49%;
    height: clamp(560px, 65vw, 940px);
    max-height: calc(100vh - var(--header-h) + 140px);
    background: var(--blush-hero);
}
.hero__content {
    align-self: center;
    padding: 0 var(--gutter) 0 clamp(24px, 7.2vw, 104px);
    padding-top: 6%;
}
.hero__title { font-size: clamp(40px, 4.8vw, 70px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 26px; }
.hero__text { font-size: 13px; max-width: 360px; color: var(--ink-soft); margin-bottom: 30px; }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* Statement */
.statement { background: var(--cream); }
.statement__box {
    background: var(--white);
    width: min(54%, 780px);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 80px);
    text-align: center;
}
.statement__box h2 { font-size: clamp(26px, 2.9vw, 42px); line-height: 1.25; max-width: 520px; margin: 0 auto; letter-spacing: -0.015em; }

/* Section header row */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }

/* Explore collections */
.explore { padding: clamp(12px, 1.5vw, 24px) 0 clamp(60px, 8vw, 120px); background: var(--cream); }
.explore .section-head { margin-bottom: 16px; }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.collection-card { position: relative; aspect-ratio: 118 / 143; overflow: hidden; background: var(--blush); color: #fff; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.collection-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(40,10,20,0) 52%, rgba(55,15,28,.68) 100%);
}
.collection-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 clamp(14px, 1.6vw, 24px) clamp(14px, 1.6vw, 22px); }
.collection-card__body h3 { font-size: clamp(15px, 1.35vw, 19px); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 4px; }
.collection-card__body p { font-size: 11px; line-height: 1.4; opacity: .92; max-width: 260px; }
.collection-card:hover img { transform: scale(1.05); }

/* Product rows */
.product-section { padding: clamp(56px, 6.5vw, 96px) 0 clamp(56px, 6.5vw, 90px); }
.product-section--blush { background: var(--blush); }
.product-section--cream { background: var(--cream); }
.product-section .eyebrow { margin-bottom: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.product-grid--shop { gap: 34px 10px; }

.product-card { position: relative; }
.product-card__media { position: relative; display: block; aspect-ratio: 118 / 128; background: var(--white); overflow: hidden; }
.product-section--cream .product-card__media { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__meta { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px 0; }
.product-card__name {
    display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.5;
}
.product-card__sub { display: block; font-size: 10px; letter-spacing: 0.18em; color: var(--ink-soft); }
.product-card__price { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; white-space: nowrap; }
.product-card__price s { display: block; font-weight: 400; color: var(--muted); font-size: 10px; text-align: right; }

.product-card__actions {
    position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px;
    opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.product-card:hover .product-card__actions, .product-card:focus-within .product-card__actions { opacity: 1; transform: none; }
.product-card__actions form { flex: 1; }
.product-card__actions .btn { width: 100%; padding: 11px 10px; }

.wish-btn {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 34px; height: 34px; display: grid; place-items: center;
    background: rgba(255,255,255,.85); border: 0; border-radius: 50%; cursor: pointer;
    transition: transform .2s;
}
.wish-btn:hover { transform: scale(1.08); }
.wish-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.wish-btn.is-active svg { fill: var(--rose); stroke: var(--rose); }

.badge-sale {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-size: 9px; letter-spacing: .22em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 5px 9px;
}
.badge-soldout { background: #fff; color: var(--ink); border: 1px solid var(--ink); }

/* Story split */
.story-split { display: grid; grid-template-columns: 47.3% 52.7%; background: var(--blush-deep); }
.story-split__media { min-height: clamp(320px, 31vw, 470px); }
.story-split__media img { width: 100%; height: 100%; object-fit: cover; }
.story-split__content { align-self: center; padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(40px, 5vw, 80px) clamp(24px, 5.3vw, 84px); }
.story-split__content h2 { font-size: clamp(30px, 3.1vw, 44px); margin-bottom: 26px; }
.story-split__content p { font-size: 12.5px; max-width: 360px; color: var(--ink-soft); margin-bottom: 26px; }

/* Rituals */
.rituals { padding: clamp(70px, 8vw, 120px) 0 clamp(70px, 8vw, 120px); text-align: center; }
.rituals h2 { font-size: clamp(28px, 2.9vw, 42px); margin-bottom: clamp(30px, 3.4vw, 48px); }
.ritual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); text-align: left; max-width: 1310px; margin: 0 auto; }
.ritual { padding: clamp(24px, 2.4vw, 36px) clamp(18px, 1.8vw, 28px) clamp(40px, 4.2vw, 60px); }
.ritual + .ritual { border-left: 1px solid var(--line); }
.ritual__num { display: block; font-size: 9px; letter-spacing: .2em; color: var(--muted); margin-bottom: 26px; }
.ritual h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.ritual p { font-size: 11.5px; color: var(--muted); }

/* Help banner */
.help-banner { background: var(--blush-deep); padding: clamp(46px, 5.4vw, 78px) 0; }
.help-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.help-banner h2 { font-size: clamp(26px, 2.9vw, 42px); padding-left: clamp(0px, 1.8vw, 26px); }
.help-banner__links { display: flex; align-items: center; gap: clamp(20px, 4vw, 64px); font-size: 11px; padding-right: clamp(0px, 1.8vw, 26px); }
.help-banner__links nav { border-bottom: 1px solid rgba(0,0,0,.18); padding: 0 40px 8px 0; color: var(--ink-soft); }
.help-banner__links nav a:hover { color: var(--ink); text-decoration: underline; }
.help-banner__links strong { font-weight: 600; }

/* Footer */
.site-footer { padding: 26px 0 30px; font-size: 10.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a:hover { text-decoration: underline; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { background: var(--blush-hero); padding: clamp(50px, 6vw, 90px) 0 clamp(40px, 5vw, 70px); }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 62px); font-weight: 500; letter-spacing: -0.03em; }
.page-hero p { max-width: 560px; margin-top: 16px; color: var(--ink-soft); font-size: 14px; }
.breadcrumbs { font-size: 11px; color: var(--muted); margin-bottom: 18px; letter-spacing: .04em; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { margin: 0 8px; }
.page-body { padding: clamp(40px, 5vw, 80px) 0 clamp(60px, 7vw, 110px); }

/* Shop toolbar */
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 11px; letter-spacing: .06em; padding: 8px 14px; border: 1px solid var(--line); background: var(--white); transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.shop-toolbar__right { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }
.select {
    appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111'/%3E%3C/svg%3E") no-repeat right 12px center;
    padding: 9px 34px 9px 12px; font-size: 12px; color: var(--ink); cursor: pointer;
}
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state h2 { font-size: 28px; margin-bottom: 12px; }
.empty-state p { color: var(--muted); margin-bottom: 26px; }

/* Pager */
.pager-wrap { margin-top: 56px; display: flex; justify-content: center; }
.pagination { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.pagination li a, .pagination li span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); font-size: 12px; background: var(--white); }
.pagination li.active a, .pagination li.active span { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Collections index */
.collection-grid--large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.collection-grid--large .collection-card { aspect-ratio: 4 / 3.4; }
.collection-grid--large .collection-card__body h3 { font-size: clamp(22px, 2.2vw, 32px); }
.collection-grid--large .collection-card__body p { font-size: 13px; max-width: 380px; }

/* Product detail */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 90px); align-items: start; }
.pdp__media { background: var(--white); aspect-ratio: 1; position: sticky; top: calc(var(--header-h) + 20px); }
.pdp__media img { width: 100%; height: 100%; object-fit: contain; }
.pdp__info { padding-top: 10px; }
.pdp__collection { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.pdp__title { font-size: clamp(34px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.03em; margin: 12px 0 8px; }
.pdp__sub { font-size: 12px; letter-spacing: .18em; color: var(--ink-soft); }
.pdp__price { font-size: 20px; font-weight: 600; letter-spacing: .14em; margin: 24px 0; }
.pdp__price s { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 10px; letter-spacing: .08em; }
.pdp__lead { font-size: 15px; color: var(--ink-soft); margin-bottom: 30px; max-width: 520px; }
.pdp__buy { display: flex; gap: 10px; margin-bottom: 14px; }
.pdp__buy .btn { flex: 1; }
.qty { display: inline-flex; border: 1px solid var(--ink); background: var(--white); }
.qty button { width: 40px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.qty input { width: 44px; border: 0; text-align: center; font-size: 14px; background: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-note { font-size: 12px; color: var(--muted); margin-bottom: 34px; }
.stock-note.low { color: var(--rose); }
.notes { border-top: 1px solid var(--line); }
.notes__row { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.notes__row dt { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.notes__row dd { margin: 0; }
.pdp__desc { margin-top: 30px; font-size: 14px; color: var(--ink-soft); }
.wish-link { background: none; border: 0; padding: 0; font-size: 12px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.wish-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.wish-link.is-active svg { fill: var(--rose); stroke: var(--rose); }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(30px, 4vw, 70px); align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; gap: 18px; align-items: center; }
.cart-item img { width: 92px; height: 92px; object-fit: contain; background: var(--white); }
.cart-item__name { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.cart-item__sub { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.cart-qty { width: 70px; padding: 8px 10px; border: 1px solid var(--line); background: var(--white); }
.remove-btn { background: none; border: 0; padding: 0; font-size: 11px; color: var(--muted); text-decoration: underline; cursor: pointer; margin-top: 6px; }
.text-right { text-align: right; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 24px; gap: 12px; flex-wrap: wrap; }

.summary { background: var(--white); padding: 30px; border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 20px); }
.summary h2 { font-size: 22px; margin-bottom: 22px; }
.summary__row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; }
.summary__row--total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 18px; font-size: 15px; font-weight: 600; letter-spacing: .06em; }
.summary .btn { margin-top: 22px; }
.ship-meter { font-size: 12px; color: var(--ink-soft); margin-bottom: 18px; }
.ship-meter__bar { height: 3px; background: var(--line); margin-top: 8px; }
.ship-meter__bar span { display: block; height: 100%; background: var(--rose); }
.summary-items { margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.summary-item { display: flex; gap: 12px; align-items: center; font-size: 12px; padding: 6px 0; }
.summary-item img { width: 52px; height: 52px; object-fit: contain; background: var(--cream); }
.summary-item div { flex: 1; }
.summary-item small { display: block; color: var(--muted); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 14px; border: 1px solid #e3d8d5; background: var(--white); font-size: 14px;
    border-radius: 0; outline: none; transition: border-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field .error { display: block; color: var(--danger); font-size: 12px; margin-top: 6px; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--danger); }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid #e3d8d5; background: var(--white); cursor: pointer; font-size: 14px; }
.radio-card + .radio-card { margin-top: 10px; }
.radio-card small { display: block; color: var(--muted); font-size: 12px; }
.radio-card input { accent-color: var(--ink); margin-top: 4px; }
.form-section-title { font-size: 20px; margin: 34px 0 18px; }
.form-section-title:first-child { margin-top: 0; }
.checkbox { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.checkbox input { accent-color: var(--ink); }

.auth-card { max-width: 460px; margin: 0 auto; background: var(--white); padding: clamp(28px, 4vw, 50px); border: 1px solid var(--line); }
.auth-card h1 { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 8px; }
.auth-card > p { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.auth-card .field + .field { margin-top: 16px; }
.auth-card .btn { margin-top: 26px; }
.auth-switch { text-align: center; font-size: 13px; margin-top: 22px; color: var(--muted); }
.auth-switch a { color: var(--ink); text-decoration: underline; }
.alert { padding: 13px 16px; font-size: 13px; margin-bottom: 20px; border: 1px solid; }
.alert--error { color: var(--danger); border-color: #efc6ca; background: #fdf3f4; }
.alert--info { color: var(--ink-soft); border-color: var(--line); background: var(--cream); }

/* Account */
.account-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 4vw, 70px); align-items: start; }
.account-card { background: var(--white); padding: 28px; border: 1px solid var(--line); font-size: 14px; }
.account-card h2 { font-size: 20px; margin-bottom: 14px; }
.account-card p + p { margin-top: 4px; color: var(--ink-soft); }
.account-card form { margin-top: 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--white); border: 1px solid var(--line); }
.table th { text-align: left; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table a.row-link { text-decoration: underline; }

.badge { display: inline-block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; background: #f1ece9; color: var(--ink-soft); }
.badge--processing { background: #fdf0d9; color: #8a5a10; }
.badge--shipped { background: #e3eefc; color: #2a4f86; }
.badge--delivered { background: #e2f2e9; color: var(--success); }
.badge--cancelled { background: #fbe4e6; color: var(--danger); }

/* Order confirmation */
.confirm { max-width: 760px; margin: 0 auto; }
.confirm__head { text-align: center; margin-bottom: 40px; }
.confirm__head h1 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 12px; }
.confirm__head p { color: var(--ink-soft); }
.confirm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }

/* Help centre */
.help-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 90px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 30px 20px 0; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 22px; font-weight: 300; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); font-size: 14px; max-width: 560px; }
.faq h2 { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; margin: 40px 0 6px; font-weight: 500; scroll-margin-top: calc(var(--header-h) + 20px); }
.faq h2:first-child { margin-top: 0; }
.contact-box { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); scroll-margin-top: calc(var(--header-h) + 20px); }
.contact-box h2 { font-size: 28px; margin-bottom: 8px; }
.contact-box > p { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.contact-box .btn { margin-top: 20px; }

/* Story page */
.prose { max-width: 720px; margin: 0 auto; font-size: 16px; color: var(--ink-soft); }
.prose p + p { margin-top: 18px; }
.prose h2 { font-size: 30px; color: var(--ink); margin: 50px 0 18px; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); margin-top: 70px; }
.values .ritual { text-align: left; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .main-nav ul { gap: 26px; }
    .utility-nav { gap: 14px; }
    .cart-layout { grid-template-columns: 1fr 320px; }
}

@media (max-width: 900px) {
    :root { --header-h: 58px; }
    .menu-toggle { display: block; }
    .site-header .wrap { grid-template-columns: auto 1fr auto; gap: 12px; }
    .logo { justify-self: center; font-size: 24px; grid-column: 2; }
    .utility-nav { grid-column: 3; }
    .utility-nav .hide-sm { display: none; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; bottom: 0; width: min(86vw, 360px); z-index: 55;
        background: var(--cream); padding: 30px var(--gutter);
        transform: translateX(-100%); transition: transform .35s ease; overflow-y: auto;
    }
    .menu-open .main-nav { transform: none; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav > ul > li { border-bottom: 1px solid var(--line); }
    .main-nav > ul > li > a, .main-nav > ul > li > button { display: block; width: 100%; text-align: left; font-size: 20px; padding: 16px 0; }
    .main-nav a::after, .main-nav > ul > li > button::after { display: none; }
    .dropdown { position: static; transform: none !important; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 16px 4px; min-width: 0; display: none; background: transparent; }
    .has-drop.is-open .dropdown { display: block; }
    .has-drop:hover .dropdown { display: none; }
    .has-drop.is-open:hover .dropdown { display: block; }
    .main-nav .mobile-only { display: block; }

    .hero { grid-template-columns: minmax(0, 1fr); height: auto; max-height: none; }
    .hero__content { padding: 56px var(--gutter) 50px; order: 2; }
    .hero__media { aspect-ratio: 4 / 4.4; order: 1; }
    .statement__box { width: 100%; }
    .collection-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-split { grid-template-columns: minmax(0, 1fr); }
    .ritual-grid, .values { grid-template-columns: minmax(0, 1fr); }
    .ritual + .ritual { border-left: 0; border-top: 1px solid var(--line); }
    .help-banner .wrap { flex-direction: column; align-items: flex-start; }
    .help-banner__links { flex-wrap: wrap; }
    .pdp, .cart-layout, .account-grid, .help-layout { grid-template-columns: minmax(0, 1fr); }
    .pdp__media, .summary { position: static; }
    .collection-grid--large { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 901px) { .main-nav .mobile-only { display: none; } }

@media (max-width: 560px) {
    body { font-size: 14px; }
    .product-card__meta { flex-direction: column; gap: 2px; }
    .product-card__name, .product-card__sub { letter-spacing: .14em; }
    .product-card__price { letter-spacing: .14em; }
    .product-card__actions { opacity: 1; transform: none; position: static; padding-top: 8px; }
    .form-grid, .confirm__grid { grid-template-columns: minmax(0, 1fr); }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody { display: block; width: 100%; }
    .cart-table tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 12px; border-bottom: 1px solid var(--line); padding: 14px 0; }
    .cart-table td { display: block; border: 0; padding: 4px 0; }
    .cart-table td:first-child { grid-column: 1 / -1; padding-bottom: 10px; }
    .cart-table td:nth-child(2) { font-size: 12px; color: var(--muted); }
    .cart-table td:nth-child(2)::after { content: " ×"; }
    .cart-item { gap: 14px; align-items: flex-start; }
    .cart-item img { width: 76px; height: 76px; flex: 0 0 auto; }
    .cart-item > div { min-width: 0; }
    .badge-extra { display: none; }
    .card-brands { display: none; }
    .rates-table th, .rates-table td { padding: 8px 6px; font-size: 12px; }
    .site-footer .wrap { flex-direction: column; align-items: flex-start; }
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Mobile app shell — bottom tab bar (phones & small tablets)
   ========================================================================== */
:root { --tabbar-h: 62px; --safe-bottom: env(safe-area-inset-bottom, 0px); }

.tabbar, .show-sm { display: none; }

.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; background: none; border: 0; cursor: pointer; }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }

@media (max-width: 900px) {
    body { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom)); -webkit-tap-highlight-color: transparent; }
    .show-sm { display: grid; }
    .utility-nav { gap: 0; }
    .main-nav { bottom: calc(var(--tabbar-h) + var(--safe-bottom)); }

    .tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 56;
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
        height: calc(var(--tabbar-h) + var(--safe-bottom));
        padding-bottom: var(--safe-bottom);
        background: rgba(253, 251, 248, .94);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
        backdrop-filter: saturate(180%) blur(16px);
        border-top: 1px solid rgba(0, 0, 0, .07);
        box-shadow: 0 -8px 24px -18px rgba(80, 40, 40, .35);
    }
    .tabbar__item {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
        color: #9a8e8b; font-size: 10px; letter-spacing: .06em; position: relative;
        transition: color .2s, transform .15s;
    }
    .tabbar__item:active { transform: scale(.92); }
    .tabbar__item.is-active { color: var(--ink); }
    .tabbar__item.is-active::before {
        content: ""; position: absolute; top: 0; left: 50%; width: 22px; height: 2px;
        background: var(--rose); border-radius: 0 0 2px 2px; transform: translateX(-50%);
    }
    .tabbar__icon { position: relative; display: block; width: 24px; height: 24px; }
    .tabbar__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
    .tabbar__item.is-active svg { stroke-width: 1.7; }
    .tabbar__item.is-active .tabbar__icon svg { fill: var(--blush); }
    .tabbar__badge {
        position: absolute; top: -5px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px;
        display: grid; place-items: center; border-radius: 9px;
        background: var(--ink); color: #fff; font-size: 9.5px; font-weight: 600; letter-spacing: 0; line-height: 1;
        border: 2px solid var(--cream);
    }
    .tabbar__badge.is-empty { display: none; }
    .tabbar__badge.is-bump { animation: badge-bump .45s ease; }

    /* Keep toasts and the search sheet clear of the tab bar */
    .flash-stack { left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px); max-width: none; }
    .toast { border-radius: 10px; }
    .backdrop { bottom: calc(var(--tabbar-h) + var(--safe-bottom)); }

    /* App-like sticky purchase bar on the product page */
    .pdp__info > form[data-ajax="cart"] {
        position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 10px); z-index: 5;
        background: var(--cream); padding: 10px 0; margin: 0 0 4px;
    }

    /* Sticky checkout button on the bag page */
    .summary { padding: 22px; }
    .cart-layout .summary .btn { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 10px); box-shadow: 0 0 0 10px var(--white); }
    .cart-layout .summary .btn:hover { box-shadow: 0 0 0 10px var(--white); }

    /* Hide the desktop drawer extras we no longer need */
    .site-footer { padding-bottom: 22px; }
}

@keyframes badge-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Installed (home-screen) app mode: hide browser-ish chrome */
@media (display-mode: standalone) and (max-width: 900px) {
    .site-header { padding-top: env(safe-area-inset-top, 0px); }
    .help-banner { display: none; }
}

@media (max-width: 900px) {
    /* Category pills wrap onto rows so every option is visible */
    .shop-toolbar { gap: 16px; padding-bottom: 18px; margin-bottom: 22px; }
    .shop-toolbar .chips { flex-wrap: wrap; gap: 8px; }
    .chip { border-radius: 999px; padding: 7px 13px; font-size: 11.5px; letter-spacing: .03em; }
    .shop-toolbar__right { justify-content: space-between; width: 100%; }
    .shop-toolbar__right form { flex: 1; max-width: 220px; }
    .shop-toolbar__right .select { width: 100%; }
    /* CodeIgniter dev toolbar button (development only) */
    #debug-icon { bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px) !important; }
}

/* Align the Shop dropdown button exactly with the plain nav links */
.main-nav > ul { align-items: center; }
.main-nav > ul > li { display: flex; align-items: center; }
.main-nav > ul > li > a,
.main-nav > ul > li > button {
    display: inline-flex; align-items: center;
    margin: 0; padding: 6px 0;
    font: inherit; font-size: 13px; line-height: 1.5;
    vertical-align: middle; -webkit-appearance: none; appearance: none;
}
.main-nav .plus { margin-left: 6px; line-height: 1; }
@media (max-width: 900px) {
    .main-nav > ul > li { display: block; }
    .main-nav > ul > li > a,
    .main-nav > ul > li > button { display: flex; width: 100%; font-size: 20px; padding: 16px 0; }
}

/* Referral code (checkout) */
.referral { border-bottom: 1px solid var(--line); padding: 4px 0 18px; margin-bottom: 12px; scroll-margin-top: calc(var(--header-h) + 20px); }
.referral__label { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.referral__row { display: flex; gap: 8px; }
.referral__row input {
    flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #e3d8d5; background: var(--white);
    font-size: 13px; letter-spacing: .12em; text-transform: uppercase; outline: none; border-radius: 0;
}
.referral__row input::placeholder { letter-spacing: .04em; text-transform: none; }
.referral__row input:focus { border-color: var(--ink); }
.referral__row .btn { margin: 0; flex: 0 0 auto; }
.referral__error { display: block; color: var(--danger); font-size: 12px; margin-top: 8px; }
.referral__applied { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: #fbf1ef; border: 1px dashed var(--rose); }
.referral__applied .referral__label { margin-bottom: 2px; }
.referral__applied strong { font-size: 15px; letter-spacing: .14em; }
.referral__applied small { display: block; font-size: 12px; color: var(--rose); }
.referral__applied .remove-btn { margin: 0; }
.summary__row--discount { color: var(--rose); }
.summary__hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
@media (max-width: 900px) { .cart-layout .summary .referral .btn { position: static; box-shadow: none; } }

/* Shop dropdown: collections + categories */
.dropdown--cols { display: grid; grid-template-columns: repeat(2, minmax(150px, auto)); gap: 4px 34px; min-width: 380px; }
.dropdown__title { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dropdown--cols .dropdown-all { grid-column: 1 / -1; }
@media (max-width: 900px) {
    .dropdown--cols { grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 14px; }
    .dropdown__col li { padding: 2px 0; }
}

/* ==========================================================================
   Help Centre chat assistant
   ========================================================================== */
.help-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.chat { position: fixed; right: 24px; bottom: 24px; z-index: 70; }
.chat-launcher {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 20px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    box-shadow: 0 14px 30px -12px rgba(40, 20, 20, .45);
    transition: transform .2s, box-shadow .2s;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(40, 20, 20, .5); }
.chat-launcher svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.chat.is-open .chat-launcher { display: none; }

.chat-panel {
    position: absolute; right: 0; bottom: 0;
    width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px));
    display: flex; flex-direction: column;
    background: var(--cream); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
    box-shadow: 0 30px 60px -24px rgba(60, 30, 30, .45);
    animation: chat-in .25s ease;
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--blush); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 300; font-size: 18px; letter-spacing: .04em; flex: 0 0 auto; }
.chat-head__text { flex: 1; min-width: 0; }
.chat-head h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.chat-head p { font-size: 11px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #2f9e5b; }
.chat-icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.chat-icon-btn:hover { background: rgba(255, 255, 255, .6); }
.chat-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.chat-log { flex: 1; overflow-y: auto; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-msg { display: flex; flex-direction: column; max-width: 86%; }
.chat-msg--user { align-self: flex-end; align-items: flex-end; }
.chat-msg--bot { align-self: flex-start; }
.chat-bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg--bot .chat-bubble { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg--user .chat-bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg--error .chat-bubble { border-color: #efc6ca; background: #fdf3f4; }
.chat-bubble strong { font-weight: 600; }

.chat-typing .chat-bubble { display: inline-flex; gap: 4px; padding: 14px 16px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chat-dot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-products { display: grid; gap: 6px; margin-top: 8px; width: 100%; }
.chat-product { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.chat-product:hover { border-color: var(--ink); }
.chat-product img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: var(--cream); flex: 0 0 auto; }
.chat-product span { display: flex; flex-direction: column; min-width: 0; }
.chat-product strong { font-size: 13px; font-weight: 500; }
.chat-product small { font-size: 11px; color: var(--muted); }
.chat-product em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .08em; margin-top: 2px; }
.chat-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-links a { font-size: 12px; text-decoration: underline; }

.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-quick:empty { display: none; }
.chat-chip { font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.chat-chip:hover { background: var(--ink); color: #fff; }

.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat-form textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; font-size: 14px; line-height: 1.4; padding: 8px 4px; max-height: 120px; }
.chat-send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; transition: opacity .2s; }
.chat-send[disabled] { opacity: .4; cursor: default; }
.chat-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-foot { font-size: 10.5px; color: var(--muted); text-align: center; padding: 0 12px 10px; background: var(--white); }
.chat-foot a { text-decoration: underline; color: var(--ink-soft); }

@media (max-width: 900px) {
    .chat { right: 14px; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 14px); }
    .chat-launcher span { display: none; }
    .chat-launcher { padding: 15px; }
    .chat.is-open { inset: auto 0 calc(var(--tabbar-h) + var(--safe-bottom)) 0; }
    .chat-panel { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-bottom)); width: 100%; height: min(78vh, calc(100vh - var(--header-h) - var(--tabbar-h) - 20px)); border-radius: 18px 18px 0 0; border-bottom: 0; }
    .flash-stack { bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 80px); }
}
@media (prefers-reduced-motion: reduce) { .chat-panel, .chat-typing span { animation: none; } }

/* Gift sets */
.badge-gift { background: var(--rose); }
.pdp__worth { font-size: 13px; color: var(--ink-soft); margin: -14px 0 22px; }
.pdp__worth strong { color: var(--rose); font-weight: 600; }
.inside { border: 1px solid var(--line); background: var(--white); padding: 18px 20px; margin-bottom: 26px; }
.inside__title { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.inside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inside li { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.inside li img { width: 56px; height: 56px; object-fit: contain; background: var(--cream); flex: 0 0 auto; }
.inside li span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inside li a { text-decoration: underline; text-underline-offset: 3px; }
.inside li small { font-size: 12px; color: var(--muted); }
.inside li em { font-style: normal; font-size: 13px; color: var(--muted); }
.inside__icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--blush); flex: 0 0 auto; }
.inside__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--rose); stroke-width: 1.4; stroke-linejoin: round; }
.item-details { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; white-space: normal; }

/* ==========================================================================
   Create your gift
   ========================================================================== */
.gift-builder { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 60px); align-items: start; }
.gift-step { border: 0; padding: 0; margin: 0 0 44px; min-width: 0; }
.gift-step legend { display: flex; align-items: center; gap: 12px; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 18px; padding: 0; }
.gift-step legend small { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.gift-step__num { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; flex: 0 0 auto; }

.box-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.box-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 14px; background: var(--white); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.box-option input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.box-option img { width: 100%; height: auto; }
.box-option span { font-size: 13px; letter-spacing: .08em; }
.box-option:hover { border-color: var(--ink-soft); }
.box-option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.box-option:has(input:focus-visible) { outline: 2px solid var(--rose); outline-offset: 2px; }

.gift-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.gift-filter .chip { border-radius: 999px; cursor: pointer; }
.gift-count { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.gift-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gift-pick { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 12px; background: var(--white); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.gift-pick[hidden] { display: none; }
.gift-pick input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gift-pick img { width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 6px; }
.gift-pick__name { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.gift-pick__sub { font-size: 11px; color: var(--muted); }
.gift-pick__price { font-size: 12px; font-weight: 600; letter-spacing: .12em; margin-top: 4px; }
.gift-pick__check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); }
.gift-pick:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.gift-pick:has(input:checked) .gift-pick__check { background: var(--ink); border-color: var(--ink); }
.gift-pick:has(input:checked) .gift-pick__check::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gift-pick:has(input:focus-visible) { outline: 2px solid var(--rose); outline-offset: 2px; }
.gift-pick.is-locked { opacity: .45; cursor: not-allowed; }
.wrap-option { margin-top: 16px; }
.wrap-option strong { font-weight: 600; margin-left: 4px; }

.gift-preview { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border: 1px solid var(--line); padding: 24px; }
.gift-preview h2 { font-size: 22px; margin-bottom: 14px; }
.gift-stage { position: relative; background: var(--blush-hero); padding: 30px 18px 10px; margin-bottom: 12px; }
.gift-stage__items { position: relative; display: flex; justify-content: center; margin-bottom: -34px; min-height: 40px; }
.gift-stage__items img { width: 84px; height: 84px; object-fit: contain; margin: 0 -14px; mix-blend-mode: multiply; animation: pop .3s ease; }
.gift-stage__box { position: relative; z-index: 1; width: 100%; height: auto; }
@keyframes pop { from { transform: translateY(10px) scale(.9); opacity: 0; } }
.gift-preview__box { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.gift-lines { list-style: none; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; }
.gift-lines li { display: grid; grid-template-columns: 1fr auto 22px; gap: 10px; align-items: center; }
.gift-lines li.muted { display: block; }
.gift-lines__remove { width: 22px; height: 22px; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--muted); }
.gift-lines__remove:hover { color: var(--ink); }
.gift-tag { position: relative; background: var(--cream); border: 1px dashed var(--rose); padding: 14px 16px; margin-bottom: 14px; font-size: 13px; }
.gift-tag p { font-style: italic; margin: 4px 0; overflow-wrap: anywhere; }
.gift-tag__to, .gift-tag__from { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.gift-tag__from { text-align: right; }
.gift-preview .btn { margin-top: 16px; }
.gift-preview .btn[disabled] { opacity: .35; }
.gift-hint { font-size: 12px; text-align: center; margin-top: 10px; }
.gift-note { font-size: 12px; font-style: italic; color: var(--ink-soft); margin-top: 4px; }
.gift-bar { display: none; }

@media (max-width: 1000px) {
    .gift-builder { grid-template-columns: minmax(0, 1fr); }
    .gift-preview { position: static; }
}
@media (max-width: 900px) {
    .box-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gift-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gift-bar {
        display: flex; justify-content: space-between; align-items: center; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-bottom)); z-index: 45;
        padding: 10px var(--gutter); background: rgba(253, 251, 248, .96); border-top: 1px solid var(--line);
        font-size: 13px; transform: translateY(110%); transition: transform .25s;
    }
    .gift-builder.is-ready .gift-bar { transform: none; }
    .gift-bar .btn[disabled] { opacity: .35; }
}

/* GCC delivery */
.country-row { display: flex; gap: 8px; }
.country-row select { flex: 1; }
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.ship-to { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ship-to label { color: var(--ink-soft); }
.ship-to .select { width: 100%; }
.ship-to small { grid-column: 2; color: var(--muted); font-size: 12px; }

/* Forgot password */
.auth-forgot { text-align: right; font-size: 13px; margin-top: 10px; }
.auth-forgot a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.auth-forgot a:hover { color: var(--ink); }
.alert--success { color: var(--success); border-color: #cfe6d9; background: #f1f8f4; }
.auth-card > p.auth-forgot { margin: 10px 0 0; color: inherit; }

/* ==========================================================================
   Customer account
   ========================================================================== */
.page-hero--compact { padding: clamp(36px, 4vw, 60px) 0 clamp(30px, 3.5vw, 48px); }
.account-grid { grid-template-columns: 260px minmax(0, 1fr); }
.account-nav { background: var(--white); border: 1px solid var(--line); padding: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.account-nav__me { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.account-nav__me > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.account-nav__me strong { font-size: 14px; font-weight: 500; }
.account-nav__me small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-nav__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; font-weight: 600; flex: 0 0 auto; }
.account-nav nav { display: grid; gap: 2px; }
.account-nav nav a { padding: 10px 12px; font-size: 14px; border-left: 2px solid transparent; }
.account-nav nav a:hover { background: var(--cream); }
.account-nav nav a.is-active { border-left-color: var(--ink); background: var(--cream); font-weight: 500; }
.account-nav__signout { margin-top: 14px; background: none; border: 0; padding: 10px 12px; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.account-head p { font-size: 13px; }
.empty-card { background: var(--white); border: 1px dashed var(--line); padding: 36px; text-align: center; }
.empty-card h2 { font-size: 22px; margin-bottom: 6px; }
.empty-card p { margin-bottom: 18px; font-size: 14px; }
.address-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.address-card { background: var(--white); border: 1px solid var(--line); padding: 18px 20px; font-size: 14px; display: flex; flex-direction: column; }
.address-card.is-default { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.address-card header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.address-card header strong { font-size: 15px; font-weight: 500; }
.address-card p + p { margin-top: 2px; }
.address-card__warn { font-size: 12px; color: var(--danger); margin-top: 8px !important; }
.address-card footer { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 14px; font-size: 13px; }
.address-card footer form { display: inline; }
.address-card footer a, .address-card footer button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; color: var(--ink-soft); }
.address-card footer .is-danger { color: var(--danger); }
.pill { display: inline-block; font-size: 10px; font-style: normal; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; vertical-align: middle; }
.account-form { background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }
.account-form__title { font-size: 20px; margin-bottom: 16px; }
.account-form__actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.account-stack { display: grid; gap: 18px; }
.label-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.label-chip { position: relative; }
.label-chip input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.label-chip span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; background: var(--white); }
.label-chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.label-chip input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.pay-card { align-items: center; }
.pay-card__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blush); display: grid; place-items: center; flex: 0 0 auto; }
.pay-card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pay-note { font-size: 12px; margin-top: 16px; }

/* Checkout: saved addresses */
.saved-addresses { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.saved-address { position: relative; display: block; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); cursor: pointer; font-size: 13px; line-height: 1.5; }
.saved-address input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.saved-address strong { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.saved-address:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.saved-address:has(input:focus-visible) { outline: 2px solid var(--rose); outline-offset: 2px; }
.saved-address--new { display: grid; place-items: center; text-align: center; color: var(--ink-soft); border-style: dashed; min-height: 100px; }
.save-address-opt { margin-top: 14px; }
@media (max-width: 900px) {
    .account-grid { grid-template-columns: minmax(0, 1fr); }
    .account-nav { position: static; }
    .account-nav { padding: 16px; }
    .account-nav nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .account-nav nav a { border: 1px solid var(--line); border-radius: 8px; text-align: center; padding: 10px 6px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .account-nav nav a.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
    .account-nav__signout { margin-top: 8px; padding: 8px 0 0; }
}

/* Card payment */
.pay-option { align-items: center; }
.card-brands { margin-left: auto; display: flex; gap: 4px; }
.rates-table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; font-size: 14px; }
.rates-table th { text-align: left; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.rates-table th, .rates-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.card-brands i { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .06em; padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-soft); background: var(--white); }
.card-panel { border: 1px solid var(--ink); border-top: 0; margin-top: -1px; padding: 18px 18px 16px; background: var(--white); }
.card-panel .field input { font-variant-numeric: tabular-nums; }
.cc-number-wrap { position: relative; }
.cc-brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink-soft); pointer-events: none; }
.card-test { font-size: 12px; line-height: 1.5; background: #fff8e6; border: 1px solid #f0dca8; color: #6b5414; padding: 10px 12px; margin-bottom: 14px; }
.card-error { color: var(--danger); font-size: 13px; margin-top: 10px; }
.card-secure { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.card-secure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pay-option + .pay-option, .card-panel + .pay-option { margin-top: 10px; }
.pay-option:has(input:checked) { border-color: var(--ink); }
.stripe-element { min-height: 120px; }

/* ==========================================================================
   Mobile menu drawer
   ========================================================================== */
.nav-thumb { display: none; }
@media (max-width: 900px) {
    .menu-open { overflow: hidden; }
    .main-nav {
        width: min(88vw, 380px); padding: 6px 22px 22px;
        display: flex; flex-direction: column;
        box-shadow: 18px 0 40px -24px rgba(60, 30, 30, .35);
        overscroll-behavior: contain;
    }
    .main-nav > ul { align-items: stretch; }
    .main-nav > ul > li { border-bottom: 1px solid var(--line); }
    .main-nav > ul > li > a,
    .main-nav > ul > li > button {
        justify-content: space-between; gap: 12px; width: 100%;
        padding: 17px 2px; font-size: 19px; letter-spacing: .02em; text-transform: none; color: var(--ink);
    }
    .main-nav > ul > li > a::after {
        content: ""; display: block; position: static; width: 8px; height: 8px; background: none;
        border: solid var(--muted); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); flex: 0 0 auto;
    }
    .main-nav > ul > li > a.is-active { font-weight: 500; }
    .main-nav > ul > li > a.is-active::after { border-color: var(--rose); }
    .main-nav .plus {
        display: grid; place-items: center; width: 28px; height: 28px; margin: 0; border-radius: 50%;
        background: var(--blush); font-size: 18px; font-weight: 400;
    }

    /* Shop accordion */
    .dropdown, .dropdown--cols { padding: 2px 0 20px; gap: 18px; }
    .main-nav .has-drop:not(.is-open) .dropdown { display: none; }
    .main-nav .has-drop.is-open .dropdown { display: grid; animation: navDrop .25s ease; }
    .dropdown__title { margin-bottom: 10px; }
    .dropdown li + li { margin-top: 0; }
    .dropdown__col:first-child ul { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dropdown__col:first-child a {
        position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--blush);
    }
    .nav-thumb { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .dropdown__col:first-child a::before {
        content: ""; position: absolute; inset: 0; z-index: 1;
        background: linear-gradient(to top, rgba(20, 10, 10, .62), rgba(20, 10, 10, 0) 58%);
    }
    .dropdown__col:first-child a span {
        position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 2;
        color: #fff; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
    }
    .dropdown__col + .dropdown__col ul { display: flex !important; flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .dropdown__col + .dropdown__col a {
        display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
        background: var(--white); font-size: 13px;
    }
    .dropdown .dropdown-all {
        margin: 0; padding: 14px; border: 0; background: var(--ink); color: #fff; text-align: center; border-radius: 0;
    }
    .dropdown__col li { padding: 0; }

    /* Drawer footer */
    .nav-foot.mobile-only { display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding-top: 26px; }
    .nav-account {
        display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--white);
        border: 1px solid var(--line); border-radius: 12px;
    }
    .main-nav .nav-account::after {
        content: ""; width: 8px; height: 8px; margin-left: auto; flex: 0 0 auto;
        border: solid var(--muted); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); position: static; background: none; display: block;
    }
    .nav-account__avatar {
        width: 42px; height: 42px; border-radius: 50%; background: var(--blush); display: grid; place-items: center;
        font-weight: 600; flex: 0 0 auto;
    }
    .nav-account__avatar svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
    .nav-account__text { display: flex; flex-direction: column; min-width: 0; }
    .nav-account__text strong { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-account__text small { font-size: 12px; color: var(--muted); }
    .nav-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .nav-quick a {
        display: flex; justify-content: center; align-items: center; gap: 6px; padding: 11px 6px;
        border: 1px solid var(--line); border-radius: 10px; font-size: 13px; background: var(--white);
    }
    .main-nav .nav-quick a::after, .main-nav .dropdown a::after { display: none; }
    .nav-quick span {
        min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff;
        font-size: 10px; display: inline-grid; place-items: center;
    }
    .nav-note { margin: 0; font-size: 11px; letter-spacing: .08em; color: var(--muted); text-align: center; }
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Shop: category dropdown + compact page header on phones */
.select--category { display: none; }
.shop-toolbar__right form { display: flex; gap: 10px; }
@media (max-width: 560px) {
    .page-hero { padding: 18px 0 22px; }
    .page-hero .breadcrumbs { margin-bottom: 10px; }
    .page-hero .eyebrow { margin-bottom: 6px; }
    .page-hero h1 { font-size: 30px; }
    .page-hero p { margin-top: 6px; font-size: 13px; line-height: 1.5; }
    .page-body { padding-top: 22px; }

    .shop-toolbar .chips { display: none; }
    .shop-toolbar { padding-bottom: 14px; margin-bottom: 18px; }
    .shop-toolbar__right { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
    .shop-toolbar__right form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: none; }
    .shop-toolbar__right .select, .select--category { display: block; width: 100%; min-width: 0; font-size: 13px; padding-block: 11px; }
    .shop-count { font-size: 12px; }
}

/* Gifts page: one-row hero buttons + category dropdown on phones */
.gift-filter-select { display: none; }
@media (max-width: 560px) {
    .gift-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
    .gift-hero-actions .btn { padding: 14px 8px; font-size: 10.5px; letter-spacing: .14em; white-space: nowrap; }
    .hide-xs { display: none; }
    .gift-filter { display: none; }
    .gift-filter-select { display: block; width: 100%; font-size: 13px; padding-block: 11px; margin-bottom: 10px; }
}

/* Checkout: placing-order loader */
.btn.is-loading::before {
    content: ""; width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn.is-loading:disabled { opacity: 1; cursor: progress; }
.order-loader {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
    background: rgba(253, 251, 248, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    animation: loaderIn .25s ease;
}
.order-loader[hidden] { display: none; }
.order-loader__box {
    width: min(100%, 360px); padding: 34px 28px 28px; text-align: center; background: var(--white);
    border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(60, 30, 30, .35);
}
.order-loader__logo { display: block; font-size: 22px; letter-spacing: .32em; margin-bottom: 18px; }
.order-loader__logo sup { font-size: 9px; letter-spacing: 0; }
.order-loader__msg { margin: 0 0 16px; font-size: 15px; }
.order-loader__track { position: relative; height: 4px; background: var(--blush); overflow: hidden; border-radius: 999px; }
.order-loader__track span {
    position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--ink);
    transition: width 1.4s cubic-bezier(.2, .7, .2, 1); overflow: hidden;
}
.order-loader__track span::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    animation: shimmer 1.1s linear infinite;
}
.order-loader small { display: block; margin-top: 14px; font-size: 12px; color: var(--muted); }
.is-placing-order { overflow: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes loaderIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .btn.is-loading::before, .order-loader__track span::after { animation: none !important; }
}

/* First-visit welcome offer */
.welcome-pop { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px; }
.welcome-pop[hidden] { display: none; }
.welcome-pop__backdrop { position: absolute; inset: 0; background: rgba(30, 18, 18, .45); opacity: 0; transition: opacity .3s ease; }
.welcome-pop__card {
    position: relative; display: grid; grid-template-columns: 1fr 1.1fr; width: min(100%, 720px); max-height: calc(100vh - 40px); overflow: auto;
    background: var(--cream); box-shadow: 0 30px 80px -30px rgba(40, 20, 20, .5);
    opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .3s ease, transform .3s ease;
}
.welcome-pop.is-open .welcome-pop__backdrop { opacity: 1; }
.welcome-pop.is-open .welcome-pop__card { opacity: 1; transform: none; }
.welcome-pop__media { background: var(--blush); min-height: 100%; }
.welcome-pop__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.welcome-pop__body { padding: 44px 36px 30px; text-align: center; display: flex; flex-direction: column; align-items: stretch; }
.welcome-pop__body .eyebrow { margin-bottom: 12px; }
.welcome-pop__body h2 { font-size: 32px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.welcome-pop__body p { margin: 14px 0 18px; font-size: 14px; color: var(--ink-soft); }
.welcome-pop__code {
    display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 14px; padding: 12px;
    border: 1.5px dashed var(--rose); background: #fbf1ef; cursor: pointer; font: inherit; color: var(--ink);
}
.welcome-pop__code span { font-size: 20px; font-weight: 600; letter-spacing: .3em; padding-left: .3em; }
.welcome-pop__code small { font-size: 11px; color: var(--rose); letter-spacing: .06em; }
.welcome-pop__code.is-copied { border-style: solid; }
.welcome-pop__signin { margin: 10px 0 0 !important; font-size: 13px !important; }
.welcome-pop__signin a { text-decoration: underline; color: var(--ink); }
.welcome-pop__later { margin-top: 10px; background: none; border: 0; font: inherit; font-size: 12px; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px; }
.welcome-pop__terms { margin-top: 6px; font-size: 11px; color: var(--muted); }
.welcome-pop__close {
    position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .85); font-size: 22px; line-height: 1; cursor: pointer;
}
.welcome-pop__card:focus { outline: none; }
.welcome-open { overflow: hidden; }
@media (max-width: 640px) {
    .welcome-pop { place-items: end center; padding: 0; }
    .welcome-pop__card {
        grid-template-columns: minmax(0, 1fr); width: 100%; max-height: 92vh;
        border-radius: 20px 20px 0 0; transform: translateY(100%);
        padding-bottom: var(--safe-bottom, 0px);
    }
    .welcome-pop__media { height: 150px; min-height: 0; }
    .welcome-pop__media img { object-position: center 30%; }
    .welcome-pop__body { padding: 24px 22px 20px; }
    .welcome-pop__body h2 { font-size: 26px; }
    .welcome-pop__body p { margin: 10px 0 14px; font-size: 13px; }
}
