
/* ============================================================ */
/* Main page styles (gallery, buttons, sticky breadcrumbs, mobile responsive)  (source: hl-product.php lines 2899-3832) */
/* ============================================================ */

        .hollander-product-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        .product-main {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            background: #fff;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            margin-bottom: 0;
        }

        @media (max-width: 768px) {
            .product-main {
                grid-template-columns: 1fr;
                gap: 40px;
                padding: 0;
                margin-top: 0;
                background: transparent;
                box-shadow: none;
                border-radius: 0;
            }

            .main-image {
                padding: 10px !important;
                margin-bottom: 10px !important;
            }
        }

        .product-gallery {
            position: sticky;
            top: 20px;
            height: fit-content;
        }

        .main-image {
            width: 100%;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            padding: 20px;
            background: #fafafa;
            margin-bottom: 20px;
            cursor: zoom-in;
            position: relative;
            overflow: hidden;
        }

        .main-image.no-zoom {
            cursor: default;
        }

        .main-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* Desktop hover zoom lens */
        .zoom-lens {
            display: none;
            position: absolute;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            border: 3px solid rgba(37, 99, 235, 0.5);
            box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.15);
            pointer-events: none;
            z-index: 10;
            background-repeat: no-repeat;
        }

        /* No-image placeholder styling */
        .main-image img[src*="no-image"] {
            max-width: 25% !important;
            max-height: 25% !important;
            width: auto !important;
            height: auto !important;
            margin: 0 auto;
        }

        @media (max-width: 768px) {
            .product-gallery {
                position: relative;
            }
        }

        .product-info {
            background: linear-gradient(135deg, rgb(248, 250, 252) 0%, rgb(224, 242, 254) 100%);
            padding: 32px;
            border-radius: 12px;
        }

        /* Legacy centered-with-emboss h1 rule removed — v2 uses the mockup
         * `.title` class (left-aligned, 48–52px, no text-shadow). Styling
         * lives in v2-legacy-bridge-v143.css `.title`. */

        .price-section {
            margin-top: 10px;
        }

        .price-label {
            font-size: 14px;
            font-weight: 600;
            color: #374151;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin: 0;
        }

        .stock-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #dcfce7;
            color: #166534;
            padding: 6px 12px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 14px;
        }

        .product-price {
            text-align: center;
            margin: 8px 0 4px 0;
        }

        .price-value .price-sign {
            font-size: 24px;
            font-weight: 700;
            color: #0c4a6e;
            vertical-align: top;
        }

        .price-value .price-number {
            font-size: 48px;
            font-weight: 700;
            color: #0c4a6e;
            line-height: 1;
        }

        .price-value .price-cents {
            font-size: 32px;
            font-weight: 700;
            color: #0c4a6e;
            vertical-align: top;
        }

        .price-savings {
            display: inline-block;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 700;
            font-size: 14px;
            margin: 8px 0;
        }

        .product-condition {
            display: inline-block;
            background: #fef3c7;
            color: #92400e;
            padding: 6px 12px;
            border-radius: 6px;
            font-weight: 600;
            margin-bottom: 20px;
        }

        .product-description {
            color: #4b5563;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .product-features {
            margin-bottom: 30px;
        }

        .product-features h3 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .product-features ul {
            list-style: none;
            padding: 0;
        }

        .product-features li {
            padding: 8px 0;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
        }

        .product-features li strong {
            color: #1f2937;
        }

        .features-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .features-list li {
            padding: 12px 0;
            border-bottom: 1px solid #f3f4f6;
            display: flex;
            align-items: center;
            gap: 12px;
            color: #374151;
        }

        .features-list li:before {
            content: "✓";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            background: #10b981;
            color: white;
            border-radius: 50%;
            font-weight: bold;
            flex-shrink: 0;
        }

        .features-list li:last-child {
            border-bottom: none;
        }

        .add-to-cart-section {
            padding: 24px;
            background: rgb(249, 250, 251);
            border-radius: 10px;
            display: flex;
            justify-content: center;
        }

        .product-page-buttons-wrapper {
            display: flex;
            gap: 12px;
            align-items: stretch;
            margin-top: 0;
            max-width: 508px;
            width: 100%;
        }

        /* Add to Cart + Buy Now styling is owned by the v2 bridge CSS
         * (.price-card .buy-col .btn.primary.btn-add-to-cart and the Bolt
         * .btn.secondary override). Legacy blue-gradient rules removed so
         * they don't compete with the mockup ink-gradient look. */

        /* Delivery Estimate Section — mockup-v12-hl design lives in the v2
         * bridge CSS (.delivery-estimate-section / -header / -dates / -countdown).
         * Legacy green-centered inline rules removed to avoid specificity fights. */

        .core-tooltip:hover .core-tooltip-text {
            visibility: visible !important;
            opacity: 1 !important;
        }

        @media (max-width: 768px) {
            .core-tooltip-text {
                left: calc(50% - 40px) !important;
                right: auto !important;
                transform: translateX(-50%) !important;
            }
            .core-tooltip-text span[style*="right: 10px"] {
                left: 50% !important;
                right: auto !important;
                transform: translateX(-50%) !important;
            }
        }

        .bolt-product-checkout-button {
            flex: 1;
            min-height: 54px;
            --bolt-primary-action-color: rgba(245, 158, 11, 1) !important;
            --bolt-primary-action-box-shadow-color: rgba(245, 158, 11, 0.4) !important;
            --bolt-button-hover-color: rgba(206, 132, 8, 1) !important;
        }

        .bolt-product-checkout-button .bolt-checkout-button {
            width: 100% !important;
        }

        .bolt-product-checkout-button [data-tid="bolt-checkout-button"] {
            transition: transform 0.3s ease, box-shadow 0.3s ease !important;
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4) !important;
            min-width: 0 !important;
            width: 100% !important;
        }

        .bolt-product-checkout-button [data-tid="bolt-checkout-button"] img {
            margin-right: -20px !important;
        }

        .bolt-product-checkout-button [data-tid="bolt-checkout-button"]:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6) !important;
        }

        /* Change button text from "Continue to Payment" to "Buy Now" - matches PS product page */
        .bolt-product-checkout-button [data-tid="bolt-checkout-button-text"] {
            visibility: hidden !important;
            position: relative !important;
        }

        .bolt-product-checkout-button [data-tid="bolt-checkout-button-text"]::after {
            content: "⚡ Buy Now" !important;
            visibility: visible !important;
            position: absolute !important;
            left: 50% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            font-size: 16px !important;
            font-weight: 700 !important;
            white-space: nowrap !important;
            width: max-content !important;
            /* Emoji glyphs have an inherent cap-height offset that makes
             * them render a hair higher than the baseline of adjacent
             * Latin text. Flex-align the pseudo's content so the ⚡ and
             * "Buy Now" sit on the exact same optical line. */
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            line-height: 1 !important;
        }

        @media only screen and (max-width: 749px) {
            .product-page-buttons-wrapper {
                flex-direction: column;
                gap: 12px;
            }

            .guarantee-text .guarantee-separator {
                display: none;
            }

            .guarantee-text .guarantee-line-2 {
                display: block;
            }
        }

        .not-found-container {
            max-width: 600px;
            margin: 100px auto;
            text-align: center;
            padding: 40px;
        }

        .not-found-container h1 {
            font-size: 48px;
            color: #ef4444;
            margin-bottom: 20px;
        }

        .not-found-container p {
            font-size: 18px;
            color: #6b7280;
            margin-bottom: 30px;
        }

        .not-found-container a {
            display: inline-block;
            background: #3b82f6;
            color: white;
            padding: 12px 24px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
        }

        /* Product Tabs Styles */
        .product-tabs {
            margin-top: 0;
            padding-top: 0;
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
        }

        .tab-buttons {
            display: flex;
            gap: 8px;
            margin-bottom: 0;
            border-bottom: 2px solid #e5e7eb;
            justify-content: center;
        }

        .tab-button {
            padding: 12px 24px;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            font-size: 16px;
            font-weight: 600;
            color: #6b7280;
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: -2px;
        }

        .tab-button:hover {
            color: #2563eb;
        }

        .tab-button.active {
            color: #2563eb;
            border-bottom-color: #2563eb;
        }

        /* Expert Guide tab — glass-native treatment lives in v2 bridge
         * (`.tab-button.tab-highlight` + `.tab-garage-pulse`). Legacy amber /
         * blue gradient rules removed; the new treatment relies on gradient
         * text + a small breathing sparkle dot instead of loud backgrounds. */

        .tab-content {
            display: none;
            padding: 40px;
            background: #f9fafb;
            border-radius: 0 0 8px 8px;
            border: 1px solid #e5e7eb;
            border-top: none;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            margin-top: 0;
        }

        .tab-content.active {
            display: block;
        }

        /* Buyer's Guide tab - white background */
        #misc.tab-content {
            background: #fff;
        }

        @media (max-width: 768px) {
            /* Keep the tab bar + its content within the body's left/right
               padding so it visually aligns with the other panels (glass
               panels, fit-notice, etc.). The previous -20px negative
               margins pushed it edge-to-edge, which felt unaligned. */
            .product-tabs {
                max-width: none;
                margin-left: 0 !important;
                margin-right: 0 !important;
                padding-left: 0;
                padding-right: 0;
            }

            /* Hide ONLY the bridge's "MANUFACTURER" kicker pseudo-element
               on mobile — that ::before label was eating the row 1 space
               and leaving the make name ("Chrysler" / Honda / etc.)
               squeezed to one character. Badge + tap-hint + toggle stay
               so the expand affordance and model count remain visible. */
            body #fitmentAccordion .make-header::before {
                display: none !important;
                content: none !important;
            }
            /* Tighten badge on mobile so it doesn't crowd longer make names. */
            .make-header .fitment-badge { padding: 2px 6px !important; font-size: 11px !important; }

            /* Verify-before-ordering icon: prevent the warning triangle
               SVG from being shrunk to a thin sliver by the flex parent. */
            .fit-notice svg {
                flex: none !important;
                width: 22px !important;
                height: 22px !important;
            }

            .tab-buttons {
                flex-wrap: wrap;
                gap: 4px;
            }

            .tab-button {
                font-size: 14px;
                padding: 10px 12px;
            }

            .tab-content {
                padding: 20px;
            }
        }

        /* Fitment Accordion Styles */
        .fitment-accordion { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
        .make-section { border-bottom: 1px solid #e5e7eb; }
        .make-section:last-child { border-bottom: none; }
        .make-header {
            display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0 12px;
            padding: 14px 16px; background: linear-gradient(to right, #f0f9ff, #e0f2fe); cursor: pointer;
            font-weight: 600; font-size: 16px; color: #1e40af;
            transition: all 0.2s; border-left: 4px solid #3b82f6;
            user-select: none; -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
        }
        .make-header .make-name { grid-column: 1; min-width: 0; }
        /* "X models" badge sits at the right edge, just before the toggle. */
        .make-header .fitment-badge { grid-column: 2; }
        .make-header .toggle-icon { grid-column: 3; align-self: center; }
        /* (tap to expand) / (tap to collapse) hint dropped at every viewport
           — the +/− toggle icon already conveys the affordance. */
        .make-header .make-hint { display: none !important; }
        .make-header:hover { background: linear-gradient(to right, #e0f2fe, #dbeafe); }
        .make-header.expanded { background: linear-gradient(to right, #dbeafe, #bfdbfe); }
        .make-header:active { background: #dbeafe; transform: scale(0.995); }
        .make-header.not-collapsible { cursor: default; }
        .make-header.not-collapsible:hover { background: linear-gradient(to right, #f0f9ff, #e0f2fe); }
        .make-header.not-collapsible:active { transform: none; }
        .make-header .toggle-icon {
            display: flex; align-items: center; justify-content: center;
            width: 28px; height: 28px; background: #3b82f6; color: #fff;
            border-radius: 50%; font-size: 14px; font-weight: bold;
            transition: all 0.3s; box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
        }
        .make-header .toggle-icon::before { content: '+'; }
        .make-header.expanded .toggle-icon { background: #1d4ed8; transform: rotate(180deg); }
        .make-header.expanded .toggle-icon::before { content: '−'; }
        .make-header .fitment-badge {
            display: inline-block; background: #dbeafe; color: #1e40af; font-size: 12px;
            padding: 2px 8px; border-radius: 12px; font-weight: 500;
        }
        .make-header .expand-hint, .make-header .collapse-hint { font-size: 12px; color: #64748b; font-weight: 400; }
        .make-header .collapse-hint { display: none; }
        .make-header.expanded .expand-hint { display: none; }
        .make-header.expanded .collapse-hint { display: inline; }
        .make-header.not-collapsible .expand-hint, .make-header.not-collapsible .collapse-hint { display: none; }
        .make-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .make-hint { font-size: 11px; padding-left: 8px; }
        .make-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
        .make-content.show { max-height: none; }
        .expand-all-btn {
            padding: 6px 12px; background: #f3f4f6; border: 1px solid #d1d5db;
            border-radius: 4px; cursor: pointer; font-size: 12px; color: #374151;
            margin-right: 8px; transition: background 0.2s;
        }
        .expand-all-btn:hover { background: #e5e7eb; }
        .model-section { border-top: 1px solid #e5e7eb; transition: all 0.3s ease; }
        /* Card-style expanded state with border, shadow, and spacing */
        .model-section:has(.model-header.expanded) {
            border: 2px solid #eab308 !important;
            border-radius: 8px;
            margin: 12px 4px;
            box-shadow: 0 4px 12px rgba(234, 179, 8, 0.2);
            background: #fffef5;
        }
        /* Non-expanded sections after an expanded section need their top border */
        .model-section:has(.model-header.expanded) + .model-section:not(:has(.model-header.expanded)) { border-top: 1px solid #e5e7eb; }
        .model-header {
            padding: 12px 16px 12px 32px; background: #fefce8; cursor: pointer;
            font-weight: 500; font-size: 14px; color: #854d0e;
            transition: all 0.2s; border-left: 4px solid transparent;
            user-select: none; -webkit-tap-highlight-color: rgba(234, 179, 8, 0.2);
        }
        .model-section:has(.model-header.expanded) .model-header {
            border-radius: 6px 6px 0 0;
            border-left: none;
        }
        .model-header:hover { background: #fef9c3; border-left-color: #eab308; }
        .model-header.expanded { background: #fef9c3; border-left-color: #eab308; }
        .model-header:active { background: #fef08a; transform: scale(0.995); }
        .model-header .toggle-icon {
            display: flex; align-items: center; justify-content: center;
            width: 24px; height: 24px; background: #eab308; color: #fff;
            border-radius: 50%; font-size: 12px; font-weight: bold;
            transition: all 0.3s; box-shadow: 0 2px 4px rgba(234, 179, 8, 0.3);
        }
        .model-header .toggle-icon::before { content: '+'; }
        .model-header.expanded .toggle-icon { background: #ca8a04; transform: rotate(180deg); }
        .model-header.expanded .toggle-icon::before { content: '−'; }
        .model-header .fitment-badge {
            display: inline-block; background: #eab308; color: white; font-size: 10px;
            padding: 2px 6px; border-radius: 10px; margin-left: 6px; font-weight: 500;
        }
        .model-header .expand-hint, .model-header .collapse-hint { font-size: 11px; color: #a16207; font-weight: 400; margin-left: 6px; }
        .model-header .collapse-hint { display: none; }
        .model-header.expanded .expand-hint { display: none; }
        .model-header.expanded .collapse-hint { display: inline; }
        .model-content { max-height: 0; overflow: hidden; padding: 0; transition: max-height 0.3s ease; }
        .model-content.show { max-height: none; }
        .model-section:has(.model-header.expanded) .model-content {
            border-radius: 0 0 6px 6px;
            overflow: hidden;
        }
        .model-content table { width: 100%; border-collapse: collapse; }
        .model-content th { background: #f9fafc; padding: 10px 12px; text-align: left; font-weight: 600; font-size: 12px; color: #475569; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
        .model-content td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; font-size: 13px; color: #334155; background: #f9fafb; }
        .model-section:has(.model-header.expanded) .model-content tbody tr:last-child td { border-bottom: none; }
        .model-content tbody tr:hover td { background: #f1f5f9; }
        .model-header { display: grid; grid-template-columns: 150px auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0 8px; }
        .model-header .model-name { grid-column: 1; grid-row: 1; }
        .model-header .year-range { grid-column: 2; grid-row: 1; }
        .model-header .model-hint { grid-column: 1 / 4; grid-row: 2; margin-top: 2px; }
        .model-header .toggle-icon { grid-column: 4; grid-row: 1 / 3; align-self: center; }
        .year-range { font-size: 12px; color: #059669; font-weight: 600; }
        .model-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .model-hint { font-size: 11px; }
        .model-header:hover .model-hint { text-decoration: underline; text-decoration-color: #6b7280; text-underline-offset: 2px; }
        .model-header .toggle-icon { }
        .make-header .make-name { text-decoration: none; transition: text-decoration 0.2s; }
        .make-header:hover .make-name { text-decoration: underline; text-decoration-color: #3b82f6; text-underline-offset: 2px; }
        .make-header.not-collapsible:hover .make-name { text-decoration: none; }
        .model-header .model-name { text-decoration: none; transition: text-decoration 0.2s; }
        .model-header:hover .model-name { text-decoration: underline; text-decoration-color: #eab308; text-underline-offset: 2px; }
        @media (max-width: 768px) {
            .make-header .click-word { display: none; }
            .model-header .click-word { display: none; }
        }
        @media (min-width: 769px) {
            .make-header .tap-word { display: none; }
            .model-header .tap-word { display: none; }
        }

        /* Fitment Filter Modal Styles */
        /* ── v2 Filter-by-Vehicle trigger + modal ──────────────────── */
        .fbv-actions { display: flex; gap: 10px; align-items: center; }
        .fbv-cta {
            display: inline-flex !important; align-items: center; gap: 8px;
            padding: 10px 18px !important; border-radius: 10px !important;
            font-weight: 700 !important; font-size: 14px !important;
            text-decoration: none !important; cursor: pointer !important;
            border: 0 !important;
            transition: filter .15s ease, transform .15s ease, background .15s ease, border-color .15s ease;
        }
        .fbv-cta-open {
            background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
            color: #fff !important;
            box-shadow: 0 6px 16px -8px rgba(29,78,216,.5), inset 0 1px 0 rgba(255,255,255,.2) !important;
        }
        .fbv-cta-open:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff !important; }
        .fbv-cta-clear {
            display: none !important;
            background: #fff !important;
            color: #b91c1c !important;
            border: 1px solid #fecaca !important;
            box-shadow: none !important;
        }
        .fbv-cta-clear.is-shown { display: inline-flex !important; }
        .fbv-cta-clear:hover { background: #fef2f2 !important; border-color: #fca5a5 !important; color: #991b1b !important; }
        @media (max-width: 600px) {
            .fbv-actions { width: 100%; }
            .fbv-cta { flex: 1 1 auto; justify-content: center; }
        }

        /* ── Modal shell — glass-panel feel matching v2 design ─────── */
        .modal {
            display: none;
            position: fixed !important;
            z-index: 2147483647 !important; /* max int — beat any sticky chrome */
            inset: 0 !important;
            width: 100vw !important; height: 100vh !important; height: 100dvh !important;
            background: rgba(13, 20, 36, 0.55);
            -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
            align-items: center !important;
            justify-content: center !important;
            padding: 16px;
            box-sizing: border-box;
            overflow-y: auto;
        }
        /* When the open handler sets `display: flex`, this guarantees the
           content is centered both axes even if a parent stacking context
           imposed a different default. */
        .modal[style*="display: flex"],
        .modal[style*="display:flex"] {
            display: flex !important;
        }
        .modal-content {
            margin: auto !important; /* belt + suspenders for centering */
        }
        body.fbv-modal-open { overflow: hidden !important; }
        .modal-content {
            background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88));
            -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
            padding: 28px 32px;
            border-radius: 22px;
            width: 100%;
            max-width: 640px;
            max-height: 90vh;
            overflow-y: auto;
            border: 1px solid rgba(148,163,184,.25);
            box-shadow:
                0 40px 80px -30px rgba(26,61,176,.3),
                0 0 0 1px rgba(26,61,176,.04),
                inset 0 1px 0 rgba(255,255,255,.9);
            animation: fbvSlideDown .28s cubic-bezier(.25,.9,.3,1);
        }
        @keyframes fbvSlideDown {
            from { opacity: 0; transform: translateY(-12px) scale(.98); }
            to   { opacity: 1; transform: translateY(0)    scale(1); }
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 14px;
            margin-bottom: 18px;
            border-bottom: 1px solid rgba(148,163,184,.18);
        }
        .modal-header h2 {
            margin: 0;
            color: #0d1424;
            font-size: 20px;
            font-weight: 800;
            letter-spacing: -0.01em;
        }
        .close-modal {
            background: rgba(148,163,184,.12);
            border: 0;
            font-size: 22px;
            cursor: pointer;
            color: #475569;
            line-height: 1;
            padding: 0;
            width: 36px; height: 36px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: background .15s, color .15s;
        }
        .close-modal:hover { background: #fee2e2; color: #dc2626; }
        .filter-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
        }
        .filter-grid .filter-group { margin-bottom: 0; }
        .filter-group label {
            display: block;
            font-size: 12px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .04em;
            color: #475569;
            margin-bottom: 6px;
            text-align: left;
        }
        .filter-group select,
        .filter-group input {
            width: 100%;
            padding: 11px 14px;
            border: 1px solid rgba(148,163,184,.4);
            border-radius: 10px;
            font: inherit;
            font-size: 15px;
            background: #fff;
            color: #0d1424;
            outline: none;
            transition: border-color .15s, box-shadow .15s;
            box-sizing: border-box;
        }
        .filter-group select:focus,
        .filter-group input:focus {
            border-color: #1d4ed8;
            box-shadow: 0 0 0 3px rgba(29,78,216,.12);
        }
        .filter-group select:disabled {
            background: #f3f4f6 !important;
            color: #9ca3af !important;
            cursor: not-allowed !important;
        }
        .modal-buttons-container {
            margin-top: 22px;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        .modal-buttons-container .search-button,
        .modal-buttons-container .reset-button {
            display: inline-flex; align-items: center; justify-content: center;
            gap: 8px;
            padding: 12px 22px;
            font-size: 14px;
            font-weight: 700;
            border-radius: 10px;
            border: 0;
            cursor: pointer;
            transition: filter .15s, transform .15s, background .15s, border-color .15s;
        }
        .modal-buttons-container .search-button {
            background: linear-gradient(135deg, #1d4ed8, #3b82f6);
            color: #fff;
            box-shadow: 0 6px 16px -8px rgba(29,78,216,.5), inset 0 1px 0 rgba(255,255,255,.2);
        }
        .modal-buttons-container .search-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
        .modal-buttons-container .reset-button {
            background: #fff;
            color: #0d1424;
            border: 1px solid rgba(148,163,184,.4);
        }
        .modal-buttons-container .reset-button:hover { border-color: #1d4ed8; }
        @media (max-width: 600px) {
            .modal { padding: 12px; }
            .modal-content { padding: 22px 18px; border-radius: 18px; }
            .filter-grid { grid-template-columns: 1fr; gap: 10px; }
            .filter-group select, .filter-group input { font-size: 16px; /* iOS no-zoom */ }
            .modal-buttons-container { flex-direction: column-reverse; }
            .modal-buttons-container .search-button,
            .modal-buttons-container .reset-button { width: 100%; }
        }
        @media (max-width: 600px) {
            .modal-header h2 {
                font-size: 22px;
            }
        }

        /* Fitment table horizontal scroll on mobile */
        .fitment-scroll-container { position: relative; width: 100%; }
        .fitment-table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
        .scroll-fade { position: absolute; top: 0; width: 40px; height: 100%; pointer-events: none; z-index: 2; opacity: 0; transition: opacity 0.15s; }
        .scroll-fade-left { left: 0; background: linear-gradient(to right, rgba(250,250,250,0.95), transparent); }
        .scroll-fade-right { right: 0; background: linear-gradient(to left, rgba(250,250,250,0.95), transparent); }
        .mobile-scroll-hint { display: none; text-align: center; padding: 6px 10px; background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; font-size: 11px; font-weight: 500; border-radius: 4px 4px 0 0; margin-bottom: 0; align-items: center; justify-content: center; gap: 10px; }
        .mobile-scroll-hint.show { display: flex; }
        .scroll-hint-arrow { display: inline-block; font-size: 16px; line-height: 1; font-weight: 700; color: #1e40af; opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease; transform: translateX(0); width: 12px; text-align: center; }
        .scroll-hint-arrow.active { opacity: 1; }
        .scroll-hint-arrow-left.active { animation: scroll-hint-nudge-left 1.6s ease-in-out infinite; }
        .scroll-hint-arrow-right.active { animation: scroll-hint-nudge-right 1.6s ease-in-out infinite; }
        @keyframes scroll-hint-nudge-left { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-3px); } }
        @keyframes scroll-hint-nudge-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
        /* min-width forces the columns to keep readable widths so the
           wrapper can scroll horizontally on mobile. The bridge has
           `body #fitmentAccordion .fitment-details-table` (higher
           specificity), so we match it here to win. */
        .fitment-details-table { width: 100% !important; border-collapse: collapse !important; min-width: 560px !important; }
        body #fitmentAccordion .fitment-details-table { min-width: 560px !important; }

        /* MOBILE: restore native table semantics so the wrapper's
           overflow-x:auto + the table's min-width drive horizontal
           swipe-to-see-more, matching live www. The v2 bridge converts
           the table to a CSS grid (display:contents + grid on tr) which
           collapses columns instead of overflowing.
           Specificity bump (`table.fitment-details-table`) needed because
           the bridge's rule comes later in cascade with same base spec. */
        @media (max-width: 768px) {
            html body #fitmentAccordion table.fitment-details-table { display: table !important; min-width: 600px !important; width: 600px !important; }
            html body #fitmentAccordion table.fitment-details-table thead { display: table-header-group !important; }
            html body #fitmentAccordion table.fitment-details-table tbody { display: table-row-group !important; }
            html body #fitmentAccordion table.fitment-details-table tr { display: table-row !important; grid-template-columns: none !important; padding: 0 !important; gap: 0 !important; }
            html body #fitmentAccordion table.fitment-details-table th,
            html body #fitmentAccordion table.fitment-details-table td { display: table-cell !important; padding: 10px 12px !important; white-space: nowrap !important; vertical-align: middle !important; }
            html body #fitmentAccordion table.fitment-details-table td.years-cell { white-space: nowrap !important; }
            html body #fitmentAccordion .fitment-table-wrapper { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
            /* Bridge hides the legacy hint by default; let our .show
               toggle re-show it on mobile. */
            html body #fitmentAccordion .mobile-scroll-hint.show { display: flex !important; }

            /* Re-enable the white-fade overlays on the scroll container
               edges. Bridge sets `display:none !important` on them — we
               match its specificity and revert to block. The opacity is
               toggled by JS (updateScrollFades) based on scroll position
               so they only show in the direction with more content. */
            html body #fitmentAccordion .fitment-scroll-container { position: relative !important; }
            html body #fitmentAccordion .fitment-scroll-container .scroll-fade {
                display: block !important;
                position: absolute !important;
                top: 0 !important; bottom: 0 !important;
                width: 40px !important;
                pointer-events: none !important;
                z-index: 2 !important;
                opacity: 0;
                transition: opacity 0.15s ease;
            }
            html body #fitmentAccordion .fitment-scroll-container .scroll-fade-left {
                left: 0 !important;
                background: linear-gradient(to right, rgba(255,255,255,0.96), rgba(255,255,255,0)) !important;
            }
            html body #fitmentAccordion .fitment-scroll-container .scroll-fade-right {
                right: 0 !important;
                background: linear-gradient(to left, rgba(255,255,255,0.96), rgba(255,255,255,0)) !important;
            }

            /* Make the horizontal scrollbar visible — default WebKit
               styling renders an invisible bar inside the .glass-panel
               background on touch devices when not actively scrolling. */
            html body #fitmentAccordion .fitment-table-wrapper {
                scrollbar-width: thin !important;
                scrollbar-color: rgba(59,130,246,0.5) rgba(148,163,184,0.15) !important;
            }
            html body #fitmentAccordion .fitment-table-wrapper::-webkit-scrollbar {
                height: 8px !important;
                -webkit-appearance: auto !important;
                background: rgba(148,163,184,0.15) !important;
            }
            html body #fitmentAccordion .fitment-table-wrapper::-webkit-scrollbar-thumb {
                background: rgba(59,130,246,0.55) !important;
                border-radius: 4px !important;
            }
            html body #fitmentAccordion .fitment-table-wrapper::-webkit-scrollbar-thumb:hover {
                background: rgba(29,78,216,0.7) !important;
            }
            html body #fitmentAccordion .fitment-table-wrapper::-webkit-scrollbar-track {
                background: rgba(148,163,184,0.15) !important;
                border-radius: 4px !important;
            }

            /* Bridge hides Engine + Attributes columns at ≤720px to fit
               the collapsed grid layout. With swipe-scroll restored, all
               5 columns should remain visible — re-show them. */
            html body #fitmentAccordion .fitment-details-table th:nth-child(n+4),
            html body #fitmentAccordion .fitment-details-table td:nth-child(n+4) {
                display: table-cell !important;
            }
        }
        .fitment-details-table th { background: #f9fafc; padding: 10px 12px; text-align: left; font-weight: 600; color: #475569; font-size: 12px; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
        .fitment-details-table th .submodel-desktop { display: inline; }
        .fitment-details-table th .submodel-mobile { display: none; }
        @media (max-width: 768px) { .fitment-details-table th .submodel-desktop { display: none; } .fitment-details-table th .submodel-mobile { display: inline; } }
        .fitment-details-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; font-size: 13px; color: #334155; background: #f9fafb; }
        .fitment-details-table td.years-cell { white-space: nowrap; }
        .fitment-details-table tbody tr:hover td { background: #f1f5f9; }
        .fitment-details-table tr:last-child td { border-bottom: none; }

        /* Global mobile styles - show short text, hide view text, hide reman icon */
        .text-short { display: none; }
        .text-full { display: inline; }
        @media (max-width: 768px) {
            .view-text { display: none; }
            .text-full { display: none; }
            .text-short { display: inline; }
            .reman-icon { display: none; }
        }
    

