/* =============================================================================
   Quasar Glass bundle pages (quasar-glass-<slug>.html)
   -----------------------------------------------------------------------------
   The page layout is the Safiery product-page layout: the page uses the same
   markup product.html and product-story.js produce (the .pdp hero, the sticky
   .pdp-rail and the .pdp-story sections), styled by store.css. This file only
   adds what a configurable bundle needs on top of it: the configurator and its
   summary, SVG films in the standard film player, and a few bundle details.
   Classes here are .qb-* (plus product.html's own .doc-list, which lives
   inline on product.html rather than in store.css).

   Film line language shared by the Quasar Glass bundle films: solid orange for
   electrical power, dotted cyan for data (--qb-power / --qb-data).
   ========================================================================== */

.qb-page {
  --qb-data: #22d3ee;
  --qb-power: #f5a142;
  --qb-power-hi: #ffe0b0;
  --qb-radar: #e8f4ff;
  --qb-fresh: #6ab8ff;
  --qb-grey: #e8c14f;
  --qb-black: #a08cff;
  --qb-diesel: #e0925a;
  --qb-other: #8c9198;
  --qb-screen: #0d1830;
  --qb-tile: #16233f;
}
.qb-tone-fresh { --qb-tone: var(--qb-fresh); }
.qb-tone-grey { --qb-tone: var(--qb-grey); }
.qb-tone-black { --qb-tone: var(--qb-black); }
.qb-tone-diesel { --qb-tone: var(--qb-diesel); }
.qb-tone-other, .qb-tone-default { --qb-tone: var(--qb-other); }

/* ---- hero (store.css .pdp): the product pages' own hero, plus the badges -- */
.qb-page .pdp-info .qb-hero-text { font-size: 16px; }
.qb-page .pdp-info .qb-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }

/* ---- section intros under a .pdp-story-head ------------------------------------ */
.qb-sec-intro { color: var(--text-dim); font-size: 15.5px; line-height: 1.7; max-width: 68ch; margin: -14px 0 28px; }

/* ---- what comes in the bundle: .pdp-complete-row rows with a quantity ------ */
.qb-included .qb-qty { font: 600 20px/1 var(--mono); color: var(--text); padding: 0 6px; }
.qb-included-note { margin: 14px 0 0; }
.qb-included-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap;
  margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.qb-included-cta > div { display: grid; gap: 4px; }
.qb-included-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mut); font-family: var(--mono); }

/* ---- tank types: the product pages' works-with table ------------------------ */
.qb-types-table tbody th[scope="row"] { position: relative; padding-left: 14px; }
.qb-types-table tbody th[scope="row"]::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--qb-tone); }
.qb-add-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--brand-ink); font-weight: 600; white-space: nowrap; }
.qb-add-link::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid currentColor; font-size: 13px; line-height: 1; }
.qb-types-table td:last-child .qb-add-link { display: flex; width: max-content; }
.qb-status-note { margin: 16px 0 0; max-width: 90ch; font-size: 13px; }
.qb-status-note strong { color: var(--text); }
.qb-status-note a { color: var(--brand-ink); }

/* ---- downloads: product.html's own document-list styles (inline there) ------ */
.qb-page .doc-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.qb-page .doc-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line, #e3e6ea);
  border-radius: 12px; text-decoration: none; color: inherit; background: var(--surface, #101a2c); transition: border-color .15s, box-shadow .15s, transform .15s; }
.qb-page .doc-item:hover { border-color: var(--brand, #3E78BD); box-shadow: 0 4px 16px rgba(62,120,189,.10); transform: translateY(-1px); }
.qb-page .doc-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px;
  background: rgba(62,120,189,.10); color: var(--brand, #3E78BD); }
.qb-page .doc-ico svg { width: 22px; height: 22px; }
.qb-page .doc-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qb-page .doc-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.qb-page .doc-sub { font-size: 12.5px; color: var(--grey, #8C9198); text-transform: uppercase; letter-spacing: .03em; }
.qb-page .doc-dl { flex: none; font-weight: 600; font-size: 13.5px; color: var(--brand, #3E78BD); display: inline-flex; align-items: center; gap: 5px; }
.qb-page .doc-note { margin-top: 16px; font-size: 13.5px; }

/* ---- final call to action, closing the Questions section ----------------------- */
.qb-final { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-top: 28px;
  padding: 24px 26px; border: 1px solid var(--brand-tint2); border-radius: var(--radius); background: var(--brand-tint); }
.qb-final > div { display: grid; gap: 6px; }
.qb-final b { font-size: 18px; }
.qb-final span { color: var(--text-dim); font-size: 14.5px; }

/* ---- film: SVG films in the standard Safiery film player ---------------------- */
.pdp-journey-glass-tank .pdp-journey-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pdp-journey-glass-tank .pdp-journey-poster img { width: min(78%, 330px); height: auto; margin: 0; border-radius: 12px; background: #f4f5f7; }
.qbf-data { fill: none; stroke: var(--qb-data); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .1 9; }
.qbf-power { fill: none; stroke: var(--qb-power); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.qbf-power-hi { fill: none; stroke: var(--qb-power-hi); stroke-width: 4; stroke-linecap: round; }
.qbf-name { font: 700 18px var(--display); fill: var(--text); letter-spacing: -.01em; }
.qbf-pct { font: 600 19px var(--mono); fill: var(--text); }
.qbf-device { font: 600 14px var(--body); fill: var(--text-dim); }
.qbf-small { font: 600 12.5px var(--body); fill: var(--text-dim); }
.qbf-dim { font-weight: 400; fill: var(--text-mut); }
.qbf-tag { font: 600 12px var(--mono); fill: #f5a142; letter-spacing: .04em; }
.qbf-ghost { font: 600 14px var(--body); fill: #c6d6ea; }
.qbf-hdr { font: 500 22px var(--body); fill: #c9d6ea; letter-spacing: .08em; }
.qbf-tile-pct { font: 500 50px var(--body); fill: #f3f7fc; }
.qbf-tile-name { font: 500 23px var(--body); fill: #dfe8f5; }
.qbf-eyebrow { font: 500 12px var(--mono); fill: var(--brand-ink); letter-spacing: .18em; }
.qbf-lineup { font: 700 17px var(--display); fill: var(--text); }
.qbf-qty { font-family: var(--mono); font-weight: 600; fill: var(--brand-ink); }

/* ---- configurator -------------------------------------------------------------- */
.qb-config { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 32px; align-items: start; }
.qb-config-fallback { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--surface); color: var(--text-dim); }
.qb-config-fallback p { margin: 0 0 8px; }
.qb-config-fallback a { color: var(--brand-ink); }
.qb-group { border-top: 1px solid var(--line-2); padding: 22px 0 26px; }
.qb-group:first-child { border-top: 0; padding-top: 0; }
.qb-group-title { font-size: 19px; display: flex; align-items: baseline; gap: 12px; }
.qb-step { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--brand-ink); letter-spacing: .1em; }
.qb-group-intro { color: var(--text-dim); margin: 8px 0 0; font-size: 14.5px; }
.qb-group-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--brand-ink); font-size: 14px; font-weight: 600; }
.qb-group-link svg, .qb-row-link svg { width: 14px; height: 14px; }

.qb-row { display: flex; gap: 14px 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-top: 14px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.qb-row.is-on { border-color: var(--brand-tint2); background: linear-gradient(0deg, var(--brand-tint), var(--brand-tint)), var(--surface); }
.qb-row-main { display: grid; gap: 4px; flex: 1 1 260px; min-width: 0; }
.qb-row-name { font-weight: 700; color: var(--text); font-size: 15.5px; }
.qb-row-note { color: var(--text-dim); font-size: 13.5px; }
.qb-row-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--brand-ink); width: max-content; margin-top: 2px; }
.qb-row-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.qb-row-price { display: grid; justify-items: end; font-family: var(--mono); font-size: 14px; color: var(--text); text-align: right; }
.qb-row-price small { font-size: 11.5px; color: var(--text-mut); }
.qb-row-price.qb-muted { color: var(--text-mut); font-size: 12.5px; }
.qb-row-price.qb-in-package { color: var(--brand-ink); font-size: 12.5px; letter-spacing: .02em; }
.qb-row-price.qb-in-package small { color: var(--text-mut); }
.qb-stock { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.qb-pill { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink);
  padding: 5px 10px; border: 1px solid var(--brand-tint2); border-radius: 100px; background: var(--brand-tint); white-space: nowrap; }

.qb-row-choice .qb-options { display: grid; gap: 10px; flex: 1 1 100%; }
.qb-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.qb-option.is-on { border-color: var(--brand-ink); background: var(--brand-tint); }
.qb-option input { flex: none; width: 18px; height: 18px; accent-color: var(--brand-ink); margin: 0; }
.qb-option-text { display: grid; gap: 3px; flex: 1 1 auto; min-width: 0; }
.qb-option-label { font-weight: 600; font-size: 14.5px; }
.qb-option .qb-row-price { margin-left: auto; }

.qb-check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.qb-check input { flex: none; width: 18px; height: 18px; accent-color: var(--brand-ink); margin: 0; }
.qb-stepper button { width: 40px; height: 40px; }
.qb-stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.qb-stepper.sm button { width: 34px; height: 34px; font-size: 16px; }
.qb-units-count { display: inline-grid; place-items: center; min-width: 40px; height: 40px; font-family: var(--mono); font-size: 16px; color: var(--text); }
.qb-stepper.sm .qb-units-count { min-width: 30px; height: 34px; font-size: 14px; }

.qb-units { margin-top: 14px; }
.qb-units-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap;
  padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-soft); }
.qb-units-prompt { font-weight: 700; font-size: 15.5px; }
.qb-unit-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.qb-unit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 16px; align-items: end;
  padding: 14px 16px 14px 14px; border: 1px solid var(--line); border-left: 3px solid var(--qb-tone, var(--qb-other)); border-radius: 12px; background: var(--surface); }
.qb-unit-index { font-family: var(--mono); font-size: 13px; color: var(--qb-tone, var(--text-mut)); align-self: center; letter-spacing: .06em; }
.qb-unit-fields { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px 12px; }
.qb-field { display: grid; gap: 5px; min-width: 0; }
.qb-field span { font-size: 12px; color: var(--text-mut); }
.qb-field input, .qb-field select { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--bg-soft); color: var(--text); font: inherit; font-size: 16px; }
.qb-field input:focus, .qb-field select:focus { border-color: var(--brand-ink); outline: none; box-shadow: 0 0 0 3px var(--brand-tint2); }
.qb-unit-side { display: grid; justify-items: end; gap: 8px; }
.qb-unit-sensor { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.qb-unit-sensor svg { width: 14px; height: 14px; color: var(--qb-tone, var(--brand-ink)); }
.qb-unit-remove { border: 1px solid var(--line-2); background: transparent; color: var(--text-dim); border-radius: 8px; padding: 6px 11px; font-size: 12.5px; }
.qb-unit-remove[disabled] { opacity: .35; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .qb-unit-remove:not([disabled]):hover { border-color: var(--red); color: var(--red); }
}
.qb-unit-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--text-dim); padding-left: 2px; }
.qb-units-limit { margin: 10px 0 0; font-size: 13.5px; color: var(--amber); }
.qb-units-note { margin: 12px 0 0; }
.qb-units-prices { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.qb-units-prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--text-dim); }

/* summary */
.qb-summary { position: sticky; top: calc(var(--qb-sticky-top, 79px) + 16px); border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); }
.qb-summary-inner { padding: 22px; display: grid; gap: 14px; }
.qb-summary-title { font-size: 19px; }
.qb-summary-lead { margin: 0; color: var(--text-dim); font-size: 14px; }
.qb-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.qb-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 14px; }
.qb-line-qty { font-family: var(--mono); color: var(--brand-ink); }
.qb-line-name { display: grid; gap: 2px; min-width: 0; color: var(--text); }
.qb-line-name small { color: var(--text-mut); font-size: 12.5px; overflow-wrap: anywhere; }
.qb-line-price { font-family: var(--mono); color: var(--text); }
.qb-line.is-missing .qb-line-name { color: var(--text-dim); }
.qb-does { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-dim); }
.qb-does li { display: flex; gap: 8px; align-items: center; }
.qb-does svg { width: 14px; height: 14px; color: var(--brand-ink); }
.qb-summary-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.qb-summary-total-label { font-size: 13px; color: var(--text-mut); }
.qb-summary-total .glass-price { justify-content: flex-end; text-align: right; }
.qb-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qb-issue { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; }
.qb-issue svg { width: 16px; height: 16px; margin-top: 2px; }
.qb-issue p { margin: 0; color: var(--text); }
.qb-issue-block { border-color: rgba(239,106,95,.45); background: rgba(239,106,95,.08); }
.qb-issue-block svg { color: var(--red); }
.qb-issue-warn { border-color: rgba(240,168,60,.4); background: rgba(240,168,60,.07); }
.qb-issue-warn svg { color: var(--amber); }
.qb-issue-info { border-color: var(--brand-tint2); background: var(--brand-tint); }
.qb-issue-info svg { color: var(--brand-ink); }
.qb-issue-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.qb-issue-fix { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 8px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .qb-issue-fix:hover { border-color: var(--brand-ink); color: #b6d6fb; }
}
.qb-actions { display: grid; gap: 10px; }
.qb-actions .btn { width: 100%; white-space: normal; text-align: center; }
.qb-why { margin: 0; color: var(--text-dim); font-size: 13px; }
.qb-share-note { display: grid; gap: 8px; font-size: 13px; color: var(--text-dim); }
.qb-share-note input { width: 100%; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-soft); color: var(--text); font: inherit; font-size: 13px; }
.qb-confirm { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; }
.qb-confirm-ok { border: 1px solid rgba(53,194,116,.45); background: rgba(53,194,116,.08); }
.qb-confirm-warn { border: 1px solid rgba(240,168,60,.45); background: rgba(240,168,60,.08); }
.qb-confirm a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 700; }
.qb-confirm a svg { width: 14px; height: 14px; }
.qb-fine { margin: 0; color: var(--text-mut); font-size: 12.5px; }

/* Glass preview in the summary: the real Glass 4 UI's tile language. */
.qb-preview { margin: 0; display: grid; gap: 8px; justify-items: center; }
.qb-screen { width: min(100%, 236px); aspect-ratio: 1; border-radius: 18px; padding: 11px; box-sizing: border-box;
  background: linear-gradient(160deg, #1c2126, #07090c 55%, #1a1f24); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 16px 30px -18px rgba(0,0,0,.8);
  display: grid; grid-template-rows: auto 1fr auto; gap: 7px; }
.qb-screen-bar, .qb-screen-grid, .qb-screen-dots { background: var(--qb-screen); }
.qb-screen-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 9px 0; border-radius: 8px 8px 0 0;
  font-size: 9px; font-family: var(--body); color: #c9d6ea; letter-spacing: .04em; text-transform: uppercase; }
.qb-screen-bar i { width: 6px; height: 6px; border-radius: 50%; background: #35c274; }
.qb-screen-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: 0 9px 9px; border-radius: 0 0 8px 8px; min-height: 0; }
.qb-tile-empty { place-items: center; align-content: center; background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  border: 1px dashed rgba(255,255,255,.18); color: rgba(255,255,255,.45); font-size: 18px; }
.qb-tile { display: grid; align-content: end; gap: 3px; padding: 7px 8px; border-radius: 8px; background: var(--qb-tile);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); min-width: 0; }
.qb-tile-pct { font-family: var(--body); font-size: 17px; font-weight: 500; color: #f3f7fc; line-height: 1; }
.qb-tile-pct small { font-size: 9px; margin-left: 1px; }
.qb-tile-name { font-size: 9.5px; color: #dfe8f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qb-tile-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.qb-tile-bar i { display: block; height: 100%; border-radius: 3px; background: var(--qb-tone, var(--qb-fresh)); }
.qb-screen-dots { display: flex; justify-content: center; gap: 4px; padding: 0 0 4px; margin-top: -6px; border-radius: 0 0 8px 8px; }
.qb-screen-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.25); }
.qb-screen-dots i.on { background: #fff; }
.qb-preview figcaption { font-size: 12px; color: var(--text-mut); text-align: center; }


/* ---- responsive ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .qb-config { grid-template-columns: minmax(0, 1fr); }
  .qb-summary { position: static; }
}
@media (max-width: 700px) {
  .qb-unit { grid-template-columns: minmax(0, 1fr); }
  .qb-unit-index { display: none; }
  .qb-unit-fields { grid-template-columns: minmax(0, 1fr); }
  .qb-unit-side { grid-auto-flow: column; justify-content: space-between; justify-items: start; align-items: center; }
  .qb-row { padding: 14px; }
  .qb-row-side { margin-left: 0; width: 100%; justify-content: space-between; }
  .qb-option { flex-wrap: wrap; }
  .qb-option .qb-row-price { justify-items: start; text-align: left; margin-left: 30px; }
  .qb-summary-inner { padding: 18px; }
  .qb-final { padding: 20px; }
  .qb-final .btn, .qb-included-cta .btn { width: 100%; }
}
@media (max-width: 380px) {
  .qb-units-head { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .qb-page * { transition: none !important; }
}
