/* ===========================================================
   Extra components + responsive
   =========================================================== */

/* navlink highlight (quote builder) */
.navlink-hl { color: var(--purple); }
.navlink-hl:hover { background: var(--purple-050); color: var(--purple); }

/* mega backdrop */
.mega-backdrop { position: fixed; inset: var(--header-h) 0 0; background: rgba(14,14,16,.28); z-index: 54; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* drawer */
.drawer-root { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.drawer-root.open { pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(14,14,16,.4); opacity: 0; transition: opacity .25s; }
.drawer-root.open .drawer-backdrop { opacity: 1; }
.drawer { position: absolute; top: 0; left: 0; bottom: 0; width: min(92vw, 400px); background: #fff; transform: translateX(-100%); transition: transform .28s cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column; box-shadow: var(--sh-3); }
.drawer-root.open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-search { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-search .hsearch { flex: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px 40px; }
.drawer-cta { display: flex; align-items: center; gap: 10px; background: var(--purple); color: #fff; font-weight: 600; padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; }
.drawer-label { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-45); margin: 18px 0 6px; }
.drawer-cat-head { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; padding: 12px 0; font-size: 15.5px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.drawer-children { padding: 4px 0 10px; }
.drawer-child { display: block; padding: 9px 0 9px 12px; font-size: 14px; color: var(--ink-60); }
.drawer-link { display: block; padding: 11px 0; font-size: 15px; border-bottom: 1px solid var(--line-2); }

/* promo */
.promo { display: grid; grid-template-columns: 1.2fr .9fr; gap: 40px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 48px; overflow: hidden; position: relative; }
.promo::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(21,131,209,.5), transparent 70%); }
.promo-left { position: relative; z-index: 1; }
.promo h2 { font-size: clamp(26px, 3vw, 38px); color: #fff; margin-bottom: 14px; }
.promo p { color: #c2c2cb; max-width: 460px; }
.promo-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.promo-call { color: #fff; border-color: rgba(255,255,255,.25); }
.promo-call:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.promo-right { position: relative; z-index: 1; }
.promo-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 20px; backdrop-filter: blur(6px); }
.promo-line { display: flex; align-items: center; gap: 11px; padding: 9px 0; color: #e4e4ea; border-bottom: 1px solid rgba(255,255,255,.08); }
.promo-tick { width: 22px; height: 22px; border-radius: 50%; background: var(--reman); color: #fff; display: grid; place-items: center; flex: none; }
.promo-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 13px; color: #b9b9c2; }
.promo-foot .chip { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }

/* videos teaser */
.videos-teaser { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); flex-wrap: wrap; }

/* ============ CATEGORY ============ */
.cat-hero { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 28px 0 30px; }
.cat-hero h1 { font-size: clamp(30px, 4vw, 46px); margin: 12px 0 8px; }
.cat-hero p { color: var(--ink-60); max-width: 560px; }
.cat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 36px 0 60px; }
.facets { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.facet-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.facet-group:first-child { padding-top: 0; }
.facet-group h4 { font-family: var(--display); font-size: 14px; margin-bottom: 12px; }
.facet { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 14px; color: var(--ink-60); cursor: pointer; }
.facet input { width: 16px; height: 16px; accent-color: var(--purple); }
.facet:hover { color: var(--ink); }
.cat-main .grouping-head { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 16px; }
.cat-main .grouping-head h3 { font-size: 19px; }
.cat-main .grouping-head .gc { font-size: 13px; color: var(--ink-45); }
.cat-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.cat-toolbar .ct-count { font-size: 14px; color: var(--ink-60); }
.cat-toolbar select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-family: var(--sans); font-size: 14px; background: #fff; }
.grouping-block { margin-bottom: 38px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.pagination button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.mobile-facet-btn { display: none; }

/* ============ PDP ============ */
.pdp { padding: 24px 0 60px; }
.pdp-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.gallery-main .ph { border-radius: 0; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs .gt { width: 72px; height: 72px; border-radius: 10px; border: 2px solid var(--line); overflow: hidden; cursor: pointer; }
.gallery-thumbs .gt.active { border-color: var(--purple); }
.gallery-thumbs .gt .ph { border-radius: 0; }
.pdp-info h1 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0; }
.pdp-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-sku { font-size: 14px; color: var(--ink-45); margin-top: 4px; }
.pdp-price-row { display: flex; align-items: flex-end; gap: 16px; margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.variant-select { margin: 20px 0; }
.variant-select .vlabel { font-size: 13px; font-weight: 600; color: var(--ink-60); margin-bottom: 8px; }
.variant-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; margin-bottom: 8px; background: #fff; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.variant-opt.sel { border-color: var(--purple); background: var(--purple-050); }
.variant-opt .vo-name { font-weight: 600; font-size: 14.5px; }
.variant-opt .vo-sku { font-size: 12.5px; color: var(--ink-45); }
.pdp-actions { display: flex; gap: 12px; align-items: center; margin: 20px 0; flex-wrap: wrap; }
.core-callout { display: flex; gap: 12px; align-items: flex-start; background: var(--reman-bg); border: 1px solid #bfe3d1; color: #166848; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; margin: 16px 0; }
.core-callout svg { flex: none; margin-top: 2px; }
.pdp-section { margin-top: 44px; }
.pdp-section h2 { font-size: 22px; margin-bottom: 16px; }
.crossref-panel { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.crossref-kind { padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.crossref-kind:last-child { border-bottom: 0; }
.crossref-kind .ck-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 10px; }
.crossref-nums { display: flex; flex-wrap: wrap; gap: 8px; }
.xnum { display: inline-flex; align-items: center; gap: 7px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; white-space: nowrap; }
.xnum .xsrc { font-family: var(--sans); font-weight: 500; color: var(--ink-45); font-size: 11.5px; }
.xnum.oem { background: #eef3fb; border-color: #d3e3f6; }
.seo-copy { background: var(--surface-2); border-left: 3px solid var(--purple); border-radius: 0 12px 12px 0; padding: 16px 20px; font-size: 14.5px; color: var(--ink-80); line-height: 1.6; margin-top: 16px; }
.fit-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fit-table th { text-align: left; font-family: var(--display); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-45); padding: 10px 12px; border-bottom: 1.5px solid var(--line); }
.fit-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); }
.fit-table tr:hover, .fit-table tbody tr:hover { background: var(--surface-2); }

/* sticky add bar (mobile pdp) */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none; gap: 10px; align-items: center; box-shadow: 0 -8px 24px -12px rgba(0,0,0,.2); }
.sticky-bar .sb-price { flex: none; }
.sticky-bar .btn { flex: 1; }

/* ============ SEARCH ============ */
.search-page { padding: 30px 0 60px; }
.search-head { margin-bottom: 24px; }
.search-head h1 { font-size: 30px; }
.match-group { margin-bottom: 32px; }
.match-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.match-group-head h3 { font-size: 16px; }
.search-row { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; cursor: pointer; transition: box-shadow .16s, border-color .16s; }
.search-row:hover { box-shadow: var(--sh-2); border-color: transparent; }
.search-row .sr-ph { width: 64px; height: 64px; border-radius: 10px; flex: none; }
.search-row .sr-name { font-weight: 600; font-size: 16px; font-family: var(--display); }
.search-row .sr-sku { font-size: 13px; color: var(--ink-45); margin-top: 2px; }
.matched-chip { background: #fff7df; border-color: #f0e0a8; color: #8a6d00; }
.matched-chip.exact { background: var(--purple-050); border-color: #bfddf5; color: var(--purple); }

/* ============ generic content ============ */
.page-hero { padding: 40px 0 28px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4vw, 52px); margin: 12px 0 0; }
.prose { max-width: 720px; padding: 40px 0 60px; }
.prose h2 { font-size: 26px; margin: 32px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p { color: var(--ink-80); margin-bottom: 14px; line-height: 1.7; }
.prose ul { color: var(--ink-80); line-height: 1.7; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 0; font-family: var(--display); font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-a { padding: 0 0 18px; color: var(--ink-80); line-height: 1.7; }

/* =================== RESPONSIVE =================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { min-height: 320px; }
  .hero-left { padding: 48px 0 40px; max-width: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .promo { grid-template-columns: 1fr; padding: 36px; }
  .pdp-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .header-nav.hide-on-mobile, .hide-on-mobile { display: none !important; }
  .hamburger { display: inline-grid !important; }
  .header-bar { gap: 8px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-layout { grid-template-columns: 1fr; gap: 0; }
  .facets { display: none; }
  .facets.open { display: block; position: fixed; inset: 0; z-index: 130; background: #fff; padding: 20px; overflow: auto; top: 0; }
  .mobile-facet-btn { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section { padding: 44px 0; }
  .sticky-bar { display: flex; }
  .pdp { padding-bottom: 90px; }
  .wrap { padding: 0 16px; }
  .promo { padding: 26px; }
  .videos-teaser { padding: 20px; }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .bigsearch input { font-size: 15px; }
}
/* only-mobile-inline: search icon button shown on mobile only */
.only-mobile-inline { display: none; }
@media (max-width: 760px) { .only-mobile-inline { display: inline-grid; } }
