/* Shop surfaces: product page, bag drawer, quick-add sheet, cart page, checkout and confirmation.
   Mobile-first; desktop rules sit under min-width:701px to match style.css's 700px break. */
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body:has(dialog[open]){overflow:hidden}
.shop-page main{min-height:50vh}
.shop-page .eyebrow{display:block}
.button.disabled{opacity:.45;cursor:not-allowed}
.button.disabled:hover{background:var(--hot)}
.ghost-button{width:100%}
.button.pink-button,.button.ghost-button,.button.buy-now{min-height:56px;font-weight:700;font-size:14px;justify-content:center;gap:12px}
.button .arrow{font-size:18px}

/* ---------- Home: price under the stage copy ---------- */
.home-price{display:flex;align-items:baseline;gap:12px;margin-top:4px}
.home-price b{font-size:26px;letter-spacing:-1px}
.home-price span{font-size:12px;color:#666}

/* ---------- Product page ---------- */
.crumbs{display:flex;gap:10px;align-items:center;padding:14px 5% 0;font-size:11px;color:#666;white-space:nowrap;overflow:hidden}
.crumbs a{min-height:44px;display:inline-flex;align-items:center}
.crumbs a:hover{color:var(--ink);text-decoration:underline}
.crumbs [aria-current]{color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.pdp-layout{display:grid;grid-template-columns:1fr}
.pdp-gallery{position:relative;background:#fff}
.gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;outline-offset:-3px}
.gallery-track::-webkit-scrollbar{display:none}
.gallery-slide{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;aspect-ratio:4/5;background:#f3eeeb;overflow:hidden}
.gallery-slide img{width:100%;height:100%;object-fit:cover;object-position:50% 28%;display:block;-webkit-user-drag:none}
.pdp[data-category=gummies] .gallery-slide{background:#fff}
.pdp[data-category=gummies] .gallery-slide img{object-fit:contain;object-position:center;padding:6%}
.gallery-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;justify-content:center;gap:2px}
.dot{width:32px;height:44px;border:0;background:none;padding:0;display:grid;place-items:center}
.dot::before{content:"";width:7px;height:7px;border-radius:50%;background:#1a1a1a55;transition:transform .2s,background .2s}
.dot[aria-current=true]::before{background:var(--ink);transform:scale(1.35)}
#gallery-thumbs.gallery-thumbs{display:none;padding:0;justify-content:flex-start}
.pdp-buy{padding:22px 5% 10px}
.pdp-buy h1{font-size:clamp(34px,9vw,54px);font-weight:900;letter-spacing:-.045em;line-height:.95;margin:10px 0 14px}
.pdp-price{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pdp-price b{font-size:24px;letter-spacing:-.5px}
.provisional{font-size:10px;letter-spacing:.8px;text-transform:uppercase;border:1px solid #1a1a1a33;border-radius:20px;padding:5px 9px;color:#666}
.pdp-short{font-size:14px;color:#555;margin:8px 0 22px}
.pdp-size{margin-bottom:18px}
.size-head{display:flex;justify-content:space-between;font-size:12px;font-weight:700;margin-bottom:10px}
.size-head span:last-child{font-weight:400;color:#666}
.size-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.size-pill{min-height:48px;border:1px solid var(--ink);background:#fff;font-size:14px;font-weight:700;transition:background .15s,color .15s}
.size-pill:hover{background:var(--pink)}
.size-pill[aria-checked=true]{background:var(--ink);color:var(--cream)}
.field-error{color:#b3001b;font-size:12px;margin:8px 0 0;line-height:1.4}
.field-error:empty{display:none}
.pdp-actions{display:flex;gap:10px;align-items:stretch}
.qty{display:inline-flex;align-items:center;border:1px solid var(--ink);background:#fff;flex:none}
.qty button{width:44px;min-height:54px;border:0;background:none;font-size:20px;line-height:1}
.qty button:disabled{color:#bbb;cursor:default}
.qty span{min-width:26px;text-align:center;font-size:14px;font-weight:700}
.add-button{flex:1;justify-content:space-between!important;padding:0 20px}
.add-button b{font-weight:700}
.buy-now{width:100%;margin-top:10px;background:var(--ink);color:var(--cream)}
.buy-now:hover{background:#363333}
.trust{list-style:none;display:flex;justify-content:space-between;gap:8px;padding:18px 0 0;margin:0;font-size:11px;color:#444}
.trust li{display:flex;align-items:center;gap:6px}
.trust svg{width:16px;height:16px;flex:none}
.facts{list-style:none;padding:0;margin:26px 0 0;border-top:1px solid var(--line);display:grid}
.facts li{display:flex;gap:12px;align-items:baseline;font-size:14px;padding:11px 0;border-bottom:1px solid var(--line)}
.facts li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--hot);flex:none;transform:translateY(-1px)}
.facts-note{font-size:11px;color:#777;line-height:1.5;margin:10px 0 0}
.pdp-desc{font-size:14px;line-height:1.75;color:#333;margin:24px 0 10px}
.pdp-details details{padding:6px 0}
.pdp-details summary{font-size:14px;font-weight:700;padding:16px 0}
.pdp-details details p{font-size:13px;max-width:none;margin:0 0 16px}
.cross-sell{padding:40px 5% 50px;border-top:1px solid var(--line);margin-top:30px}
.cross-sell .section-heading{display:block;margin-bottom:22px}
.cross-sell h2{font-size:34px;letter-spacing:-2px;margin-top:10px}
.cross-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
.cross-card{display:flex;flex-direction:column;gap:10px;min-width:0}
.cross-art{display:block;aspect-ratio:4/5;background:#e9e4e1;overflow:hidden}
.cross-art img{width:100%;height:100%;object-fit:cover;object-position:50% 28%;display:block;transition:transform .5s}
.cross-art:hover img{transform:scale(1.03)}
.cross-info{display:flex;flex-direction:column;gap:4px}
.cross-name{font-size:13px;font-weight:700;line-height:1.3;min-height:44px;display:flex;align-items:center}
.cross-price{font-size:13px;color:#555}
.cross-add{min-height:44px;border:1px solid var(--ink);background:#fff;font-size:12px;font-weight:700}
.cross-add:hover{background:var(--pink)}
.pdp-missing,.confirm-none{padding:70px 5% 90px;text-align:center;display:grid;gap:14px;justify-items:center}
.pdp-missing h1,.confirm-none h1{font-size:40px;font-weight:900;letter-spacing:-2px;margin:0}
.pdp-missing p{font-size:14px;color:#555;margin:0 0 10px}
.pdp-missing .button,.confirm-none .button{max-width:320px}
.sticky-atc{position:fixed;left:0;right:0;bottom:0;z-index:18;display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;background:#fffffff2;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:10px 5% calc(10px + env(safe-area-inset-bottom));transform:translateY(110%);transition:transform .3s}
.sticky-atc.visible{transform:none}
.sticky-atc img{width:48px;height:60px;object-fit:cover;background:#fff}
.sticky-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.sticky-copy b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sticky-copy span{font-size:13px}
.sticky-atc .button{min-height:48px;padding:0 20px;width:auto;font-size:13px}
body.has-sticky{padding-bottom:80px}

/* ---------- Bag drawer ---------- */
#bag.bag-drawer{padding:0;width:440px;max-width:100%;height:100dvh;max-height:100dvh;margin:0 0 0 auto;background:var(--cream);box-shadow:-20px 0 60px #1a1a1a33}
#bag.bag-drawer[open]{display:flex;flex-direction:column}
#bag.bag-drawer::backdrop{background:#1a1a1a66;backdrop-filter:blur(3px)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 12px;border-bottom:1px solid var(--line)}
.drawer-head h2{font-size:20px;font-weight:900;letter-spacing:-.8px;margin:0}
.drawer-head h2 span{font-weight:400;color:#666;font-size:14px;margin-left:4px}
.drawer-close{width:44px;height:44px;border:0;background:none;font-size:18px;display:grid;place-items:center}
.drawer-ship{padding:12px 20px 0}
.ship-text{font-size:12px;margin:0 0 8px;color:#444}
.ship-bar{height:4px;background:#1a1a1a1a;border-radius:4px;overflow:hidden}
.ship-bar i{display:block;height:100%;background:var(--hot);transition:width .4s}
.drawer-items{flex:1;overflow-y:auto;padding:4px 20px;overscroll-behavior:contain}
.cart-line{display:grid;grid-template-columns:72px 1fr;gap:14px;padding:16px 0;border-bottom:1px solid var(--line);transition:background .4s}
.cart-line.just-added{background:#f299b533;margin:0 -20px;padding-left:20px;padding-right:20px}
.cart-thumb{display:block}
.cart-thumb img{width:72px;height:92px;object-fit:cover;background:#fff;display:block}
.cart-body{display:flex;flex-direction:column;gap:8px;min-width:0}
.cart-top{display:flex;justify-content:space-between;gap:12px;align-items:start}
.cart-name{font-size:13px;font-weight:700;line-height:1.35}
.cart-price{font-size:13px;font-weight:700;flex:none}
.cart-meta{font-size:12px;color:#666;margin:0}
.cart-size{display:flex;align-items:center;gap:10px;font-size:12px;color:#555}
.cart-size select{min-height:40px;border:1px solid #1a1a1a55;background:#fff;font:inherit;font-size:13px;padding:0 8px;border-radius:0}
.cart-size.missing{color:#b3001b;font-weight:700}
.cart-size.missing select{border-color:#b3001b}
.cart-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:2px}
.cart-controls .qty button{min-height:40px;width:40px;font-size:18px}
.cart-controls .qty span{font-size:13px}
.cart-remove{border:0;background:none;font-size:12px;text-decoration:underline;text-underline-offset:3px;color:#555;min-height:44px;padding:0 4px}
.cart-empty{display:grid;gap:18px;justify-items:center;text-align:center;padding:50px 0}
.cart-empty p{font-size:15px;margin:0}
.cart-empty .button{max-width:260px}
.drawer-foot{border-top:1px solid var(--line);padding:14px 20px calc(14px + env(safe-area-inset-bottom));background:var(--cream)}
.drawer-sub{display:flex;justify-content:space-between;font-size:15px;font-weight:700}
.drawer-note{font-size:11px;color:#666;margin:6px 0 12px;line-height:1.5;border:0;padding:0}
.checkout-button{width:100%}
.drawer-links{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.drawer-links a,.drawer-links button{font-size:12px;text-decoration:underline;text-underline-offset:3px;border:0;background:none;padding:12px 0;min-height:44px;color:#333}

/* ---------- Quick add sheet ---------- */
#quick-add.quick-add{padding:18px 20px calc(20px + env(safe-area-inset-bottom));width:100%;max-width:100%;margin:auto 0 0;border-radius:16px 16px 0 0;background:var(--cream)}
#quick-add::backdrop{background:#1a1a1a66}
.qa-head{display:grid;grid-template-columns:56px 1fr 44px;gap:14px;align-items:center;margin-bottom:16px}
.qa-head img{width:56px;height:72px;object-fit:cover;background:#fff}
.qa-head h2{font-size:16px;font-weight:700;margin:4px 0;letter-spacing:-.3px}
.qa-price{font-size:14px}
.qa-link{display:inline-block;margin-top:16px;font-size:12px;text-decoration:underline;text-underline-offset:3px;padding:10px 0}

/* ---------- Cart page ---------- */
.cart-page{padding:26px 5% 60px}
.page-head h1,.confirm-hero h1{font-size:clamp(40px,11vw,80px);font-weight:900;letter-spacing:-.045em;line-height:.9;margin:12px 0 0}
.page-head h1 i,.confirm-hero h1 i,.cross-sell h2 i{font-family:Georgia,serif;font-weight:400;letter-spacing:-.02em}
.cart-layout{display:grid;grid-template-columns:1fr;gap:28px;margin-top:26px}
.cart-main .drawer-ship{padding:0 0 10px}
.summary{background:#fff;border:1px solid var(--line);padding:22px 20px;display:grid;gap:12px;align-content:start}
.summary h2,.confirm-card h2{font-size:16px;font-weight:700;margin:0 0 4px;letter-spacing:-.3px}
.sum-rows{display:grid;gap:10px}
.sum-row{display:flex;justify-content:space-between;font-size:14px}
.sum-row.total{border-top:1px solid var(--line);padding-top:12px;font-size:17px;font-weight:700;margin-top:4px}
.summary .checkout-button{margin-top:4px}
.continue-link,.edit-bag{display:inline-block;font-size:13px;text-decoration:underline;text-underline-offset:3px;padding:12px 0;justify-self:center}

/* ---------- Checkout ---------- */
.checkout-page{background:var(--cream)}
.checkout-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 5%;background:var(--cream);border-bottom:1px solid var(--line)}
.checkout-header .wordmark{padding:5px 0}
.secure{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#2a6b3a}
.secure svg{width:16px;height:16px}
.back-to-bag{font-size:12px;font-weight:700;padding:12px 0;min-height:44px;display:inline-flex;align-items:center;gap:6px}
.back-to-bag span{display:inline-flex;align-items:center;justify-content:center;background:var(--ink);color:var(--cream);border-radius:50%;width:22px;height:22px;font-size:10px}
.checkout-main{padding:0 0 40px}
.summary-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;padding:16px 5%;background:#fff;border:0;border-bottom:1px solid var(--line);font-size:14px;min-height:56px}
.summary-toggle>span{display:flex;align-items:center;gap:8px;font-weight:700}
.summary-toggle svg{width:18px;height:18px}
.chev{width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.summary-toggle[aria-expanded=true] .chev{transform:rotate(-135deg) translateY(-2px)}
.summary-toggle b{font-size:16px}
.checkout-layout{display:grid;grid-template-columns:1fr}
.co-summary{display:none;background:#fff;border-bottom:1px solid var(--line);padding:6px 5% 22px}
.co-summary.open{display:block}
.co-summary .cart-line{grid-template-columns:56px 1fr;padding:12px 0}
.co-summary .cart-thumb img{width:56px;height:70px}
.co-summary .sum-rows{margin-top:14px}
#checkout-form{padding:6px 5% 20px}
.co-section{padding:22px 0;border-bottom:1px solid var(--line)}
.co-section h2{font-size:18px;font-weight:900;letter-spacing:-.5px;margin:0 0 16px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;min-width:0}
.field label{font-size:11px;letter-spacing:.8px;text-transform:uppercase;font-weight:700;color:#333}
.field label .opt{text-transform:none;letter-spacing:0;font-weight:400;color:#777}
.field input,.field select{min-height:50px;border:1px solid #1a1a1a55;border-radius:6px;background:#fff;padding:0 14px;font:inherit;font-size:16px;color:var(--ink);width:100%;transition:border-color .15s,box-shadow .15s;-webkit-appearance:none;appearance:none}
.field select{background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);background-position:calc(100% - 18px) 55%,calc(100% - 13px) 55%;background-size:5px 5px;background-repeat:no-repeat;padding-right:36px}
.field input:focus,.field select:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px #f299b566}
.field.invalid input,.field.invalid select{border-color:#b3001b;box-shadow:0 0 0 3px #b3001b22}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field-row.three{grid-template-columns:1.3fr .8fr .9fr}
.check{display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.5;padding:6px 0;cursor:pointer}
.check input{width:22px;height:22px;flex:none;margin:1px 0 0;accent-color:var(--ink)}
.methods{display:grid;gap:10px}
.method{display:flex;align-items:center;gap:12px;border:1px solid #1a1a1a55;border-radius:6px;padding:14px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
.method.selected{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);background:#fff}
.method input{width:20px;height:20px;accent-color:var(--ink);flex:none;margin:0}
.method-copy{display:flex;flex-direction:column;gap:3px;flex:1;font-size:12px;color:#666}
.method-copy b{font-size:14px;color:var(--ink)}
.method-price{font-size:14px}
.pay-note{font-size:12px;color:#666;margin:-6px 0 14px}
.pay-box{border:1px solid #1a1a1a55;border-radius:6px;background:#fff;overflow:hidden}
.pay-head{display:flex;justify-content:space-between;align-items:center;padding:14px;border-bottom:1px solid var(--line);font-size:14px;font-weight:700}
.card-brands{display:flex;gap:6px}
.card-brands i{font-style:normal;font-size:10px;letter-spacing:.5px;border:1px solid #1a1a1a33;border-radius:3px;padding:3px 5px;color:#444}
.pay-fields{border:0;margin:0;padding:14px 14px 0;background:#faf7f5}
.pay-fields .field input{background:#fff}
.pay-fields[disabled]{opacity:.55}
.pay-lock{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:#444;margin:0;padding:12px 14px 14px;background:#faf7f5;line-height:1.5}
.pay-lock svg{width:16px;height:16px;flex:none;margin-top:1px}
.age-section .check b{font-weight:700}
.place-order{padding:24px 0 10px;display:grid;gap:12px;justify-items:center}
.place-order .button{justify-content:space-between!important;padding:0 22px;width:100%}
.place-order .button:disabled{opacity:.6;cursor:progress}
.legal{font-size:11px;color:#666;line-height:1.6;margin:0;text-align:center}
.checkout-sticky{position:fixed;left:0;right:0;bottom:0;z-index:18;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fffffff2;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:10px 5% calc(10px + env(safe-area-inset-bottom));transform:translateY(110%);transition:transform .3s}
.checkout-sticky.visible{transform:none}
.checkout-sticky>div{display:flex;flex-direction:column;font-size:11px;color:#666}
.checkout-sticky b{font-size:16px;color:var(--ink)}
.checkout-sticky .button{min-height:48px;padding:0 22px;width:auto;font-size:13px}
.checkout-footer{display:flex;justify-content:space-between;gap:12px;padding:20px 5% 90px;font-size:11px;color:#666;border-top:1px solid var(--line)}

/* ---------- Confirmation ---------- */
.confirm-hero{background:var(--pink);padding:44px 5% 40px;text-align:center;display:grid;justify-items:center;gap:10px}
.check-mark{width:56px;height:56px;border-radius:50%;background:var(--ink);color:var(--cream);display:grid;place-items:center;margin-bottom:6px}
.check-mark svg{width:28px;height:28px}
.confirm-hero p{font-size:14px;line-height:1.7;margin:8px 0 0;max-width:420px}
.preview-flag{display:inline-block;font-size:11px;background:#fff;border:1px solid var(--ink);padding:8px 12px;border-radius:20px}
.confirm-layout{display:grid;grid-template-columns:1fr;gap:16px;padding:22px 5% 0}
.confirm-card{background:#fff;border:1px solid var(--line);padding:20px}
.confirm-card .cart-line{grid-template-columns:56px 1fr;padding:12px 0}
.confirm-card .cart-thumb img{width:56px;height:70px}
.confirm-card .sum-rows{margin-top:14px}
.confirm-card address{font-style:normal;font-size:14px;line-height:1.7}
.confirm-method{font-size:13px;color:#555;margin:8px 0 22px}
.next-steps{margin:0;padding-left:18px;font-size:14px;line-height:1.8;color:#333}
.confirm-actions{display:grid;gap:10px;padding:26px 5% 60px}

/* ---------- Desktop ---------- */
@media(min-width:701px){
.crumbs{padding:16px 3.5% 0}
.pdp-layout{grid-template-columns:1.15fr 1fr;gap:4%;padding:14px 3.5% 0;align-items:start}
.pdp-gallery{background:transparent;position:sticky;top:110px}
.gallery-track{background:#fff}
.gallery-slide{aspect-ratio:4/5}
.gallery-dots{display:none}
#gallery-thumbs.gallery-thumbs{display:flex;gap:10px;padding:12px 0 0;flex-wrap:wrap}
#gallery-thumbs .thumb{width:64px;height:80px;border:1px solid transparent;padding:0;background:#fff;overflow:hidden;opacity:.6;transition:opacity .2s}
#gallery-thumbs .thumb img{width:100%;height:100%;object-fit:cover;display:block}
#gallery-thumbs .thumb:hover,#gallery-thumbs .thumb[aria-pressed=true]{opacity:1}
#gallery-thumbs .thumb[aria-pressed=true]{border-color:var(--ink)}
.pdp-buy{padding:10px 0 0;max-width:520px}
.pdp-buy h1{font-size:clamp(40px,4vw,56px)}
.sticky-atc{display:none}
.cross-sell{padding:50px 3.5% 70px}
.cross-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.cross-sell h2{font-size:44px}
.cart-page{padding:40px 3.5% 80px}
.cart-layout{grid-template-columns:1.4fr 1fr;gap:5%;align-items:start}
.summary{position:sticky;top:120px;padding:26px}
.checkout-header{padding:12px 3.5%}
.summary-toggle{display:none}
.checkout-layout{grid-template-columns:1.1fr .9fr;gap:0;min-height:calc(100vh - 70px)}
#checkout-form{padding:10px 5% 40px 3.5%;order:0}
.co-summary{display:block;order:1;border-bottom:0;border-left:1px solid var(--line);padding:30px 3.5% 40px 5%;background:#fff}
.checkout-sticky{display:none}
.checkout-footer{padding:20px 3.5% 30px}
.confirm-hero{padding:70px 3.5% 60px}
.confirm-layout{grid-template-columns:1fr 1fr;gap:24px;padding:30px 3.5% 0;max-width:1100px;margin:0 auto}
.confirm-actions{grid-template-columns:repeat(2,minmax(0,300px));justify-content:center;padding:36px 3.5% 90px}
#quick-add.quick-add{width:420px;margin:auto;border-radius:12px;padding:22px 24px 26px}
}
@media(max-width:380px){.size-grid{gap:6px}.trust{font-size:10px}.pdp-actions{gap:8px}.qty button{width:44px}.field-row.three{grid-template-columns:1fr 1fr;}.field-row.three .field:first-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.sticky-atc,.checkout-sticky,.cart-line,.ship-bar i{transition:none}.gallery-track{scroll-behavior:auto}}
