/* POPIT! shop — light theme.
   Loaded after style.css on the shop pages only (products, the three product pages, cart,
   checkout, order-complete). Everything that changes the look of the dark site is scoped to
   body.light, so the home page is untouched.
   Colour roles: white ground and warm cream panels; one strong buy colour (POPIT! red) on every
   button that moves a customer toward paying; green only for "available" and "secure"; gold
   stays an accent. */

body.light {
  /* the dark theme's surface and text tokens, remapped so existing inline styles flip with them */
  --ink2: #FBF7EF; --ink3: #F4EDE0; --creamLt: #FBF7EF;
  --cream: #2B1F15; --creamDim: rgba(43,31,21,.74); --creamFaint: rgba(43,31,21,.56); --inkSoft: rgba(43,31,21,.74);
  --line: rgba(43,31,21,.14); --lineSoft: rgba(43,31,21,.09);
  --goldLt: #9A6410;
  /* shop tokens */
  --buy: #961E26; --buyHover: #7B171E; --buySoft: #FFF4F2;
  --good: #25713F; --goodSoft: #E7F3EA;
  --panel: #FBF7EF; --shadow: 0 1px 2px rgba(43,31,21,.05), 0 10px 28px -14px rgba(43,31,21,.22);
  --r: 14px;
  background: #fff; color: var(--cream);
}
body.light ::selection { background: #F6D58A; color: #2B1F15; }
body.light a:focus-visible, body.light button:focus-visible, body.light input:focus-visible, body.light select:focus-visible {
  outline: 3px solid rgba(150,30,38,.45); outline-offset: 2px;
}

/* ---------- header and footer ---------- */
body.light #hdr, body.light #hdr:not(.solid), body.light #hdr.solid {
  background: #fff !important; backdrop-filter: none; border-bottom: 1px solid var(--line);
}
body.light #hdr .shell, body.light #hdr.solid .shell { height: 76px !important; }
body.light #hdr #navlogo, body.light #hdr.solid #navlogo { height: 46px !important; }
body.light #burger { border-color: var(--line) !important; }
body.light #mobilenav { background: #fff; }
body.light .nl { color: var(--cream); opacity: .9; }
body.light .nl::after { background: var(--buy); }
body.light nav.shell[aria-label="Breadcrumb"] { padding-top: 100px !important; }
body.light .crumbs { color: var(--creamFaint); }
body.light .crumbs a:hover { color: var(--buy); }
body.light #stickyBar { display: none !important; }
body.light footer { background: var(--ink2); }
body.light footer [style*="rgba(246,238,221"] { border-color: var(--line) !important; }
body.light footer input { color: var(--cream); }

/* ---------- type and buttons ---------- */
body.light .eyebrow { color: var(--goldLt); }
body.light h1 [style*="var(--gold)"], body.light h2 [style*="var(--gold)"] { color: var(--buy) !important; }
body.light .btn { border-radius: 12px; letter-spacing: .06em; }
body.light .btn-gold, body.light .btn-primary { background: var(--buy); color: #fff; border-color: var(--buy); }
body.light .btn-gold:hover, body.light .btn-primary:hover { background: var(--buyHover); transform: translateY(-1px); }
body.light .btn-primary[style*="--maroon"] { color: #fff !important; }
body.light .btn-line, body.light .btn-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(43,31,21,.32); }
body.light .btn-line:hover, body.light .btn-ghost:hover { background: var(--cream); color: #fff; border-color: var(--cream); }
body.light .bag-rm:hover { color: #fff; }
body.light .card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
body.light .saveemail, body.light .savelink { display: none; }

/* ---------- buy box (shop.js renderBuybox) ---------- */
.bx { display: flex; flex-direction: column; gap: 14px; }
.bx-opts { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; }
.bx-opt {
  display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer; min-width: 0;
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--cream);
  font: 600 14px/1.25 var(--body); transition: border-color .2s, background .2s, box-shadow .2s;
}
.bx-opt small { font-size: 13px; font-weight: 500; color: var(--creamDim); font-variant-numeric: tabular-nums; }
.bx-opt:hover:not([disabled]) { border-color: rgba(43,31,21,.4); }
.bx-opt[aria-pressed="true"] { border-color: var(--buy); background: var(--buySoft); box-shadow: 0 0 0 3px rgba(150,30,38,.12); }
.bx-opt[disabled] { opacity: .5; cursor: not-allowed; }
.bx-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.bx-price { font: 800 32px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bx-stock { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--good); }
.bx-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bx-stock.out { color: var(--buy); }
.bx-tag { font-size: 15px; line-height: 1.55; color: var(--creamDim); }
.bx-buy { display: flex; gap: 10px; align-items: stretch; }
.bx-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; flex-shrink: 0; }
.bx-qty button { width: 42px; align-self: stretch; background: transparent; border: 0; font-size: 20px; color: var(--cream); cursor: pointer; }
.bx-qty button:hover { background: var(--ink3); }
.bx-qty input { width: 40px; text-align: center; border: 0; background: transparent; font: 700 16px var(--body); color: var(--cream); -moz-appearance: textfield; appearance: textfield; }
.bx-qty input::-webkit-outer-spin-button, .bx-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bx-add {
  flex: 1; min-height: 52px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--buy); color: #fff; cursor: pointer;
  font: 700 15px var(--body); letter-spacing: .02em; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .2s;
}
.bx-add:hover:not([disabled]) { background: var(--buyHover); transform: translateY(-1px); }
.bx-add.done, .bx-add.done:hover:not([disabled]) { background: var(--good); }
.bx-add[disabled] { background: #CFC6B8; cursor: not-allowed; }
.bx-msg { min-height: 1.3em; font-size: 14px; font-weight: 600; color: var(--good); }
.bx-msg a { color: var(--buy); text-decoration: underline; margin-left: 6px; }
.bx-compact .bx-price { font-size: 26px; }
.bx-fallback { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 20px 22px; }
.bx-fallback p { font-size: 15px; line-height: 1.6; color: var(--creamDim); }
.bx-fallback .btn { margin-top: 14px; }

/* bar at the foot of the page once there is something in the bag */
.bagbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px -14px rgba(43,31,21,.28); transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.bagbar.show { transform: none; }
.bagbar-in { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bagbar-txt { font-size: 15px; color: var(--creamDim); min-width: 0; }
.bagbar-txt b { color: var(--cream); }
.bagbar-go { padding: 14px 24px !important; flex-shrink: 0; }
body.has-bagbar { padding-bottom: 76px; }

/* ---------- products page ---------- */
.shop-top { padding-top: 104px; padding-bottom: clamp(20px, 3vw, 36px); }
.shop-top h1 { font: 800 clamp(2.1rem, 5.2vw, 3.6rem)/1.02 var(--display); letter-spacing: -.03em; margin-top: 12px; max-width: 18ch; }
.shop-top .lede { margin-top: 16px; max-width: 56ch; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.7; color: var(--creamDim); }
.trust { list-style: none; display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 26px; }
@media (min-width: 560px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--panel); font-size: 14px; line-height: 1.35; }
.trust svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--buy); }
.trust b { display: block; font-weight: 700; }
.trust span { color: var(--creamDim); font-size: 13px; }

.pgrid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: 1fr; padding-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 680px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; min-width: 0; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(43,31,21,.06), 0 18px 36px -16px rgba(43,31,21,.3); }
.pcard-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--ink3); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transition: transform .8s cubic-bezier(.16,.8,.24,1); }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-badge { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--cream); border-radius: 999px; padding: 6px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(43,31,21,.18); }
.pcard-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2vw, 24px); flex: 1; }
.pcard-body h2 { font: 800 clamp(1.4rem, 2vw, 1.7rem)/1.1 var(--display); letter-spacing: -.02em; }
.pcard-body h2 a:hover { color: var(--buy); }
.pcard-desc { font-size: 15px; line-height: 1.6; color: var(--creamDim); }
.pcard .bx { margin-top: auto; padding-top: 6px; }
.pcard-more { font-size: 13.5px; font-weight: 600; color: var(--creamDim); text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.pcard-more:hover { color: var(--buy); }

.steps3 { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 760px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.steps3 b { display: block; font: 800 17px/1.25 var(--display); }
.steps3 p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--creamDim); }
.steps3 i { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--buy); color: #fff; font: 700 14px var(--body); font-style: normal; margin-bottom: 12px; }
.helpband { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: clamp(22px, 3vw, 30px); border-radius: 20px; background: #FFF6E3; }
.helpband h3 { font: 800 clamp(1.2rem, 2vw, 1.5rem)/1.2 var(--display); letter-spacing: -.01em; }
.helpband p { margin-top: 6px; font-size: 15px; color: var(--creamDim); max-width: 52ch; }

/* ---------- product page ---------- */
.pdp { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; padding-block: clamp(16px, 3vw, 40px) clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } .pdp-gallery { position: sticky; top: 100px; } }
.pdp-gallery { display: grid; gap: 12px; min-width: 0; }
.pdp-main { border-radius: 22px; overflow: hidden; background: var(--ink3); aspect-ratio: 1; box-shadow: var(--shadow); }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.pdp-thumbs { display: flex; gap: 10px; }
.pdp-thumbs button { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--ink3); }
.pdp-thumbs button[aria-current="true"] { border-color: var(--buy); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { min-width: 0; }
.pdp-info h1 { font: 800 clamp(2.1rem, 4.6vw, 3.3rem)/1 var(--display); letter-spacing: -.03em; margin-top: 10px; }
.pdp-lede { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--creamDim); max-width: 46ch; }
.pdp-buy { margin-top: 24px; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.pdp-note { margin-top: 20px; padding: 16px 18px; border-radius: var(--r); background: var(--panel); }
.pdp-note p:last-child { margin-top: 6px; font: 700 17px/1.45 var(--display); }
.pdp-pills { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.pdp-pills li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; background: #fff; }
.pdp-trust { margin-top: 20px; display: grid; gap: 10px; list-style: none; font-size: 14.5px; }
.pdp-trust li { display: flex; gap: 10px; align-items: flex-start; color: var(--creamDim); line-height: 1.45; }
.pdp-trust svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--good); margin-top: 1px; }
.pdp-trust b { color: var(--cream); }
.pdp-wa { margin-top: 18px; font-size: 14.5px; color: var(--creamDim); }
.pdp-wa a { color: var(--buy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* "try these" cards at the foot of each product page */
body.light .fcard { border-radius: 18px !important; box-shadow: var(--shadow); background: #fff !important; }
body.light .fcard:hover { box-shadow: 0 2px 4px rgba(43,31,21,.06), 0 18px 36px -16px rgba(43,31,21,.3); }

@media (max-width: 480px) {
  .bx-buy { flex-wrap: wrap; }
  .bx-qty { width: 100%; justify-content: space-between; }
  .bx-qty input { flex: 1; }
  .bagbar-txt { font-size: 14px; }
  .bagbar-go { padding: 13px 16px !important; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) { .pcard, .pcard-img img, .bx-add, .bagbar { transition: none; } }

/* ingredient bullets on the product pages */
body.light aside.card li > span[style*="border-radius:999px"] { background: var(--gold) !important; }

/* phones: reassurance in two compact columns, products sooner, and no duplicate Shop now in the header */
@media (max-width: 559px) {
  .trust { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .trust li { padding: 10px 11px; gap: 9px; font-size: 13px; align-items: flex-start; }
  .trust svg { width: 18px; height: 18px; margin-top: 1px; }
  .trust span { display: none; }
  body.light #hdr .btn-gold { display: none; }
  .shop-top { padding-top: 92px; }
}
.pdp-buy .bx-fallback { border: 0; padding: 0; background: none; }
