/* =========================================================
   Shop, product page, quotation and Build my PC
   ========================================================= */

/* ---------- Shop hero + search ---------- */
.shop-hero { padding-bottom: clamp(50px, 6vw, 80px); }
.shop-hero h1 { font-size: clamp(56px, 9vw, 140px); }
.big-search {
  position: relative; display: flex; align-items: center; margin-top: 30px; max-width: 760px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 6px 6px 0 var(--orange);
}
.big-search svg { width: 24px; height: 24px; color: var(--ink); margin-left: 22px; flex-shrink: 0; }
.big-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 18px 16px; font-size: 18px; font-weight: 600; color: var(--ink); outline: none; }
.big-search input::-webkit-search-cancel-button { display: none; }
.bs-clear { width: 40px; height: 40px; margin-right: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); font-size: 22px; line-height: 1; flex-shrink: 0; }
.big-search:focus-within { box-shadow: 8px 8px 0 var(--yellow); }
.hero-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.hero-quick span { color: var(--ash); font-weight: 700; font-size: 14px; margin-right: 4px; }
.hero-quick button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: var(--white); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; transition: background .2s, color .2s; }
.hero-quick button:hover { background: var(--yellow); color: var(--ink); }

/* ---------- Category rail ---------- */
.shop-cats-band { background: var(--yellow); border-block: 3px solid var(--ink); padding: 16px 0; position: sticky; top: var(--header-h); z-index: 20; }
.cat-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 6px; scrollbar-width: thin; }
.cat-chip {
  scroll-snap-align: start; flex-shrink: 0; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 8px 16px 8px 10px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.cat-chip:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.cat-chip .ph-art { width: 34px; stroke-width: 6; }
.cat-chip b { display: block; font-size: 14.5px; line-height: 1.1; white-space: nowrap; }
.cat-chip small { display: block; font-size: 12px; color: var(--ash); font-weight: 700; }
.cat-chip[aria-selected="true"] { background: var(--ink); color: var(--yellow); box-shadow: 3px 3px 0 var(--orange); }
.cat-chip[aria-selected="true"] small { color: var(--mist); }

/* ---------- Builder banner ---------- */
.shop-main { padding-top: 50px; }
.builder-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--orange); border: 3px solid var(--ink); border-radius: 26px; padding: clamp(22px, 3.5vw, 40px);
  box-shadow: 10px 10px 0 var(--ink); margin-bottom: 50px; position: relative; overflow: hidden;
}
.builder-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 30px solid rgba(255,216,77,.35); pointer-events: none; }
.builder-banner h2 { font-size: clamp(40px, 5vw, 72px); }
.builder-banner .hl-o { color: var(--ink); -webkit-text-stroke: 0; color: var(--white); }
.builder-banner p:not(.kicker) { max-width: 46ch; margin: 12px 0 0; font-weight: 600; }
.builder-banner .kicker::before { background: var(--ink); box-shadow: 0 0 0 4px rgba(28,27,26,.2); }
.builder-banner .btn { position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.shop-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 34px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 100px); background: var(--white); border: 2px solid var(--ink); border-radius: 20px; padding: 20px; max-height: calc(100vh - var(--header-h) - 120px); overflow-y: auto; }
.f-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.f-head h3 { font-size: 30px; }
.f-close, .f-apply, .f-open { display: none; }
.f-group { padding: 16px 0; border-top: 2px dashed var(--mist); }
.f-group h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }
.f-hint { font-size: 13px; color: var(--ash); margin: 8px 0 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: var(--white); padding: 9px 4px; font-weight: 800; font-size: 14px; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--yellow); }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; padding: 5px 0; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk > span { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--ink); background: var(--white); flex-shrink: 0; display: grid; place-items: center; transition: background .15s; }
.chk input:checked + span { background: var(--orange); }
.chk input:checked + span::after { content: "✓"; font-size: 13px; font-weight: 900; color: var(--ink); }
.chk input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.chk em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; color: var(--ash); }
.brand-list { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; min-width: 0; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; font-weight: 700; background: var(--white); }
.f-reset { margin-top: 10px; background: none; border: 0; font-weight: 700; text-decoration: underline; padding: 6px 0; }

.results-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 3px solid var(--ink); }
.results-bar h2 { font-size: clamp(36px, 4.4vw, 64px); }
.results-count { margin: 6px 0 0; font-weight: 700; color: var(--steel); }
.results-tools { display: flex; gap: 10px; align-items: center; }
.results-tools select { padding: 11px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); font-weight: 700; min-height: 46px; }
.f-open b { background: var(--ink); color: var(--yellow); border-radius: 999px; min-width: 22px; height: 22px; font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.active-chips:empty { display: none; }
.active-chips button { border: 2px solid var(--ink); background: var(--sun); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.active-chips .chip-clear { background: none; border-color: transparent; text-decoration: underline; }
.shop-grid { margin-top: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 34px; }
.empty-ico { width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); display: grid; place-items: center; animation: floaty 3s ease-in-out infinite; }
.empty-ico .ph-art { width: 56%; }

/* skeleton cards while loading */
.product-card.skeleton { pointer-events: none; }
.skeleton .product-media, .skeleton i { background: linear-gradient(90deg, var(--paper), #fff, var(--paper)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton i { display: block; height: 14px; border-radius: 6px; margin-bottom: 10px; }
.skeleton i:nth-child(2) { width: 70%; } .skeleton i:nth-child(3) { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 1fr; }
  .f-open { display: inline-flex; }
  .filters {
    position: fixed; inset: 0 0 0 auto; z-index: 260; width: min(380px, 92vw); max-height: none; border-radius: 0; border-width: 0 0 0 3px;
    transform: translateX(105%); transition: transform .4s var(--ease); top: 0; padding-bottom: 100px;
    box-shadow: -20px 0 60px rgba(0,0,0,.25);
  }
  .filters.open { transform: none; }
  .f-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); font-size: 26px; line-height: 1; }
  .f-apply { display: flex; width: 100%; margin-top: 16px; }
  .shop-cats-band { top: var(--header-h); }
}
@media (max-width: 560px) {
  .big-search input { font-size: 16px; padding: 15px 10px; }
  .big-search svg { margin-left: 16px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop-grid .product-body { padding: 12px; }
  .shop-grid .product-name { font-size: 15.5px; }
  .shop-grid .product-specs { display: none; }
  .shop-grid .product-meta { font-size: 11px; }
  .shop-grid .price { font-size: 21px; }
  .shop-grid .product-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .shop-grid .add-btn { justify-content: center; }
  .shop-grid .badge { top: 8px; left: 8px; font-size: 10px; padding: 3px 8px; }
  .shop-grid .badge-hot { display: none; }
  .shop-grid .cond { font-size: 10.5px; padding: 3px 8px; white-space: nowrap; }
  .results-tools { width: 100%; }
  .results-tools select { flex: 1; min-width: 0; }
  .builder-banner { box-shadow: 6px 6px 0 var(--ink); }
}

/* ---------- Product page ---------- */
.pdp-main { padding-top: calc(var(--header-h) + 26px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; color: var(--steel); margin-bottom: 22px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs b { color: var(--ink); font-weight: 800; }
.pdp-loading { padding: 80px 0; font-weight: 700; }
.pdp-missing { margin: 30px 0 80px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; padding-bottom: 60px; }
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pg-main {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1;
  background: var(--white); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 10px 10px 0 var(--ink);
}
.pg-main::-webkit-scrollbar { display: none; }
.pg-main img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; padding: 22px; scroll-snap-align: center; cursor: zoom-in; }
.pg-main.pg-ph { overflow: hidden; }
.pg-main.pg-ph .ph { border-radius: 20px; }
.pg-main.pg-ph .ph-art { width: 46%; }
.pg-nav { position: absolute; top: calc(50% - 50px); width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); font-size: 20px; font-weight: 800; box-shadow: 3px 3px 0 var(--ink); z-index: 2; }
.pg-nav.prev { left: 14px; } .pg-nav.next { right: 14px; }
.pg-nav:hover { background: var(--yellow); }
.pg-thumbs { display: flex; gap: 10px; margin-top: 22px; overflow-x: auto; padding: 4px 2px 8px; }
.pg-thumbs button { flex: 0 0 76px; height: 76px; border-radius: 14px; border: 2px solid var(--mist); background: var(--white); padding: 4px; transition: border-color .2s, transform .2s; }
.pg-thumbs button[aria-current] { border-color: var(--ink); transform: translateY(-3px); box-shadow: 3px 3px 0 var(--orange); }
.pg-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pg-badges { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.pg-badges .badge { top: 18px; left: 18px; }
.pg-badges .badge-hot { left: 130px; right: auto; }
.pdp-name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(38px, 4.6vw, 68px); line-height: .95; margin: 4px 0 16px; }
.pdp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pdp-tags .cond { margin: 0; }
.stock-tag, .warranty-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 2px solid var(--ink); background: var(--white); }
.stock-tag.in-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1fb85a; }
.stock-tag.on-order { background: var(--ink); color: var(--sun); }
.pdp-price { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.pdp-price small { display: block; color: var(--steel); font-size: 14px; margin-top: 8px; line-height: 1.45; }
.used-note { background: var(--ink); color: var(--white); border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.used-note b { color: var(--yellow); }
.pdp-buy { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 20px 0 12px; }
.qty.big button { width: 46px; height: 52px; font-size: 22px; }
.qty.big input { width: 52px; border: 0; text-align: center; font-weight: 800; font-size: 18px; background: transparent; -moz-appearance: textfield; }
.qty.big input::-webkit-outer-spin-button, .qty.big input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-big { flex: 1; min-width: 220px; }
.add-big.added { animation: added .7s var(--ease); }
.ask-wa { width: 100%; }
.pdp-box { margin-top: 22px; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 20px; }
.pdp-box h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--mist); font-size: 15.5px; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list li span { color: var(--steel); }
.spec-list li b { text-align: right; }
.spec-list li.plain b { text-align: left; font-weight: 700; padding-left: 18px; position: relative; }
.spec-list li.plain b::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.pdp-desc p { margin: 0 0 12px; color: var(--steel); }
.pdp-desc p:last-child { margin: 0; }
.pdp-perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.related-sec { background: var(--cream); border-top: 3px solid var(--ink); }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(10,10,10,.94); display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; background: var(--white); border-radius: 12px; }
.lb-x { position: absolute; top: 16px; right: 16px; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--ink); background: var(--yellow); font-size: 28px; line-height: 1; z-index: 2; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); font-size: 22px; font-weight: 800; z-index: 2; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .pg-main { box-shadow: 6px 6px 0 var(--ink); border-radius: 18px; }
  .pg-nav { display: none; }
  .add-big { min-width: 0; }
  .pdp-buy .qty { flex-shrink: 0; }
}

/* ---------- Quotation page ---------- */
.quote-hero h1 { font-size: clamp(56px, 9vw, 140px); }
.quote-sec { padding-top: 60px; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 50px); align-items: start; }
.quote-sheet { background: var(--white); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 12px 12px 0 var(--ink); padding: clamp(18px, 3vw, 34px); position: relative; }
.quote-sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--yellow) 0 24px, var(--orange) 24px 48px); border-radius: 20px 20px 0 0; }
.qs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 10px 0 18px; border-bottom: 2px dashed var(--mist); margin-bottom: 18px; flex-wrap: wrap; }
.qs-logo { height: 80px; width: auto; }
.qs-meta { text-align: right; display: grid; gap: 2px; font-size: 14px; font-weight: 600; color: var(--steel); }
.qs-meta b { font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; color: var(--ink); line-height: 1; }
.qs-valid { color: var(--ember); font-weight: 800; }
.q-table { display: grid; }
.q-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 100px 108px 32px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--mist); }
.q-th { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); padding-top: 0; border-bottom: 2px solid var(--ink); }
.q-th span:nth-child(2), .q-th span:nth-child(4), .q-price, .q-line { text-align: right; }
.q-th span:nth-child(3), .q-qty { text-align: center; }
.q-item { display: flex; gap: 12px; align-items: center; min-width: 0; }
.q-thumb { width: 56px; height: 56px; border-radius: 10px; border: 2px solid var(--ink); background: var(--sun); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.q-thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.q-thumb .ph-art { width: 70%; }
.q-item b { display: block; font-size: 15.5px; line-height: 1.25; }
.q-item small { display: block; color: var(--ash); font-weight: 600; font-size: 13px; margin-top: 3px; }
.q-price, .q-line { font-weight: 700; white-space: nowrap; }
.q-line { font-weight: 800; }
.q-row em { font-style: normal; color: var(--ember); font-weight: 800; font-size: 14px; }
.q-rm button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--mist); background: var(--white); font-size: 18px; line-height: 1; color: var(--steel); }
.q-rm button:hover { border-color: var(--ember); color: var(--ember); }
.q-sum { margin-top: 18px; margin-left: auto; max-width: 380px; }
.q-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-weight: 700; }
.q-grand { border-top: 3px solid var(--ink); margin-top: 6px; padding-top: 12px; align-items: baseline; }
.q-grand b { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; }
.q-fine { font-size: 13px; color: var(--steel); margin: 12px 0 0; }
.q-empty { text-align: center; padding: 40px 10px; }
.q-empty p { max-width: 42ch; margin: 10px auto 20px; color: var(--steel); }
.quote-side { position: sticky; top: calc(var(--header-h) + 20px); }
.quote-form { background: var(--ink); color: var(--white); border-radius: 24px; padding: clamp(22px, 3vw, 34px); box-shadow: 10px 10px 0 var(--orange); }
.quote-form h2 { font-size: clamp(40px, 4.4vw, 62px); margin-bottom: 20px; }
.quote-form .field span { color: var(--sun); }
.quote-form .btn { width: 100%; margin-top: 6px; }
.pdf-btn { --bg: var(--white); margin-top: 12px !important; }
.quote-form .note { font-size: 13.5px; color: var(--ash); margin: 14px 0 0; text-align: center; }
.quote-form .note.err { color: var(--sun); font-weight: 800; }
.clear-quote { display: block; margin: 16px auto 0; background: none; border: 0; font-weight: 700; text-decoration: underline; color: var(--ember); padding: 6px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.send-btn { position: relative; overflow: hidden; }
.sb-glow { position: absolute; inset: 0; background: radial-gradient(circle at var(--x, 50%) 50%, rgba(255,255,255,.7), transparent 40%); opacity: 0; pointer-events: none; }
.send-btn.launch { animation: launch 1.1s var(--ease); }
.send-btn.launch .sb-glow { animation: glowsweep 1.1s var(--ease); }
.send-btn.launch .arr { animation: fly 1.1s var(--ease); }
@keyframes launch { 0% { transform: none; } 20% { transform: scale(.96); } 45% { transform: scale(1.04) translateY(-3px); box-shadow: 0 0 0 8px rgba(37,211,102,.35), 6px 6px 0 var(--ink); } 100% { transform: none; } }
@keyframes glowsweep { 0% { opacity: 1; --x: 0%; background-position: -100% 0; } 100% { opacity: 0; } }
@keyframes fly { 0% { transform: none; } 50% { transform: translateX(60px) rotate(-30deg); opacity: 0; } 51% { transform: translateX(-60px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (max-width: 960px) {
  .quote-grid { grid-template-columns: 1fr; }
  .quote-side { position: static; }
}
@media (max-width: 700px) {
  .q-th { display: none; }
  .q-row { grid-template-columns: 1fr auto; grid-template-areas: "item rm" "price price" "qty line"; gap: 8px 12px; padding: 14px 0; }
  .q-item { grid-area: item; } .q-rm { grid-area: rm; } .q-price { grid-area: price; text-align: left; font-size: 14px; color: var(--steel); }
  .q-price::before { content: "Price: "; font-weight: 600; }
  .q-qty { grid-area: qty; text-align: left; } .q-line { grid-area: line; align-self: center; font-size: 17px; }
  .qs-meta { text-align: left; }
  .quote-sheet { box-shadow: 6px 6px 0 var(--ink); }
}
@media print {
  .page-hero, .quote-side, .q-rm, .qty button { display: none !important; }
  .quote-grid { display: block; }
  .quote-sheet { box-shadow: none; border-width: 1px; }
  body { background: #fff; }
}

/* ---------- Build my PC ---------- */
dialog.builder {
  width: min(860px, 96vw); height: min(780px, 94vh); padding: 0; border: 3px solid var(--ink); border-radius: 24px;
  box-shadow: 12px 12px 0 var(--ink); background: var(--paper); color: var(--ink); overflow: hidden;
}
dialog.builder[open] { display: flex; flex-direction: column; }
dialog.builder::backdrop { background: rgba(28,27,26,.65); backdrop-filter: blur(3px); }
.bd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; background: var(--yellow); border-bottom: 3px solid var(--ink); }
.bd-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.bd-head h2 { font-size: clamp(30px, 4vw, 44px); }
.bd-steps { display: flex; gap: 6px; overflow-x: auto; padding: 12px 22px; border-bottom: 2px solid var(--ink); background: var(--white); scrollbar-width: thin; flex-shrink: 0; }
.bd-steps button { flex-shrink: 0; border: 2px solid var(--mist); background: var(--white); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.bd-steps button.done { border-color: var(--ink); background: var(--sun); }
.bd-steps button.cur { border-color: var(--ink); background: var(--ink); color: var(--yellow); }
.bd-crew { display: flex; align-items: center; gap: 12px; padding: 12px 22px 0; flex-shrink: 0; }
.bd-crew .ct-face { width: 48px; height: 48px; border-color: var(--ink); }
.bd-crew p { margin: 0; background: var(--white); border: 2px solid var(--ink); border-radius: 16px 16px 16px 4px; padding: 8px 14px; font-weight: 700; position: relative; }
.bd-crew p small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); font-weight: 800; }
.bd-crew.pop .ct-face { animation: wobble .7s var(--ease); }
.bd-crew.pop p { animation: swapIn .5s var(--ease); }
.bd-search { padding: 12px 22px 0; flex-shrink: 0; }
.bd-search input { width: 100%; padding: 11px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); font-weight: 600; }
.bd-list { flex: 1; overflow-y: auto; padding: 12px 22px 16px; display: grid; gap: 8px; align-content: start; }
.bd-opt { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 8px 14px 8px 8px; border: 2px solid var(--ink); border-radius: 16px; background: var(--white); transition: transform .15s, box-shadow .15s, background .15s; }
.bd-opt:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.bd-opt.sel { background: var(--sun); box-shadow: 3px 3px 0 var(--orange); }
.bd-thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--sun); display: grid; place-items: center; overflow: hidden; border: 2px solid var(--ink); }
.bd-thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.bd-thumb .ph-art { width: 70%; }
.bd-info b { display: block; font-size: 15px; line-height: 1.25; }
.bd-info small { color: var(--ash); font-weight: 600; font-size: 12.5px; }
.bd-opt .price { font-size: 20px; white-space: nowrap; }
.bd-opt .price-req { font-size: 13px; }
.bd-empty { text-align: center; color: var(--steel); padding: 30px 10px; font-weight: 600; }
.bd-review { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bd-review li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.bd-slot { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }
.bd-review b { font-size: 15px; line-height: 1.25; }
.bd-review button { background: none; border: 0; text-decoration: underline; font-weight: 700; font-size: 13px; }
.bd-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 22px; border-top: 3px solid var(--ink); background: var(--white); flex-shrink: 0; }
.bd-total small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.bd-total b { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; }
.bd-total span { display: block; font-size: 13px; color: var(--ember); font-weight: 700; }
.bd-actions { display: flex; gap: 8px; }
.bd-actions .btn-ghost { color: var(--ink); }
@media (max-width: 560px) {
  dialog.builder { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; border: 0; }
  .bd-review li { grid-template-columns: 1fr auto; }
  .bd-slot { grid-column: 1 / -1; }
  .bd-foot { flex-direction: column; align-items: stretch; }
  .bd-actions { justify-content: space-between; }
  .bd-actions .btn { flex: 1; padding-inline: 10px; }
}
