/* SimRigPicker category pages (/parts/*). Shares the design tokens of index.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #E8001C; --red-dark: #B5001A;
  --bg: #0f0f0f; --surface: #181818; --surface2: #212121;
  --border: #2e2e2e; --border-light: #3a3a3a;
  --text: #f0f0f0; --text-muted: #888; --text-dim: #555;
  --green: #22c55e; --amber: #f59e0b;
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;
  --radius: 6px; --radius-lg: 10px;
}
html, body { overflow-x: clip; }
body { font-family: var(--font-ui); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
.accent { color: var(--red); }

/* NAV */
.site-nav { background: rgba(10,10,10,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 52px; display: flex; align-items: center; gap: 16px; }
.logo { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo img { height: 35px; width: auto; object-fit: contain; }
.nav-back { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--text-muted); text-decoration: none; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); transition: all .15s; white-space: nowrap; }
.nav-back:hover { color: var(--text); border-color: var(--border-light); background: var(--surface2); }

/* HERO */
.cat-hero { background: #0a0a0a; border-bottom: 1px solid var(--border); padding: 28px 20px 30px; }
.cat-hero-inner { max-width: 1280px; margin: 0 auto; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.breadcrumb li + li::before { content: '\203A'; margin-right: 6px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.cat-hero h1 { font-family: var(--font-display); font-size: 42px; font-weight: 700; letter-spacing: .5px; line-height: 1.1; margin-bottom: 8px; }
.cat-hero p { color: var(--text-muted); font-size: 15px; max-width: 720px; }

/* LAYOUT */
.picker { max-width: 1280px; width: 100%; margin: 0 auto; padding: 24px 20px; flex: 1; }
.picker-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.picker-filters { position: sticky; top: 68px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); max-height: calc(100vh - 88px); overflow-y: auto; }
.filters-details > summary { list-style: none; cursor: pointer; padding: 12px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.filters-details > summary::-webkit-details-marker { display: none; }
.filters-details > summary::after { content: '\25BE'; float: right; color: var(--text-dim); }
.filters-details[open] > summary::after { content: '\25B4'; }
.filters-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 16px; }
.filter-label { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 4px 11px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface2); color: var(--text-muted); font-size: 12px; font-weight: 500; cursor: pointer; font-family: var(--font-ui); transition: all .15s; }
.chip:hover { border-color: var(--border-light); color: var(--text); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.price-inputs { display: flex; gap: 8px; align-items: center; color: var(--text-dim); font-size: 12px; }
/* Dual-thumb Nm slider: two overlapping range inputs on the same track, each
   with a transparent track/background so only its own thumb is visible. */
.nm-slider { position: relative; height: 20px; }
.nm-slider input[type="range"] {
  position: absolute; left: 0; top: 7px; width: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.nm-slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--border-light); border-radius: 2px; }
.nm-slider input[type="range"]::-moz-range-track { height: 4px; background: var(--border-light); border-radius: 2px; }
.nm-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff; cursor: pointer; margin-top: -6px;
}
.nm-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff; cursor: pointer;
}
.compat-toggle { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text); cursor: pointer; }
.compat-toggle input { accent-color: var(--red); margin-top: 3px; }
.compat-note { font-size: 11px; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }

/* CONTROLS */
.input { background: var(--surface2); border: 1px solid var(--border-light); border-radius: var(--radius); color: var(--text); padding: 8px 10px; font-size: 14px; font-family: var(--font-ui); outline: none; width: 100%; min-width: 0; }
.input:focus { border-color: var(--red); }
.input::placeholder { color: var(--text-dim); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .15s; border: 1px solid transparent; font-family: var(--font-ui); text-align: center; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--red-dark); box-shadow: 0 0 18px rgba(232,0,28,.4); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-light); background: var(--surface2); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn:focus-visible, .chip:focus-visible, .region-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.region-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.region-btn { padding: 8px 14px; font-size: 12px; font-weight: 600; background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-family: var(--font-ui); letter-spacing: .4px; }
.region-btn.active { background: var(--red); color: #fff; }
.region-btn:not(.active):hover { background: var(--surface2); color: var(--text); }

/* RESULTS */
.picker-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.picker-toolbar input[type=search] { flex: 1; min-width: 200px; width: auto; }
.picker-toolbar select { width: auto; }
.notice { padding: 12px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 12px; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); color: var(--amber); }
.notice a { color: var(--text); }
.notice.error { background: rgba(232,0,28,.08); border-color: rgba(232,0,28,.3); color: #ff6b7d; }
.picker-count { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--border-light); transform: translateY(-1px); }
.card.is-selected { border-color: rgba(34,197,94,.5); }
.card-img { background: #fff; border-radius: var(--radius); height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.noimg { display: block; width: 100%; height: 100%; background: var(--surface2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.5'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / 40% no-repeat; }
.card-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.card-brand { font-size: 12px; color: var(--text-muted); margin-top: -4px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 500; background: var(--surface2); border: 1px solid var(--border); color: var(--text-dim); }
.card-price { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-top: auto; }
.card-price.na { color: var(--text-dim); font-size: 14px; font-family: var(--font-ui); font-weight: 500; }
.price-was { font-size: 0.6em; font-weight: 500; color: var(--text-muted); text-decoration: line-through; margin-right: 3px; }
.price-now { color: var(--red); }
.discount-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: rgba(232,0,28,.12); color: var(--red); border: 1px solid rgba(232,0,28,.3); }
.card-actions { display: flex; flex-direction: column; gap: 6px; }
.included-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: rgba(34,197,94,.12); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.outofstock-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: rgba(148,148,148,.14); color: var(--text-dim); border: 1px solid var(--border-light); }
.card.is-outofstock { opacity: .55; }
.card.is-outofstock .card-img { filter: grayscale(.4); }
.notice.included-notice { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.3); color: var(--green); }
.in-build {color: var(--green); font-size: 13px; font-weight: 600; text-align: center; padding: 7px; border: 1px solid rgba(34,197,94,.35); border-radius: var(--radius); }
.empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.empty .btn { margin-left: 6px; }

/* SKELETON */
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skel { background: linear-gradient(90deg, var(--surface2) 25%, #2b2b2b 50%, var(--surface2) 75%); background-size: 200% 100%; animation: sk-shimmer 1.3s linear infinite; border-radius: var(--radius); }
.sk-line { height: 10px; border-radius: 4px; }
.card-skel { pointer-events: none; }
.card-skel:hover { transform: none; border-color: var(--border); }

/* GUIDE */
.cat-guide { max-width: 1280px; width: 100%; margin: 0 auto; padding: 8px 20px 32px; }
.cat-guide-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; max-width: 860px; }
.cat-guide h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.cat-guide p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.cat-guide p + p { margin-top: 10px; }

/* GUIDE HUB (/guides/) */
.guide-hub { max-width: 1280px; width: 100%; margin: 0 auto; padding: 24px 20px 48px; flex: 1; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--border-light); transform: translateY(-1px); }
.guide-card-tag { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--red); }
.guide-card h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.3; }
.guide-card p { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.guide-soon { color: var(--text-dim); font-size: 13px; padding: 18px 20px; border: 1px dashed var(--border); border-radius: var(--radius-lg); }

/* GUIDE ARTICLE (/guides/<slug>.html) */
.guide-article { max-width: 760px; width: 100%; margin: 0 auto; padding: 28px 20px 48px; flex: 1; }
.guide-article .guide-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 18px; }
.guide-article h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 32px 0 10px; }
.guide-article h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 22px 0 8px; }
.guide-article p { color: var(--text-muted); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.guide-article p a, .guide-article li a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-light); }
.guide-article p a:hover, .guide-article li a:hover { text-decoration-color: var(--red); }
.guide-article ul, .guide-article ol { color: var(--text-muted); font-size: 15px; line-height: 1.75; margin: 0 0 14px 20px; }
.guide-article li { margin-bottom: 6px; }
.guide-article table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 14px; }
.guide-article th, .guide-article td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.guide-article th { color: var(--text); font-weight: 600; }
.guide-cta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; margin: 24px 0; }
.guide-cta p { margin-bottom: 10px; }
.guide-figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 10px 0 20px; }
.guide-figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.guide-figure img { width: 100%; height: 150px; object-fit: contain; background: #fff; display: block; padding: 10px; box-sizing: border-box; }
.guide-figure figcaption { padding: 8px 12px 10px; font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.guide-figure figcaption strong { color: var(--text); font-weight: 600; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); background: #0a0a0a; padding: 24px 20px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.category-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
.category-links a, .footer-bottom a { font-size: 12px; color: var(--text-dim); text-decoration: none; }
.category-links a:hover, .footer-bottom a:hover { color: var(--text-muted); }
.category-links a[aria-current] { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); }

/* CARD: image and name open the product details */
button.card-img { width: 100%; border: 0; padding: 0; cursor: pointer; font: inherit; }
.card-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-img:focus-visible, .card-link:focus-visible, .detail-back:focus-visible, .gallery-nav:focus-visible, .gallery-thumb:focus-visible, .compat-chip:focus-visible, .retailer-link:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* PRODUCT DETAIL PAGE (same styles as the build page's #detailOverlay in index.html) */
html:has(.detail-overlay.open) { overflow: hidden; }
.detail-overlay { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 800; overflow-y: auto; }
.detail-overlay.open { display: block; }
.detail-nav { background: rgba(10,10,10,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; padding: 0 20px; height: 52px; display: flex; align-items: center; gap: 16px; }
.detail-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; font-weight: 500; cursor: pointer; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 5px 12px; font-family: var(--font-ui); transition: all .15s; white-space: nowrap; }
.detail-back:hover { color: var(--text); border-color: var(--border-light); background: var(--surface2); }
.detail-breadcrumb { font-size: 12px; color: var(--text-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-breadcrumb span { color: var(--text-muted); }
.detail-body { max-width: 1100px; margin: 0 auto; padding: 32px 20px 60px; }
.detail-hero { display: grid; grid-template-columns: 400px 1fr; gap: 40px; margin-bottom: 40px; }
.detail-img-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; height: 320px; overflow: hidden; position: relative; }
.detail-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.detail-img-wrap img[data-fallback] { width: 60%; height: 60%; }
.detail-badge { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.badge-budget { background: rgba(34,197,94,.15); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.badge-mid { background: rgba(245,158,11,.15); color: var(--amber); border: 1px solid rgba(245,158,11,.3); }
.badge-high { background: rgba(232,0,28,.15); color: var(--red); border: 1px solid rgba(232,0,28,.3); }
.detail-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-cat-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); }
.detail-name { font-family: var(--font-display); font-size: 36px; font-weight: 700; line-height: 1.1; }
.detail-brand { font-size: 13px; color: var(--text-muted); margin-top: -8px; }
.detail-price-block { display: flex; align-items: baseline; gap: 12px; }
.detail-price { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--text); }
.detail-price-note { font-size: 12px; color: var(--text-dim); }
.detail-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-spec { background: var(--surface2); border-radius: var(--radius); padding: 8px 12px; }
.detail-spec-val { font-size: 13px; font-weight: 500; color: var(--text); }
.detail-tags-row { display: flex; gap: 6px; flex-wrap: wrap; }
.spec-tag { padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 500; background: var(--surface2); border: 1px solid var(--border); color: var(--text-dim); }
.detail-gate { font-size: 12px; color: var(--amber); }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; }
.detail-section-hdr { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); background: var(--surface2); }
.detail-section-body { padding: 16px; }
.detail-description { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.compat-list { display: flex; flex-direction: column; gap: 8px; }
.compat-chip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface2); border-radius: var(--radius); cursor: pointer; transition: all .15s; border: 1px solid transparent; text-decoration: none; min-width: 0; }
.compat-chip:hover { border-color: var(--red); background: rgba(232,0,28,.06); }
.compat-chip-icon { font-size: 18px; flex-shrink: 0; }
.compat-chip-icon img { width: 20px; height: 20px; border-radius: 4px; display: block; }
.compat-chip-info { flex: 1; min-width: 0; }
.compat-chip-name { font-size: 13px; font-weight: 500; color: var(--text); }
.compat-chip-sub { font-size: 11px; color: var(--text-dim); }
.compat-chip-status { font-size: 11px; font-weight: 600; flex-shrink: 0; }
.compat-chip-status.status-ok { color: var(--green); }
/* Dense compatible-parts grid (v15 + v16 layers) */
.compat-list.dense-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px; max-height: 280px; overflow-y: auto; padding-right: 6px; }
.compat-list.dense-grid::-webkit-scrollbar { width: 6px; }
.compat-list.dense-grid::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
.compat-list.dense-grid .compat-chip { padding: 5px 8px; gap: 6px; }
.compat-list.dense-grid .compat-chip-icon img { width: 14px; height: 14px; }
.compat-list.dense-grid .compat-chip-name { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compat-list.dense-grid .compat-chip-sub { font-size: 8px; margin-top: 0; }
.compat-list.dense-grid .compat-chip-status { font-size: 9px; }
.retailer-list { display: flex; flex-direction: column; gap: 6px; }
.retailer-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--surface2); border-radius: var(--radius); }
.retailer-name { font-size: 13px; color: var(--text); font-weight: 500; }
.retailer-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--red); text-decoration: none; padding: 4px 10px; border-radius: var(--radius); border: 1px solid rgba(232,0,28,.3); transition: all .15s; white-space: nowrap; }
.retailer-link:hover { background: rgba(232,0,28,.1); border-color: var(--red); }
.warning-box { display: flex; gap: 10px; padding: 12px; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); border-radius: var(--radius); margin-top: 8px; }
.warning-box-icon { font-size: 16px; flex-shrink: 0; }
.warning-box-text { font-size: 13px; color: var(--amber); }
/* Image gallery (product image gallery layer) */
.detail-gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.detail-gallery .detail-img-wrap { width: 100%; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-light); background: rgba(10,10,10,.65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background .15s, border-color .15s; }
.gallery-nav:hover { background: var(--red); border-color: var(--red); }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-counter { position: absolute; bottom: 10px; right: 12px; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; background: rgba(10,10,10,.65); color: var(--text-muted); z-index: 2; }
.gallery-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.gallery-thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radius); border: 2px solid var(--border); background: #fff; padding: 2px; cursor: pointer; overflow: hidden; transition: border-color .15s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumb:hover { border-color: var(--border-light); }
.gallery-thumb.active { border-color: var(--red); }

@media (max-width: 800px) {
  .detail-hero { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .gallery-nav { width: 44px; height: 44px; }
  .gallery-thumb { width: 48px; height: 48px; }
}
@media (max-width: 700px) {
  .detail-sections { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .detail-nav { padding: 0 12px; }
  .detail-back { min-height: 44px; }
  .detail-body { padding: 20px 14px 40px; }
  .detail-name { font-size: 28px; }
  .detail-img-wrap { height: 260px; }
  .compat-chip { min-height: 44px; }
}

@media (max-width: 900px) {
  .picker-layout { grid-template-columns: 1fr; }
  .picker-filters { position: static; max-height: none; }
  .cat-hero h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  .picker { padding: 16px 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 10px; }
  .card-img { height: 120px; }
  .card-name { font-size: 13px; }
  .card-price { font-size: 18px; }
  .btn, .chip, .region-btn { min-height: 44px; }
  .input { min-height: 44px; font-size: 16px; } /* 16px prevents iOS zoom-on-focus */
  .nav-back { padding: 6px 10px; }
}
