/* ── Griffin Advanced Search Page Styles ─────────────────────────────────────── */

.as-container { max-width: 1600px; margin: 0 auto; padding: 120px 20px 60px; }

/* ── Page Header ── */
.as-header { margin-bottom: 24px; }
.as-header h1 { font-family: 'Teko', sans-serif; font-size: 48px; font-weight: 700; color: #0e1c24; text-transform: uppercase; line-height: 1; }
.as-header h1 span { color: #007cc3; }
.as-header p { font-family: 'Inter', sans-serif; font-size: 15px; color: #6b7280; margin-top: 4px; }

/* ── Search Bar ── */
.as-search { position: relative; max-width: 600px; margin-bottom: 20px; }
.as-search input { width: 100%; padding: 12px 120px 12px 44px; border: 2px solid #d1d5db; border-radius: 8px; font-size: 15px; font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.as-search input:focus { border-color: #007cc3; box-shadow: 0 0 0 3px rgba(0,124,195,0.15); }
.as-search .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 14px; pointer-events: none; }
.as-search .search-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: #007cc3; color: white; border: none; border-radius: 6px; padding: 8px 16px; font-family: 'Teko', sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: background 0.15s; }
.as-search .search-btn:hover { background: #005fa0; }
.as-search .clear-btn { position: absolute; right: 100px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 13px; padding: 4px; }

/* ── Tab Bar ── */
.as-tabs { display: flex; gap: 0; border-bottom: 3px solid #e5e7eb; margin-bottom: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.as-tab { display: flex; align-items: center; gap: 8px; padding: 14px 22px; font-family: 'Teko', sans-serif; font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -3px; white-space: nowrap; transition: color 0.15s, border-color 0.15s; background: none; border-top: none; border-left: none; border-right: none; }
.as-tab:hover { color: #0e1c24; }
.as-tab.active { color: #007cc3; border-bottom-color: #007cc3; }
.as-tab i { font-size: 14px; }

/* ── Main Layout ── */
.as-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
@media (max-width: 992px) { .as-layout { grid-template-columns: 1fr; } }

/* ── Sidebar ── */
.as-sidebar { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; position: sticky; top: 100px; }
@media (max-width: 992px) {
    .as-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 320px; z-index: 100; transform: translateX(-100%); transition: transform 0.3s; overflow-y: auto; border-radius: 0; }
    .as-sidebar.open { transform: translateX(0); }
    .as-sidebar-close { display: flex !important; }
}
.as-sidebar-overlay { display: none; }
@media (max-width: 992px) {
    .as-sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
}

.as-sidebar-close { display: none; position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; background: #f3f4f6; border: none; border-radius: 50%; font-size: 18px; color: #6b7280; cursor: pointer; align-items: center; justify-content: center; }
.as-sidebar-close:hover { background: #ef4444; color: white; }

.filter-group-title { font-family: 'Teko', sans-serif; font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #374151; margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #e5e7eb; }
.filter-group-title:first-child { margin-top: 0; }
.filter-label { display: block; font-size: 12px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.filter-select, .filter-input { width: 100%; padding: 9px 12px; border: 1.5px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: 'Inter', sans-serif; outline: none; background: white; transition: border-color 0.15s; margin-bottom: 10px; }
.filter-select:focus, .filter-input:focus { border-color: #007cc3; box-shadow: 0 0 0 2px rgba(0,124,195,0.12); }
.filter-select:disabled { opacity: 0.4; cursor: not-allowed; }

.dim-range { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.dim-range .sep { color: #9ca3af; font-weight: 700; flex-shrink: 0; }
.dim-range input { flex: 1; min-width: 0; }

.filter-btn { width: 100%; padding: 10px; border-radius: 8px; font-family: 'Teko', sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s; margin-top: 6px; }
.filter-btn-change { background: #dc2626; border: none; color: white; }
.filter-btn-change:hover { background: #b91c1c; }
.filter-btn-clear { background: rgba(196,125,0,0.1); border: 2px solid #d97706; color: #d97706; }
.filter-btn-clear:hover { background: rgba(196,125,0,0.2); }
.filter-btn-reset { background: rgba(220,38,38,0.08); border: 2px solid #dc2626; color: #dc2626; }
.filter-btn-reset:hover { background: rgba(220,38,38,0.15); }

/* ── Mobile filter trigger ── */
.as-filter-trigger { display: none; }
@media (max-width: 992px) {
    .as-filter-trigger { display: inline-flex; align-items: center; gap: 6px; background: #007cc3; color: white; border: none; border-radius: 8px; padding: 10px 18px; font-family: 'Teko', sans-serif; font-size: 18px; font-weight: 600; text-transform: uppercase; cursor: pointer; margin-bottom: 16px; }
}

/* ── Results Area ── */
.as-results { min-width: 0; }

/* ── Product Line Sub-tabs ── */
/* ── Product Line Tabs (chrome-style filled tabs, matches search results page) ── */
.pl-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e2e8f0; margin-bottom: 20px; overflow-x: auto; padding: 0 4px; }
.pl-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px 12px; font-family: 'Teko', sans-serif; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #4a5568; background: #f0f3f7; border: none; border-radius: 10px 10px 0 0; border-bottom: 2px solid transparent; margin-bottom: -2px; text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s; cursor: pointer; }
.pl-tab:hover { color: #1a202c; background: #e2e8f0; }
.pl-tab.active { background: #007cc3; color: #fff; border-bottom-color: #007cc3; }
.pl-tab.disabled { opacity: 0.38; cursor: default; }
.pl-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 800; background: rgba(0,0,0,0.08); color: #4a5568; }
.pl-tab.active .pl-count { background: rgba(255,255,255,0.25); color: #fff; }
/* Per-product-line brand colors (match homepage series cards) */
.pl-tab--exact:not(.disabled):not(.active):hover { background: rgba(197,229,88,0.30); color: #1a202c; }
.pl-tab--exact.active { background: #c5e558; color: #1a202c; border-bottom-color: #c5e558; }
.pl-tab--exact.active .pl-count { background: rgba(0,0,0,0.18); color: #1a202c; }
.pl-tab--perf:not(.disabled):not(.active):hover { background: rgba(25,168,72,0.12); color: #19a848; }
.pl-tab--perf.active { background: #19a848; color: #fff; border-bottom-color: #19a848; }
.pl-tab--perf.active .pl-count { background: rgba(255,255,255,0.25); color: #fff; }
.pl-tab--combo:not(.disabled):not(.active):hover { background: rgba(15,115,174,0.12); color: #0f73ae; }
.pl-tab--combo.active { background: #0f73ae; color: #fff; border-bottom-color: #0f73ae; }
.pl-tab--combo.active .pl-count { background: rgba(255,255,255,0.25); color: #fff; }

/* ── Narrowing Strip ── */
/* ── Narrowing Strip ── */
.narrow-strip { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 18px 22px 14px; margin-bottom: 20px; }
.narrow-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #edf1f5; font-family: 'Teko', sans-serif; font-size: 18px; font-weight: 700; color: #1e293b; text-transform: uppercase; letter-spacing: 0.03em; }
.narrow-clear { font-family: 'Teko', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; color: #b81c1c; text-decoration: none; cursor: pointer; margin-left: auto; background: none; border: none; letter-spacing: 0.03em; }
.narrow-clear:hover { text-decoration: underline; }
.narrow-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; }
.narrow-group + .narrow-group { border-top: 1px solid #f1f5f9; }
.narrow-label { font-family: 'Teko', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #334155; min-width: 110px; }
.narrow-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 16px; border-radius: 20px; border: 1.5px solid #cbd5e1; font-family: 'Teko', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #475569; text-decoration: none; cursor: pointer; transition: all 0.15s; background: #f8fafc; }
.narrow-chip:hover { border-color: #007cc3; color: #007cc3; background: #f0f8ff; }
.narrow-chip.active { background: #007cc3; border-color: #007cc3; color: #fff; }
.narrow-chip.active:hover { background: #0069a8; border-color: #0069a8; }
.narrow-sep { width: 1px; height: 20px; background: #e2e8f0; margin: 0 4px; }

/* ── Results Count ── */
.as-count { font-size: 14px; color: #6b7280; margin-bottom: 14px; }
.as-count strong { color: #0e1c24; font-weight: 700; }

/* ── Product Cards Grid ── */
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 16px; }
@media (max-width: 768px) { .as-grid { grid-template-columns: 1fr; } }

/* ── Product Card ── */
.as-card { background: white; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; }
.as-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-color: #007cc3; }

/* Header structure: top row (part# + dims), then a separate badge row.
   Matches the search-results card design so the two surfaces feel consistent. */
.as-card-header { background: #0e1c24; color: white; padding: 14px 18px; }

/* Staff-only pricing + stock strip on result cards. Same light-pink red-text
   treatment as /search-results and /products/X for consistency across pages. */
.as-card .staff-strip { display: flex; gap: 0; background: #fff5f5; border-top: 2px solid #dc2626; border-bottom: 2px solid #dc2626; }
.as-card .staff-strip .staff-cell { flex: 1 1 0; min-width: 0; padding: 8px 14px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid rgba(220,38,38,0.30); }
.as-card .staff-strip .staff-cell:last-child { border-right: none; }
.as-card .staff-strip .staff-cell.is-stock { flex: 1.4 1 0; }
.as-card .staff-strip .label { font-family: 'Teko', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #dc2626; line-height: 1; }
.as-card .staff-strip .value { font-family: 'Teko', sans-serif; font-size: 18px; font-weight: 600; color: #0e1c24; line-height: 1.15; }
.as-card .staff-strip .stock-fresh { display: block; font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 500; color: #7a90a8; letter-spacing: 0.02em; margin-top: 1px; }
.as-card-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.as-card-pn { font-family: 'Teko', sans-serif; font-size: 30px; font-weight: 900; letter-spacing: 0.01em; line-height: 1; color: #fff; }
.as-card-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.10); }
.as-card-dims { text-align: right; flex-shrink: 0; }
.as-card-dims .dims-main { font-family: 'Teko', sans-serif; font-size: 26px; font-weight: 800; line-height: 1; color: #fff; }
.as-card-dims .dims-label { font-size: 10px; color: rgba(255,255,255,0.35); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.as-card-dims .dims-price { font-family: 'Teko', sans-serif; font-size: 22px; font-weight: 800; color: #60b8f0; margin-top: 4px; }

/* Confidence bar - bumped to 14px for readability. Application gets full row when long. */
.as-card-confidence { background: #f7f9fb; border-bottom: 1px solid #edf0f5; padding: 10px 18px; display: flex; gap: 0; flex-wrap: wrap; row-gap: 4px; }
.conf-item { display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 3px 14px 3px 0; margin-right: 14px; border-right: 1px solid #e2e8f0; white-space: nowrap; }
.conf-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.conf-item i { color: #007cc3; font-size: 12px; flex-shrink: 0; }
.conf-item .conf-label { font-family: 'Teko', sans-serif; color: #6b7280; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; flex-shrink: 0; }
.conf-item .conf-val { color: #1a202c; font-weight: 600; }
.conf-item-application { flex-basis: 100%; white-space: normal; border-right: none; margin-right: 0; padding-right: 0; }
.conf-item-application .conf-val { font-weight: 700; }

/* Card body */
.as-card-body { display: flex; gap: 16px; padding: 16px 18px; }
.as-card-img { width: 140px; height: 120px; flex-shrink: 0; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.as-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.as-card-img .img-placeholder { color: #d1d5db; font-size: 32px; }
.as-card-desc { font-size: 13px; color: #6b7280; border-left: 2px solid #d1d5db; padding-left: 9px; line-height: 1.55; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Red important-note: qualifiers / restrictions / warnings the customer must see.
   Same red the search-results page uses for consistency. */
.as-card-important-note { font-size: 13px; font-weight: 600; color: #dc2626; line-height: 1.4; margin-bottom: 8px; }

.as-card-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; font-size: 14px; }
.spec-row { display: flex; justify-content: space-between; border-bottom: 1px solid #f3f4f6; padding: 3px 0; }
.spec-row .spec-label { color: #6b7280; font-weight: 600; }
.spec-row .spec-val { color: #0e1c24; font-weight: 700; }
/* HP row: full-width, same typography as other spec rows */
.spec-row-hp { grid-column: 1 / -1; }

/* Card footer */
.as-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid #e5e7eb; background: #fafbfc; }
.as-card-footer .detail-btn { background: #007cc3; color: white; border: none; border-radius: 6px; padding: 9px 20px; font-family: 'Teko', sans-serif; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: background 0.15s; display: flex; align-items: center; gap: 6px; }
.as-card-footer .detail-btn:hover { background: #0e1c24; }

/* ── Badges ──
   Sit on dark navy header. Teko font, slightly larger so they read as data
   (not decoration). Feature badges (Trans Cooler / Fan / LS Swap) unify to
   Griffin blue; product-line badges keep their category color. */
.badge { display: inline-block; font-family: 'Teko', sans-serif; font-size: 14px; font-weight: 700; padding: 5px 11px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; line-height: 1; }
/* Product-line badges - each keeps its category color (matches search-results.php) */
.badge-exact     { background: rgba(197,229,88,0.18); color: #c5e558; border: 1px solid rgba(197,229,88,0.45); }
.badge-perf      { background: rgba(25,168,72,0.18); color: #4cd97a; border: 1px solid rgba(25,168,72,0.45); }
.badge-combo     { background: rgba(217,119,6,0.18); color: #f8b450; border: 1px solid rgba(217,119,6,0.45); }
.badge-universal { background: rgba(254,177,54,0.18); color: #feb136; border: 1px solid rgba(254,177,54,0.45); }
/* Feature badges - unified Griffin blue */
.badge-feature { background: rgba(0,124,195,0.18); color: #60b8f0; border: 1px solid rgba(0,124,195,0.45); }
/* Legacy color-named classes (kept for backward compat with other parts of advanced-search) */
.badge-blue    { background: rgba(0,124,195,0.18); color: #60b8f0; border: 1px solid rgba(0,124,195,0.45); }
.badge-green   { background: rgba(25,168,72,0.18); color: #4cd97a; border: 1px solid rgba(25,168,72,0.45); }
.badge-amber   { background: rgba(217,119,6,0.18); color: #f8b450; border: 1px solid rgba(217,119,6,0.45); }
.badge-gray    { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.18); }

/* ── Load More Button ── */
.as-load-more { display: block; width: 100%; max-width: 400px; margin: 24px auto; padding: 14px; background: #0e1c24; color: white; border: none; border-radius: 8px; font-family: 'Teko', sans-serif; font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; transition: background 0.15s; }
.as-load-more:hover { background: #007cc3; }

/* ── Empty State ── */
.as-empty { text-align: center; padding: 60px 20px; }
.as-empty i { font-size: 48px; color: #d1d5db; margin-bottom: 16px; display: block; }
.as-empty h3 { font-family: 'Teko', sans-serif; font-size: 28px; font-weight: 700; text-transform: uppercase; color: #6b7280; margin-bottom: 8px; }
.as-empty p { font-size: 15px; color: #9ca3af; }

/* ── Loading Skeleton ── */
@keyframes skel-pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.skel-bar { background: #e5e7eb; border-radius: 6px; animation: skel-pulse 1.4s ease-in-out infinite; }
.skel-card { background: white; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.skel-card::before { content: ''; display: block; height: 56px; background: #1a2a34; animation: skel-pulse 1.4s ease-in-out infinite; }
.skel-card::after { content: ''; display: block; height: 120px; margin: 16px; background: #f3f4f6; border-radius: 6px; animation: skel-pulse 1.4s ease-in-out infinite; }
@media (max-width: 992px) {
    .skel-card { min-height: 160px; }
}

/* ── Detail Modal. Mirrors /products/X layout ── */
/* Site header is fixed at the top (~80px tall). The overlay sits above it
   in stacking order, but its top padding has to clear the header zone so
   the close-button strip isn't visually overlapped on initial render. */
.as-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 9999; display: flex; align-items: flex-start; justify-content: center; padding: 100px 16px 30px; overflow-y: auto; }
.as-modal { background: white; border-radius: 12px; max-width: 1040px; width: 100%; overflow: visible; margin-bottom: 30px; }

/* Close button row. Thin white strip above the navy hero */
.as-modal .modal-close-row { display: flex; justify-content: flex-end; padding: 10px 14px 0; background: white; border-radius: 12px 12px 0 0; }
.as-modal-close { width: 38px; height: 38px; border-radius: 50%; background: #f3f4f6; border: none; color: #6b7280; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.15s; flex-shrink: 0; }
.as-modal-close:hover { background: #ef4444; color: white; }

/* ===== HERO BLOCK (mirrors product-detail .product-hero) ===== */
.as-modal .product-hero { background: #0e1c24; padding: 18px 24px; color: #fff; margin: 4px 14px 0; border-radius: 8px 8px 0 0; }
.as-modal .hero-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.as-modal .hero-row + .hero-row { margin-top: 12px; }
.as-modal .hero-row-actions { align-items: center; }
.as-modal .hero-identity { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.as-modal .product-partno { font-family: 'Teko', sans-serif; font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: 0.02em; color: #fff; }
.as-modal .product-line-label { font-family: 'Teko', sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.10em; color: #60b8f0; }
.as-modal .hero-price-block { display: flex; align-items: baseline; gap: 8px; }
.as-modal .hero-price-label { font-family: 'Teko', sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.10em; color: #94a3b8; }
.as-modal .hero-price { font-family: 'Teko', sans-serif; font-size: 32px; font-weight: 800; color: #fff; line-height: 1; }
.as-modal .hero-description { font-size: 14px; color: #cbd5e0; line-height: 1.55; }
.as-modal .product-line-logo { height: 38px; width: auto; }
.as-modal .hero-cta-btn { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #007cc3; color: #fff; text-decoration: none; border-radius: 6px; transition: background 0.15s; }
.as-modal .hero-cta-btn:hover { background: #005a8e; color: #fff; }
.as-modal .hero-cta-btn .phone-icon { font-size: 16px; }
.as-modal .hero-cta-btn .text-stack { display: flex; flex-direction: column; line-height: 1.1; }
.as-modal .hero-cta-btn .primary { font-family: 'Teko', sans-serif; font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.as-modal .hero-cta-btn .helper { font-size: 11px; opacity: 0.85; margin-top: 2px; }
.as-modal .product-badges { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.as-modal .badge-feature { background: #007cc3; color: #fff; display: inline-block; padding: 4px 9px; border-radius: 4px; font-family: 'Teko', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== STAFF STRIP (mirrors /products/X. Light pink with red labels) ===== */
.as-modal .staff-strip { display: flex; gap: 0; background: #fff5f5; border-top: 2px solid #dc2626; border-bottom: 2px solid #dc2626; margin: 0 14px; }
.as-modal .staff-strip .staff-cell { flex: 1 1 0; min-width: 0; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid rgba(220,38,38,0.30); }
.as-modal .staff-strip .staff-cell:last-child { border-right: none; }
.as-modal .staff-strip .staff-cell.is-stock { flex: 1.6 1 0; }
.as-modal .staff-strip .label { font-family: 'Teko', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #dc2626; line-height: 1; }
.as-modal .staff-strip .value { font-family: 'Teko', sans-serif; font-size: 20px; font-weight: 600; color: #0e1c24; line-height: 1.15; }
.as-modal .staff-strip .stock-fresh { display: block; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 500; color: #7a90a8; letter-spacing: 0.02em; margin-top: 1px; }

/* ===== PRODUCT BODY CARD ===== */
.as-modal .product-card-body { background: #fff; padding: 22px 24px 24px; margin: 0 14px 14px; border-radius: 0 0 8px 8px; }
.as-modal .product-grid { display: grid; grid-template-columns: minmax(260px, 2fr) 3fr; gap: 30px; }

/* Image area */
.as-modal .product-img-wrap { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 9px; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 240px; cursor: zoom-in; position: relative; }
.as-modal .product-img-wrap img { max-width: 100%; max-height: 280px; object-fit: contain; }
.as-modal .zoom-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.55); color: white; font-size: 11px; padding: 3px 8px; border-radius: 4px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.as-modal .product-thumbs { display: flex; gap: 8px; margin-top: 10px; justify-content: center; }
.as-modal .product-thumb { width: 60px; height: 60px; border-radius: 6px; border: 2px solid #e5e7eb; overflow: hidden; cursor: pointer; background: #f9fafb; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s; }
.as-modal .product-thumb:hover { border-color: #9ca3af; }
.as-modal .product-thumb.active { border-color: #007cc3; box-shadow: 0 0 0 1px #007cc3; }
.as-modal .product-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.as-modal .thumbs-note { text-align: center; font-size: 11px; color: #9ca3af; margin-top: 6px; }

/* Left-column card (Key Specs / What's Included) */
.as-modal .left-card { margin-top: 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(14,28,36,0.04); }
.as-modal .left-card-head { background: #0e1c24; color: #fff; font-family: 'Teko', sans-serif; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 9px 14px; display: flex; align-items: center; gap: 8px; border-bottom: 2px solid #007cc3; }
.as-modal .left-card-head i { color: #60b8f0; font-size: 13px; }
.as-modal .left-card-body { padding: 6px 14px 10px; }
.as-modal .key-specs-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #edf0f5; font-size: 14px; }
.as-modal .key-specs-row:last-child { border: 0; }
.as-modal .key-specs-row .k { color: #4a5568; font-weight: 500; }
.as-modal .key-specs-row .v { color: #0e1c24; font-weight: 700; font-family: 'Teko', sans-serif; font-size: 17px; }

/* What's Included list */
.as-modal .includes-list { list-style: none; margin: 0; padding: 0; }
.as-modal .includes-list li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 14px; color: #0e1c24; border-bottom: 1px dashed #edf0f5; }
.as-modal .includes-list li:last-child { border-bottom: 0; }
.as-modal .includes-list li .ic { color: #19a848; font-size: 12px; margin-top: 4px; flex-shrink: 0; }
.as-modal .includes-list li .nm { font-weight: 600; }
.as-modal .includes-list li .det { font-size: 12px; color: #6b7280; margin-left: 4px; }

/* Notes box */
.as-modal .notes-box { margin-top: 14px; background: #fffbeb; border: 1px solid rgba(217,119,6,0.2); border-left: 3px solid #d97706; padding: 11px 14px; border-radius: 4px; font-size: 13px; color: #92400e; line-height: 1.5; }

/* CU Upsell card (matches the unified brand-blue card from /products) */
.as-modal .cu-upsell-card { display: block; margin-top: 18px; padding: 18px 20px 20px; background: linear-gradient(180deg, #f0f8fc 0%, #e6f3fb 100%); border: 1px solid #007cc3; border-left: 4px solid #007cc3; border-radius: 8px; text-decoration: none; color: #0e1c24; box-shadow: 0 1px 3px rgba(0,124,195,0.10); cursor: pointer; transition: box-shadow 0.15s, transform 0.05s, border-color 0.15s; }
.as-modal .cu-upsell-card:hover { box-shadow: 0 6px 18px rgba(0,124,195,0.28); transform: translateY(-2px); border-color: #005a8e; }
.as-modal .cu-upsell-card:hover .cu-upsell-btn { background: #007cc3; color: #fff; }
.as-modal .cu-upsell-headline { font-family: 'Teko', sans-serif; font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: #005a8e; display: flex; align-items: center; gap: 8px; line-height: 1.05; }
.as-modal .cu-upsell-headline i { font-size: 22px; color: #007cc3; }
.as-modal .cu-upsell-sublabel { font-family: 'Teko', sans-serif; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #4a5568; margin-top: 4px; }
.as-modal .cu-upsell-tagline { font-size: 14px; color: #2d3748; line-height: 1.5; margin-top: 10px; }
.as-modal .cu-upsell-pricerow { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.as-modal .cu-upsell-price { font-family: 'Teko', sans-serif; font-size: 26px; font-weight: 700; color: #005a8e; }
.as-modal .cu-upsell-pricelbl { font-size: 11px; font-weight: 700; color: #4a5568; text-transform: uppercase; letter-spacing: 0.08em; }
.as-modal .cu-upsell-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 12px 16px; border: 2px solid #007cc3; border-radius: 6px; background: #fff; font-family: 'Teko', sans-serif; font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #007cc3; transition: background 0.15s, color 0.15s; }

/* Right-column section titles + spec rows (mirror product-detail) */
.as-modal .section-title { font-family: 'Teko', sans-serif; font-size: 20px; font-weight: 700; text-transform: uppercase; color: #0e1c24; border-bottom: 3px solid #cbd5e0; border-left: 4px solid #007cc3; padding-bottom: 6px; padding-left: 12px; margin-bottom: 12px; margin-top: 26px; }
.as-modal .section-title:first-child { margin-top: 0; }
.as-modal .spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.as-modal .spec-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #edf0f5; font-size: 14px; }
.as-modal .spec-row-fullwidth { grid-column: 1 / -1; }
.as-modal .spec-label { color: #4a5568; }
.as-modal .spec-val { color: #0e1c24; font-weight: 700; font-family: 'Teko', sans-serif; font-size: 16px; }

/* Order or Save action section */
.as-modal .action-section { margin-top: 22px; }
.as-modal .action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.as-modal .action-btn { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px; text-decoration: none; transition: all 0.15s; min-height: 50px; box-sizing: border-box; }
.as-modal .action-btn i { font-size: 16px; flex-shrink: 0; }
.as-modal .action-btn-text { display: flex; flex-direction: column; }
.as-modal .action-btn-label { font-family: 'Teko', sans-serif; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.05; }
.as-modal .action-btn-sub { font-size: 11px; font-weight: 500; line-height: 1.3; margin-top: 2px; opacity: 0.85; }
.as-modal .action-btn-primary { background: #007cc3; color: #fff; }
.as-modal .action-btn-primary:hover { background: #005a8e; color: #fff; text-decoration: none; }
.as-modal .action-btn-secondary { background: #fff; color: #007cc3; border: 1px solid #007cc3; }
.as-modal .action-btn-secondary:hover { background: #007cc3; color: #fff; text-decoration: none; }

/* Fitments collapsible (matches /products) */
.as-modal .fitments-section { margin-top: 22px; }
.as-modal .fitments-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; background: #f7f9fb; border: 1px solid #e2e8f0; border-radius: 6px; cursor: pointer; list-style: none; transition: background 0.15s, border-color 0.15s; }
.as-modal .fitments-summary::-webkit-details-marker { display: none; }
.as-modal .fitments-summary:hover { background: #ecf5fb; border-color: #007cc3; }
.as-modal .fitments-summary .section-title { margin: 0; border: 0; padding: 0; }
.as-modal .fitments-count { color: #6b7280; font-size: 14px; font-weight: 600; }
.as-modal .fitments-toggle { display: flex; align-items: center; gap: 8px; font-family: 'Teko', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; color: #007cc3; letter-spacing: 0.06em; }
.as-modal .fitments-section[open] .fitments-summary { border-radius: 6px 6px 0 0; }
.as-modal .fitments-section[open] .fitments-toggle .show-text { display: none; }
.as-modal .fitments-section:not([open]) .fitments-toggle .hide-text { display: none; }
.as-modal .fitments-section[open] .chev { transform: rotate(180deg); }
.as-modal .chev { transition: transform 0.15s; }
.as-modal .fitments-table { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid #e2e8f0; border-top: none; border-radius: 0 0 6px 6px; }
.as-modal .fitments-table th { background: #0e1c24; color: #fff; font-family: 'Teko', sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 7px 11px; text-align: left; }
.as-modal .fitments-table td { padding: 7px 11px; border-bottom: 1px solid #f0f3f7; color: #4a5568; }
.as-modal .fitments-table tr:hover td { background: #f7f9fb; }

/* ── Mobile: modal adjustments ── */
@media (max-width: 768px) {
    .as-modal-overlay { padding: 16px 8px; }
    .as-modal .product-hero { padding: 14px 16px; margin: 4px 8px 0; }
    .as-modal .product-partno { font-size: 28px; }
    .as-modal .hero-price { font-size: 26px; }
    .as-modal .product-card-body { padding: 16px; margin: 0 8px 8px; }
    .as-modal .product-grid { grid-template-columns: 1fr; gap: 18px; }
    .as-modal .spec-grid { grid-template-columns: 1fr; }
    .as-modal .action-grid { grid-template-columns: 1fr; }
    .as-modal .staff-strip { margin: 0 8px; }
    .as-card-body { flex-direction: column; }
    .as-card-img { width: 100%; height: 160px; }
    .as-card-specs { grid-template-columns: 1fr; }
    .as-card-confidence { flex-wrap: wrap; padding: 8px 14px; }
    .conf-item { font-size: 12px; padding: 2px 10px 2px 0; margin-right: 10px; }
}
@media (max-width: 480px) {
    .as-header h1 { font-size: 36px; }
    .as-tab { padding: 12px 14px; font-size: 16px; }
    .as-tab i { font-size: 12px; }
}

/* ── Lightbox ── */
.as-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 10000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.as-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
