/*
Theme Name: HelixaLife
Description: HelixaLife v3 storefront theme, built from the Claude Design "v3 Hybrid" files (project c49f8bc2). Page markup is generated by theme-build/build_theme.py into parts/; the design's styles are generated into assets/css/dc.css. This file holds the tokens, base styles and the few hand-written rules.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: helixalife
*/

/* ---------- tokens (from the design) ---------- */
:root{
  --hx-navy:#0E1B4D; --hx-navy-2:#13234E; --hx-blue:#1E48AB; --hx-blue-dark:#16357F; --hx-azure:#0A7DFE;
  --hx-ink-2:#3B4668; --hx-muted:#5B6687; --hx-line:#DCE3F0; --hx-line-2:#E6ECF6; --hx-tint:#F3F7FF; --hx-tint-2:#EEF3FD;
  --hx-font:'Geist',system-ui,sans-serif; --hx-display:'Outfit',sans-serif; --hx-mono:'Geist Mono',monospace;
  /* desktop side gutter: 80px at 1440, fluid below, centred 1280 column above */
  --gd:max(clamp(32px,5.5vw,80px),calc((100vw - 1280px)/2));
}

/* ---------- base (the design's global styles) ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scrollbar-gutter:stable;-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--hx-navy);font-family:var(--hx-font);-webkit-font-smoothing:antialiased;overflow-x:clip}
a{color:var(--hx-blue);text-decoration:none}
a:hover{color:var(--hx-blue-dark)}
button,input,select,textarea{font-family:inherit}
input::placeholder,textarea::placeholder{color:#7C88AB}
img{display:block;max-width:100%}
h1,h2,h3,h4,p{margin:0}
@keyframes hxPop{0%{opacity:0;transform:translateY(10px) scale(.97)}100%{opacity:1;transform:none}}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- the design has a phone tree (390) and a desktop tree (1440): one shows per width ---------- */
@media (max-width:1023px){.hx-d{display:none!important}}
@media (min-width:1024px){.hx-m{display:none!important}}
.hx-body{width:100%}

/* ---------- header ---------- */
.hx-dhead{grid-template-columns:auto minmax(0,1fr) auto!important}
.hx-dnav a[aria-current="page"]{color:var(--hx-azure)!important}
@media (max-width:1279px){.hx-dnav{gap:16px!important}.hx-dlogo{height:54px!important}}
@media (max-width:1199px){.hx-dsearch{display:none!important}}
@media (max-width:1149px){.hx-dnav{gap:14px!important}.hx-dnav a{font-size:14px!important}}
.admin-bar .hx-sticky{top:32px}
@media (max-width:782px){.admin-bar .hx-sticky{top:46px}}
.hx-badge{position:absolute;top:3px;right:1px;min-width:19px;height:19px;border-radius:10px;background:var(--hx-azure);color:#fff;font:700 11px/19px var(--hx-font);text-align:center;padding:0 5px}
.hx-badge[hidden]{display:none}
input[data-hx-search]{-webkit-appearance:none;appearance:none}
input[data-hx-search]::-webkit-search-cancel-button{display:none}
[data-menu-panel]{position:absolute;left:0;right:0;top:100%;z-index:40;background:#fff;border-bottom:1px solid var(--hx-line-2);box-shadow:0 18px 30px rgba(14,27,77,.12);padding:6px 16px 14px;display:flex;flex-direction:column}
[data-menu-panel][hidden]{display:none}
[data-menu-panel] a{display:flex;align-items:center;min-height:48px;font-size:17px;font-weight:500;color:var(--hx-navy);border-bottom:1px solid #EEF2F8}
[data-menu-panel] a:last-child{border-bottom:0}

/* ---------- small shared behaviours ---------- */
[data-href]{cursor:pointer}
button[disabled],button[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
.hx-hide{display:none!important}

/* ---------- plain pages (no design template yet) ---------- */
.hx-plain{padding:48px var(--gd) 96px;max-width:none}
@media (max-width:1023px){.hx-plain{padding:28px 16px 64px}}
.hx-plain-title{font:600 clamp(36px,5vw,64px)/1 var(--hx-display);letter-spacing:-.04em;margin-bottom:28px}
.hx-prose{font-size:16px;line-height:1.6;color:var(--hx-ink-2)}
.hx-prose h2,.hx-prose h3{color:var(--hx-navy);font-family:var(--hx-display);margin:1.4em 0 .5em}
.hx-prose p,.hx-prose ul{margin:0 0 1em}

/* ---------- COA popup (parts/coa-lightbox.php) ---------- */
.hx-lb{position:fixed!important;inset:0;z-index:9200}
.hx-lb[hidden]{display:none!important}

/* ---------- mobile QA pass (2026-11-18) ---------- */
@media (max-width:1023px){
  /* tap targets: footer links 36 -> 44px; breadcrumb links keep their look but get a 44px-tall hit area;
     policy "copy link" buttons 32 -> 40px; the header search box is 46px tall but only its 23px text line took taps */
  footer.hx-m a{min-height:44px}
  .hx-body nav:has(> a + span) > a{padding:13px 0;margin:-13px 0}
  .hx-body button[aria-label^="Copy link to"]{min-width:40px;min-height:40px}
  [data-hx-search-box] > input{align-self:stretch;min-height:0}
  /* product COA badge: long lab names wrap to two lines; keep them left-aligned with the tick instead of centred */
  .hx-body button[data-hx-coa]:has(> svg:first-child){text-align:left;line-height:1.3;padding-top:6px;padding-bottom:6px}
  .hx-body button[data-hx-coa] > svg:first-child{flex:none}
}
/* tablet (640-1023px shows the phone layout): product grids were 2 cards a row, ~360px wide with ~380px-tall photos */
@media (min-width:640px) and (max-width:1023px){
  .hx-m div:has(> .h-e51a9c){grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .hx-m div:has(> .h-97a772), .hx-m .h-ba29ad:has(> .h-e51a9c):not([data-hx-grid]):not(:has(> [data-coa-json])){grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
footer a.hx-flink{color:inherit;display:inline-block;padding:14px 0;margin:-14px 0}
