/* =====================================================================
   Glowra product landing pages (dr-althea-345.html + product.js).
   Builds on styles.css (tokens, hero, bands, cards, form fields, summary,
   discount code, sticky bar). Only what a single-product page adds.
   ===================================================================== */
section[id],#orderTitle{scroll-margin-top:80px}
.pill--pre{background:#fff6dc;border:1px solid #f3dfa4;color:#5c3d00}

/* buy box: the Dr Dent interface (bundle cards from styles.css) + sale line, pre-order notice, loading cards */
.buy{margin:0 0 4px}
.buy__loading{margin:0}
.buy__sk{display:block;width:100%;height:78px;margin-bottom:10px;border-radius:var(--r);background:linear-gradient(90deg,var(--cream),var(--line),var(--cream));background-size:200% 100%;animation:sk 1.4s linear infinite}
@keyframes sk{to{background-position:-200% 0}}
.bundle__price{flex:none}
.bundle__price s{display:block}
.bundle__name{overflow-wrap:anywhere}
.bundle:has(input:disabled){cursor:default;opacity:.7}
.psale{display:flex;align-items:flex-start;gap:8px;background:var(--pink-soft);border-radius:12px;padding:10px 12px;margin:0 0 14px}
.psale .ic{margin-top:3px;color:var(--pink-d)}
.sale-left{display:block;font-size:15px;color:var(--pink-d);font-weight:600}
.sale-left b{font-variant-numeric:tabular-nums}
.psale small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.pstock{display:flex;align-items:flex-start;gap:8px;font-size:14.5px;font-weight:600;color:#12813c;margin:0 0 16px}
.pstock .ic{margin-top:3px}
.pstock--pre{color:#5c3d00;background:#fff6dc;border:1px solid #f3dfa4;border-radius:12px;padding:10px 12px}
.pstock--pre .ic{color:#b7791f}
/* the same choice inside the order form (.mb from styles.css): as many columns as there are options */
.modal__bundles[data-n="1"]{grid-template-columns:minmax(0,1fr)}
.modal__bundles[data-n="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.modal__bundles[data-n="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.mb{min-width:0}
.mb:has(input:disabled){cursor:default;opacity:.7}
.summary__save{font-size:13.5px}
.summary__save span{color:var(--green)}
.summary__save i{font-style:normal;color:var(--muted)}
.summary__save b{color:var(--green)!important}
.buy__off{display:flex;align-items:flex-start;gap:10px;background:var(--pink-soft);border:1px solid #f7c9d8;border-radius:12px;padding:12px 14px;margin:0 0 16px;font-size:14.5px;line-height:1.45;color:var(--ink-2)}
.buy__off .ic{width:20px;height:20px;margin-top:1px;color:var(--pink-d)}
#heroOrder.notify-btn{flex-direction:row;gap:10px;animation:none}
.trust li{line-height:1.35}
.who__item{min-width:0}
.band--cream .who__item{background:#fff;box-shadow:var(--shadow)}

/* order section: what you order + the form card */
.order{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr);gap:56px;align-items:start}
.order__side .h2{outline:0}
.order__item{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:12px;box-shadow:var(--shadow);max-width:440px}
.order__item img{width:72px;height:72px;border-radius:12px;object-fit:cover;background:var(--blush);flex:none}
.order__item b{display:block;color:var(--ink);font-size:16.5px;line-height:1.3;overflow-wrap:anywhere}
.order__item span{font-size:14.5px;color:var(--muted)}
.order__steps{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:12px;max-width:440px}
.order__steps li{display:flex;align-items:center;gap:12px;font-size:15.5px;font-weight:500;color:var(--ink)}
.order__steps li>span{width:32px;height:32px;border-radius:50%;background:var(--ink);color:#fff;font-weight:700;font-size:14px;display:grid;place-items:center;flex:none}
.order__follow{justify-content:flex-start;margin-top:24px}
.order__card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);padding:28px 24px 24px;min-width:0}
.order__h{font-size:22px;font-weight:700;margin-bottom:6px}
.order__wait{color:var(--muted);text-align:center;padding:28px 0}
.order__wait a{color:var(--pink-d);font-weight:600}
.order__help{margin:0 0 10px}
.order__no{font-size:16px;color:var(--ink);margin-bottom:8px;overflow-wrap:anywhere}
.order__no b{font-size:19px}
#doneTitle{outline:0}
#orderDone .btn--ghost{margin-top:10px}
.order__card .summary div{gap:12px}
.order__card .summary span{min-width:0;overflow-wrap:anywhere}
.order__card .summary b{text-align:right;white-space:nowrap}

/* FAQ footer lines */
.cod-line{margin-top:16px;font-size:14px;font-weight:600;color:var(--ink)}
.cod-line .ic{color:var(--pink)}
.shop-more{margin-top:14px}
.shop-more a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--pink-d);font-weight:700;text-underline-offset:3px}
.acc__body b{color:var(--ink)}

/* sticky bar: long product names stay on one line */
.sticky__info{min-width:0}
.sticky__info b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sticky .btn{flex:none;white-space:nowrap}

@media (max-width:900px){
  .order{grid-template-columns:minmax(0,1fr);gap:28px}
  .order__follow{display:none}
}
@media (max-width:640px){
  .order__card{padding:22px 16px 18px;border-radius:var(--r)}
  .trust li{font-size:12.5px}
}
@media (prefers-reduced-motion:reduce){ .buy__sk{animation:none} }

/* gallery: a soft-lavender card like Dr Dent's. The lavender is part of the first photo itself
   (dr-althea-345-1-lav.webp: only the studio background was recoloured, the tube is untouched),
   so no blending is used and the product colours are shown as photographed. */
.gallery__main,.gallery__thumbs button{background:#ece6fb}
/* note beside the order summary when the prices were read again */
.price-note{background:#fff6dc;color:#5c3d00;border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.45;margin:0 0 12px}

/* video rail on product pages: 4:5 clips */
.vcard--45{aspect-ratio:4/5;flex-basis:clamp(240px,26vw,320px)}
@media (max-width:760px){.vcard--45{flex-basis:72vw}}

/* order form as a popup (dialog#order) */
dialog#order{overflow-y:auto;overscroll-behavior:contain}
.order__card--modal{border:0;box-shadow:none;border-radius:0;background:#fff}
dialog#order .order__wait{padding:20px 0 8px}

/* feature chips: gradient badge icons */
.chips .ic--badge{width:30px;height:30px;stroke:none;filter:drop-shadow(0 3px 6px rgba(224,17,95,.25))}
.chips li:has(.ic--badge){gap:10px;background:#fff;padding:9px 12px}

/* gallery: a video slide + its thumbnail */
.gallery__main video{flex:0 0 100%;width:100%;height:100%;object-fit:cover;scroll-snap-align:start;cursor:pointer;background:#1d1624}
.gallery__thumbs button{position:relative}
.gallery__play{position:absolute;inset:0;display:grid;place-items:center;background:rgba(20,16,26,.28)}
.gallery__play .ic{width:22px;height:22px;color:#fff;fill:#fff;stroke:none}
/* trust row: gradient badge icons */
.trust .ic--badge{width:40px;height:40px;stroke:none;filter:drop-shadow(0 4px 8px rgba(224,17,95,.25))}
.trust li:has(.ic--badge){gap:9px}

/* gallery video: sound button */
.gallery__snd{top:14px;right:14px}
.vcard:has(video){cursor:pointer}

/* conversion pass: mid-page order buttons, pay note, per-unit price, chat button */
.cta-mid{margin-top:36px}
.pay-note{display:flex;align-items:center;justify-content:center;gap:8px;margin:10px 0 0;font-size:13.5px;font-weight:600;color:var(--green,#15803d);text-align:center}
.pay-note .ic{flex:none}
.bundle__each{color:var(--ink);font-weight:700}
.chat-fab{position:fixed;right:18px;bottom:22px;z-index:45;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px 0 12px;border-radius:999px;background:#fff;color:var(--ink);font-weight:700;font-size:14.5px;text-decoration:none;border:1px solid var(--line);box-shadow:0 10px 30px rgba(20,16,26,.18);transition:transform .2s}
.chat-fab:hover{transform:translateY(-2px)}
.chat-fab .ic{width:26px;height:26px;stroke:none}
@media (max-width:900px){.chat-fab{bottom:calc(84px + env(safe-area-inset-bottom));right:12px;padding:0;width:52px;height:52px;justify-content:center}.chat-fab span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.chat-fab .ic{width:30px;height:30px}}

/* thank-you discount code on the order-placed screen */
.thanks-code{display:grid;gap:8px;justify-items:center;text-align:center;margin:4px 0 16px;padding:14px 14px 12px;border-radius:var(--r);border:1.5px dashed var(--pink);background:var(--pink-soft,#fff0f5)}
.thanks-code__t{font-size:14.5px;color:var(--ink)}
.thanks-code__row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center}
.thanks-code__c{font-size:22px;letter-spacing:.14em;color:var(--pink-d);user-select:all}
.thanks-code small{font-size:12.5px;color:var(--muted)}

/* product description under the photos (desktop: fills the space beside the buy box) */
.gallery__desc{margin-top:22px;padding:20px 22px;border:1px solid var(--line);border-radius:var(--r);background:var(--cream)}
.gallery__desc-h{font-size:17px;font-weight:700;color:var(--ink);margin-bottom:8px}
.gallery__desc p{font-size:14.5px;line-height:1.6;color:var(--text)}
.gallery__desc p+p{margin-top:10px}
.gallery__desc b{color:var(--ink)}
@media (min-width:901px){.gallery:has(.gallery__desc:not([hidden])){position:static}}
@media (max-width:900px){.gallery__desc{display:none}}

/* a single video beside a list (where to apply / how to use) */
.vcard--solo{flex:none;width:min(320px,78vw);margin:0 auto;box-shadow:var(--shadow-lg)}
.split--video{grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:56px;margin-top:40px;align-items:center}
.split--video-rev{grid-template-columns:minmax(0,1fr) minmax(0,360px)}
.split--video .steps--stack{margin-top:0}
.steps--stack{grid-template-columns:1fr;gap:12px}
.steps--stack .step{padding:20px 22px}
.zones{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.zones li{display:flex;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:18px 20px;box-shadow:var(--shadow)}
.zones__n{font-family:var(--serif);font-style:italic;font-size:34px;line-height:1;color:var(--pink);min-width:30px;text-align:center}
.zones b{display:block;color:var(--ink);font-size:17px;line-height:1.3}
.zones li span:not(.zones__n){color:var(--muted);font-size:15px}
.zones__note{margin-top:16px;font-size:14.5px;color:var(--muted)}
@media (max-width:900px){
  .split--video,.split--video-rev{grid-template-columns:minmax(0,1fr);gap:28px;margin-top:28px}
  .split--video-rev .split__media{order:-1}
}
