/* HELIX concept shop — builds on styles.css tokens */
.btn-shop.is-current { background: #fff; color: var(--coral-ink); border-color: #fff; }

/* hero */
.shop-hero { color: #fff; padding: clamp(28px, 4vw, 52px) 0 clamp(36px, 5vw, 64px);
  background: radial-gradient(50% 70% at 90% 0%, rgba(255,255,255,.3), transparent 70%), linear-gradient(180deg, var(--sky) 0%, #2F9FDB 100%); }
.shop-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.crumbs { margin: 0 0 18px; font-size: .92rem; color: rgba(255,255,255,.85); }
.crumbs a { color: #fff; text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.shop-title { font-family: var(--f-head); font-weight: 500; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.1; margin: 0 0 16px; }
.shop-lede { margin: 0; max-width: 34em; font-size: 1.12rem; color: rgba(255,255,255,.92); }
.shop-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; }
.shop-stats div { padding-right: 24px; margin-right: 24px; border-right: 1px solid rgba(255,255,255,.35); }
.shop-stats div:last-child { border-right: 0; }
.shop-stats dt { font-family: var(--f-head); font-weight: 500; font-size: 1.9rem; line-height: 1; }
.shop-stats dd { margin: 4px 0 0; font-size: .86rem; color: rgba(255,255,255,.85); }

.shop-search { position: relative; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 36px 70px -36px rgba(0,50,80,.6); }
.shop-search-k { display: block; color: var(--blue-ink); margin-bottom: 10px; }
.shop-search-box { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 0 14px; transition: border-color .2s; }
.shop-search-box:focus-within { border-color: var(--blue); }
.shop-search-box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.shop-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; padding: 13px 0; background: transparent; color: var(--ink); }
.shop-suggest { position: absolute; left: 20px; right: 20px; top: 92px; z-index: 5; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 24px 50px -24px rgba(0,50,80,.45); overflow: hidden; }
.sug { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 0; background: #fff; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sug:last-child { border-bottom: 0; }
.sug:hover, .sug:focus-visible { background: var(--blue-pale); outline: 0; }
.sug span { font-weight: 600; } .sug .mono { font-size: .82rem; color: var(--blue-ink); }
.sug small { color: var(--muted); font-size: .84rem; }
.sug-empty { margin: 0; padding: 12px 14px; color: var(--muted); font-size: .92rem; }
.shop-ai { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.shop-ai p { margin: 0 0 10px; font-size: .95rem; color: var(--ink-2); }
.shop-ai b { color: var(--ink); }
.shop-ai-form { display: flex; gap: 8px; }
.shop-ai-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line-2); border-radius: 4px; padding: 10px 12px; font: inherit; font-size: .96rem; outline: 0; }
.shop-ai-form input:focus { border-color: var(--blue); }

/* layout */
.shop-main { background: var(--bg-2); padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); scroll-margin-top: 84px; }
.shop-grid { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 24px; align-items: start; }
.shop-grid > * { min-width: 0; }

/* phase nav */
.phase-nav { position: sticky; top: 104px; max-height: calc(100vh - 124px); display: flex; flex-direction: column; gap: 12px; }
.line-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px; gap: 4px; }
.line-tabs button { border: 0; background: transparent; border-radius: 6px; padding: 9px 4px; font-weight: 600; font-size: .92rem; color: var(--ink-2); display: flex; justify-content: center; align-items: baseline; gap: 5px; }
.line-tabs button span { font-size: .72rem; font-weight: 600; color: var(--muted); }
.line-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.line-tabs button[aria-selected="true"] span { color: rgba(255,255,255,.8); }
.phase-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow-y: auto; min-height: 0; }
.phase-item { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 11px 14px 11px 16px; position: relative; transition: background .15s; }
.phase-item:last-child { border-bottom: 0; }
.phase-item:hover { background: var(--bg-2); }
.phase-item[aria-pressed="true"] { background: var(--blue-pale); }
.phase-item[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); }
.pi-name { font-weight: 600; color: var(--ink); }
.phase-item[aria-pressed="true"] .pi-name { color: var(--blue-ink); }
.pi-meta { font-size: .82rem; color: var(--muted); }
.pi-meta b { color: var(--ok); font-weight: 600; }
.phase-extra { width: 100%; display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 12px 14px; font-weight: 600; color: var(--ink); }
.phase-extra .mono { color: var(--muted); }
.phase-extra[aria-pressed="true"], .phase-extra:hover { border-color: var(--blue); color: var(--blue-ink); }

/* phase panel */
.pp { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); animation: msgIn .35s var(--ease) both; }
.pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pp-head .eyebrow { margin-bottom: 8px; }
.pp-name { font-family: var(--f-head); font-weight: 500; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.05; color: var(--blue); margin: 0 0 8px; }
.pp-mech { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.pp-apps { flex: none; display: flex; align-items: center; gap: 12px; text-decoration: none; background: var(--blue-pale); border: 1px solid rgba(40,167,230,.35); border-radius: var(--r); padding: 12px 16px; color: var(--blue-ink); font-size: .86rem; line-height: 1.35; transition: border-color .2s, background .2s; }
.pp-apps b { font-family: var(--f-head); font-weight: 500; font-size: 2rem; line-height: 1; }
.pp-apps:hover { border-color: var(--blue); background: #fff; }
.pp-apps-none { background: var(--bg-2); border-color: var(--line); color: var(--ink-2); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding-top: 22px; align-items: start; }
.pp-grid > * { min-width: 0; }
.cfg { margin-bottom: 22px; }
.cfg-k { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 600; }
.cfg-n { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .78rem; }
.cfg-hint { margin-left: auto; font-weight: 400; font-size: .82rem; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { border: 1.5px solid var(--line-2); background: #fff; border-radius: 6px; padding: 8px 16px; font-weight: 600; display: flex; flex-direction: column; align-items: center; line-height: 1.2; min-width: 78px; transition: border-color .15s, background .15s; }
.seg button small { font-weight: 400; font-size: .74rem; color: var(--muted); }
.seg button:hover { border-color: var(--blue); }
.seg button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.seg button[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.matrix { width: 100%; border-collapse: collapse; font-size: .95rem; }
.matrix th, .matrix td { padding: 6px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.matrix thead th { background: var(--bg-2); font-size: .82rem; font-weight: 600; color: var(--ink-2); padding: 10px 6px; white-space: nowrap; }
.matrix tbody th { background: var(--bg-2); font-weight: 600; font-size: .88rem; color: var(--ink-2); white-space: nowrap; padding: 6px 12px; }
.matrix td button { width: 100%; min-width: 74px; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 9px 6px; font-weight: 600; color: var(--ink); transition: background .15s, border-color .15s; }
.matrix td button:hover { background: var(--blue-pale); border-color: rgba(40,167,230,.4); }
.matrix td button[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 8px 18px -10px rgba(21,127,184,.9); }
.matrix .na { color: var(--line-2); }
.pp-facts { margin: 4px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pp-facts div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pp-facts dt { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.pp-facts dd { margin: 0; font-size: .95rem; color: var(--ink); }
.pp-src { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
.pp-src a { color: var(--blue-ink); }

/* buy box */
.buybox { position: sticky; top: 104px; border: 1.5px solid rgba(40,167,230,.45); border-radius: var(--r-lg); padding: 20px; background: linear-gradient(180deg, var(--blue-pale), #fff 38%); box-shadow: 0 30px 60px -44px rgba(0,74,110,.6); }
.bb-k { color: var(--muted); margin: 0 0 6px; }
.bb-name { font-family: var(--f-head); font-weight: 500; font-size: 1.45rem; margin: 0; color: var(--ink); }
.bb-spec { margin: 2px 0 10px; color: var(--ink-2); }
.bb-pn { margin: 0 0 14px; display: flex; gap: 8px; align-items: baseline; }
.bb-pn .mono { color: var(--muted); font-size: .66rem; }
.bb-pn b { font-family: var(--f-mono); font-size: .95rem; color: var(--blue-ink); }
.bb-note { margin: 0 0 14px; font-size: .86rem; padding: 8px 10px; border-radius: 6px; background: rgba(23,144,95,.08); color: #0F6E48; border-left: 3px solid var(--ok); }
.bb-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.bb-price { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: 1.7rem; color: var(--ink); }
.bb-price small { font-family: var(--f-body); font-size: .82rem; color: var(--muted); font-weight: 400; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; }
.qty button { width: 36px; height: 38px; border: 0; background: transparent; font-size: 1.2rem; color: var(--blue-ink); }
.qty button:hover { background: var(--blue-pale); }
.qty output { min-width: 30px; text-align: center; font-weight: 700; }
.qty-sm button { width: 30px; height: 30px; font-size: 1rem; }
.addons { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.addons .bb-k { margin: 0; }
.addon { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; font-size: .92rem; }
.addon:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.addon input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--blue); }
.addon span { display: grid; gap: 3px; min-width: 0; }
.addon small { color: var(--muted); font-size: .8rem; }
.addon select { font: inherit; font-size: .82rem; border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 4px; max-width: 100%; background: #fff; }
.addon em { font-style: normal; font-weight: 600; white-space: nowrap; }
.addon-none { margin: 0; font-size: .86rem; color: var(--muted); }
.bb-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 14px; border-top: 1px solid var(--line); }
.bb-total b { font-family: var(--f-head); font-weight: 500; font-size: 1.5rem; color: var(--blue-ink); }
.bb-add { width: 100%; }
.bb-foot { margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

/* all part numbers */
.pn-all { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.pn-all summary { cursor: pointer; font-weight: 600; color: var(--blue-ink); }
.pn-all[open] summary { margin-bottom: 12px; }
.pn-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pn-table th { background: var(--bg-2); text-align: left; font-weight: 600; color: var(--ink-2); padding: 9px 12px; white-space: nowrap; }
.pn-table td { padding: 8px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.pn-table td.mono { font-size: .8rem; color: var(--blue-ink); }
.pn-table tbody tr:hover { background: var(--bg-2); }

/* assurance */
.shop-assure { padding: clamp(40px, 5vw, 64px) 0; }
.assure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.assure-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.assure-grid h3 { font-family: var(--f-head); font-weight: 500; font-size: 1.15rem; margin: 12px 0 6px; }
.assure-grid p { margin: 0; color: var(--ink-2); }
.assure-grid a { color: var(--blue-ink); }

/* cart drawer */
.cart { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.cart-scrim { position: absolute; inset: 0; background: rgba(0,40,64,.4); opacity: 0; transition: opacity .3s; }
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: #fff; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .45s var(--ease); box-shadow: -30px 0 80px -30px rgba(0,40,64,.55); }
.cart.open { pointer-events: auto; }
.cart.open .cart-scrim { opacity: 1; }
.cart.open .cart-panel { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 16px 22px; background: var(--sky); color: #fff; }
.cart-head h2 { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: 1.35rem; }
.cart-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-foot { border-top: 1px solid var(--line); padding: 16px 22px 20px; background: var(--bg-2); }
.cart-foot:empty { display: none; }
.cart-empty { text-align: center; padding: 48px 0; color: var(--muted); }
.cart-list { list-style: none; margin: 0; padding: 0; }
.ci { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-name { margin: 0; font-weight: 600; }
.ci-spec { margin: 2px 0; font-size: .88rem; color: var(--ink-2); }
.ci-pn { margin: 0; color: var(--blue-ink); font-size: .68rem; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ci-total { margin: 0; font-weight: 700; }
.ci-rm { border: 0; background: none; padding: 0; color: var(--muted); font-size: .82rem; text-decoration: underline; text-underline-offset: 2px; }
.ci-rm:hover { color: var(--bad); }
.cf-row { display: flex; justify-content: space-between; align-items: baseline; }
.cf-row b { font-family: var(--f-head); font-weight: 500; font-size: 1.5rem; }
.cf-note { margin: 4px 0 14px; font-size: .84rem; color: var(--muted); }
.cf-actions { display: grid; gap: 8px; }
.btn-quote { background: #fff; border-color: var(--blue); color: var(--blue-ink); }
.btn-quote:hover { background: var(--blue); color: #fff; }
.cart-back { border: 0; background: none; padding: 0; color: var(--blue-ink); font-weight: 600; margin-bottom: 14px; }
.co-sum { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin-bottom: 18px; font-size: .9rem; }
.co-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.co-sum small { color: var(--muted); font-family: var(--f-mono); font-size: .66rem; }
.co-sum-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px !important; font-weight: 600; }
.co-form { display: grid; gap: 14px; }
.co-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.co-form legend { font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; margin-bottom: 8px; padding: 0; }
.co-form label { display: grid; gap: 4px; font-size: .86rem; color: var(--ink-2); }
.co-form input:not([type="radio"]), .co-form textarea { font: inherit; font-size: .98rem; border: 1.5px solid var(--line-2); border-radius: 6px; padding: 9px 11px; outline: 0; color: var(--ink); background: #fff; }
.co-form input:focus, .co-form textarea:focus { border-color: var(--blue); }
.co-form .pay { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; border: 1.5px solid var(--line); border-radius: var(--r); padding: 11px 12px; cursor: pointer; }
.co-form .pay:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.co-form .pay input { margin: 3px 0 0; accent-color: var(--blue); }
.co-form .pay span { display: grid; gap: 2px; }
.co-form .pay b { color: var(--ink); font-size: .96rem; }
.co-form .pay small { color: var(--muted); font-size: .84rem; }
.co-err { margin: 0; color: var(--bad); font-size: .88rem; }
.co-submit { width: 100%; }
.co-done { text-align: center; padding-top: 10px; }
.co-done .co-sum { text-align: left; }
.co-tick { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 1.6rem; }
.co-done h3 { font-family: var(--f-head); font-weight: 500; font-size: 1.35rem; margin: 0 0 6px; }
.co-done > p { color: var(--ink-2); margin: 0 0 14px; }
.co-demo { text-align: left; font-size: .86rem; color: var(--ink-2) !important; background: var(--bg-2); border-radius: var(--r); padding: 12px 14px; }
.cart-foot .btn { width: 100%; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 160%); visibility: hidden; display: flex; align-items: center; gap: 14px; background: var(--navy); color: #fff; padding: 12px 14px 12px 18px; border-radius: 999px; box-shadow: 0 20px 40px -16px rgba(0,40,64,.7); transition: transform .4s var(--ease), visibility 0s linear .4s; max-width: calc(100vw - 32px); font-size: .94rem; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .4s var(--ease); }
.toast button { flex: none; border: 0; background: var(--yellow); color: var(--navy); font-weight: 700; border-radius: 999px; padding: 7px 14px; }

/* responsive */
@media (max-width: 1100px) {
  .pp-grid { grid-template-columns: minmax(0, 1fr); }
  .buybox { position: static; }
}
@media (max-width: 900px) {
  .shop-hero-grid, .shop-grid { grid-template-columns: 1fr; }
  .phase-nav { position: static; max-height: none; }
  .phase-list { display: flex; overflow-x: auto; overflow-y: hidden; border-radius: var(--r); scroll-snap-type: x proximity; }
  .phase-item { flex: none; width: auto; border-bottom: 0; border-right: 1px solid var(--line); scroll-snap-align: start; padding: 10px 14px; }
  .phase-item[aria-pressed="true"]::before { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 3px; }
  .pi-name, .pi-meta { white-space: nowrap; }
  .assure-grid { grid-template-columns: 1fr; }
  .pp-head { flex-direction: column; }
}
@media (max-width: 640px) {
  .shop-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
  .shop-stats div { padding-right: 12px; margin-right: 12px; }
  .shop-stats dt { font-size: 1.45rem; }
  .shop-stats dd { font-size: .78rem; }
  .pp-facts div { grid-template-columns: 1fr; gap: 4px; }
  .shop-ai-form { flex-direction: column; }
  .toast { border-radius: var(--r); bottom: 12px; }
  .nav-actions .nav-cart { order: -1; }
}
