/* Unified buyer page skin: sourced from store_settings.theme (published only).
   Transactional behavior / invoices / warranty eligibility untouched. */
:root{
  --theme-deep:#4b1f7a;--theme-main:#8b5cf6;--theme-light:#caa7ff;
  --theme-highlight:#f5efff;--theme-accent:#63d7ff;--theme-glow:#9d8cff;
  --buyer-ink:#f9f6ff;--buyer-muted:#c1b5cf;--buyer-base:#080611;
  --buyer-surface:color-mix(in srgb,var(--theme-deep) 20%,#100c1b);
  --buyer-surface2:color-mix(in srgb,var(--theme-main) 10%,#14101f);
  --buyer-stroke:color-mix(in srgb,var(--theme-light) 30%,transparent);
  --buyer-grad:linear-gradient(125deg,var(--theme-main) 2%,var(--theme-light) 56%,var(--theme-accent));
  --buyer-glow:0 18px 55px color-mix(in srgb,var(--theme-glow) 19%,transparent);
  --buyer-radius:24px;--buyer-button-radius:17px;--buyer-button-lift:3px;
}
html[data-button-style="pill"],html[data-button-style="pill-3d"]{--buyer-button-radius:999px}
html[data-button-style="square"]{--buyer-button-radius:7px;--buyer-radius:15px}
html[data-button-style="soft-3d"]{--buyer-button-radius:21px;--buyer-button-lift:4px}
html[data-button-style="candy-pop"]{--buyer-button-radius:25px;--buyer-button-lift:5px}
html[data-button-style="glossy-bubble"]{--buyer-button-radius:999px;--buyer-button-lift:5px}
html[data-button-style="glass-soft"]{--buyer-button-radius:20px;--buyer-button-lift:1px}
html[data-button-style="rounded-lifted"]{--buyer-button-radius:16px;--buyer-button-lift:5px}
html[data-button-style="cute-flat"]{--buyer-button-radius:16px;--buyer-button-lift:0px}
html[data-hero-style="glass"]{--buyer-surface:color-mix(in srgb,var(--theme-main) 11%,#10111b)}
html[data-store-tone="black"]{--buyer-base:#060609}
html[data-store-tone="midnight"]{--buyer-base:#080b20}
html[data-store-tone="warm"]{--buyer-base:#150b18}
html[data-store-tone="cool"]{--buyer-base:#08121b}
body.boy-buyer-page{
  min-height:100svh!important;color:var(--buyer-ink)!important;
  background:radial-gradient(ellipse 80% 34% at 48% 0%,color-mix(in srgb,var(--theme-main) 19%,transparent),transparent 85%),
  radial-gradient(ellipse 60% 55% at 96% 94%,color-mix(in srgb,var(--theme-deep) 22%,transparent),transparent 90%),var(--buyer-base)!important;
  background-attachment:fixed!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif!important;
  -webkit-font-smoothing:antialiased;
}
body.boy-buyer-page::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  background:radial-gradient(circle at 4% 13%,color-mix(in srgb,var(--theme-glow) 10%,transparent),transparent 22%),radial-gradient(circle at 90% 4%,color-mix(in srgb,var(--theme-accent) 8%,transparent),transparent 23%)}
.boy-buyer-page .wrap,.boy-buyer-page .buyerTop,.boy-buyer-page .box{position:relative;z-index:1}
.boy-buyer-page .brand,.boy-buyer-page .buyerBrand{font-size:clamp(17px,3.7vw,22px);font-weight:950;letter-spacing:-.025em;color:var(--buyer-ink)}
.boy-buyer-page .brand span,.boy-buyer-page .buyerBrand span{color:var(--theme-light)}
.boy-buyer-page .top,.boy-buyer-page .buyerTop{padding:6px 2px 12px;align-items:center}
.boy-buyer-page .back,.boy-buyer-page .buyerBack{color:var(--theme-light);font-weight:800;text-decoration:none;border:1px solid var(--buyer-stroke);border-radius:var(--buyer-button-radius);padding:10px 14px;background:var(--buyer-surface);display:inline-flex;align-items:center;justify-content:center;min-height:40px}
.boy-buyer-page .back:hover,.boy-buyer-page .buyerBack:hover{border-color:var(--theme-light)}
.boy-buyer-page .hero,.boy-buyer-page .box{
  background:linear-gradient(153deg,color-mix(in srgb,var(--theme-main) 12%,#151020),color-mix(in srgb,var(--theme-deep) 12%,#0c0a15) 74%)!important;
  border:1px solid var(--buyer-stroke)!important;border-radius:calc(var(--buyer-radius) + 6px)!important;
  box-shadow:inset 0 1px 0 #ffffff12,0 18px 55px #0008,var(--buyer-glow)!important;
  backdrop-filter:blur(18px)
}
.boy-buyer-page .hero:before,.boy-buyer-page .box:before{content:"";height:2px;position:absolute;left:8%;right:8%;top:0;background:linear-gradient(90deg,transparent,var(--theme-light),transparent);opacity:.6;pointer-events:none}
.boy-buyer-page .hero .muted:first-child{font-size:12px;font-weight:900;letter-spacing:.14em;color:var(--theme-light)!important}
.boy-buyer-page h1,.boy-buyer-page h2,.boy-buyer-page h3{color:var(--buyer-ink);letter-spacing:-.035em;line-height:1.15}
.boy-buyer-page .hero h1{font-size:clamp(30px,7vw,46px);line-height:1.12;max-width:740px}
.boy-buyer-page .muted,.boy-buyer-page .label,.boy-buyer-page .invoiceMuted,.boy-buyer-page .note{color:var(--buyer-muted)!important}
.boy-buyer-page input:not([type="hidden"]),.boy-buyer-page select,.boy-buyer-page textarea{
  color:var(--buyer-ink)!important;background:color-mix(in srgb,var(--theme-main) 8%,#0a0811)!important;
  border:1px solid var(--buyer-stroke)!important;border-radius:var(--buyer-button-radius)!important;
  outline:0;min-height:47px;transition:border-color .18s,box-shadow .18s;
}
.boy-buyer-page input:focus-visible,.boy-buyer-page select:focus-visible,.boy-buyer-page textarea:focus-visible{
  border-color:var(--theme-light)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-main) 25%,transparent)!important;
}
.boy-buyer-page input::placeholder,.boy-buyer-page textarea::placeholder{color:color-mix(in srgb,var(--buyer-muted) 65%,transparent)}
.boy-buyer-page .btn,.boy-buyer-page .quickBtn.active,.boy-buyer-page .invoicePrint,
.boy-buyer-page .mini,.boy-buyer-page .deliveryValue button{
  background:var(--buyer-grad)!important;color:#1b1029!important;
  border:1px solid color-mix(in srgb,var(--theme-highlight) 45%,transparent)!important;
  border-radius:var(--buyer-button-radius)!important;box-shadow:inset 0 2px 1px #ffffff80,
  0 var(--buyer-button-lift) 0 color-mix(in srgb,var(--theme-deep) 64%,#070712),
  0 12px 25px color-mix(in srgb,var(--theme-glow) 22%,transparent)!important;
  text-shadow:none!important;transition:transform .18s,box-shadow .18s,filter .18s;
  font-weight:850;text-align:center;
}
.boy-buyer-page .btn:active,.boy-buyer-page .quickBtn:active,.boy-buyer-page .mini:active{transform:translateY(var(--buyer-button-lift))!important;box-shadow:inset 0 1px 2px #ffffff55!important}
.boy-buyer-page button:not(:disabled):hover,.boy-buyer-page .btn:hover{filter:brightness(1.08)}
.boy-buyer-page :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--theme-light);outline-offset:3px}
.boy-buyer-page button:disabled{opacity:.58;cursor:not-allowed;filter:saturate(.4)}
.boy-buyer-page .btn.ghost,.boy-buyer-page .quickBtn,
.boy-buyer-page .invoiceCancel,.boy-buyer-page .invoiceClose,
.boy-buyer-page .warrantyJump{
  background:linear-gradient(145deg,var(--buyer-surface2),var(--buyer-surface))!important;
  color:var(--buyer-ink)!important;border:1px solid var(--buyer-stroke)!important;
  border-radius:var(--buyer-button-radius)!important;box-shadow:inset 0 1px 0 #ffffff0e!important;
}
html[data-button-style="glossy-bubble"] .boy-buyer-page .btn:not(.ghost),html[data-button-style="candy-pop"] .boy-buyer-page .btn:not(.ghost){background:linear-gradient(167deg,var(--theme-highlight),var(--theme-light) 38%,var(--theme-main) 85%)!important}
html[data-button-style="glass-soft"] .boy-buyer-page .btn:not(.ghost){background:linear-gradient(120deg,color-mix(in srgb,var(--theme-main) 58%,#151526),color-mix(in srgb,var(--theme-accent) 60%,#171827))!important;color:#fff!important;backdrop-filter:blur(15px)}
html[data-button-style="cute-flat"] .boy-buyer-page .btn:not(.ghost){box-shadow:none!important;background:var(--theme-main)!important;color:#fff!important}
.boy-buyer-page :is(.card,.order,.meta>div,.deliveryBox,.deliveryUnit,.unit,.detail,.nextBox,.warranty){
  background:var(--buyer-surface)!important;border:1px solid var(--buyer-stroke)!important;border-radius:var(--buyer-radius)!important;
  box-shadow:inset 0 1px 0 #ffffff0a,0 13px 35px #0003;
}
.boy-buyer-page .meta>div,.boy-buyer-page .deliveryUnit,.boy-buyer-page .unit{background:var(--buyer-surface2)!important;border-radius:calc(var(--buyer-radius) - 8px)!important}
.boy-buyer-page .order{margin-top:13px}
.boy-buyer-page .timeline{border-color:var(--theme-main)!important}
.boy-buyer-page .event::before{background:var(--theme-accent)!important;box-shadow:0 0 12px var(--theme-glow)!important}
.boy-buyer-page .quickBtn{min-height:59px;line-height:1.5;padding:11px!important;font-size:13px}
.boy-buyer-page .quickBtn.active{box-shadow:inset 0 2px 1px #ffffff75,0 3px 0 var(--theme-deep),0 0 20px color-mix(in srgb,var(--theme-glow) 18%,transparent)!important}
.boy-buyer-page .pill,.boy-buyer-page .warrantyLatest,.boy-buyer-page .qtyPill,.boy-buyer-page .openedBadge{
  background:color-mix(in srgb,var(--theme-main) 17%,#15101d)!important;color:var(--theme-light)!important;
  border:1px solid var(--buyer-stroke)!important;border-radius:999px!important
}
.boy-buyer-page .pill.ok{color:#99f6c2!important;border-color:#398d68!important;background:#12442d!important}
.boy-buyer-page .pill.warn{color:#ffe6a6!important;border-color:#8e6733!important;background:#483217!important}
.boy-buyer-page .pill.bad{color:#ffc2cd!important;border-color:#a34d66!important;background:#451c31!important}
.boy-buyer-page .deliveryLinkReady,.boy-buyer-page .linkReady,.boy-buyer-page .warrantyJump:hover{color:var(--theme-light)!important}
.boy-buyer-page .focusFlash{animation:boyFocusFlash 2.2s ease}
@keyframes boyFocusFlash{40%{box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-light) 40%,transparent),0 0 35px var(--theme-glow)!important}}
.boy-buyer-page dialog:not(#invoiceDialog){background:var(--buyer-surface)!important;color:var(--buyer-ink)!important;
 border:1px solid var(--buyer-stroke)!important;border-radius:var(--buyer-radius)!important;
 box-shadow:0 26px 85px #000a,var(--buyer-glow)!important}
.boy-buyer-page dialog::backdrop{background:#05020cce;backdrop-filter:blur(8px)}
.boy-buyer-page .nextBox p{color:var(--buyer-muted)!important}
.boy-buyer-page .detailRow,.boy-buyer-page .invoiceRow{min-width:0}
.boy-buyer-page .value,.boy-buyer-page .fieldValue code,.boy-buyer-page .deliveryValue code{color:var(--buyer-ink)!important}
.boy-buyer-page .unitTitle,.boy-buyer-page .deliveryHead b,.boy-buyer-page .nextBox strong{color:var(--theme-highlight)!important}
.boy-buyer-page .note{font-size:12px!important;line-height:1.6}
.boy-buyer-page .invoiceBox{background:#fff;color:#111;border-color:#d4d4d4;box-shadow:none;border-radius:15px}
.boy-buyer-page .invoiceShell{background:#f6f5f9;color:#111}
.boy-buyer-page #invoiceDialog :is(h1,h2,h3){color:#14111a}
.boy-buyer-page #invoiceDialog .invoiceMuted{color:#666!important}
.boy-buyer-page #invoiceDialog .invoicePrint{color:#1b1029!important}
.boy-buyer-page #invoiceDialog .invoiceCancel,.boy-buyer-page #invoiceDialog .invoiceClose{background:#fff!important;color:#222!important;border:1px solid #d3d3d3!important}
.boy-buyer-page #invoiceDialog .invoiceRow b,.boy-buyer-page #invoiceDialog .invoiceBrand{color:#151515!important}
.boy-buyer-page #invoiceDialog .invoiceOk{color:#138047!important}
.boy-buyer-page .buyerTop{width:min(760px,100%);margin:0 auto;display:flex;justify-content:space-between;gap:12px}
.boy-buyer-page .buyerBrand{text-decoration:none}
.boy-buyer-page .box{overflow:hidden}
.boy-buyer-page .box h1{background:linear-gradient(115deg,var(--theme-highlight),var(--theme-light) 45%,var(--theme-accent));-webkit-background-clip:text;background-clip:text;color:transparent}
.boy-buyer-page .box>p{color:var(--buyer-muted)!important}
.boy-buyer-page .box .btn{min-height:50px}
.boy-buyer-page .mini{padding:8px 11px!important}
.boy-buyer-page .nextBox,.boy-buyer-page .deliveryBox{padding:17px!important}
.boy-buyer-page .field,.boy-buyer-page .deliveryField{border-color:var(--buyer-stroke)!important}
.boy-buyer-page .deliveryWait{color:var(--buyer-muted)!important}
.boy-buyer-page .buyerStatusMark{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 16px;
 border-radius:24px;background:linear-gradient(140deg,var(--theme-light),var(--theme-main));
 border:1px solid var(--theme-highlight);box-shadow:0 5px 0 var(--theme-deep),var(--buyer-glow);
 color:var(--theme-deep);font-size:33px;font-weight:900}
#boyThemePreviewNav{position:fixed;z-index:100;bottom:env(safe-area-inset-bottom,8px);left:50%;transform:translateX(-50%);width:min(98vw,670px);padding:10px 12px;
 background:color-mix(in srgb,var(--theme-deep) 80%,#0a0912);color:var(--buyer-ink);
 border:1px solid var(--buyer-stroke);border-radius:18px 18px 0 0;box-shadow:0 -10px 40px #0008;
 display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;font-size:11px;font-weight:800}
#boyThemePreviewNav span{width:100%;text-align:center;color:var(--theme-highlight);font-size:10px;letter-spacing:.07em}
#boyThemePreviewNav a{color:var(--buyer-ink);text-decoration:none;padding:6px 9px;background:color-mix(in srgb,var(--theme-main) 24%,transparent);border:1px solid var(--buyer-stroke);border-radius:999px}
html:has(#boyThemePreviewNav) body{padding-bottom:125px!important}
@media(max-width:720px){
 body.boy-buyer-page{padding:14px!important}
 .boy-buyer-page .hero{padding:22px 17px!important}
 .boy-buyer-page .quickBtn{min-height:55px}
 .boy-buyer-page .buyerTop{margin-bottom:12px}
 .boy-buyer-page .box{margin:12px auto!important;padding:25px 17px!important}
 .boy-buyer-page .detailRow{display:grid;gap:3px}
 .boy-buyer-page .detailRow .value{text-align:left}
 .boy-buyer-page .invoiceShell{padding:6px}
}
@media(prefers-reduced-motion:reduce){.boy-buyer-page :is(.btn,.quickBtn,.input,.select,.textarea){transition:none!important}.boy-buyer-page .focusFlash{animation:none!important}}
@media print{
 body.boy-buyer-page{background:#fff!important;color:#111!important}
 body.boy-buyer-page::before{display:none!important}
 #boyThemePreviewNav,.buyerTop{display:none!important}
 .boy-buyer-page #invoiceDialog,.boy-buyer-page #invoiceDialog *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* Homepage: honor button-style controls across catalog, promos, CTA and customer center. */
html[data-button-style="soft-3d"] body:not(.boy-buyer-page),
html[data-button-style="candy-pop"] body:not(.boy-buyer-page),
html[data-button-style="pill-3d"] body:not(.boy-buyer-page),
html[data-button-style="glossy-bubble"] body:not(.boy-buyer-page),
html[data-button-style="rounded-lifted"] body:not(.boy-buyer-page){--boy-home-lift:5px}
html[data-button-style="soft-3d"] body:not(.boy-buyer-page) :is(.btn,.view,.popularAction,.orderBtn,.centerAction),
html[data-button-style="candy-pop"] body:not(.boy-buyer-page) :is(.btn,.view,.popularAction,.orderBtn,.centerAction),
html[data-button-style="pill-3d"] body:not(.boy-buyer-page) :is(.btn,.view,.popularAction,.orderBtn,.centerAction),
html[data-button-style="glossy-bubble"] body:not(.boy-buyer-page) :is(.btn,.view,.popularAction,.orderBtn,.centerAction),
html[data-button-style="rounded-lifted"] body:not(.boy-buyer-page) :is(.btn,.view,.popularAction,.orderBtn,.centerAction){
  border:1px solid color-mix(in srgb,var(--theme-highlight) 50%,transparent)!important;
  border-radius:var(--buyer-button-radius)!important;
  background:linear-gradient(152deg,var(--theme-highlight),var(--theme-light) 53%,var(--theme-main))!important;
  color:var(--theme-deep)!important;box-shadow:inset 0 2px 2px #ffffff80,0 5px 0 color-mix(in srgb,var(--theme-deep) 74%,#080713),0 14px 28px color-mix(in srgb,var(--theme-glow) 28%,transparent)!important;
  text-shadow:none!important;transition:transform .18s,box-shadow .18s!important
}
html[data-button-style="pill-3d"] body:not(.boy-buyer-page) :is(.btn,.view,.popularAction,.orderBtn,.centerAction),
html[data-button-style="glossy-bubble"] body:not(.boy-buyer-page) :is(.btn,.view,.popularAction,.orderBtn,.centerAction){border-radius:999px!important}
html[data-button-style="glass-soft"] body:not(.boy-buyer-page) :is(.btn,.view,.popularAction,.orderBtn,.centerAction){
 border-radius:20px!important;backdrop-filter:blur(16px)!important;border:1px solid var(--buyer-stroke)!important;
 background:linear-gradient(130deg,color-mix(in srgb,var(--theme-main) 68%,#10101c),color-mix(in srgb,var(--theme-accent) 50%,#141728))!important;color:#fff!important
}
html[data-button-style="cute-flat"] body:not(.boy-buyer-page) :is(.btn,.view,.popularAction,.orderBtn,.centerAction){
 border-radius:15px!important;background:var(--theme-main)!important;box-shadow:none!important;color:#fff!important
}

/* Peripheral public routes: 404, short-link handoff, offline fallback. */
.boy-buyer-page.utility-ui .box{max-width:560px;width:100%;margin:auto!important;text-align:center;padding:30px 25px!important}
.boy-buyer-page.utility-ui .box h1{font-size:clamp(40px,12vw,70px);color:var(--theme-light)}
.boy-buyer-page.utility-ui .box .title{font-size:25px;font-weight:850;color:var(--theme-highlight)}
.boy-buyer-page.utility-ui .box .msg{color:var(--buyer-muted);line-height:1.55}
.boy-buyer-page.utility-ui .box .mark{font-size:45px;color:var(--theme-light)}
.boy-buyer-page.utility-ui .box .spin{border-color:var(--buyer-stroke);border-top-color:var(--theme-light)}
.boy-buyer-page.utility-ui a:not(.btn){color:var(--theme-light)}
.boy-buyer-page.utility-ui .btn{padding:13px 20px;min-height:45px}
