/* Quote shop. Every rule is scoped under .shop-page or a .shop-* class.
   Do not style bare `header`/`footer` here: portal.css gives every <header> a fixed 82px height. */
.shop-page .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.shop-wrap{max-width:1180px;margin:auto;padding-left:max(20px,5vw);padding-right:max(20px,5vw)}
.shop-page{--qx-ink:#09243c;--qx-teal:#0a5f5c;--qx-mint:#5ed1c8;--qx-line:#dbe8eb;background:#f3f8f9}
.shop-defs{position:absolute;width:0;height:0;overflow:hidden}
.shop-hero{position:relative;overflow:hidden;background:#07192c;color:#effcf9;padding:calc(82px + clamp(28px,4vw,56px)) 0 clamp(40px,5vw,74px)}
.shop-hero::before{content:"";position:absolute;inset:0;pointer-events:none;background:
  radial-gradient(900px 440px at 84% 6%,rgba(94,209,200,.2),transparent 62%),
  radial-gradient(720px 400px at 4% 100%,rgba(20,125,164,.3),transparent 64%),
  linear-gradient(rgba(94,209,200,.05) 1px,transparent 1px) 0 0/48px 48px,
  linear-gradient(90deg,rgba(94,209,200,.05) 1px,transparent 1px) 0 0/48px 48px}
.shop-hero::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:48px;background:linear-gradient(to bottom,transparent,#f3f8f9);pointer-events:none}
.shop-hero>.shop-wrap{position:relative;z-index:1}
.shop-hero-small{padding:calc(82px + clamp(24px,4vw,48px)) 0 clamp(36px,4vw,56px)}
.shop-hero-small h1{font-size:clamp(2.1rem,4.4vw,3.6rem)}
.shop-hero-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:clamp(20px,4vw,64px);align-items:center}
.shop-hero-copy{min-width:0}
.shop-hero .overline{color:#6ed8d0}
.shop-hero h1{margin:14px 0 18px;font-size:clamp(2.4rem,5.2vw,4.5rem);line-height:1.04;letter-spacing:-.045em}
.shop-hero h1 em{display:block;font-style:normal;background:linear-gradient(90deg,#5ed1c8,#7fd4f2);-webkit-background-clip:text;background-clip:text;color:transparent}
.shop-hero p{max-width:60ch;color:rgba(239,252,249,.76);line-height:1.8}
.shop-hero p b{color:#fff}
.shop-hero-lead{margin:0;font-size:1.04rem}
.shop-hero-points{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:26px 0 0;padding:0}
.shop-hero-points li{display:grid;gap:3px;padding:13px 15px;border:1px solid rgba(94,209,200,.24);border-radius:14px;background:linear-gradient(160deg,rgba(94,209,200,.12),rgba(94,209,200,.03))}
.shop-hero-points b{font-size:.94rem;color:#fff}
.shop-hero-points span{font-size:.76rem;line-height:1.5;color:rgba(239,252,249,.66)}
.shop-steps{list-style:none;display:flex;flex-wrap:wrap;gap:8px 10px;margin:24px 0 0;padding:0}
.shop-steps li{display:flex;align-items:center;gap:8px;padding:7px 14px 7px 8px;border:1px solid rgba(239,252,249,.16);border-radius:999px;background:rgba(7,25,44,.4);font-size:.8rem;color:rgba(239,252,249,.86)}
.shop-steps b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,#5ed1c8,#7fd4f2);color:#07192c;font-size:.72rem}
.shop-hero-art{min-width:0}
.shop-hero-art svg{display:block;width:100%;height:auto;max-height:360px;filter:drop-shadow(0 28px 36px rgba(0,0,0,.38))}
.ha-shadow{fill:rgba(0,0,0,.35)}.ha-rail{fill:#16344a}
.ha-edge{stroke:#4f7d9b;stroke-width:1.2}
.ha-bay{fill:#0a1b2a;stroke:#33607d}
.ha-led-a{fill:#5ed1c8}.ha-led-b{fill:#f5b942}
.ha-vent{stroke:#4a7794;stroke-width:2;stroke-linecap:round;fill:none}
.ha-power{fill:none;stroke:#5ed1c8;stroke-width:2}
.ha-fan{fill:#0a1b2a;stroke:#5ed1c8;stroke-width:1.5}
.ha-pins{fill:#e3b04b}.ha-chip{fill:#0a1b2a;stroke:#5ed1c8;stroke-width:1}
.ha-link{stroke:#4f7d9b;stroke-width:1.6;stroke-dasharray:4 5;fill:none}
.ha-tick{stroke:#5ed1c8;stroke-width:5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ha-ico{stroke:#5ed1c8;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ha-float{animation:qx-bob 6s ease-in-out infinite}
.ha-float-b{animation-duration:7.5s;animation-delay:-2s}
@keyframes qx-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@media(prefers-reduced-motion:reduce){.ha-float{animation:none}}
@media(max-width:900px){
  .shop-hero-grid{grid-template-columns:minmax(0,1fr)}
  .shop-hero-art{display:none}
  .shop-hero-points{grid-template-columns:repeat(3,minmax(0,1fr))}
  .shop-hero h1{font-size:clamp(2.2rem,9vw,3.4rem)}
}
@media(max-width:640px){
  .shop-hero{padding-top:calc(82px + 18px)}
  .shop-hero-lead{font-size:.95rem;line-height:1.75}
  .shop-hero-points{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
  .shop-hero-points li{display:block;padding:7px 13px;border-radius:999px}
  .shop-hero-points b{font-size:.8rem}
  .shop-hero-points span{display:none}
  .shop-steps{margin-top:16px}
  .shop-steps li{padding:5px 11px 5px 6px;font-size:.72rem}
}

/* ---- catalog ---- */
.shop-body{padding-top:30px;padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.shop-toolbar{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between}
.shop-tabs{display:flex;flex-wrap:wrap;gap:6px;min-width:0;padding:5px;border:1px solid var(--qx-line);border-radius:999px;background:#fff}
.shop-tab{border:0;background:transparent;color:#35566a;border-radius:999px;padding:8px 16px;font-size:.88rem;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s}
.shop-tab:hover{background:#eaf4f4}
.shop-tab.is-active{background:linear-gradient(135deg,#0a6a65,#0a5f5c);color:#fff;box-shadow:0 4px 12px -4px rgba(10,95,92,.6)}
.shop-search input{width:min(300px,100%);padding:11px 16px 11px 40px;border:1px solid var(--qx-line);border-radius:999px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2379909c' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 15px center;font-size:1rem;box-sizing:border-box}
.shop-search input:focus{outline:2px solid #147da4;outline-offset:1px}
.shop-cat-blurb{margin:16px 2px 0;color:#5d7180;min-height:1.5em}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr));gap:20px;margin-top:20px}
.shop-card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--qx-line);border-radius:20px;min-width:0;cursor:pointer;box-shadow:0 1px 2px rgba(7,25,44,.04),0 10px 26px -16px rgba(7,25,44,.22);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.shop-card:hover{transform:translateY(-4px);border-color:#9fd3cf;box-shadow:0 2px 4px rgba(7,25,44,.05),0 24px 44px -20px rgba(7,25,44,.34)}
@media(prefers-reduced-motion:reduce){.shop-card,.shop-card:hover{transition:none;transform:none}}
.shop-card-art{--acc:#5ed1c8;--glow:rgba(94,209,200,.3);--bg1:#10364a;--bg2:#08202f;position:relative;height:152px;background:radial-gradient(70% 90% at 76% 18%,var(--glow),transparent 62%),linear-gradient(140deg,var(--bg1),var(--bg2));overflow:hidden}
.shop-card-art svg{position:absolute;inset:0;width:100%;height:100%;transition:transform .35s ease}
.shop-card:hover .shop-card-art svg{transform:scale(1.05)}
.shop-card-art.is-amber{--acc:#f5a524;--glow:rgba(245,165,36,.3);--bg1:#33280f;--bg2:#0c1f2e}
.shop-card-art.is-sky{--acc:#38bdf8;--glow:rgba(56,189,248,.3);--bg1:#0f3550;--bg2:#08202f}
.shop-card-art.is-mint{--acc:#34d399;--glow:rgba(52,211,153,.28);--bg1:#0e3b3a;--bg2:#08202f}
.shop-card-art.is-rose{--acc:#fb7185;--glow:rgba(251,113,133,.28);--bg1:#3b1b2a;--bg2:#0c1f2e}
.shop-card-art.is-blue{--acc:#60a5fa;--glow:rgba(96,165,250,.3);--bg1:#14305a;--bg2:#08202f}
.shop-card-art.is-violet{--acc:#a78bfa;--glow:rgba(167,139,250,.3);--bg1:#2a2159;--bg2:#0b1d33}
.shop-card-art.is-gold{--acc:#fbbf24;--glow:rgba(251,191,36,.28);--bg1:#3a2e0f;--bg2:#0c1f2e}
.shop-card-art.is-orange{--acc:#fb923c;--glow:rgba(251,146,60,.3);--bg1:#3d2310;--bg2:#0c1f2e}
.shop-card-art.is-indigo{--acc:#818cf8;--glow:rgba(129,140,248,.3);--bg1:#22285c;--bg2:#0b1d33}
.sa-shadow{fill:rgba(0,0,0,.35)}
.sa-edge{stroke:rgba(255,255,255,.28);stroke-width:1.2}
.sa-bay{fill:#08131f;stroke:rgba(255,255,255,.18)}
.sa-led,.sa-fan{fill:var(--acc)}
.sa-led2{fill:#f5b942}
.sa-fan{fill:#0a1b2a;stroke:var(--acc);stroke-width:1.5}
.sa-vent{stroke:rgba(255,255,255,.3);stroke-width:2;stroke-linecap:round;fill:none}
.sa-power{fill:none;stroke:var(--acc);stroke-width:2}
.sa-stroke{stroke:var(--acc);stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.sa-tick{stroke:var(--acc);stroke-width:5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.shop-card-cat{position:absolute;left:16px;top:14px;color:rgba(255,255,255,.82);font:600 .68rem ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase;z-index:1}
.shop-card-badge{position:absolute;right:14px;top:12px;z-index:1;font-size:.7rem;color:#fff;background:rgba(7,25,44,.55);border:1px solid rgba(255,255,255,.26);backdrop-filter:blur(6px);border-radius:999px;padding:3px 11px}
.shop-card-body{display:grid;gap:9px;align-content:start;flex:1;padding:16px 20px 4px}
.shop-card h3{margin:0;font-size:1.1rem;line-height:1.4;overflow-wrap:anywhere}
.shop-card-tag{margin:0;color:#637784;font-size:.86rem;line-height:1.65}
.shop-card-facts{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.shop-card-facts li{font-size:.74rem;line-height:1.4;color:#35566a;background:#eef5f6;border-radius:8px;padding:4px 9px}
.shop-card-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:12px 20px 0;padding:14px 0 18px;border-top:1px dashed #dbe8eb}
.shop-card-price{display:grid;gap:1px;min-width:0}
.shop-card-price small{color:#7b8d97;font-size:.7rem;line-height:1.5}
.shop-card-price b{font-size:1.18rem;line-height:1.3;color:#0c3b44;letter-spacing:-.01em;overflow-wrap:anywhere}
.shop-card-price b.is-quote{font-size:.9rem;font-weight:600;color:#8a5a00}
.shop-price-tag{margin:0;color:#8a5a00;background:#fff4dc;border-radius:8px;padding:5px 10px;font-size:.78rem}
.shop-empty,.shop-muted{color:#6c808c}
.shop-disclaimer{margin-top:36px;padding:16px 18px;border:1px dashed #cfe0e3;border-radius:14px;color:#6c808c;font-size:.8rem;line-height:1.75;background:rgba(255,255,255,.6)}
.shop-disclaimer+.shop-disclaimer{margin-top:10px}
.shop-disclaimer a{color:inherit;text-decoration:underline}

.shop-btn{display:inline-block;border:1px solid transparent;border-radius:999px;padding:10px 20px;font-size:.88rem;font-weight:600;cursor:pointer;text-decoration:none;text-align:center;transition:transform .15s ease,box-shadow .2s ease,background .2s ease}
.shop-btn-primary{background:linear-gradient(135deg,#0c7570,#0a5f5c);color:#fff;box-shadow:0 8px 18px -8px rgba(10,95,92,.7)}
.shop-btn-primary:hover{background:linear-gradient(135deg,#0e8a84,#0a6a65);transform:translateY(-1px);box-shadow:0 12px 22px -8px rgba(10,95,92,.75)}
.shop-btn:disabled,.shop-btn.is-disabled{opacity:.45;pointer-events:none}
.shop-link{background:none;border:0;padding:0;color:#087d79;font-size:.84rem;cursor:pointer;text-decoration:none}

/* ---- cart ---- */
.shop-cartbar{position:fixed;right:max(18px,3vw);bottom:calc(22px + env(safe-area-inset-bottom,0px));z-index:30;border:0;border-radius:999px;background:#07192c;color:#fff;padding:14px 22px;font-size:.92rem;box-shadow:0 10px 30px rgba(7,25,44,.28);cursor:pointer}
.shop-cartbar b{margin-left:6px;background:#5ed1c8;color:#07192c;border-radius:999px;padding:1px 9px}
.shop-cart{position:fixed;top:0;right:0;bottom:0;z-index:40;width:min(420px,100%);display:flex;flex-direction:column;background:#fff;box-shadow:-12px 0 40px rgba(7,25,44,.2)}
.shop-cart[hidden]{display:none}
.shop-cart-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #e3edef}
.shop-cart h2{margin:0;font-size:1.1rem}
.shop-cart-head button,.shop-d-head button{border:0;background:none;font-size:1.6rem;line-height:1;cursor:pointer;color:#47606f;min-width:40px;min-height:40px}
.shop-cart-items{flex:1;overflow:auto;padding:8px 20px;overscroll-behavior:contain}
.shop-cart-foot{padding:16px 20px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid #e3edef;display:grid;gap:10px}
.shop-cart-foot p{margin:0;color:#6c808c;font-size:.8rem}
.shop-cart-item{display:flex;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid #eef3f4}
.shop-cart-actions{display:grid;gap:8px;align-content:start}
.shop-spec{margin:6px 0 0;padding-left:18px;color:#5d7180;font-size:.8rem;line-height:1.6}
.shop-item-note{margin:6px 0 0;color:#6c808c;font-size:.78rem}

/* ---- configurator dialog (plain products) ---- */
body:has(.shop-dialog[open]){overflow:hidden}
.shop-dialog{width:min(920px,calc(100% - 24px));max-height:calc(100% - 24px);padding:0;border:0;border-radius:16px;background:#f9fcfc;color:#09243c;overflow:auto;overscroll-behavior:contain}
.shop-dialog::backdrop{background:rgba(7,25,44,.55)}
.shop-d-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 26px 14px;background:#fff;border-bottom:1px solid #e3edef;position:sticky;top:0;z-index:5}
.shop-d-head>div{min-width:0}
.shop-d-head h2{margin:6px 0;font-size:1.5rem;line-height:1.25}
.shop-d-head p{margin:0;color:#637784;font-size:.86rem;line-height:1.6;max-width:72ch}
.shop-d-head .overline{line-height:1.4}
.shop-d-body{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;padding:22px 26px 26px}
.shop-group{border:0;padding:0;margin:0 0 20px;min-width:0}
.shop-group legend{font-weight:600;margin-bottom:8px;padding:0}
.shop-group-help{margin:0 0 8px;color:#6c808c;font-size:.8rem}
.shop-chips{display:flex;flex-wrap:wrap;gap:8px}
.shop-chip{position:relative;display:flex;flex-direction:column;gap:2px;padding:9px 14px;border:1px solid #cfe0e3;border-radius:10px;background:#fff;cursor:pointer;font-size:.85rem;min-width:0}
.shop-chip input{position:absolute;opacity:0;inset:0;cursor:pointer;margin:0}
.shop-chip:has(input:checked){border-color:#0a5f5c;background:#e8f5f3;box-shadow:inset 0 0 0 1px #0a5f5c}
.shop-chip:has(input:focus-visible){outline:2px solid #147da4;outline-offset:2px}
.shop-chip small{color:#7b8d97;font-size:.72rem}
.shop-chip.is-disabled{opacity:.38;cursor:not-allowed}
.shop-chip.is-disabled input{cursor:not-allowed}
.shop-d-summary{align-self:start;position:sticky;top:96px;display:grid;gap:12px;padding:18px;background:#fff;border:1px solid #dbe7ea;border-radius:14px;min-width:0}
.shop-d-summary h3{margin:0;font-size:.95rem}
.shop-d-summary ul{margin:0;padding-left:18px;color:#47606f;font-size:.82rem;line-height:1.7}
.shop-qty,.shop-note{display:grid;gap:6px;font-size:.82rem;color:#47606f}
.shop-qty input,.shop-note textarea,.shop-inq-form input,.shop-inq-form textarea{width:100%;padding:9px 12px;border:1px solid #cfe0e3;border-radius:8px;font:inherit;font-size:1rem;background:#fff;box-sizing:border-box}
.shop-d-error{margin:0;padding:9px 12px;border-radius:8px;background:#fdeceb;color:#a1261c;font-size:.84rem}
.shop-d-info{margin:0;padding:9px 12px;border-radius:8px;background:#e8f5f3;color:#0a5f5c;font-size:.84rem}

/* ---- 3D stage ---- */
.shop-3d[hidden]{display:none}
.shop-3d{position:relative;min-height:260px;border-radius:14px;overflow:hidden;background:radial-gradient(120% 90% at 50% 10%,#16405a 0%,#0a2234 55%,#061320 100%);color:#e8fbf8;isolation:isolate}
.shop-3d-canvas{position:absolute;inset:0}
.shop-3d-canvas canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}
.shop-3d-canvas canvas:active{cursor:grabbing}
.shop-3d-status{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:24px;text-align:center;font-size:.9rem;color:rgba(232,251,248,.8);pointer-events:none}
.shop-3d-status[hidden]{display:none}
.shop-3d-badge{position:absolute;left:12px;top:12px;max-width:calc(100% - 24px);display:grid;gap:2px;padding:10px 14px;border-radius:12px;background:rgba(6,19,32,.62);border:1px solid rgba(94,209,200,.28);backdrop-filter:blur(6px);font-size:.78rem;pointer-events:none}
.shop-3d-badge b{font-size:.88rem;color:#5ed1c8}
.shop-3d-badge span{color:rgba(232,251,248,.86)}
.shop-3d-bar{position:absolute;left:12px;right:12px;bottom:34px;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center}
.shop-3d-views{display:flex;flex-wrap:wrap;gap:6px}
.shop-3d-views button{border:1px solid rgba(94,209,200,.35);background:rgba(6,19,32,.62);color:#d8f6f2;border-radius:999px;padding:6px 12px;font-size:.78rem;cursor:pointer;backdrop-filter:blur(6px);white-space:nowrap}
.shop-3d-views button:hover{background:rgba(94,209,200,.25);color:#fff}
.shop-3d-follow{display:flex;gap:6px;align-items:center;font-size:.76rem;color:rgba(232,251,248,.8);background:rgba(6,19,32,.62);border-radius:999px;padding:6px 12px}
.shop-3d-tip{position:absolute;left:12px;right:12px;bottom:10px;margin:0;font-size:.7rem;color:rgba(232,251,248,.55);pointer-events:none}

/* overlays adapt to the stage's own size; shop.js sets is-narrow / is-short / is-large from a ResizeObserver */
.shop-3d.is-narrow .shop-3d-badge{left:8px;top:8px;padding:6px 10px;font-size:.68rem}
.shop-3d.is-narrow .shop-3d-badge b{font-size:.76rem}
.shop-3d.is-narrow .shop-3d-badge span:nth-child(n+4){display:none}
.shop-3d.is-narrow .shop-3d-bar{left:8px;right:8px;bottom:8px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.shop-3d.is-narrow .shop-3d-views{flex-wrap:nowrap}
.shop-3d.is-narrow .shop-3d-views button{padding:5px 10px;font-size:.72rem}
.shop-3d.is-narrow .shop-3d-follow,.shop-3d.is-narrow .shop-3d-tip{display:none}
.shop-3d.is-short .shop-3d-badge span:nth-child(n+4){display:none}
.shop-3d.is-short .shop-3d-tip{display:none}
.shop-3d.is-short .shop-3d-bar{bottom:8px}
.shop-3d.is-large .shop-3d-badge{font-size:.86rem;padding:12px 16px}
.shop-3d.is-large .shop-3d-badge b{font-size:.98rem}
.shop-3d.is-large .shop-3d-views button{font-size:.84rem;padding:7px 14px}
/* ---- 3D dialog: wide screens = stage left / options right ---- */
.shop-dialog.has-3d{width:min(1400px,calc(100% - 32px));max-width:none;height:min(1000px,calc(100vh - 32px));height:min(1000px,calc(100dvh - 32px));max-height:none;overflow:hidden}
.shop-3d-act[hidden]{display:none}
/* `display:flex` must only apply while open: a bare display value would override the UA rule that hides a closed <dialog>
   and leave the closed configurator stuck at the bottom of the page. */
.shop-dialog:not([open]){display:none}
.shop-dialog.has-3d[open]{display:flex;flex-direction:column}
.shop-dialog.has-3d .shop-d-form{display:flex;flex-direction:column;min-height:0;flex:1}
.shop-dialog.has-3d .shop-d-head{position:static;flex:none}
.shop-dialog.has-3d .shop-d-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"stage groups" "summary groups";gap:16px 22px}
.shop-dialog.has-3d .shop-3d{grid-area:stage;min-height:0}
.shop-dialog.has-3d .shop-d-groups{grid-area:groups;overflow:auto;padding-right:6px;overscroll-behavior:contain}
.shop-dialog.has-3d .shop-d-summary{grid-area:summary;position:static;grid-template-columns:1fr 1fr;align-items:start}
.shop-dialog.has-3d .shop-d-summary h3,.shop-dialog.has-3d .shop-d-summary ul{display:none}
.shop-dialog.has-3d .shop-d-summary .shop-price-tag,.shop-dialog.has-3d .shop-d-summary .shop-d-error,.shop-dialog.has-3d .shop-d-summary .shop-d-info,.shop-dialog.has-3d .shop-d-summary button{grid-column:1/-1}
.shop-dialog.has-3d .shop-note textarea{min-height:0}
@media(min-width:861px){
  .shop-dialog.has-3d .shop-d-summary{grid-template-columns:96px minmax(0,1fr);padding:12px;gap:10px}
  .shop-dialog.has-3d .shop-d-summary .shop-est,.shop-dialog.has-3d .shop-d-summary .shop-price-tag,.shop-dialog.has-3d .shop-d-summary button,.shop-dialog.has-3d .shop-d-summary .shop-d-info,.shop-dialog.has-3d .shop-d-summary .shop-d-error{grid-column:1/-1}
  .shop-dialog.has-3d .shop-note textarea{height:42px;resize:none;padding:8px 12px}
  .shop-dialog.has-3d .shop-note>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .shop-dialog.has-3d .shop-qty{align-self:end}
  .shop-dialog.has-3d .shop-est{position:relative;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:2px 12px;padding:10px 14px}
  .shop-dialog.has-3d .shop-est-value{font-size:1.2rem}
  .shop-dialog.has-3d .shop-est-note{grid-column:1/-1}
  .shop-dialog.has-3d .shop-est-detail ul{position:absolute;right:0;bottom:calc(100% + 8px);width:min(460px,100%);margin:0;padding:12px 14px 12px 30px;background:#fffdf4;border:1px solid #f0dca6;border-radius:12px;box-shadow:0 14px 30px rgba(74,48,0,.18);z-index:8}
}

/* ---- inquiry / done ---- */
.shop-inq{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,400px);gap:28px;padding-top:34px;padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
.shop-inq h2{margin:0 0 12px;font-size:1.3rem}
.shop-inq-list{background:#fff;border:1px solid #dbe7ea;border-radius:14px;padding:22px;align-self:start;min-width:0}
.shop-inq-form{display:grid;gap:12px;background:#fff;border:1px solid #dbe7ea;border-radius:14px;padding:22px;align-self:start;min-width:0}
.shop-inq-form label{display:grid;gap:5px;font-size:.84rem;color:#47606f}
.shop-hint{margin:0;color:#7b8d97;font-size:.78rem}
.shop-trap{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.shop-done{padding-top:calc(82px + clamp(40px,7vw,80px));padding-bottom:110px}
.shop-done h1{font-size:clamp(2rem,5vw,3.6rem);margin:12px 0}
.shop-done p{max-width:620px;color:#47606f;line-height:1.8}
.shop-ref{font-family:ui-monospace,monospace;background:#e8f5f3;color:#0a5f5c;border-radius:6px;padding:3px 10px;overflow-wrap:anywhere}

/* ================= responsive ================= */

/* ultra-wide / large desktop */
@media(min-width:1500px){
  .shop-wrap{max-width:1360px}
  .shop-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr))}
}
@media(min-width:2200px){
  .shop-wrap{max-width:1560px}
  .shop-dialog.has-3d{width:min(1700px,calc(100% - 64px));height:min(1200px,calc(100dvh - 64px))}
}

/* small laptops / tablet landscape: narrower option column, tighter chrome */
@media(max-width:1180px) and (min-width:861px){
  .shop-dialog.has-3d{width:calc(100% - 20px)}
  .shop-dialog.has-3d .shop-d-body{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:14px 16px;padding:16px 18px 18px}
  .shop-d-head{padding:16px 18px 12px}
  .shop-d-head h2{font-size:1.3rem}
}

/* tablet portrait and phones: single column, 3D pinned under the title */
@media(max-width:860px){
  .shop-inq{grid-template-columns:minmax(0,1fr)}
  .shop-d-body{grid-template-columns:minmax(0,1fr)}
  .shop-d-summary{position:static}
  .shop-dialog:not(.has-3d){width:calc(100% - 16px);max-width:none;max-height:calc(100% - 16px)}
  .shop-dialog.has-3d{width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;border-radius:0}
  .shop-dialog.has-3d .shop-d-form{overflow:auto;overscroll-behavior:contain}
  .shop-dialog.has-3d .shop-d-head{position:sticky;top:0;padding:12px 16px 8px}
  .shop-dialog.has-3d .shop-d-head #shop-d-desc{display:none}
  .shop-dialog.has-3d .shop-d-head h2{font-size:1.15rem;margin:2px 0}
  .shop-dialog.has-3d .shop-d-body{display:block;overflow:visible;flex:none;padding:0 16px calc(24px + env(safe-area-inset-bottom,0px))}
  .shop-dialog.has-3d .shop-3d{position:sticky;top:var(--shop-head-h,64px);z-index:4;height:clamp(240px,42dvh,420px);min-height:0;margin:0 -16px 14px;border-radius:0 0 14px 14px}
  .shop-dialog.has-3d .shop-d-groups{overflow:visible;padding-right:0}
  .shop-dialog.has-3d .shop-d-summary{grid-template-columns:1fr}
}

/* phones */
@media(max-width:560px){
  .shop-d-head{padding:14px 16px 10px}
  .shop-d-head h2{font-size:1.25rem}
  .shop-d-head #shop-d-desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
  .shop-d-body{padding:16px}
  .shop-dialog:not(.has-3d){width:100%;max-width:none;max-height:100%;height:100vh;height:100dvh;border-radius:0}
  .shop-tabs{flex-wrap:nowrap;overflow-x:auto;width:100%;box-sizing:border-box;scrollbar-width:none;scroll-snap-type:x proximity}
  .shop-tabs::-webkit-scrollbar{display:none}
  .shop-tab{scroll-snap-align:start}
  .shop-search{width:100%}
  .shop-search input{width:100%}
  .shop-cart{width:100%}
  .shop-cartbar{right:16px}
  .shop-steps li{font-size:.76rem;padding:6px 11px}
  .shop-inq-list,.shop-inq-form{padding:16px}
}

/* landscape phones / very short windows: keep the side-by-side layout, drop the chrome */
@media(max-height:600px) and (min-width:560px){
  .shop-dialog.has-3d{width:100%;max-width:none;height:100vh;height:100dvh;border-radius:0}
  .shop-dialog.has-3d .shop-d-form{overflow:hidden}
  .shop-dialog.has-3d .shop-d-head{position:static;padding:8px 16px 6px}
  .shop-dialog.has-3d .shop-d-head p,.shop-dialog.has-3d .shop-d-head .overline{display:none}
  .shop-dialog.has-3d .shop-d-head h2{font-size:1rem;margin:0}
  .shop-dialog.has-3d .shop-d-body{display:grid;overflow:hidden;flex:1;min-height:0;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:10px 14px;padding:0 14px calc(10px + env(safe-area-inset-bottom,0px))}
  .shop-dialog.has-3d .shop-3d{position:relative;top:auto;height:auto;min-height:0;margin:0;border-radius:12px}
  .shop-dialog.has-3d .shop-d-groups{overflow:auto}
  .shop-dialog.has-3d .shop-d-summary{padding:8px;gap:8px;grid-template-columns:90px minmax(0,1fr) auto;align-items:end}
  .shop-dialog.has-3d .shop-d-summary .shop-price-tag,.shop-dialog.has-3d .shop-d-summary .shop-d-error,.shop-dialog.has-3d .shop-d-summary .shop-d-info{grid-column:1/-1}
  .shop-dialog.has-3d .shop-d-summary button{grid-column:1/-1;white-space:nowrap;padding:10px 18px}
  .shop-dialog.has-3d .shop-d-summary .shop-price-tag{display:none}
  .shop-dialog.has-3d .shop-note textarea{height:40px;resize:none}
  .shop-hero{padding-top:calc(82px + 16px);padding-bottom:28px}
}
@media(max-height:600px) and (min-width:861px){
  .shop-dialog.has-3d .shop-d-body{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
}

/* short desktop windows (laptops, 720p): give the height to the 3D stage */
@media(max-height:820px) and (min-width:861px){
  .shop-dialog.has-3d .shop-d-head #shop-d-desc{display:none}
  .shop-dialog.has-3d .shop-d-head{padding:12px 22px 10px}
  .shop-dialog.has-3d .shop-d-head h2{font-size:1.25rem;margin:2px 0}
  .shop-dialog.has-3d{height:calc(100vh - 20px);height:calc(100dvh - 20px)}
  .shop-dialog.has-3d .shop-d-summary{padding:10px;gap:8px;grid-template-columns:90px minmax(0,1fr) auto;align-items:end}
  .shop-dialog.has-3d .shop-d-summary .shop-price-tag{display:none}
  .shop-dialog.has-3d .shop-d-summary .shop-d-error,.shop-dialog.has-3d .shop-d-summary .shop-d-info{grid-column:1/-1}
  .shop-dialog.has-3d .shop-d-summary button{grid-column:1/-1;white-space:nowrap;padding:10px 18px}
  .shop-dialog.has-3d .shop-note textarea{height:40px;resize:none}
}

/* touch devices: comfortable hit targets */
@media(pointer:coarse){
  .shop-tab{min-height:44px}
  .shop-chip{min-height:44px;justify-content:center}
  .shop-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .shop-3d-views button{min-height:36px}
  .shop-link{min-height:36px;padding:0 4px}
  .shop-cartbar{min-height:48px}
}
@media(prefers-reduced-motion:reduce){.shop-3d-canvas canvas{cursor:default}}

/* ---- reference price (indicative only) ---- */
.shop-est{display:grid;gap:6px;padding:12px 14px;border-radius:12px;background:#fff8e6;border:1px solid #f0dca6;min-width:0}
.shop-est-title{margin:0;font-size:.8rem;color:#7a5200}
.shop-est-title em{font-style:normal;margin-left:6px;padding:1px 8px;border-radius:999px;background:#7a5200;color:#fff;font-size:.68rem}
.shop-est-value{margin:0;font-size:1.35rem;font-weight:700;color:#4a3000;letter-spacing:-.01em;overflow-wrap:anywhere}
.shop-est-detail summary{cursor:pointer;font-size:.78rem;color:#7a5200}
.shop-est-detail ul{margin:6px 0 0;padding-left:16px;font-size:.74rem;line-height:1.6;color:#5d4a1e}
.shop-est-note{margin:0;font-size:.7rem;line-height:1.55;color:#7b6a3f}
.shop-cart-total{margin:0;padding:10px 12px;border-radius:10px;background:#fff8e6;border:1px solid #f0dca6;color:#4a3000;font-size:.82rem;line-height:1.5}
.shop-cart-total[hidden]{display:none}
.shop-item-est{margin:6px 0 0;color:#7a5200;font-size:.8rem;font-weight:600}
.shop-dialog.has-3d .shop-d-summary .shop-est{grid-column:1/-1}
@media(max-height:820px) and (min-width:861px){
  .shop-dialog.has-3d .shop-est{padding:8px 12px}
  .shop-dialog.has-3d .shop-est-value{font-size:1.1rem}
}
@media(max-height:600px) and (min-width:560px){
  .shop-dialog.has-3d .shop-est{padding:6px 10px}
  .shop-dialog.has-3d .shop-est-value{font-size:1rem}
  .shop-dialog.has-3d .shop-est-detail,.shop-dialog.has-3d .shop-est-note{display:none}
}

/* price line in the 3D badge stays visible in every compact mode */
.shop-3d-badge .is-price{color:#ffd98a;font-weight:600}
.shop-3d.is-narrow .shop-3d-badge span.is-price,.shop-3d.is-short .shop-3d-badge span.is-price{display:block}

.shop-chip-section{flex:0 0 100%;margin:8px 0 0;padding-top:8px;border-top:1px dashed #d5e3e6;font-size:.74rem;font-weight:600;letter-spacing:.04em;color:#47606f}
.shop-chips>.shop-chip-section:first-child{margin-top:0;padding-top:0;border-top:0}

/* floating label that follows the part that just changed */
.shop-3d-callout{position:absolute;left:0;top:0;z-index:2;pointer-events:none;padding:5px 11px;border-radius:999px;background:rgba(255,217,138,.97);color:#3b2a00;font-size:.76rem;font-weight:700;white-space:nowrap;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.shop-3d-callout::after{content:"";position:absolute;left:50%;bottom:-4px;width:9px;height:9px;background:inherit;transform:translateX(-50%) rotate(45deg)}
.shop-3d-callout.is-in{animation:shop-callout-in .35s ease-out}
@keyframes shop-callout-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.shop-3d-callout.is-in{animation:none}}

/* ---- Apple-style option prices and one-click models ---- */
.shop-chip-delta{display:block;margin-top:2px;font-style:normal;font-size:.72rem;font-weight:700;color:#7a5200;min-height:1em}
.shop-chip-delta.is-up{color:#9a5b00}
.shop-chip-delta.is-down{color:#0a7a55}
.shop-chip-delta.is-current{color:#0a5f5c;font-weight:600}
.shop-chip:has(input:checked) .shop-chip-delta:not(.is-current){color:#0a5f5c}

/* ---- detailed options: spec badges, per-piece price, CPU filter / sort bar, derived totals ---- */
.shop-chip[hidden],.shop-chip-section[hidden]{display:none}
.shop-chip-name{font-weight:600}
.shop-chip:has(.shop-spec-row){flex:1 1 220px}
.shop-spec-row{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}
.shop-spec-pill{padding:1px 8px;border-radius:999px;background:#eef4f6;color:#365061;font-size:.7rem;line-height:1.55;white-space:nowrap}
.shop-chip:has(input:checked) .shop-spec-pill{background:#cfe9e5;color:#0a4f4c}
.shop-spec-pill.is-note{background:transparent;color:#7b8d97;padding-left:2px}
.shop-chip:has(input:checked) .shop-spec-pill.is-note{background:transparent;color:#47606f}
.shop-chip-price{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 10px;margin-top:2px}
.shop-chip-price .shop-chip-delta{margin-top:0}
.shop-chip-unit{display:block;font-style:normal;font-size:.72rem;color:#5d7180}
.shop-chip-unit:empty{display:none}
.shop-cpu-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 10px}
.shop-cpu-filter{display:flex;flex-wrap:wrap;gap:6px}
.shop-cpu-btn{padding:4px 12px;border:1px solid #cfe0e3;border-radius:999px;background:#fff;color:#365061;font:inherit;font-size:.74rem;cursor:pointer}
.shop-cpu-btn:hover{border-color:#0a5f5c}
.shop-cpu-btn[aria-pressed="true"]{background:#0a5f5c;border-color:#0a5f5c;color:#fff}
.shop-cpu-sort{font-size:.74rem;color:#47606f}
.shop-cpu-sort select{margin-left:4px;padding:3px 6px;border:1px solid #cfe0e3;border-radius:8px;background:#fff;color:inherit;font:inherit;font-size:.74rem}
.shop-cpu-count{margin-left:auto;font-size:.72rem;color:#7b8d97}
.shop-group-calc{margin:0 0 10px;padding:7px 11px;border-radius:9px;background:#fff8e6;border:1px solid #f0dca6;font-size:.76rem;line-height:1.6;color:#5d4a1e}
.shop-group-calc[hidden]{display:none}
.shop-group-calc b{margin-right:2px;color:#4a3000;font-weight:600}
@media(max-width:560px){.shop-cpu-count{margin-left:0;flex:0 0 100%}}
.shop-presets{margin:0 0 18px}
.shop-presets[hidden]{display:none}
.shop-presets-title{margin:0 0 8px;font-weight:600}
.shop-presets-row{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity;scrollbar-width:thin}
.shop-preset{flex:0 0 min(220px,72%);scroll-snap-align:start;display:flex;flex-direction:column;gap:5px;text-align:left;padding:12px 14px;border:1px solid #cfe0e3;border-radius:12px;background:#fff;color:inherit;font:inherit;cursor:pointer}
.shop-preset:hover{border-color:#0a5f5c}
.shop-preset.is-active{border-color:#0a5f5c;background:#e8f5f3;box-shadow:inset 0 0 0 1px #0a5f5c}
.shop-preset b{font-size:.95rem}
.shop-preset-desc{font-size:.74rem;line-height:1.5;color:#5d7180}
.shop-preset-price{margin-top:auto;font-size:.82rem;font-weight:700;color:#7a5200}

/* ---- assembly progress and actions in the 3D stage ---- */
.shop-3d-steps{position:absolute;right:12px;top:12px;z-index:2;display:flex;flex-direction:column;gap:3px;margin:0;padding:8px 12px;list-style:none;border-radius:12px;background:rgba(6,19,32,.62);border:1px solid rgba(94,209,200,.28);backdrop-filter:blur(6px);font-size:.72rem;color:rgba(232,251,248,.5);opacity:0;pointer-events:none;transition:opacity .4s}
.shop-3d-steps.is-on{opacity:1}
.shop-3d-steps li{display:flex;align-items:center;gap:7px;white-space:nowrap}
.shop-3d-steps li::before{content:"";width:7px;height:7px;border-radius:50%;border:1px solid currentColor}
.shop-3d-steps li.is-done{color:#5ed1c8}
.shop-3d-steps li.is-done::before{background:#5ed1c8;border-color:#5ed1c8}
.shop-3d-steps li.is-active{color:#ffd98a;font-weight:700}
.shop-3d-steps li.is-active::before{background:#ffd98a;border-color:#ffd98a;box-shadow:0 0 0 3px rgba(255,217,138,.25)}
.shop-3d-right{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end}
.shop-3d-act{border:1px solid rgba(255,217,138,.55);background:rgba(6,19,32,.62);color:#ffe3a4;border-radius:999px;padding:6px 12px;font-size:.76rem;cursor:pointer;white-space:nowrap;backdrop-filter:blur(6px)}
.shop-3d-act:hover{background:rgba(255,217,138,.22);color:#fff}
.shop-3d-act[hidden]{display:none}
.shop-3d.is-narrow .shop-3d-steps{padding:5px 10px;font-size:.68rem}
.shop-3d.is-narrow .shop-3d-steps li:not(.is-active){display:none}
.shop-3d.is-narrow .shop-3d-steps li.is-active::after{content:"装配中";margin-left:4px;opacity:.7}
.shop-3d.is-narrow .shop-3d-right{flex-wrap:nowrap}
.shop-3d.is-narrow .shop-3d-act{padding:5px 10px;font-size:.72rem}
.shop-3d.is-short .shop-3d-steps li:not(.is-active){display:none}
@media(prefers-reduced-motion:reduce){.shop-3d-steps{transition:none}}

/* ---- storefront switch (goods / services) and typed-number input ---- */
.shop-channels{display:flex;gap:10px;margin:0 0 22px;flex-wrap:wrap}
.shop-channels a{flex:1 1 220px;display:grid;gap:2px;padding:14px 18px;border:1px solid #cfe0e3;border-radius:14px;background:#fff;color:#27475c;text-decoration:none}
.shop-channels a b{font-size:1.02rem}
.shop-channels a small{color:#6c808c;font-size:.78rem}
.shop-channels a:hover{border-color:#0a5f5c}
.shop-channels a.is-active{border-color:#0a5f5c;background:#0a5f5c;color:#fff}
.shop-channels a.is-active small{color:rgba(255,255,255,.78)}
.shop-number{display:inline-flex;align-items:center;gap:10px;font-size:.95rem;color:#47606f}
.shop-number input{width:160px;padding:11px 14px;border:1px solid #cfe0e3;border-radius:10px;font:inherit;font-size:1.1rem;background:#fff;box-sizing:border-box}
.shop-number input:focus{outline:2px solid #147da4;outline-offset:1px}
@media(max-width:560px){.shop-channels a{flex-basis:100%}}

/* ================= visual refresh: storefront switch, configurator, cart, inquiry ================= */
.shop-channels{gap:14px;margin:0 0 24px}
.shop-channels a{position:relative;flex:1 1 260px;gap:3px;padding:16px 20px 16px 64px;border:1px solid var(--qx-line);border-radius:18px;background:#fff;box-shadow:0 1px 2px rgba(7,25,44,.04),0 10px 24px -18px rgba(7,25,44,.25);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.shop-channels a::before{content:"";position:absolute;left:18px;top:50%;width:32px;height:32px;margin-top:-16px;border-radius:10px;background:linear-gradient(135deg,#d9f1ee,#c3e6f3)}
.shop-channels a::after{content:"";position:absolute;left:26px;top:50%;width:16px;height:16px;margin-top:-8px;background:#0a5f5c;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.shop-channels a:nth-child(1){--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18v4H3zM3 14h18v4H3zM6 8h.01M6 16h.01' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")}
.shop-channels a:nth-child(2){--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9zM12 12l8-4.5M12 12v9M12 12L4 7.5' stroke='%23000' stroke-width='1.8' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E")}
.shop-channels a:hover{transform:translateY(-2px);border-color:#9fd3cf}
.shop-channels a.is-active{border-color:transparent;background:linear-gradient(135deg,#0c7570,#0a5f5c 55%,#0b4f5f);box-shadow:0 14px 28px -14px rgba(10,95,92,.7)}
.shop-channels a.is-active::before{background:rgba(255,255,255,.16)}
.shop-channels a.is-active::after{background:#fff}
@media(prefers-reduced-motion:reduce){.shop-channels a,.shop-channels a:hover{transition:none;transform:none}}

/* configurator dialog: dark header, option groups as numbered cards, calmer chips */
.shop-dialog{border-radius:22px;background:#f3f8f9;box-shadow:0 40px 90px -24px rgba(3,14,26,.7)}
.shop-dialog::backdrop{background:rgba(5,18,32,.66);backdrop-filter:blur(3px)}
.shop-d-head{background:linear-gradient(120deg,#07192c 0%,#0d3149 100%);color:#fff;border-bottom:0;padding:20px 28px 16px}
.shop-d-head h2{color:#fff;letter-spacing:-.01em}
.shop-d-head p{color:rgba(239,252,249,.72)}
.shop-d-head .overline{color:#6ed8d0}
.shop-cart-head button,.shop-d-head button{border-radius:50%;transition:background .2s}
.shop-d-head button{color:#fff;background:rgba(255,255,255,.12)}
.shop-d-head button:hover{background:rgba(255,255,255,.22)}
.shop-d-body{background:#f3f8f9}
.shop-d-groups{counter-reset:qxg}
.shop-group{margin:0 0 14px;padding:16px 18px 18px;background:#fff;border:1px solid var(--qx-line);border-radius:18px;box-shadow:0 1px 2px rgba(7,25,44,.03)}
.shop-group legend{float:left;width:100%;display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:0;font-size:1rem;font-weight:700;color:var(--qx-ink)}
.shop-group legend::before{counter-increment:qxg;content:counter(qxg,decimal-leading-zero);display:grid;place-items:center;min-width:28px;height:22px;padding:0 6px;border-radius:7px;background:linear-gradient(135deg,#0c7570,#147da4);color:#fff;font:600 .68rem ui-monospace,monospace;letter-spacing:.04em}
.shop-group legend+*{clear:both}
.shop-group-help{margin:0 0 10px;color:#6c808c;font-size:.8rem;line-height:1.6}
.shop-chips{gap:10px}
.shop-chip{padding:11px 16px;border:1px solid #d6e5e8;border-radius:14px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease}
.shop-chip:hover:not(.is-disabled){border-color:#7cc4bf;transform:translateY(-1px);box-shadow:0 8px 18px -12px rgba(10,95,92,.55)}
.shop-chip:has(input:checked){border-color:#0a5f5c;background:linear-gradient(180deg,#f0fbf9,#e2f4f1);box-shadow:inset 0 0 0 1px #0a5f5c,0 8px 18px -12px rgba(10,95,92,.6)}
.shop-chip:has(input:checked)::after{content:"✓";position:absolute;right:9px;top:9px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#0a5f5c;color:#fff;font-size:.68rem;line-height:1}
.shop-chip:has(input:checked) .shop-chip-name{padding-right:22px}
.shop-chip-section{margin:10px 0 0;padding-top:10px;color:#35566a}
.shop-cpu-tools{padding:10px 12px;border-radius:14px;background:#f3f8f9}
.shop-presets{margin:0 0 14px;padding:16px 18px 6px;background:#fff;border:1px solid var(--qx-line);border-radius:18px}
.shop-presets-title{font-size:1rem;font-weight:700;color:var(--qx-ink)}
.shop-preset{padding:14px 16px;border:1px solid #d6e5e8;border-radius:16px;background:linear-gradient(180deg,#fff,#f7fbfb);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.shop-preset:hover{border-color:#7cc4bf;transform:translateY(-2px);box-shadow:0 12px 22px -14px rgba(10,95,92,.55)}
.shop-preset.is-active{border-color:#0a5f5c;background:linear-gradient(180deg,#f0fbf9,#e2f4f1)}
.shop-preset-price{font-size:.9rem;color:#8a5a00}
@media(prefers-reduced-motion:reduce){.shop-chip,.shop-chip:hover,.shop-preset,.shop-preset:hover{transition:none;transform:none}}
.shop-d-summary{padding:20px;background:#fff;border:1px solid var(--qx-line);border-radius:20px;box-shadow:0 14px 32px -22px rgba(7,25,44,.35)}
.shop-est{padding:14px 16px;border-radius:16px;background:linear-gradient(135deg,#fff9e8,#fff1cc);border-color:#f0d896}
.shop-est-value{font-size:1.5rem;color:#3d2800}
.shop-est-title em{background:linear-gradient(135deg,#8a5a00,#b57a0a)}
.shop-qty input,.shop-note textarea,.shop-inq-form input,.shop-inq-form textarea{border-radius:12px;border-color:#d6e5e8;transition:border-color .15s,box-shadow .15s}
.shop-qty input:focus,.shop-note textarea:focus,.shop-inq-form input:focus,.shop-inq-form textarea:focus{outline:0;border-color:#147da4;box-shadow:0 0 0 3px rgba(20,125,164,.18)}
.shop-d-summary .shop-btn-primary{padding:13px 20px;font-size:.98rem}
.shop-3d{border:1px solid rgba(94,209,200,.18);box-shadow:0 20px 40px -26px rgba(3,14,26,.7)}

/* cart */
.shop-cartbar{display:flex;align-items:center;gap:8px;background:linear-gradient(135deg,#0b2740,#07192c);border:1px solid rgba(94,209,200,.3);padding:13px 20px;font-weight:600;box-shadow:0 14px 34px -10px rgba(7,25,44,.55);transition:transform .18s ease,box-shadow .18s ease}
.shop-cartbar:hover{transform:translateY(-2px);box-shadow:0 18px 38px -10px rgba(7,25,44,.6)}
.shop-cartbar b{margin-left:2px;background:linear-gradient(135deg,#5ed1c8,#7fd4f2)}
.shop-cart{box-shadow:-18px 0 50px rgba(7,25,44,.28);border-top-left-radius:22px;border-bottom-left-radius:22px}
.shop-cart-head{background:linear-gradient(120deg,#07192c,#0d3149);color:#fff;border-bottom:0;border-top-left-radius:22px}
.shop-cart-head h2{color:#fff}
.shop-cart-head button{color:#fff;background:rgba(255,255,255,.12)}
.shop-cart-item{padding:16px 0}
.shop-cart-item .shop-spec,.shop-inq-list .shop-spec{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:3px 14px;font-size:.78rem}
.shop-cart-item .shop-spec li,.shop-inq-list .shop-spec li{padding-left:10px;border-left:2px solid #d6e5e8}
.shop-item-est{margin:8px 0 0;color:#8a5a00;font-weight:700}
.shop-cart-total{border-radius:12px}
@media(max-width:560px){
  .shop-cart,.shop-cart-head{border-radius:0}
  .shop-group{padding:14px 12px 14px;border-radius:16px;margin-bottom:12px}
  .shop-chips{gap:8px}
  .shop-chip{padding:10px 12px;border-radius:12px}
  .shop-presets{padding:14px 12px 4px;border-radius:16px}
  .shop-d-summary{padding:16px;border-radius:18px}
  .shop-d-head button{min-width:44px;min-height:44px;width:44px;height:44px}
}

/* inquiry and confirmation */
.shop-inq-list,.shop-inq-form{border-radius:20px;border-color:var(--qx-line);box-shadow:0 14px 32px -24px rgba(7,25,44,.35)}
.shop-inq h2{font-size:1.25rem;letter-spacing:-.01em}
.shop-done{background:radial-gradient(600px 300px at 20% 0,rgba(94,209,200,.12),transparent 70%)}
