/* Blue Skies Peptides — shared styles
   Built on the shop template: base layout first, the "Blue sky theme" block at the end sets the look.
   Shop page: body class="theme-sky". Dashboard and policy pages use the light base. */
:root {
  --navy: #0f2238;
  --ink: #1b2b3c;
  --muted: #56687a;
  --teal: #186f78;
  --teal-dark: #11555c;
  --sea: #2f9c8f;
  --mist: #eef5f5;
  --paper: #ffffff;
  --line: #d4e1e2;
  --sand: #f5f0e6;
  --good: #23784a;
  --warn: #a35a0c;
  --bad: #b22a24;
  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--mist); color: var(--ink); }
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font: 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-display); color: var(--navy); margin: 0; line-height: 1.15; text-wrap: balance; font-weight: 600; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--teal); }

/* header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 64px; height: auto; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--f-display); font-weight: 700; color: var(--navy); font-size: 20px; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { font-family: var(--f-display); color: var(--teal); font-size: 12px; letter-spacing: .42em; margin-top: 5px; }
@media (max-width: 420px) { .brand img { width: 48px; } .brand-name { font-size: 16px; } .brand-sub { font-size: 10px; letter-spacing: .32em; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); border-radius: 8px; padding: 10px 16px; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn:hover { border-color: var(--teal); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.small { padding: 6px 11px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.cart-btn { gap: 8px; }
.cart-btn .count { background: var(--sea); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; font-family: var(--f-mono); }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; padding: 0; font: 600 16px var(--f-mono); color: var(--navy); }
.icon-btn:hover { border-color: var(--teal); }

/* top bar + nav */
.topbar { background: var(--navy); color: #d6e6ec; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 7px 16px; }
.topbar span { color: var(--sea); margin-inline: 6px; }
.head-row { flex-wrap: nowrap; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--navy); text-decoration: none; font-weight: 800; font-size: 15px; padding-block: 6px; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--sea); }
.head-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn.plain { border-color: transparent; background: transparent; width: 38px; height: 38px; }
.icon-btn.plain:hover { background: var(--mist); }
.menu-btn { display: none !important; }
@media (max-width: 880px) {
  .menu-btn { display: grid !important; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 6px 20px 12px; box-shadow: 0 10px 20px rgba(15,34,56,.08); }
  .main-nav.open { display: flex; }
  .main-nav a { padding-block: 10px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
}
@media (max-width: 480px) { .cart-btn #cartTotal { display: none; } }

/* hero */
.hero { position: relative; background: linear-gradient(120deg, var(--navy) 0%, #143a55 45%, var(--teal) 100%); color: #fff; overflow: hidden; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: 56px 88px; }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 54px); margin-block: 10px 16px; }
.hero p { margin: 0 0 26px; color: #d4e6ea; font-size: 18px; max-width: 46ch; }
.eyebrow.light { color: #8fdccf; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.sand { background: #f3e9d2; border-color: #f3e9d2; color: var(--navy); padding: 13px 26px; font-size: 16px; }
.btn.sand:hover { background: #fff; }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; padding: 13px 22px; font-size: 16px; }
.btn.outline-light:hover { border-color: #fff; }
.hero-art { justify-self: center; }
.hero-art img { width: min(400px, 100%); aspect-ratio: 1; border-radius: 50%; border: 8px solid rgba(255,255,255,.92); box-shadow: 0 24px 60px rgba(4, 16, 30, .45); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 50px; color: var(--paper); }
@media (max-width: 760px) {
  .hero-row { grid-template-columns: 1fr; padding-block: 36px 72px; gap: 28px; }
  .hero-art { order: -1; } .hero-art img { width: 220px; border-width: 6px; }
}

/* highlights */
.highlights { background: var(--paper); border-bottom: 1px solid var(--line); }
.highlight-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 28px 34px; }
.hl { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.hl-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: #e3f1f1; color: var(--teal); display: grid; place-items: center; }
.hl strong { color: var(--navy); font-size: 16px; }
.hl span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .highlight-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .highlight-row { grid-template-columns: 1fr; gap: 18px; } }

/* sections */
.section { padding-block: 56px; background: var(--paper); }
.section.alt { background: var(--mist); }
.section h2 { font-size: clamp(26px, 3.4vw, 34px); }
.section-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.narrow { max-width: 820px; }
.about-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.about-row img { width: 100%; max-width: 440px; justify-self: center; }
.about-text p { color: var(--ink); margin: 14px 0 0; max-width: 62ch; }
@media (max-width: 760px) { .about-row { grid-template-columns: 1fr; } .about-row img { max-width: 300px; } }
.faq { margin-top: 22px; display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 800; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 20px var(--f-mono); color: var(--teal); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); white-space: pre-line; }
.contact-card { text-align: left; }
.contact-card .email { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.contact-card .email a { font: 700 20px var(--f-body); color: var(--teal); overflow-wrap: anywhere; }

/* age gate */
.age-gate { position: fixed; inset: 0; z-index: 80; background: rgba(15, 34, 56, .82); display: grid; place-items: center; padding: 20px; }
.age-card { background: var(--paper); border-radius: 14px; max-width: 440px; width: 100%; padding: 26px 24px; text-align: center; display: grid; gap: 12px; justify-items: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.age-card img { width: 220px; }
.age-card h2 { font-size: 24px; }
.age-card p { margin: 0; color: var(--muted); }
.age-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.age-no { color: var(--bad) !important; font-weight: 700; }

/* catalog */
.catalog { padding-block: 32px 48px; }
.catalog-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.catalog-head h2 { font-size: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input[type=search] { width: 220px; max-width: 100%; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 700; color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--teal); color: var(--teal); background: #e3f1f1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; }
.card-media { aspect-ratio: 4 / 3; max-width: 100%; background: linear-gradient(160deg, #e6f2f1, #d3e8e8); display: grid; place-items: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.vial { width: 54px; height: 104px; border-radius: 8px 8px 14px 14px; background: linear-gradient(180deg, #fff 0 24%, #f8fbfb 24% 100%); border: 2px solid #b9d4d5; position: relative; box-shadow: inset 0 -30px 0 #e8f3f2; }
.vial::before { content: ""; position: absolute; left: 6px; right: 6px; top: -14px; height: 14px; border-radius: 4px 4px 0 0; background: var(--teal); }
.vial span { position: absolute; left: 4px; right: 4px; top: 40%; text-align: center; font: 600 10px var(--f-mono); color: var(--navy); }
.card-body { padding: 14px 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card .cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--teal); }
.card h3 { font-family: var(--f-body); font-weight: 800; font-size: 18px; color: var(--navy); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 13px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-family: var(--f-mono); color: var(--ink); overflow-wrap: anywhere; }
.desc { margin: 0; font-size: 14px; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 16px; flex-wrap: wrap; }
.price { font: 600 19px var(--f-mono); color: var(--navy); }
.avail { font-size: 13px; font-weight: 700; }
.avail.ok { color: var(--good); } .avail.low { color: var(--warn); } .avail.out { color: var(--bad); }
.coa { font-size: 13px; font-weight: 700; }
.example-tag { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--muted); border: 1px dashed var(--line); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; }
.blank { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r); padding: 40px 20px; text-align: center; color: var(--muted); }
.blank h3 { margin-bottom: 6px; }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(15, 34, 56, .45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--paper); z-index: 41; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(15,34,56,.18); padding-top: env(safe-area-inset-top, 0px); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; display: grid; gap: 18px; align-content: start; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.line .nm { font-weight: 700; color: var(--navy); min-width: 0; overflow-wrap: anywhere; }
.line .sub { font-size: 13px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty .n { min-width: 24px; text-align: center; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--navy); }
.total .mono { font-size: 22px; }

/* forms */
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
legend { font-family: var(--f-display); font-weight: 600; color: var(--navy); font-size: 18px; margin-bottom: 4px; padding: 0; }
.field { display: grid; gap: 5px; font-size: 14px; font-weight: 700; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=url], input[type=email], input[type=tel], input[type=search], input[type=number], input[type=password], input[type=date], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 10px 12px; font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px #d7ecec; }
textarea { resize: vertical; min-height: 72px; }
.pay-options { display: grid; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-weight: 700; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--teal); background: #eef7f7; }
.pay-box { background: var(--mist); border-radius: 8px; padding: 14px; display: grid; gap: 8px; font-size: 15px; }
.pay-box .handle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-box .handle code { font: 700 17px var(--f-mono); color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; user-select: all; overflow-wrap: anywhere; }
.drop { border: 2px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; display: grid; gap: 6px; justify-items: center; cursor: pointer; background: var(--paper); }
.drop:hover, .drop.over { border-color: var(--teal); }
.drop img { max-height: 180px; width: auto; border-radius: 6px; border: 1px solid var(--line); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.form-error { background: #fbeceb; color: var(--bad); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.done { text-align: center; display: grid; gap: 10px; justify-items: center; padding-top: 12px; }
.done .num { font: 700 26px var(--f-mono); color: var(--navy); background: var(--mist); border-radius: 8px; padding: 6px 14px; }

/* footer */
.site-foot { background: var(--navy); color: #c9d6e0; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 28px; padding-block: 40px 28px; }
.foot-brand strong { color: #fff; font-family: var(--f-display); letter-spacing: .05em; font-size: 17px; }
.site-foot h4 { color: #fff; margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-foot a { color: #9fd8cf; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .ruo { max-width: 60ch; margin: 10px 0 0; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); padding-block: 16px calc(16px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: #92a6b6; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 15px; font-weight: 700; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(15,34,56,.25); }
.notice { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 15px; }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color .15s, transform .15s; }
  .card:hover { border-color: #a9cfd0; transform: translateY(-2px); }
  .drawer { animation: slide .22s ease-out; }
  @keyframes slide { from { transform: translateX(30px); opacity: .6; } }
}

/* ===================== Front page "pop" layer =====================
   Sunrise gold from the logo as the accent, moving waves, category colors. */
:root { --gold: #f2b544; --gold-dark: #d99a22; --coral: #ef7f5a; }
.btn.gold { background: linear-gradient(180deg, #ffd27a, var(--gold)); border-color: var(--gold-dark); color: #1d1606; padding: 13px 28px; font-size: 16px; font-weight: 800; box-shadow: 0 6px 18px rgba(242, 181, 68, .35); }
.btn.gold:hover { background: linear-gradient(180deg, #ffdc92, #f5be55); box-shadow: 0 8px 24px rgba(242, 181, 68, .5); }

.hero { background: radial-gradient(120% 90% at 78% 30%, #2a8a8f 0%, #17506b 38%, var(--navy) 78%); }
.hero-glow { position: absolute; width: 640px; height: 640px; right: -80px; top: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 122, .45) 0%, rgba(255, 168, 90, .18) 35%, transparent 65%); pointer-events: none; }
.hero-row { position: relative; padding-block: 64px 120px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; }
.hl-word { background: linear-gradient(90deg, #ffd27a, #7fe0cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 19px; color: #e1eef1; }
.hero-stats { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats li { display: grid; gap: 2px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 12px 18px; min-width: 132px; backdrop-filter: blur(6px); }
.hero-stats strong { font: 700 26px var(--f-display); color: var(--gold); line-height: 1.1; display: flex; align-items: center; min-height: 29px; }
.hero-stats span { font-size: 13px; color: #c6dbe2; font-weight: 700; }
.hero-art { position: relative; }
.sun-ring { position: absolute; inset: -18px; border-radius: 50%; background: conic-gradient(from 200deg, rgba(255, 210, 122, .0), rgba(255, 210, 122, .8), rgba(127, 224, 207, .7), rgba(255, 210, 122, .0)); filter: blur(2px); }
.hero-art img { position: relative; width: min(430px, 100%); border-width: 6px; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; overflow: hidden; pointer-events: none; }
.hero-waves .wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.hero-waves .w1 { fill: rgba(127, 224, 207, .25); }
.hero-waves .w2 { fill: rgba(255, 255, 255, .35); height: 75%; }
.hero-waves .w3 { fill: var(--paper); height: 55%; }
.hero-wave { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-waves .w1 { animation: drift 18s linear infinite; }
  .hero-waves .w2 { animation: drift 12s linear infinite reverse; }
  .hero-waves .w3 { animation: drift 24s linear infinite; }
  @keyframes drift { to { transform: translateX(-50%); } }
  .hero-art img { animation: bob 7s ease-in-out infinite; }
  .sun-ring { animation: spin 30s linear infinite; }
  @keyframes bob { 50% { transform: translateY(-10px); } }
  @keyframes spin { to { transform: rotate(360deg); } }
  .hero-copy > * { animation: rise .7s ease-out both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; } .hero-copy > *:nth-child(5) { animation-delay: .32s; }
  @keyframes rise { from { transform: translateY(14px); } }
}
@media (max-width: 760px) {
  .hero-row { padding-block: 32px 104px; }
  .hero-art img { width: 230px; }
  .hero-stats li { min-width: 0; flex: 1 1 30%; padding: 10px 12px; }
  .hero-stats strong { font-size: 22px; }
}

/* highlights: colored icon tiles */
.highlights { position: relative; z-index: 1; }
.hl-icon { background: linear-gradient(135deg, var(--teal), var(--sea)); color: #fff; width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 6px 16px rgba(24, 111, 120, .28); }
.hl { grid-template-columns: 48px minmax(0, 1fr); }

/* category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-tile { --c: var(--teal); text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, #fff), #fff 70%); display: grid; gap: 10px; color: var(--navy); position: relative; overflow: hidden; }
.cat-tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, transparent); }
.cat-tile .ci { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 40%, transparent); }
.cat-tile strong { font-size: 17px; font-weight: 800; }
.cat-tile span { font-size: 13px; color: var(--muted); font-weight: 700; }
.cat-tile:hover { border-color: var(--c); }
@media (prefers-reduced-motion: no-preference) { .cat-tile { transition: transform .15s, box-shadow .15s; } .cat-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 34, 56, .12); } }

/* product cards with category color */
.card { --c: var(--teal); position: relative; }
.card-media { background: radial-gradient(circle at 50% 70%, #fff 0%, transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 10%, #fff)); }
.vial { border-color: color-mix(in srgb, var(--c) 45%, #b9d4d5); box-shadow: inset 0 -34px 0 color-mix(in srgb, var(--c) 18%, #fff), 0 10px 20px rgba(15, 34, 56, .12); }
.vial::before { background: var(--c); }
.ribbon { position: absolute; top: 12px; left: 12px; z-index: 1; background: linear-gradient(180deg, #ffd27a, var(--gold)); color: #1d1606; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.card .cat { color: color-mix(in srgb, var(--c) 75%, var(--navy)); }
.card:hover { box-shadow: 0 14px 30px rgba(15, 34, 56, .12); }

/* section headings get a small gold rule */
.section h2::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 2px; background: var(--gold); margin-top: 10px; }
.age-card h2::after, .drawer h2::after, .cta-band h2::after { display: none; }

/* contact band */
.cta-band { background: linear-gradient(110deg, var(--teal) 0%, #13405a 60%, var(--navy) 100%); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding-block: 40px; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.cta-band p { margin: 6px 0 0; color: #d4e6ea; }


/* Drawn product vials */
.card-media .vial-art { height: 86%; width: auto; max-width: 70%; filter: drop-shadow(0 10px 14px rgba(15, 34, 56, .18)); }
@media (prefers-reduced-motion: no-preference) { .card-media .vial-art { transition: transform .25s; } .card:hover .vial-art { transform: translateY(-4px) rotate(-2deg); } }

.hero-row { z-index: 2; }
.card-media .vial-art { height: 92%; max-width: 86%; }

/* ---------- Phone layout fixes: header name and shop search ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-text { min-width: 0; }
@media (max-width: 560px) {
  .site-head .wrap { gap: 8px; padding-inline: 12px; }
  .brand { gap: 8px; flex: 1 1 auto; min-width: 0; }
  .brand img { width: 44px; }
  .brand-name { font-size: clamp(13px, 4.2vw, 18px); letter-spacing: 0; }
  .brand-sub { font-size: 9px; letter-spacing: .34em; margin-top: 4px; }
  .head-tools { flex: none; gap: 4px; }
  #searchBtn { display: none; }
  .cart-btn { padding: 8px 10px; }
  .menu-btn { width: 38px; height: 38px; }
  /* shop: full-width search, categories in one swipeable row */
  .section-head { display: block; }
  .section-head > div:first-child { margin-bottom: 16px; }
  .filters { display: grid; gap: 10px; width: 100%; }
  .filters input[type=search] { width: 100%; max-width: none; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: -12px; padding: 2px 12px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
@media (max-width: 560px) { .topbar { font-size: 11.5px; line-height: 1.5; padding: 6px 10px; } }
.sum-line { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.hero p.hook { font-size: clamp(18px, 2vw, 21px); font-weight: 700; color: #f2f7f8; max-width: 40ch; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.code-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #e7f4ee; border: 1px solid #b9dcc9; border-radius: 8px; padding: 8px 12px; font-size: 15px; color: var(--good); }
.code-err { margin: 0; color: var(--bad); font-size: 14px; font-weight: 700; }
.sum-line.disc { color: var(--good); font-weight: 700; }
.kit-promo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(100deg, #0f2238, #186f78); color: #e9f4f4; border-radius: var(--r); padding: 14px 18px; margin-bottom: 26px; font-size: 16px; }
.kit-promo strong { color: #ffd27a; }
.kit-badge { background: linear-gradient(180deg, #ffd27a, #f2b544); color: #1d1606; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }
.kit-note { margin: 0; font-size: 14px; background: #fff6e0; border: 1px solid #f1d79a; border-radius: 8px; padding: 8px 10px; color: #6b4a0e; }
.kit-note.on { background: #e7f4ee; border-color: #b9dcc9; color: var(--good); }

/* ---------- Customer accounts ---------- */
.acct-btn { gap: 6px; padding: 8px 12px; background: transparent; border-color: transparent; }
.acct-btn:hover { background: var(--mist); border-color: var(--line); }
.acct-btn #acctLabel { max-width: 10ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkish { background: none; border: 0; padding: 0; color: var(--teal); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: inherit; }
.acct-hint { margin: 0; background: var(--mist); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.acct-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.acct-divider::before, .acct-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.my-order { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; justify-items: start; }
.my-order .mo-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; }
.my-order .sub { font-size: 14px; color: var(--muted); }
.mo-pill { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px; color: var(--muted); white-space: nowrap; }
.mo-pill.pending { color: var(--warn); } .mo-pill.paid { color: var(--teal); } .mo-pill.shipped { color: var(--good); }
select { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 10px 12px; font-size: 16px; }
@media (max-width: 560px) { .acct-btn { padding: 8px; } .acct-btn #acctLabel { display: none; } }

/* ---------- money & sellers (owner dashboard) ---------- */
tfoot th { border-top: 2px solid var(--line); font-weight: 800; }
td.neg, .mono.neg { color: #b42318; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; }
.seller-pick { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.seller-pick select { padding: 4px 8px; font-size: 14px; max-width: 180px; }
select { font: inherit; }
.settings.full { max-width: none; }
@media (max-width: 560px) { .tabs .tab { padding: 7px 10px; } .tabs { gap: 0; } }

/* ---------- local sale form ---------- */
.sale-lines { display: grid; gap: 10px; }
.sale-line { display: grid; grid-template-columns: minmax(0, 3fr) minmax(70px, 1fr) minmax(100px, 1.3fr) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); }
.sale-line-end { display: flex; gap: 8px; align-items: center; min-height: 44px; justify-content: flex-end; min-width: 90px; }
.sale-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--line); padding-top: 12px; font-size: 18px; }
.sale-total strong { font-size: 24px; color: var(--navy); }
@media (max-width: 560px) {
  .sale-line { grid-template-columns: 1fr 1fr; }
  .sale-line > label:first-child { grid-column: 1 / -1; }
  .sale-line-end { grid-column: 1 / -1; justify-content: space-between; min-height: 0; }
}
.viewonly { border-color: var(--teal); }
.rate-edit { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 6px; align-items: center; justify-content: flex-start; min-width: 300px; }
.rate-edit input { width: 70px; padding: 6px 8px; }
.perm-list { display: grid; gap: 4px; }
.perm-list .check { font-size: 14px; gap: 8px; }

/* ---------- policy pages ---------- */
.policy-page { background: var(--paper, #fff); }
.policy { max-width: 820px; padding-block: 28px 56px; }
.policy-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; font-weight: 700; font-size: 14px; }
.policy-nav a { color: var(--teal); text-decoration: none; }
.policy-nav a:hover { text-decoration: underline; }
.policy h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 4px; }
.policy h2 { font-size: 20px; margin: 28px 0 8px; }
.policy p, .policy li { font-size: 16px; line-height: 1.65; }
.policy ul { padding-left: 22px; }
.policy-page .site-foot .foot-base { border-top: 0; }
.age-terms { font-size: 13px; margin-top: -4px; } .age-terms a { color: inherit; }
.age-agree { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 14px; line-height: 1.5; background: var(--sand, #f6f1e7); border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; }
.age-agree input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.age-agree a { color: var(--teal); }
.age-card p strong { color: var(--navy); }
#ageYes:disabled { opacity: .45; cursor: not-allowed; }
.age-checks { display: grid; gap: 8px; width: 100%; }

/* ===== Wavy section edges =====
   Each section gets a wave at its top in the previous section's color,
   soft gradient backgrounds, and content that rises in on scroll. */
:root { --sand2: #f6efdf; --deep: #0f3d4a; }
main > .section, main > .cta-band { position: relative; }
main > .section { padding-top: 96px; }
main > .section::before, main > .cta-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 54px; pointer-events: none;
  background: var(--prev, var(--paper));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 54' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V26C1260 52 1080 52 900 30S540 4 360 24 120 50 0 30Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 54' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V26C1260 52 1080 52 900 30S540 4 360 24 120 50 0 30Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
}
#categories { --prev: var(--paper); background: linear-gradient(180deg, var(--sand2), #fbf7ee); }
#featuredSection { --prev: #fbf7ee; background: radial-gradient(110% 120% at 85% 0%, #1f7f80 0%, #135463 40%, var(--deep) 80%); color: #e6f3f2; }
#featuredSection h2 { color: #fff; }
#featuredSection .eyebrow { color: #8fdccf; }
#featuredSection .btn.ghost { color: #fff; border-color: rgba(255,255,255,.45); }
#featuredSection .btn.ghost:hover { background: rgba(255,255,255,.12); }
#featuredSection .card { border-color: transparent; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
#shop { --prev: var(--deep); background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%); }
#about { --prev: var(--mist); background: linear-gradient(180deg, var(--sand2), #fbf7ee); }
#faq { --prev: #fbf7ee; background: linear-gradient(180deg, #e3f3f1, var(--mist)); }
#contact { --prev: var(--mist); background: var(--sand2); }
main > .cta-band { --prev: var(--sand2); padding-top: 40px; }
/* a soft sun glow behind the about logo */
#about .about-row img { border-radius: 18px; box-shadow: 0 18px 50px rgba(24,111,120,.18); }

/* rise in on scroll (only when JS is running, so nothing hides if it fails) */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js-reveal .reveal.in { opacity: 1; transform: none; }
  #featuredSection .card, #shop .card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
  #featuredSection .card:hover, #shop .card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,34,56,.18); }
}
@media (max-width: 600px) { main > .section { padding-top: 76px; } main > .section::before, main > .cta-band::before { height: 34px; } }
#faq[hidden] + #contact { --prev: #fbf7ee; }

/* ===================== Blue sky theme =====================
   Colors taken from the Blue Skies logo: deep navy lettering, bright "Peptides" blue,
   and the sky behind the jet. Every page picks up the palette; the shop page
   (body.theme-sky) also gets the sky hero and the jet holding still while clouds stream past. */
:root {
  --navy: #022775;        /* logo lettering */
  --ink: #142445;
  --muted: #546485;
  --teal: #0070d6;        /* main action color: logo "PEPTIDES" blue (variable name kept from the template) */
  --teal-dark: #005bb0;
  --sea: #3aa0ec;         /* lighter sky blue */
  --mist: #eef5fd;
  --paper: #ffffff;
  --line: #d3e2f4;
  --sand: #f3f8fe;
  --sand2: #f5f9ff;
  --deep: #022775;
  --gold: #0070d6; --gold-dark: #005bb0;
}
.eyebrow { color: var(--teal); }
.btn.primary { box-shadow: 0 4px 12px rgba(0, 112, 214, .22); }
.hl-icon { background: linear-gradient(135deg, #0070d6, #3aa0ec); box-shadow: 0 6px 16px rgba(0, 112, 214, .25); }
.chip[aria-pressed="true"] { background: #e3effd; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px #d6e7fb; }
.pay-opt:has(input:checked) { background: #eef5fd; }
.tab .count { background: #e3effd; }
.topbar { background: var(--navy); color: #e3ecfb; }
.topbar span { color: #8cc8f4; }
.site-foot { background: #021b52; color: #c7d4ee; }
.site-foot a { color: #8cc8f4; }
.foot-brand strong { font-family: var(--f-display); letter-spacing: .08em; }
.section h2::after { background: linear-gradient(90deg, #0070d6, #8cc8f4); }

/* "Shop now": white button with navy text, like the clouds in the logo */
.btn.sky { background: #fff; border-color: #fff; color: var(--navy); padding: 13px 28px; font-size: 16px; font-weight: 800; box-shadow: 0 8px 22px rgba(2, 39, 117, .28); }
.btn.sky:hover { background: #f1f7ff; box-shadow: 0 10px 28px rgba(2, 39, 117, .36); }
.cta-band .btn.sky { box-shadow: none; }

/* header: the logo itself is the brand mark */
.brand img { width: auto; height: 78px; border-radius: 8px; }
@media (max-width: 880px) { .brand img { height: 64px; } }
@media (max-width: 560px) { .brand img { width: auto; height: 54px; } }

/* ---------- hero: open sky, drifting clouds, a jet drawing its contrail ---------- */
.hero { background: linear-gradient(100deg, #022775 0%, #0a4fb4 30%, #1f82df 58%, #6db8f0 82%, #b4dbfc 100%); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.35)); pointer-events: none; }
.hero-row { position: relative; z-index: 2; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-block: 120px 96px; min-height: 0; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; text-shadow: 0 2px 18px rgba(2, 20, 60, .35); }
.hl-word { background: linear-gradient(90deg, #ffffff, #b4dbfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p, .hero p.hook { color: #eaf3ff; font-weight: 700; font-size: clamp(17px, 1.9vw, 20px); max-width: 44ch; text-shadow: 0 1px 10px rgba(2, 20, 60, .3); }
.eyebrow.light { color: #b4dbfc; }
.hero-stats li { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
.hero-stats strong { color: #fff; }
.hero-stats span { color: #dbeafc; }

@media (max-width: 760px) {
  .hero { background: linear-gradient(180deg, #1f82df 0%, #0a4fb4 45%, #022775 100%); }
  .hero-row { grid-template-columns: 1fr; padding-block: 76px 64px; gap: 26px; }
  .hero-stats li { min-width: 0; flex: 1 1 28%; padding: 10px 12px; }
  .hero-stats strong { font-size: 22px; }
}

/* soft clouds made from blurred circles (kept faint so they read as haze, not cartoons) */
.clouds { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cl { position: absolute; display: block; width: 340px; height: 110px; border-radius: 999px; background: #fff; opacity: .5; filter: blur(26px); }
.cl::before, .cl::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.cl::before { width: 170px; height: 150px; left: 50px; top: -60px; }
.cl::after { width: 140px; height: 120px; right: 50px; top: -40px; }
.c1 { right: -60px; bottom: 30px; opacity: .75; }
.c2 { right: 26%; top: 18%; transform: scale(.6); opacity: .35; }
.c3 { left: 8%; bottom: -50px; transform: scale(.8); opacity: .18; }
.c4 { right: 6%; top: -40px; transform: scale(.7); opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .c2 { animation: driftc 60s linear infinite; }
  .c4 { animation: driftc 85s linear infinite reverse; }
  @keyframes driftc { 50% { translate: -60px 6px; } }
}

/* ---------- sections below the hero ---------- */
body.theme-sky { background: #fff; }
body.theme-sky .site-head { background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); }
#categories { --prev: #ffffff; background: linear-gradient(180deg, #ffffff, #f2f8ff); }
#featuredSection { --prev: #f2f8ff; background: radial-gradient(90% 130% at 85% 0%, #6db8f0 0%, #1f82df 28%, #0a4fb4 55%, #022775 90%); color: #eaf3ff; }
#featuredSection .eyebrow { color: #b4dbfc; }
#featuredSection .card { border-color: transparent; box-shadow: 0 14px 34px rgba(1, 18, 60, .35); }
#shop { --prev: #022775; background: linear-gradient(180deg, #ffffff 0%, #eef5fd 100%); }
#about { --prev: #eef5fd; background: linear-gradient(180deg, #f7fbff, #ffffff); }
#faq { --prev: #ffffff; background: linear-gradient(180deg, #e9f3fe, #f4f9ff); }
#contact { --prev: #f4f9ff; background: #ffffff; }
#faq[hidden] + #contact { --prev: #ffffff; }
main > .cta-band { --prev: #ffffff; background: linear-gradient(100deg, #022775 0%, #0a4fb4 45%, #1f82df 80%, #6db8f0 100%); }
.cta-band p { color: #dbeafc; }
#about .about-row img { border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 112, 214, .18); }
.kit-promo { background: linear-gradient(100deg, #022775, #0070d6); color: #eaf3ff; }
.kit-promo strong { color: #fff; }
.kit-badge, .ribbon { background: #fff; color: var(--navy); }
.ribbon { box-shadow: 0 4px 10px rgba(2, 39, 117, .2); }
.kit-note { background: #eef5fd; border-color: #c4dbf6; color: #123a78; }
.cat-tile { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, #fff), #fff 70%); }
#shop .card:hover, #featuredSection .card:hover { box-shadow: 0 16px 36px rgba(2, 39, 117, .2); }

/* product pictures: vial against a soft sky */
.card-media { aspect-ratio: 1 / 1; background: radial-gradient(70% 50% at 50% 92%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%), linear-gradient(180deg, #4ea9ee 0%, #95cdf6 55%, #dcefff 100%); }
.card-media .vial-art { height: 90%; max-width: 84%; filter: drop-shadow(0 12px 14px rgba(2, 39, 117, .28)); }
@media (max-width: 760px) { .c1, .c3 { display: none; } .c2 { top: 8%; right: -10%; } }

/* ---------- right side of the hero: the jet holds still while clouds and its contrail stream past ---------- */
.sky-scene { display: block; position: relative; justify-self: stretch; width: 100%; aspect-ratio: 5 / 3.4; max-width: 600px; margin-left: auto;
  --fx: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  --fy: linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%);
  -webkit-mask: var(--fx), var(--fy); -webkit-mask-composite: source-in;
  mask: var(--fx), var(--fy); mask-composite: intersect; }
.sc-clouds { position: absolute; inset: 0; pointer-events: none; }
.pf { position: absolute; left: 100%; display: block; width: 260px; height: 120px; opacity: .9;
  background:
    radial-gradient(29% 40% at 30% 58%, #fff 0 45%, rgba(255,255,255,0) 100%),
    radial-gradient(26% 42% at 50% 46%, #fff 0 45%, rgba(255,255,255,0) 100%),
    radial-gradient(24% 40% at 70% 58%, #fff 0 45%, rgba(255,255,255,0) 100%),
    radial-gradient(46% 24% at 50% 72%, #fff 0 50%, rgba(255,255,255,0) 100%); }
.back .pf { opacity: .55; }
.front .pf { opacity: .95; }
.p1 { top: 22%; transform: scale(.7); } .p2 { top: 50%; transform: scale(1.1); } .p3 { top: 30%; transform: scale(.5); } .p4 { top: 62%; transform: scale(.8); }
.p5 { top: 56%; transform: scale(1.25); } .p6 { top: 20%; transform: scale(.9); }
.jet-hold { position: absolute; left: 4%; right: 2%; top: 30%; }
.big-jet { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 18px rgba(2, 30, 90, .28)); }
.jet-pitch { transform-origin: 230px 80px; }
/* without motion the clouds rest at fixed spots */
.p1 { left: 62%; } .p2 { left: 8%; } .p3 { left: 34%; } .p4 { left: 70%; } .p5 { left: 40%; } .p6 { left: 76%; }
@media (prefers-reduced-motion: no-preference) {
  .pf { left: 100%; animation: pass linear infinite; }
  .p1 { animation-duration: 9s; animation-delay: -2s; } .p2 { animation-duration: 7s; animation-delay: -5s; }
  .p3 { animation-duration: 11s; animation-delay: -8s; } .p4 { animation-duration: 8s; animation-delay: -1s; }
  .p5 { animation-duration: 4.5s; animation-delay: -3s; } .p6 { animation-duration: 5.5s; animation-delay: -1s; }
  @keyframes pass { to { translate: calc(-100cqw - 340px) 0; } }
  .sc-clouds { container-type: inline-size; }
  .jet-hold { animation: hover 6s ease-in-out infinite; }
  @keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
  .jet-pitch { animation: pitch 6s ease-in-out infinite; }
  @keyframes pitch { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(.6deg); } }
  .trail-flow { animation: flow .5s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: 44; } }
}
@media (max-width: 760px) {
  .sky-scene { order: -1; max-width: 420px; margin-inline: auto; aspect-ratio: 5 / 3; }
}

/* clouds that drift across the full width of the hero (behind the headline, kept faint so text stays readable) */
.sky-drift { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; container-type: inline-size; }
.sky-drift .pf { opacity: .38; }
.d1 { top: 4%; transform: scale(.9); left: 10%; }  .d2 { top: 16%; transform: scale(.6); left: 55%; }
.d3 { top: 40%; transform: scale(.75); left: 30%; opacity: .2 !important; } .d4 { top: 64%; transform: scale(1.1); left: 70%; }
.d5 { top: 82%; transform: scale(1.3); left: 5%; }  .d6 { top: 26%; transform: scale(.5); left: 85%; }
.d7 { top: 74%; transform: scale(.7); left: 45%; opacity: .25 !important; }
@media (prefers-reduced-motion: no-preference) {
  .sky-drift .pf { left: 100%; animation: drift-all linear infinite; }
  @keyframes drift-all { to { translate: calc(-100cqw - 420px) 0; } }
  .sky-drift .d1 { animation-duration: 34s; animation-delay: -6s; }  .sky-drift .d2 { animation-duration: 26s; animation-delay: -18s; }
  .sky-drift .d3 { animation-duration: 40s; animation-delay: -25s; } .sky-drift .d4 { animation-duration: 22s; animation-delay: -4s; }
  .sky-drift .d5 { animation-duration: 30s; animation-delay: -20s; } .sky-drift .d6 { animation-duration: 38s; animation-delay: -33s; }
  .sky-drift .d7 { animation-duration: 28s; animation-delay: -12s; }
}
.hero-row { z-index: 2; }

/* =====================================================================
   NIGHT THEME (body.theme-night): dark navy shop with a dusk hero,
   condensed headings, black-label vials and a compact product grid.
   Checkout drawer, dashboard and policy pages stay light for easy reading.
   ===================================================================== */
body.theme-night { background: #050b18; --f-cond: Oswald, "Arial Narrow", "Segoe UI", sans-serif; }
body.theme-night main, body.theme-night .site-head, body.theme-night .topbar, body.theme-night .site-foot, body.theme-night .cat-band {
  --paper: #0b1730; --mist: #08122a; --line: #1c3563; --ink: #dfe8f7; --muted: #93a6c6; --navy: #ffffff;
  --teal: #1f8bff; --teal-dark: #1673e0; --sea: #4fb3ff;
}
body.theme-night .wrap { max-width: 1400px; }
body.theme-night h1, body.theme-night h2, body.theme-night h3 { font-family: var(--f-cond); }

/* top bar */
body.theme-night .topbar { background: #040914; border-bottom: 1px solid #142a52; padding: 0; text-align: left; }
.tb-row { display: flex; align-items: center; min-height: 40px; }
.tb-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.tb-points li { display: flex; align-items: center; gap: 8px; font: 500 13px var(--f-cond); letter-spacing: .06em; text-transform: uppercase; color: #dbe6f7; padding: 8px 22px; border-right: 1px solid #23406f; }
.tb-points li:first-child { padding-left: 0; } .tb-points li:last-child { border-right: 0; }
.tb-points svg { color: #fff; flex: none; }
@media (max-width: 900px) { .tb-points li:nth-child(2), .tb-points li:nth-child(3) { display: none; } }
@media (max-width: 520px) { .tb-points { justify-content: center; width: 100%; } .tb-points li { padding: 6px 10px; font-size: 11.5px; } .tb-points li:first-child { display: none; } }

/* header */
body.theme-night .site-head { background: rgba(5, 12, 28, .9); backdrop-filter: blur(10px); border-bottom: 1px solid #142a52; }
body.theme-night .site-head .wrap { padding-block: 8px; }
.wordmark { display: grid; justify-items: center; position: relative; text-decoration: none; }
.wm-jet { width: 120px; height: auto; margin-bottom: -16px; margin-left: 40px; position: relative; z-index: 1; }
.wm-text { display: grid; justify-items: center; line-height: .95; }
.wm-name { font: italic 900 30px "Exo 2", "Arial Black", sans-serif; letter-spacing: .01em; background: linear-gradient(180deg, #7fd0ff 0%, #2ea8ff 45%, #0a6cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 6px rgba(30, 140, 255, .35)); white-space: nowrap; }
.wm-sub { font: 500 12px var(--f-cond); letter-spacing: .62em; color: #fff; margin-top: 4px; padding-left: .62em; }
body.theme-night .main-nav { gap: 34px; }
body.theme-night .main-nav a { color: #e6eefc; font: 500 18px var(--f-cond); letter-spacing: .02em; border-bottom: 2px solid transparent; }
body.theme-night .main-nav a.on, body.theme-night .main-nav a:hover { color: #2ea8ff; border-color: #2ea8ff; }
.head-search { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid #2a4a80; border-radius: 999px; padding: 0 16px; height: 44px; width: 260px; color: #cfe0ff; }
.head-search input { background: none; border: 0; padding: 0; color: #fff; font-size: 15px; width: 100%; box-shadow: none !important; }
.head-search input::placeholder { color: #9fb3d4; }
body.theme-night #searchBtn { display: none; }
body.theme-night .icon-btn.plain, body.theme-night .acct-btn { color: #e6eefc; }
body.theme-night .acct-btn:hover, body.theme-night .icon-btn.plain:hover { background: rgba(255,255,255,.06); border-color: transparent; }
body.theme-night .cart-btn { background: transparent; border-color: #2a4a80; color: #fff; }
body.theme-night .cart-btn .count { background: #1f8bff; }
@media (max-width: 1180px) { .head-search { width: 200px; } body.theme-night .main-nav { gap: 22px; } }
@media (max-width: 1020px) { .head-search { display: none; } body.theme-night #searchBtn { display: grid; } }
@media (max-width: 880px) { body.theme-night .main-nav { background: #071027; border-color: #142a52; } body.theme-night .main-nav a { border-bottom: 1px solid #142a52; } }
@media (max-width: 560px) { .wm-jet { width: 76px; margin-bottom: -10px; margin-left: 28px; } .wm-name { font-size: 21px; } .wm-sub { font-size: 9px; letter-spacing: .5em; } }

/* hero: dusk sky over the water. Hero photo: to use a real photo, add hero.jpg and
   uncomment the line below (keep the dark fade so the text stays readable).
   .night-hero { background: linear-gradient(90deg, rgba(3,8,20,.85) 0%, rgba(3,8,20,.45) 50%, rgba(3,8,20,.1) 100%), url("hero.jpg") center / cover no-repeat !important; } */
.night-hero { background: linear-gradient(180deg, #040a1a 0%, #0a1d44 45%, #1b3566 66%, #3a3f62 74%, #0b1a35 76%, #050d1f 100%) !important; color: #fff; position: relative; overflow: hidden; }
.night-hero::before, .night-hero::after { display: none !important; }
.dusk { position: absolute; inset: 0; pointer-events: none; }
.dusk .glow { position: absolute; right: 4%; top: 58%; width: 620px; height: 260px; transform: translateY(-50%); background: radial-gradient(50% 50% at 50% 60%, rgba(255, 190, 110, .85) 0%, rgba(255, 130, 60, .55) 22%, rgba(220, 90, 70, .25) 48%, transparent 72%); filter: blur(6px); }
.dusk .sea { position: absolute; left: 0; right: 0; top: 75%; bottom: 0; background: linear-gradient(180deg, rgba(255,170,90,.18) 0%, transparent 30%), repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px); -webkit-mask: linear-gradient(90deg, transparent, #000 40%); mask: linear-gradient(90deg, transparent, #000 40%); }
.dusk .sky-drift { z-index: 0; }
.dusk .sky-drift .pf { opacity: .14; filter: brightness(.55) saturate(1.2); }
.night-hero .hero-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 30px; align-items: center; padding-block: 56px 48px; min-height: 0; position: relative; z-index: 2; }
.night-hero h1 { font: 700 clamp(34px, 4.6vw, 66px)/1.02 var(--f-cond); text-transform: uppercase; letter-spacing: .005em; margin: 0 0 12px; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.night-hero .h-white { color: #fff; }
.night-hero .h-blue { font-style: italic; background: linear-gradient(180deg, #8fdcff 0%, #2ea8ff 50%, #0a6cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.night-hero p.hook { font: 500 clamp(18px, 2.1vw, 28px)/1.2 var(--f-cond); text-transform: uppercase; letter-spacing: .02em; color: #fff; max-width: none; margin: 0 0 30px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-feats { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 18px 26px; }
.hero-feats li { display: flex; align-items: center; gap: 10px; color: #c5d4ec; font-size: 13.5px; line-height: 1.25; }
.hero-feats svg { color: #2ea8ff; flex: none; }
.hero-feats strong { display: block; font: 500 14px var(--f-cond); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.btn.blue { background: linear-gradient(180deg, #2a9bff, #0a6cff); border: 0; color: #fff; padding: 13px 34px; font: 600 17px var(--f-cond); letter-spacing: .06em; text-transform: uppercase; border-radius: 10px; box-shadow: 0 8px 24px rgba(10, 108, 255, .4); }
.btn.blue:hover { background: linear-gradient(180deg, #45a9ff, #1a78ff); }
.hero-vials { display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.hv .vial-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); }
.hv { width: 30%; margin: 0 -2%; position: relative; }
.hv2 { width: 37%; z-index: 2; }
.hv1, .hv3 { margin-bottom: 2%; }
@media (prefers-reduced-motion: no-preference) {
  .hv2 { animation: float 6s ease-in-out infinite; } .hv1 { animation: float 6s ease-in-out -2s infinite; } .hv3 { animation: float 6s ease-in-out -4s infinite; }
  @keyframes float { 50% { transform: translateY(-8px); } }
}
@media (max-width: 1100px) { .hero-feats { grid-template-columns: repeat(2, minmax(0, auto)); } }
@media (max-width: 800px) {
  .night-hero .hero-row { grid-template-columns: 1fr; padding-block: 34px 36px; }
  .hero-vials { order: -1; max-width: 340px; margin-inline: auto; }
  .dusk .glow { top: 30%; right: -20%; }
}
@media (max-width: 480px) { .hero-feats { grid-template-columns: 1fr 1fr; gap: 14px; } .hero-feats svg { width: 26px; height: 26px; } }

/* category band */
.cat-band { background: #071026; border-block: 1px solid #142a52; }
.cat-band-row { display: flex; align-items: center; gap: 26px; padding-block: 14px; }
.cat-band h2 { font: 600 28px var(--f-cond); text-transform: uppercase; color: #fff; white-space: nowrap; margin: 0; }
.cat-band h2::after { display: none !important; }
body.theme-night .chip-row { display: flex; gap: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
body.theme-night .chip-row::-webkit-scrollbar { display: none; }
body.theme-night .chip { flex: none; background: rgba(255,255,255,.03); border: 1px solid #2a4a80; color: #e6eefc; border-radius: 8px; padding: 9px 18px; font: 400 15px var(--f-cond); letter-spacing: .02em; }
body.theme-night .chip:hover { border-color: #2ea8ff; }
body.theme-night .chip[aria-pressed="true"] { background: linear-gradient(180deg, #2a9bff, #0a6cff); border-color: #2ea8ff; color: #fff; box-shadow: 0 0 18px rgba(46, 168, 255, .45); }
@media (max-width: 760px) { .cat-band-row { flex-direction: column; align-items: stretch; gap: 10px; } .cat-band h2 { font-size: 22px; } }

/* shop */
body.theme-night #shop { background: #050b18; padding-top: 30px; }
body.theme-night #shop::before { display: none; }
.shop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.shop-head h2 { font: 600 32px var(--f-cond) !important; text-transform: uppercase; color: #fff !important; margin: 0; }
.shop-head h2::after { display: none !important; }
.shop-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pill-search { display: flex; align-items: center; gap: 10px; border: 1px solid #2a4a80; border-radius: 999px; padding: 0 16px; height: 42px; width: 250px; color: #cfe0ff; background: rgba(255,255,255,.03); }
.pill-search input { background: none !important; border: 0 !important; padding: 0 !important; color: #fff !important; font-size: 15px; box-shadow: none !important; }
.sort { display: flex; align-items: center; gap: 10px; color: #cfdcf0; font-size: 15px; }
.sort select { width: auto; background: #0b1730; color: #fff; border: 1px solid #2a4a80; border-radius: 8px; padding: 9px 12px; font-size: 15px; }
@media (max-width: 560px) { .shop-tools, .pill-search { width: 100%; } .sort { width: 100%; justify-content: space-between; } }

body.theme-night .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
body.theme-night .card { background: #0a1630; border: 1px solid #1f3d70; border-radius: 10px; box-shadow: none; }
body.theme-night .card:hover { border-color: #2ea8ff; box-shadow: 0 0 0 1px #2ea8ff, 0 14px 30px rgba(0,0,0,.5); transform: translateY(-3px); }
body.theme-night .card-media { aspect-ratio: 5 / 4; position: relative; background: radial-gradient(14px 14px at 18% 30%, rgba(90,160,255,.35), transparent), radial-gradient(10px 10px at 80% 22%, rgba(90,160,255,.3), transparent), radial-gradient(22px 22px at 70% 60%, rgba(60,120,220,.25), transparent), radial-gradient(60% 40% at 50% 100%, #1a2440 0%, transparent 70%), linear-gradient(180deg, #0d2a5c 0%, #0a1a3a 60%, #070f22 100%); border-bottom: 1px solid #1f3d70; }
body.theme-night .card-media .vial-art { height: 92%; max-width: 70%; filter: drop-shadow(0 10px 12px rgba(0,0,0,.6)); }
body.theme-night .card-media img { object-fit: cover; }
.stock-tag { position: absolute; left: 8px; bottom: 8px; font: 500 11.5px var(--f-cond); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(5,11,24,.85); border: 1px solid #2a4a80; color: #cfe0ff; }
.stock-tag.out { color: #ff9b9b; border-color: #6b2b3a; }
.stock-tag.low { color: #ffd38a; border-color: #6b5320; }
body.theme-night .ribbon { top: 8px; left: 8px; background: linear-gradient(180deg, #2a9bff, #0a6cff); color: #fff; font: 500 11px var(--f-cond); letter-spacing: .08em; padding: 3px 9px; }
body.theme-night .card-body { padding: 10px 12px 4px; gap: 4px; }
body.theme-night .card h3 { font: 500 17px/1.2 var(--f-cond); color: #fff; letter-spacing: .01em; }
body.theme-night .card .desc { font-size: 12.5px; color: #93a6c6; }
body.theme-night .card .coa { color: #4fb3ff; }
body.theme-night .card-foot { padding: 6px 12px 12px; gap: 8px; }
body.theme-night .price { font: 600 21px var(--f-cond); color: #fff; }
body.theme-night .card .btn.primary { background: linear-gradient(180deg, #2a9bff, #0a6cff); border: 0; font: 500 14px var(--f-cond); letter-spacing: .03em; padding: 8px 14px; border-radius: 8px; box-shadow: 0 4px 14px rgba(10,108,255,.35); }
body.theme-night .card .btn:not(.primary) { background: transparent; color: #cfe0ff; border-color: #2a4a80; font: 500 14px var(--f-cond); padding: 8px 12px; }
body.theme-night .kit-promo { background: linear-gradient(100deg, #0a1d44, #0a6cff); }
body.theme-night .blank { background: #0a1630; border-color: #1f3d70; color: #93a6c6; }
@media (max-width: 480px) { body.theme-night .grid { grid-template-columns: 1fr 1fr; gap: 10px; } body.theme-night .card h3 { font-size: 15px; } body.theme-night .price { font-size: 18px; } body.theme-night .card-foot { flex-direction: column; align-items: stretch; } }

/* sections below */
body.theme-night main > .section::before, body.theme-night main > .cta-band::before { display: none; }
body.theme-night main > .section { padding-top: 56px; }
body.theme-night #about { background: #071026; }
body.theme-night #faq { background: #050b18; }
body.theme-night #contact { background: #071026; }
body.theme-night .section h2 { color: #fff; text-transform: uppercase; }
body.theme-night .section h2::after { background: linear-gradient(90deg, #2ea8ff, #0a6cff); }
body.theme-night .eyebrow { color: #4fb3ff; }
body.theme-night .about-text p { color: #c5d4ec; }
body.theme-night #about .about-row img { box-shadow: 0 18px 50px rgba(0,0,0,.5); }
body.theme-night .faq details { background: #0a1630; border-color: #1f3d70; }
body.theme-night .faq summary { color: #fff; }
body.theme-night .faq details p { color: #a9bbd8; }
body.theme-night #contact a { color: #4fb3ff; }
body.theme-night main > .cta-band { background: linear-gradient(100deg, #0a1d44 0%, #0a4fb4 60%, #0a6cff 100%); }
body.theme-night .site-foot { background: #030812; color: #a9bbd8; border-top: 1px solid #142a52; }
body.theme-night .site-foot a { color: #4fb3ff; }
body.theme-night .toast { background: #0a6cff; }
.night-hero .h-blue { white-space: nowrap; }
@media (max-width: 520px) { .night-hero .h-blue { white-space: normal; } }
.hero-feats li span { max-width: 17ch; }
body.theme-night .card-media .vial-art { height: 96%; max-width: 82%; }
body.theme-night .card-foot { flex-wrap: nowrap; justify-content: space-between; margin-top: auto; }
body.theme-night .card .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.theme-night .card { display: flex; flex-direction: column; }
body.theme-night .card-body { flex: 1; }
body.theme-night .card-foot .btn { white-space: nowrap; flex: none; }
body.theme-night .card .btn.primary, body.theme-night .card .btn:not(.primary) { font-size: 13.5px; padding: 8px 12px; }
body.theme-night .price { font-size: 19px; }
body.theme-night .foot-brand strong { font: 600 20px var(--f-cond); letter-spacing: .06em; }
/* category buttons wrap onto a second line instead of running off the edge */
body.theme-night .cat-band .chip-row { flex-wrap: wrap; overflow: visible; }
.cat-band-row { align-items: flex-start; }
.cat-band h2 { padding-top: 6px; }
@media (max-width: 760px) {
  body.theme-night .cat-band .chip-row { gap: 8px; margin-inline: 0; padding-inline: 0; }
  body.theme-night .cat-band .chip { padding: 7px 12px; font-size: 14px; }
}
body.theme-night .card-media .vial-art { height: 94%; max-width: 70%; }
body.theme-night .card-media { aspect-ratio: 1 / 1.02; }
body.theme-night .card-media .vial-art { height: 94%; max-width: 76%; }

/* product pictures and hero use the vial art from the mockup */
body.theme-night .card-media { aspect-ratio: 216 / 162; background: #07122a; }
body.theme-night .card-media .vial-art.photo { width: 100%; height: 100%; max-width: none; filter: none; display: block; }
.hero-vials { display: block; position: relative; }
.hero-pic { display: block; width: 100%; height: auto;
  --fx: linear-gradient(90deg, transparent 0, #000 22%, #000 92%, transparent 100%);
  --fy: linear-gradient(180deg, transparent 0, #000 10%, #000 86%, transparent 100%);
  -webkit-mask: var(--fx), var(--fy); -webkit-mask-composite: source-in; mask: var(--fx), var(--fy); mask-composite: intersect; }
.night-hero .hero-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
@media (max-width: 800px) { .hero-vials { max-width: 520px; } }

/* ===== hero: the sunset scene fills the whole top ===== */
.night-hero { min-height: clamp(420px, 27.8vw, 640px); display: flex; align-items: center; background: #050b18 !important; }
.night-hero > .wrap { width: 100%; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg svg { display: block; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 8, 20, .82) 0%, rgba(3, 8, 20, .6) 32%, rgba(3, 8, 20, .15) 55%, rgba(3, 8, 20, 0) 70%),
              linear-gradient(180deg, rgba(3, 8, 20, .35) 0%, transparent 18%, transparent 85%, rgba(5, 11, 24, .9) 100%); }
.night-hero .hero-row { grid-template-columns: minmax(0, 1fr); padding-block: 40px; }
.night-hero .hero-copy { max-width: 760px; }
.night-hero .hero-vials { display: none; }
@media (max-width: 800px) {
  .night-hero { min-height: 0; display: block; }
  .hero-bg { opacity: .35; filter: blur(2px); }
  .hero-bg svg { height: 100%; }
  .hero-shade { background: linear-gradient(180deg, rgba(3,8,20,.2) 0%, rgba(3,8,20,.75) 45%, rgba(5,11,24,.95) 100%); }
  .night-hero .hero-vials { display: block; max-width: 520px; margin: 0 auto 6px; }
  .night-hero .hero-row { padding-block: 22px 34px; }
}

/* ===== hero v3: water + sunset fill the whole top; slim vials on the right ===== */
.hero-bg { background: url("hero-bg.jpg") right center / cover no-repeat; }
.hero-bg svg { display: none; }
.hero-shade { background: linear-gradient(90deg, rgba(3, 8, 20, .78) 0%, rgba(3, 8, 20, .5) 38%, rgba(3, 8, 20, .1) 62%, rgba(3, 8, 20, 0) 75%),
  linear-gradient(180deg, rgba(3, 8, 20, .3) 0%, transparent 16%, transparent 84%, rgba(5, 11, 24, .9) 100%); }
.night-hero .hero-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; padding-block: 34px; }
.night-hero .hero-vials { display: block; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.night-hero .hero-vials .hero-pic { width: 100%; max-width: 560px; max-height: 420px;
  --fx: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  --fy: linear-gradient(180deg, transparent 0, #000 6%, #000 88%, transparent 100%); }
@media (max-width: 800px) {
  .night-hero .hero-row { grid-template-columns: 1fr; }
  .hero-bg { opacity: .7; filter: none; }
  .night-hero .hero-vials .hero-pic { max-width: 400px; }
}

/* vials are a transparent cut-out now: no box, no edge fade, just a soft shadow */
.night-hero .hero-vials .hero-pic { -webkit-mask: none !important; mask: none !important; max-height: 400px; width: auto; max-width: 100%;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55)); }
.night-hero .hero-vials { align-items: flex-end; }
@media (max-width: 800px) { .night-hero .hero-vials .hero-pic { max-height: 260px; } .hero-bg { opacity: 1; } }
@media (max-width: 800px) {
  .night-hero .hero-vials { display: flex !important; justify-content: center; }
  .night-hero .hero-vials .hero-pic { width: min(100%, 330px); height: auto; max-height: none; }
}

/* dashboard: inventory search */
.inv-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.inv-tools input[type=search] { flex: 1 1 320px; max-width: 460px; }
.inv-tools select { width: auto; }

/* ===== Owner dashboard in the shop's night colors (admin.html: body.admin-night) ===== */
body.admin-night {
  --paper: #0b1730; --mist: #050b18; --line: #1f3d70; --ink: #dfe8f7; --muted: #93a6c6; --navy: #ffffff;
  --teal: #1f8bff; --teal-dark: #1673e0; --sea: #4fb3ff; --sand: #0d1c3a;
  --good: #3ccf7f; --warn: #ffb547; --bad: #ff7272;
  background: #050b18; color: var(--ink); color-scheme: dark;
}
body.admin-night main { --paper: #0b1730; --mist: #08122a; --line: #1f3d70; --ink: #dfe8f7; --muted: #93a6c6; --navy: #ffffff; --teal: #1f8bff; }
body.admin-night .site-head .wrap { max-width: 1160px; }
body.admin-night .admin-main { max-width: 1160px; }
body.admin-night .wm-sub { letter-spacing: .32em; font-size: 11px; }
body.admin-night h1, body.admin-night h2, body.admin-night h3 { color: #fff; }
body.admin-night .tabs { background: #0b1730; }
body.admin-night .tab { color: #b9c8e2; font-family: var(--f-cond); font-weight: 500; font-size: 16px; letter-spacing: .02em; }
body.admin-night .tab[aria-current="true"] { background: linear-gradient(180deg, #2a9bff, #0a6cff); color: #fff; box-shadow: 0 0 14px rgba(46,168,255,.4); }
body.admin-night .tab .count { background: rgba(31,139,255,.2); color: #8fd0ff; }
body.admin-night .tab[aria-current="true"] .count { background: #fff; color: #0a6cff; }
body.admin-night .btn { background: #0d1c3a; border-color: #2a4a80; color: #e6eefc; }
body.admin-night .btn:hover { border-color: #2ea8ff; }
body.admin-night .btn.primary { background: linear-gradient(180deg, #2a9bff, #0a6cff); border-color: transparent; color: #fff; }
body.admin-night .btn.ghost { background: transparent; }
body.admin-night .btn.danger { color: #ff8a8a; }
body.admin-night input[type=text], body.admin-night input[type=email], body.admin-night input[type=tel], body.admin-night input[type=url],
body.admin-night input[type=search], body.admin-night input[type=number], body.admin-night input[type=password], body.admin-night input[type=date],
body.admin-night select, body.admin-night textarea { background: #071026; border-color: #2a4a80; color: #fff; }
body.admin-night input::placeholder, body.admin-night textarea::placeholder { color: #6f86ab; }
body.admin-night input:focus, body.admin-night select:focus, body.admin-night textarea:focus { border-color: #2ea8ff; box-shadow: 0 0 0 3px rgba(46,168,255,.25); }
body.admin-night select option { background: #0b1730; color: #fff; }
body.admin-night .icon-btn { background: #0d1c3a; border-color: #2a4a80; color: #fff; }
body.admin-night .notice { background: #0d1c3a; border-color: #2a4a80; color: #dfe8f7; }
body.admin-night .form-error { background: rgba(255, 90, 90, .12); color: #ff9b9b; }
body.admin-night .blank { background: #0b1730; border-color: #1f3d70; color: #93a6c6; }
body.admin-night .editor { border-color: #2ea8ff; box-shadow: 0 0 0 1px rgba(46,168,255,.25); }
body.admin-night .proof-view { background: #071026; }
body.admin-night tr:hover td { background: rgba(46,168,255,.04); }
body.admin-night td.neg, body.admin-night .mono.neg { color: #ff8a8a; }
body.admin-night .example-tag { border-color: #2a4a80; }
body.admin-night a { color: #4fb3ff; }
body.admin-night .toast { background: #0a6cff; }
body.admin-night .site-head { position: static; }
