/* ============================================================
   HEAVY DUTY PARTS — WORKER PREVIEW OVERRIDES (additive only)
   ds.css + homepage.css are the verbatim Claude Design source and
   are NOT modified here. This file holds preview-build concerns:
   real-logo sizing + the placeholder/honesty marking system.
   ============================================================ */

/* ---- Real brand logos (replace the prototype's CSS text badge) ---- */
.brand-logo{ height:40px; width:auto; display:block; }
.brand-logo-white{ height:34px; width:auto; display:block; }
.drawer .brand-logo-white{ height:30px; }
.site-footer .brand-logo-white{ height:42px; margin-bottom:4px; }
@media(max-width:560px){ .brand-logo{ height:34px; } }

/* ---- Preview honesty system (GOO-160 ruling 3) ----
   Whole preview is behind Basic Auth + noindex. Anything not yet verified
   against Store API or confirmed facts is visibly flagged. */
.preview-bar{
  background:var(--ink); color:var(--yellow);
  font-family:var(--mono); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase;
  text-align:center; padding:7px 16px; line-height:1.45;
  border-bottom:2px solid var(--yellow);
}
.preview-bar b{ color:#fff; font-weight:600; }

/* Inline chip beside a section title for unverified / Phase-2 content. */
.preview-flag{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink); background:var(--yellow-tint);
  border:1px dashed var(--yellow-deep); border-radius:100px;
  padding:4px 10px; margin-top:10px; align-self:flex-start;
}
.preview-flag::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--yellow-deep); flex:none; }
.preview-flag.on-dark{ color:var(--yellow); background:rgba(252,187,32,.10); border-color:var(--yellow); }
.preview-flag.on-dark::before{ background:var(--yellow); }

/* Clean public "showing N of M" listing/search notice (intentional info pill, not the preview-flag dev chip). */
.list-note{ display:inline-flex; align-items:center; gap:7px; font-family:var(--mono); font-size:11px; letter-spacing:.04em; color:var(--steel-500); background:var(--steel-075); border:1px solid var(--steel-150); border-radius:100px; padding:5px 12px; margin-top:10px; align-self:flex-start; }
.list-note::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--steel-300); flex:none; }

/* ---- Fix (2026-06-14): finder cards must not overlap the hero / "We've moved" badge ----
   homepage.css pulls .finder up with margin-top:-44px (-30px <860px), which covers the
   yellow .hero-locbadge in the stacked hero. Replace the negative overlap with a controlled
   positive gap in normal document flow so the badge stays fully visible and the cards sit
   cleanly below it at every width. .wrap.finder specificity (0,2,0) wins over .finder. */
.wrap.finder{ margin-top:clamp(28px,4vw,48px); }
@media(max-width:860px){ .wrap.finder{ margin-top:clamp(20px,5vw,30px); } }
/* Give the stacked hero a touch more bottom room so the badge clears the centered CTA block. */
[data-hero="stacked"] .hero-copy{ padding-bottom:clamp(104px,13vw,168px); }

/* ---- Phase 2C: search results grid (responsive, reuses .prod-tile cards) ---- */
.search-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:18px; }
@media(max-width:480px){ .search-grid{ grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); } }

/* ---- Phase 2H: product detail responsive layout (was inline 2-col, no breakpoint) ----
   Desktop stays two-column (image | info); below 760px it stacks image-first, info-second,
   and the CTAs go full-width so nothing squishes or overflows on phones. */
.pdp-grid{ display:grid; grid-template-columns:1.05fr 1fr; gap:40px; align-items:start; }
.pdp-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top:24px; }
@media(max-width:760px){
  .pdp-grid{ grid-template-columns:1fr; gap:24px; }
  .pdp-cta{ gap:10px; }
  .pdp-cta .btn{ flex:1 1 100%; }
}

/* ---- WhatsApp CTA modal (hosts the embedded GoodCloud group widget) ----
   Kept laid-out-but-invisible (not display:none) so the embedded widget can size on load. */
.wa-modal{ position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center; padding:20px;
  visibility:hidden; opacity:0; transition:opacity .2s ease; }
.wa-modal.open{ visibility:visible; opacity:1; }
.wa-modal .wa-scrim{ position:absolute; inset:0; background:rgba(11,11,12,.62); }
.wa-modal .wa-panel{ position:relative; z-index:1; background:var(--white); border-radius:var(--r-lg); box-shadow:var(--sh-lg);
  width:min(420px,94vw); max-height:88vh; overflow:auto; padding:16px; }
.wa-modal .wa-close{ position:absolute; top:8px; right:12px; z-index:2; background:none; border:none; font-size:26px; line-height:1;
  color:var(--steel-500); cursor:pointer; padding:2px 6px; }
.wa-modal .wa-close:hover{ color:var(--ink); }
.wa-modal .wa-embed{ min-height:300px; }

/* ---- Phase 2F: category-level fallback panel (premium, clearly category — not the exact part) ---- */
.cat-fallback{ position:absolute; inset:0; background:var(--ink); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; overflow:hidden; }
.cat-fallback .cf-pattern{ position:absolute; inset:0; background-color:var(--charcoal);
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size:26px 26px; }
.cat-fallback::before{ content:""; position:absolute; top:0; left:0; right:0; height:4px; z-index:1; background:repeating-linear-gradient(45deg,var(--yellow) 0 10px,var(--ink) 10px 20px); }
.cat-fallback .cf-ico{ position:relative; z-index:1; width:40px; height:40px; color:var(--yellow); stroke:currentColor; stroke-width:1.4; fill:none; stroke-linejoin:round; }
.cat-fallback .cf-text{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:5px; text-align:center; padding:0 12px; }
.cat-fallback .cf-name{ font-family:var(--display); font-weight:700; text-transform:uppercase; letter-spacing:.02em; color:#fff; font-size:clamp(15px,2.2vw,20px); line-height:1; }
.cat-fallback .cf-sub{ font-family:var(--mono); font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--steel-300); }
.cat-fallback .cf-tag{ position:absolute; bottom:8px; right:9px; z-index:1; font-family:var(--mono); font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:var(--steel-300); background:rgba(0,0,0,.45); padding:3px 7px; border-radius:var(--r-xs); }

/* ============================================================
   Phase 2J — Quote basket UI (header indicator, toast, /quote page)
   Quote-led: no prices, no cart. Add to Quote → localStorage basket.
   ============================================================ */

/* Header basket pill + count badge */
.btn-basket{ display:inline-flex; align-items:center; gap:7px; padding:9px 12px; border:1px solid var(--steel-300); border-radius:100px;
  font-family:var(--mono); font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--ink); text-decoration:none; line-height:1; }
.btn-basket:hover{ border-color:var(--ink); }
.btn-basket .bk-label{ font-weight:600; }
.bk-count{ display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px;
  background:var(--yellow); color:var(--ink); border-radius:100px; font-family:var(--mono); font-size:11px; font-weight:700; line-height:1; }
.bk-count[hidden]{ display:none; }
.dnav .bk-count{ margin-left:8px; vertical-align:middle; }
@media(max-width:560px){ .btn-basket .bk-label{ display:none; } .btn-basket{ padding:9px 10px; } }

/* Add-to-quote confirmation toast */
.hdp-toast{ position:fixed; left:50%; bottom:26px; transform:translate(-50%,16px); z-index:300; pointer-events:none;
  background:var(--ink); color:#fff; font-family:var(--mono); font-size:13px; letter-spacing:.02em; text-align:center;
  padding:11px 18px; border-radius:100px; box-shadow:var(--sh-lg,0 10px 30px rgba(0,0,0,.25)); border:1px solid var(--yellow);
  opacity:0; visibility:hidden; transition:opacity .2s ease, transform .2s ease; max-width:90vw; }
.hdp-toast.show{ opacity:1; visibility:visible; transform:translate(-50%,0); }

/* Empty state */
.quote-empty{ text-align:center; padding:44px 16px 56px; color:var(--steel-500); }
.quote-empty .ico-line{ color:var(--steel-300); }
.quote-empty-cta{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:20px; }

/* Filled layout: list + sticky side */
.quote-grid{ display:grid; grid-template-columns:1.4fr .9fr; gap:32px; align-items:start; }
@media(max-width:860px){ .quote-grid{ grid-template-columns:1fr; gap:24px; } }

.quote-list{ display:flex; flex-direction:column; gap:14px; }
.q-row{ display:grid; grid-template-columns:84px 1fr auto; gap:16px; align-items:center;
  background:var(--white,#fff); border:1px solid var(--steel-300); border-radius:var(--r-lg,14px); padding:12px; }
.q-thumb{ display:block; width:84px; height:84px; border-radius:var(--r-xs,8px); overflow:hidden; position:relative; background:var(--ink); }
.q-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.q-fallback{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; text-align:center; padding:4px;
  background:var(--charcoal,#1c1c1e); color:var(--yellow); font-family:var(--display); font-weight:700; font-size:10px; text-transform:uppercase; letter-spacing:.02em; line-height:1.15; }
.q-info{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.q-sku{ font-family:var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--steel-500); }
.q-name{ font-family:var(--display); font-weight:600; font-size:15px; color:var(--ink); text-decoration:none; line-height:1.2; }
.q-name:hover{ color:var(--yellow-dark,#9a6a00); }
.q-cat{ font-family:var(--mono); font-size:11px; color:var(--steel-500); }
.q-note{ margin-top:4px; width:100%; max-width:340px; border:1px solid var(--steel-300); border-radius:var(--r-xs,8px); padding:7px 10px; font-size:13px; font-family:inherit; }
.q-note:focus{ outline:none; border-color:var(--ink); }
.q-ctrl{ display:flex; flex-direction:column; align-items:flex-end; gap:9px; }
.q-stepper{ display:inline-flex; align-items:center; gap:8px; }
.q-step{ width:30px; height:30px; border:1px solid var(--steel-300); background:#fff; border-radius:8px; font-size:16px; line-height:1; cursor:pointer; color:var(--ink); }
.q-step:hover{ border-color:var(--ink); }
.q-qty{ display:inline-block; min-width:24px; text-align:center; font-family:var(--mono); font-weight:600; }
.q-remove{ background:none; border:none; color:var(--steel-500); font-family:var(--mono); font-size:11px; letter-spacing:.04em; text-transform:uppercase; cursor:pointer; padding:0; }
.q-remove:hover{ color:var(--danger,#c0392b); }
@media(max-width:480px){
  .q-row{ grid-template-columns:64px 1fr; }
  .q-thumb{ width:64px; height:64px; }
  .q-ctrl{ grid-column:1 / -1; flex-direction:row; justify-content:space-between; align-items:center; border-top:1px solid var(--steel-300); padding-top:10px; }
}

.quote-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }

/* Side: WhatsApp basket + (disabled) submit form */
.quote-side{ background:var(--white,#fff); border:1px solid var(--steel-300); border-radius:var(--r-lg,14px); padding:18px; position:sticky; top:18px; }
@media(max-width:860px){ .quote-side{ position:static; } }
.quote-form{ display:flex; flex-direction:column; gap:10px; }
.quote-form label{ display:flex; flex-direction:column; gap:4px; font-family:var(--mono); font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:var(--steel-700); }
.quote-form input, .quote-form select, .quote-form textarea{ font-family:inherit; font-size:14px; text-transform:none; letter-spacing:0; color:var(--ink); border:1px solid var(--steel-300); border-radius:var(--r-xs,8px); padding:9px 11px; background:#fff; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus{ outline:none; border-color:var(--ink); }
.quote-form textarea{ resize:vertical; }

/* Disabled CTAs (submit gated until Fluent Forms; WA-basket until ≥1 item) */
.btn.is-disabled, .btn[disabled]{ opacity:.5; pointer-events:none; cursor:not-allowed; }
.pdp-subcta{ margin-top:12px; }

/* ---- Phase 2K: quote submission (honeypot, status message, success panel) ---- */
.hp-field{ position:absolute !important; left:-9999px !important; top:auto; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.quote-msg{ margin-top:12px; padding:10px 13px; border-radius:var(--r-xs,8px); font-size:14px; line-height:1.4; }
.quote-msg.is-info{ background:var(--steel-100,#eef0f2); color:var(--steel-700); }
.quote-msg.is-ok{ background:#e7f6ec; color:#1b7a3d; border:1px solid #b6e2c4; }
.quote-msg.is-err{ background:#fdecec; color:#b3261e; border:1px solid #f5c2c0; }
.quote-success{ text-align:center; padding:48px 16px 56px; }
.quote-success .ico-line{ color:#1b7a3d; }
.quote-success h2{ margin:16px 0 0; }
.quote-success-cta{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:22px; }


/* Phase 2P — editorial imagery: fill dark panels + section backgrounds (overlays keep text readable). */
.ed-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; z-index:0; }
#why{ position:relative; background-image:linear-gradient(rgba(11,11,12,.86),rgba(11,11,12,.93)), url('/media/whybg.webp'); background-size:cover; background-position:center; background-repeat:no-repeat; }
.final-cta{ background-image:linear-gradient(rgba(11,11,12,.80),rgba(11,11,12,.9)), url('/media/ctabg.webp'); background-size:cover; background-position:center; background-repeat:no-repeat; }

/* Phase 2Q.1 — native autocomplete dropdown (portal on <body>; HDP palette; no prices, Worker URLs only). */
.hdp-ac{ position:fixed; z-index:200; background:var(--charcoal); border:1px solid var(--steel-700);
  border-radius:var(--r-lg); overflow-y:auto; max-height:min(64vh,440px);
  box-shadow:0 20px 56px rgba(0,0,0,.55); text-align:left; }
.hdp-ac[hidden]{ display:none; }
.hdp-ac-row{ display:flex; align-items:center; gap:12px; padding:10px 14px; text-decoration:none;
  color:var(--paper); border-bottom:1px solid rgba(255,255,255,.06); cursor:pointer; }
.hdp-ac-row:last-child{ border-bottom:0; }
.hdp-ac-row:hover, .hdp-ac-row.is-active{ background:var(--steel-900); }
.hdp-ac-row.is-active{ box-shadow:inset 3px 0 0 var(--yellow); }
.hdp-ac-thumb{ flex:0 0 42px; width:42px; height:42px; border-radius:var(--r-sm); overflow:hidden;
  background:var(--ink); display:flex; align-items:center; justify-content:center; }
.hdp-ac-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.hdp-ac-ph{ font-family:var(--display); font-weight:700; font-size:18px; color:var(--yellow); line-height:1; }
.hdp-ac-body{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
.hdp-ac-title{ font-size:14px; font-weight:600; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hdp-ac-meta{ font-family:var(--mono); font-size:11px; color:var(--steel-300); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hdp-ac-tag{ flex:0 0 auto; font-family:var(--mono); font-size:9.5px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink); background:var(--yellow); padding:3px 7px; border-radius:999px; font-weight:700; }
.hdp-ac-viewall{ background:#101113; }
.hdp-ac-viewall:hover, .hdp-ac-viewall.is-active{ background:var(--steel-900); }
.hdp-ac-va{ flex:1 1 auto; font-weight:600; color:var(--yellow); font-size:13px; }
.hdp-ac-arrow{ color:var(--yellow); font-weight:700; }
@media (max-width:560px){
  .hdp-ac{ max-height:58vh; }
  .hdp-ac-row{ padding:12px 13px; }
}

/* Content C1 — product "Part details" block (research-column enrichment; no prices). */
.part-specs{ margin-top:28px; max-width:760px; border:1px solid var(--steel-150); border-radius:var(--r-lg); background:var(--white); padding:22px 24px; }
.part-specs .t-h4{ color:var(--ink); }
.spec-list{ margin:0; display:grid; gap:0; }
.spec-row{ display:grid; grid-template-columns:200px 1fr; gap:18px; padding:11px 0; border-top:1px solid var(--steel-075); }
.spec-row:first-child{ border-top:0; }
.spec-row dt{ font-family:var(--mono); font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--steel-500); }
.spec-row dd{ margin:0; font-size:14.5px; color:var(--ink); line-height:1.5; }
.spec-note{ margin:16px 0 0; font-size:12.5px; color:var(--steel-500); line-height:1.5; }
@media (max-width:560px){
  .part-specs{ padding:18px 16px; }
  .spec-row{ grid-template-columns:1fr; gap:3px; padding:10px 0; }
}

/* Content C2 — /guides/ + error-code hub (source-backed reference; no prices). */
.foot-links{ display:flex; flex-wrap:wrap; gap:8px 22px; padding:0 0 16px; margin-bottom:16px; border-bottom:1px solid var(--steel-700); }
.foot-links a{ color:var(--steel-300); text-decoration:none; font-size:14px; }
.foot-links a:hover{ color:var(--yellow); }
.guide-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; }
.guide-card{ display:flex; flex-direction:column; padding:22px 24px; border:1px solid var(--steel-150); border-radius:var(--r-lg); background:var(--white); text-decoration:none; color:var(--ink); transition:border-color .15s, transform .15s; }
.guide-card:hover{ border-color:var(--yellow); transform:translateY(-2px); }
.guide-kicker{ font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--yellow-dark); }
.guide-sub{ color:var(--steel-500); font-size:14px; line-height:1.55; }
.ec-disclaimer{ margin:18px 0 8px; padding:14px 18px; border-left:3px solid var(--yellow); background:var(--yellow-tint); border-radius:var(--r-sm); font-size:13.5px; line-height:1.55; color:var(--ink); }
.ec-tools{ position:sticky; top:64px; z-index:5; display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin:22px 0 18px; padding:10px 0; background:var(--paper); }
.ec-filter-field{ flex:1 1 320px; max-width:480px; }
.ec-groups{ display:flex; flex-direction:column; gap:30px; }
.ec-group-h{ display:flex; align-items:center; gap:10px; margin:0 0 12px; color:var(--ink); padding-bottom:8px; border-bottom:2px solid var(--steel-150); }
.ec-group-n{ font-family:var(--mono); font-size:12px; color:var(--steel-500); font-weight:500; }
.ec-list{ display:flex; flex-direction:column; }
.ec-row{ display:grid; grid-template-columns:96px 1fr; gap:16px; align-items:baseline; padding:9px 6px; border-top:1px solid var(--steel-075); scroll-margin-top:120px; }
.ec-row:first-child{ border-top:0; }
.ec-row:target{ background:var(--yellow-tint); border-radius:var(--r-sm); }
.ec-code{ font-family:var(--mono); font-weight:600; font-size:14px; color:var(--ink); text-decoration:none; }
.ec-code:hover{ color:var(--yellow-dark); }
.ec-desc{ font-size:14px; line-height:1.5; color:var(--steel-700); }
.ec-noresults{ margin-top:20px; padding:16px; text-align:center; color:var(--steel-500); }
.ec-faq{ margin-top:48px; padding-top:32px; border-top:1px solid var(--steel-150); }
.ec-faq-item{ margin-bottom:22px; }
.ec-faq-q{ font-size:16px; margin:0 0 6px; color:var(--ink); }
.ec-faq-a{ margin:0; color:var(--steel-700); font-size:14.5px; line-height:1.6; max-width:72ch; }
.ec-cta{ margin-top:40px; padding:26px 28px; border-radius:var(--r-lg); background:var(--steel-grad); color:#fff; }
.ec-cta h2, .ec-cta p{ color:#fff; }
.ec-cta p{ color:var(--steel-300); }
.btn-ghost{ background:transparent; color:#fff; border:1px solid var(--steel-700); }
.btn-ghost:hover{ border-color:var(--yellow); color:var(--yellow); }
@media (max-width:560px){
  .ec-tools{ top:56px; }
  .ec-row{ grid-template-columns:84px 1fr; gap:12px; }
}

/* ---- B2: troubleshooting guide article prose ---- */
.guide-prose{max-width:720px;color:var(--steel-700);font-size:17px;line-height:1.7;}
.guide-prose h2{font-family:var(--display,inherit);font-size:1.35rem;line-height:1.25;color:var(--ink);margin:30px 0 10px;}
.guide-prose h3{font-size:1.08rem;line-height:1.3;color:var(--ink);margin:22px 0 6px;}
.guide-prose p{margin:0 0 14px;}
.guide-prose ul,.guide-prose ol{margin:0 0 16px;padding-left:22px;}
.guide-prose li{margin:4px 0;}
.guide-prose strong{color:var(--ink);}
.guide-prose blockquote{margin:16px 0;padding:10px 16px;border-left:3px solid var(--hdp-yellow,#FCBB20);background:rgba(0,0,0,.02);color:var(--steel-700);}
