/* TOM'S Oil Selector - Podbor Styles v2 */

/* ===== RESET & BASE ===== */
.toms-page { color: #333; font-family: inherit; margin-bottom: 0; padding-bottom: 0; }
.wd-content-area.site-content:has(.toms-page) { margin-bottom: 0; padding-bottom: 0; }
.main-page-wrapper:has(.toms-page) { margin-bottom: 0; padding-bottom: 0; }
main.wd-content-layout:has(.toms-page) { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.content-layout-wrapper:has(.toms-page) { padding-bottom: 0 !important; }
.toms-page * { box-sizing: border-box; }
.toms-page a { text-decoration: none; color: inherit; }

/* ===== BREADCRUMBS ===== */
.toms-breadcrumbs {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    padding: 8px 0;
}
.toms-breadcrumbs a { color: #cc0000; }
.toms-breadcrumbs a:hover { text-decoration: underline; }
.toms-breadcrumbs .sep { margin: 0 6px; color: #ccc; }

/* ===== PAGE HEADER ===== */
.toms-podbor-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 10px;
    color: #fff;
}
.toms-podbor-header h1 {
    font-size: 24px;
    margin: 0 0 6px;
    color: #fff;
    font-weight: 700;
}
.toms-podbor-header p {
    font-size: 14px;
    color: #aaa;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}
.toms-podbor-header .toms-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 14px;
}
.toms-podbor-header .toms-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #cc0000;
}
.toms-podbor-header .toms-stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Model page header - horizontal with logo */
.toms-model-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 10px;
    color: #fff;
}
.toms-model-header .toms-brand-logo-header {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}
.toms-model-header h1 {
    font-size: 22px;
    margin: 0 0 4px;
    color: #fff;
    font-weight: 700;
}
.toms-model-header p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* ===== SEARCH BAR ===== */
.toms-search-bar {
    max-width: 480px;
    margin: 0 auto 16px;
    position: relative;
}
.toms-search-bar input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}
.toms-search-bar input:focus { border-color: #cc0000; }
.toms-search-bar .toms-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 15px;
    pointer-events: none;
}
.toms-search-count {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: -8px 0 12px;
    display: none;
}
.toms-search-count.visible { display: block; }

/* ===== ALPHABET FILTER ===== */
.toms-alpha-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 14px;
    justify-content: center;
}
.toms-alpha-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #444;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.15s;
}
.toms-alpha-filter a:hover,
.toms-alpha-filter a.active {
    background: #cc0000;
    color: #fff;
}
.toms-alpha-filter a.disabled {
    opacity: 0.25;
    pointer-events: none;
}

/* ===== BRANDS GRID ===== */
.toms-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 0 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.toms-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.toms-brand-card:hover {
    border-color: #cc0000;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.1);
    transform: translateY(-1px);
}
.toms-brand-logo-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 6px;
}
.toms-brand-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
.toms-brand-card .toms-brand-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    text-align: center;
}
.toms-brand-card .toms-model-count {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}
.toms-brand-card .toms-brand-placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    color: #cc0000;
}

/* ===== MODELS GRID ===== */
.toms-models-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 0 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.toms-model-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    background: transparent;
    border: 1px solid transparent;
}
.toms-model-card:hover {
    background: #f9f9f9;
    border-color: #e0e0e0;
    transform: scale(1.03);
}
.toms-model-card:hover .toms-model-name { color: #cc0000; }
.toms-model-card img {
    width: 100%;
    max-width: 150px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 4px;
}
.toms-model-card .toms-model-placeholder {
    width: 100%;
    max-width: 150px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    opacity: 0.35;
}
.toms-model-card .toms-model-placeholder svg {
    width: 60px;
    height: 36px;
}
.toms-model-card .toms-model-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.25;
    margin-bottom: 1px;
    transition: color 0.2s;
    word-break: break-word;
    hyphens: auto;
}
.toms-model-card .toms-model-years {
    font-size: 10px;
    color: #999;
    font-weight: 400;
    background: none;
    padding: 0;
    border-radius: 0;
    display: inline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .toms-models-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
    .toms-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 6px;
    }
    .toms-brand-card { padding: 10px 6px 8px; }
    .toms-brand-logo-wrap { width: 48px; height: 48px; }
    .toms-brand-card img { width: 48px; height: 48px; }
    .toms-brand-card .toms-brand-name { font-size: 11px; }
    .toms-brand-card .toms-brand-placeholder { width: 48px; height: 48px; font-size: 18px; margin-bottom: 0; }
    .toms-models-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    .toms-model-card img { height: 70px; }
    .toms-model-card .toms-model-name { font-size: 11px; }
    .toms-model-header h1 { font-size: 18px; }
    .toms-model-header { padding: 14px 16px; gap: 14px; }
    .toms-model-header .toms-brand-logo-header { width: 48px; height: 48px; }
    .toms-podbor-header h1 { font-size: 20px; }
    .toms-podbor-header { padding: 18px 14px; }
}
@media (max-width: 480px) {
    .toms-brands-grid { grid-template-columns: repeat(3, 1fr); }
    .toms-models-grid { grid-template-columns: repeat(3, 1fr); }
    .toms-model-card img { height: 55px; }
    .toms-model-card .toms-model-name { font-size: 10px; }
    .toms-model-card .toms-model-years { font-size: 9px; }
    .toms-search-bar { margin-bottom: 10px; }
    .toms-search-bar input { padding: 8px 14px 8px 36px; font-size: 13px; }
}

/* ===== RECOMMENDATIONS PAGE ===== */
.toms-recs-vehicle-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #eee;
}
.toms-recs-vehicle-header img {
    width: 180px;
    height: 110px;
    object-fit: contain;
}


/* ===== VEHICLE PAGE ===== */
.toms-vehicle-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    color: #333;
}
.toms-vehicle-img {
    flex-shrink: 0;
}
.toms-vehicle-img img {
    width: 280px;
    height: 170px;
    object-fit: contain;
}
.toms-vehicle-info {
    flex: 1;
}
.toms-vehicle-info h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #222;
}

/* ===== SEO CONTENT BLOCK ===== */
.toms-seo-content {
    margin-top: 30px;
    padding: 24px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
    line-height: 1.7;
    color: #444;
}
.toms-seo-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 14px;
}
.toms-seo-content p {
    font-size: 14px;
    margin: 0 0 12px;
}
.toms-seo-content p:last-child { margin-bottom: 0; }
.toms-seo-list {
    margin: 12px 0;
    padding-left: 20px;
}
.toms-seo-list li {
    font-size: 14px;
    margin-bottom: 6px;
    color: #444;
}
.toms-seo-list li strong {
    color: #222;
}
.toms-seo-tags {
    margin-top: 16px !important;
    padding-top: 12px;
    border-top: 1px solid #eee;
    color: #999 !important;
}
.toms-seo-tags small {
    font-size: 11px;
    line-height: 1.8;
}

/* Smooth reveal animation */
@keyframes tomsReveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.toms-rec-section { animation: tomsReveal 0.3s ease-out; }
.toms-rec-card { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.toms-rec-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); transform: translateY(-1px); }

.toms-vehicle-brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
}
.toms-vehicle-years {
    display: inline-block;
    font-size: 13px;
    color: #666;
    margin-right: 8px;
}
.toms-vehicle-gen {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    font-weight: 500;
}
.toms-vehicle-desc {
    font-size: 14px;
    color: #666;
    margin: 8px 0 0;
    line-height: 1.5;
}
.toms-vehicle-desc strong { color: #222; }

/* Recommendations grid */
.toms-recs-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}
.toms-rec-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}
.toms-rec-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}
.toms-rec-icon {
    display: flex;
    color: #cc0000;
}
.toms-rec-count {
    margin-left: auto;
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

/* Recommendation card */
.toms-rec-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.toms-rec-card:last-child { border-bottom: none; }
.toms-rec-info { flex: 1; min-width: 0; }
.toms-rec-fluid-type {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.toms-rec-detail {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}
.toms-rec-detail .toms-label {
    color: #999;
    margin-right: 4px;
}
.toms-rec-filter-vol {
    color: #999;
    font-size: 12px;
}

/* Product card */
.toms-rec-product {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.toms-product-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8f8f8;
}
.toms-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #cc0000;
}
.toms-product-sku {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}
.toms-product-price {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-top: 4px;
}
.toms-buy-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 16px;
    background: #cc0000;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.toms-buy-btn:hover { background: #a00; }

/* No recommendations */
.toms-no-recs {
    text-align: center;
    padding: 40px 20px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #eee;
    color: #666;
}

/* CTA section */
.toms-vehicle-cta {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    margin-top: 30px;
    margin-bottom: 0 !important;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}
.toms-vehicle-cta h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: #222;
}
.toms-vehicle-cta p {
    font-size: 14px;
    color: #666;
    margin: 0 0 14px;
}
.toms-cta-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #cc0000;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}
.toms-cta-btn:hover { background: #a00; color: #fff; }

/* Vehicle page responsive */
@media (max-width: 768px) {
    .toms-vehicle-hero {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 14px;
    }
    .toms-vehicle-img img { width: 200px; height: 120px; }
    .toms-vehicle-info h1 { font-size: 18px; }
    .toms-rec-card { flex-direction: column; }
    .toms-rec-product { width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   Polished recommendation page styling - 2026-05-27
   ═══════════════════════════════════════════════════════ */

/* 1. Section heading typography */
.toms-rec-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    padding: 16px 20px;
    background: #fcfcfc;
}

/* 2. Fluid/component type line */
.toms-rec-fluid-type {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}

/* 3. Detail / volume line */
.toms-rec-detail {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* 4. Product mini-card — white premium card */
.toms-rec-product {
    background: linear-gradient(145deg, #ffffff, #fafafa);
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    min-width: 180px;
}

/* 5. Product image */
.toms-product-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

/* 6. Product name */
.toms-product-name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

/* 7. SKU text */
.toms-product-sku {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* 8. Section title icon color */
.toms-rec-icon {
    color: #cc0000;
}

/* 9. Premium buy button — silver default → red hover with shine */
.toms-buy-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    /* Default state: silver gradient */
    background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 40%, #d9d9d9 100%);
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}

.toms-buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-25deg);
    transition: left 0.45s ease;
    pointer-events: none;
    z-index: 1;
}

.toms-buy-btn:hover {
    background: linear-gradient(180deg, #7d0018 0%, #e30613 50%, #8c001b 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(204,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.toms-buy-btn:hover::before {
    left: 125%;
}

/* Mobile: make product card full width */
@media (max-width: 768px) {
    .toms-rec-product {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .toms-product-name {
        font-size: 16px;
    }
    .toms-buy-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Generation/chassis code badge ── */
.toms-model-gen {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.3px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════
   Brand page header - white/light redesign
   ═══════════════════════════════════════════════════════ */
.toms-model-header {
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    color: #333;
}
.toms-model-header h1 {
    color: #222;
}
.toms-model-header p {
    color: #888;
}

/* ═══════════════════════════════════════════════════════
   Popular / All brands tabs
   ═══════════════════════════════════════════════════════ */
.toms-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}
.toms-tab {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border: none;
    background: none;
    position: relative;
    transition: color 0.2s;
    text-decoration: none;
    display: inline-block;
}
.toms-tab:hover { color: #cc0000; }
.toms-tab.active {
    color: #cc0000;
}
.toms-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #cc0000;
}
.toms-tab-count {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
    font-weight: 400;
}

/* Brands grid sections */
.toms-brands-section {
    display: none;
}
.toms-brands-section.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════
   Search result count
   ═══════════════════════════════════════════════════════ */
.toms-search-result-count {
    font-size: 13px;
    color: #888;
    margin: 8px 0 14px;
}
.toms-search-no-results {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════
   Brand card consistent sizing
   ═══════════════════════════════════════════════════════ */
.toms-brand-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.toms-brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(204,0,0,0.15);
    border-color: #cc0000;
}

/* ═══════════════════════════════════════════════════════
   Model card red accent on hover
   ═══════════════════════════════════════════════════════ */
.toms-model-card:hover {
    border-color: #cc0000;
    box-shadow: 0 3px 12px rgba(204,0,0,0.12);
}
.toms-model-card:hover .toms-model-name {
    color: #cc0000;
}

/* Mobile tabs scroll */
@media (max-width: 768px) {
    .toms-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .toms-tabs::-webkit-scrollbar { display: none; }
    .toms-tab { padding: 10px 16px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════
   VISUAL/UX FIXES - 2026-05-27
   ═══════════════════════════════════════════════════════ */

/* Light breadcrumb styling */
.toms-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 8px 0;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
    background: transparent;
    border: none;
}
.toms-breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.toms-breadcrumbs a:hover { color: #cc0000; }
.toms-breadcrumbs .current {
    color: #333;
    font-weight: 500;
}
.toms-breadcrumbs .sep {
    color: #ccc;
    margin: 0 2px;
}

/* Back/up buttons */
.toms-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.toms-back-link:hover {
    color: #cc0000;
    border-color: #cc0000;
    box-shadow: 0 2px 8px rgba(204,0,0,0.12);
}
.toms-back-link::before {
    content: '← ';
}

/* Light category tabs - replace dark navy */
.toms-category-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.toms-category-nav a {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}
.toms-category-nav a:hover { color: #cc0000; background: #fef2f2; }
.toms-category-nav a.active {
    color: #fff;
    background: #cc0000;
}

/* Light title block on /podbor/cars/ */
.toms-podbor-header {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.toms-podbor-header h1 {
    font-size: 24px;
    margin: 0 0 6px;
    color: #222;
}
.toms-podbor-header p {
    font-size: 14px;
    color: #888;
    margin: 0 0 14px;
}
.toms-stats {
    display: flex;
    gap: 20px;
}
.toms-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.toms-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #cc0000;
}
.toms-stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Popular/All tabs - light design */
.toms-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}
.toms-tab {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    position: relative;
    transition: color 0.2s;
}
.toms-tab:hover { color: #cc0000; }
.toms-tab.active { color: #cc0000; }
.toms-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #cc0000;
}
.toms-tab-count {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
    font-weight: 400;
}

/* Consistent hero card for all levels */
.toms-model-header,
.toms-vehicle-hero {
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px;
    padding: 18px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    color: #333 !important;
}
.toms-model-header h1,
.toms-vehicle-hero h1 {
    color: #222 !important;
    font-size: 22px;
    margin: 0 0 4px;
    font-weight: 700;
}
.toms-model-header p,
.toms-vehicle-hero p {
    color: #888 !important;
    font-size: 13px;
    margin: 4px 0 0;
}
.toms-model-header .toms-brand-logo-header,
.toms-vehicle-hero .toms-vehicle-brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Variant selection cards */
.toms-variant-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.toms-variant-card:hover {
    border-color: #cc0000;
    box-shadow: 0 3px 12px rgba(204,0,0,0.1);
    transform: translateY(-1px);
}
.toms-variant-card img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
}
.toms-variant-card .toms-variant-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    flex: 1;
}
.toms-variant-card .toms-variant-years {
    font-size: 13px;
    color: #888;
}
.toms-variant-card .toms-variant-gen {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}
.toms-variant-card .toms-variant-cta {
    padding: 6px 16px;
    background: #cc0000;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.toms-variant-card:hover .toms-variant-cta {
    background: #8c001b;
}

/* Footer spacing fix for variant pages */
.toms-variant-footer {
    text-align: center;
    padding: 30px 20px;
    color: #888;
    font-size: 14px;
}
.wd-page-title { display: none !important; }

/* ═══════════════════════════════════════════════════════
   UI CLEANUP - 2026-05-27
   ═══════════════════════════════════════════════════════ */

/* Inline stats - compact, right-aligned in title card */
.toms-podbor-header .toms-stats {
    display: inline-flex;
    gap: 8px;
    margin-left: 12px;
    vertical-align: middle;
}
.toms-podbor-header .toms-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}
.toms-podbor-header .toms-stat-num {
    font-size: 14px;
    font-weight: 700;
    color: #cc0000;
}
.toms-podbor-header .toms-stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.toms-podbor-header p {
    display: none;
}
.toms-podbor-header h1 {
    display: inline;
    font-size: 22px;
    margin-right: 4px;
}

/* Light category nav - pill style */
.toms-category-nav {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    display: flex;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.toms-category-nav::-webkit-scrollbar { display: none; }
.toms-category-nav a {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.2s;
    white-space: nowrap;
}
.toms-category-nav a:hover { color: #cc0000; background: #fef2f2; }
.toms-category-nav a.active {
    color: #fff;
    background: #cc0000;
}

/* Search icon cleanup */
.toms-smart-search {
    position: relative;
    max-width: 520px;
}
.toms-ss-input-wrap {
    position: relative;
}
.toms-ss-input {
    width: 100%;
    padding: 10px 42px 10px 42px !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.toms-ss-input:focus {
    border-color: #cc0000;
}
.toms-ss-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}
.toms-ss-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: none;
}
.toms-ss-input:not(:placeholder-shown) ~ .toms-ss-clear,
.toms-ss-input:focus ~ .toms-ss-clear {
    display: block;
}

/* Alphabet filter cleanup */
.toms-alpha-filter {
    display: flex;
    gap: 2px;
    margin: 12px 0;
    flex-wrap: wrap;
    align-items: center;
}
.toms-alpha-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.15s;
}
.toms-alpha-filter a:hover {
    color: #cc0000;
    background: #fef2f2;
}
.toms-alpha-filter a.active {
    color: #fff;
    background: #cc0000;
}
.toms-alpha-filter a.disabled {
    color: #ddd;
    pointer-events: none;
}

/* Remove old tabs CSS if conflicting */
.toms-tabs, .toms-tab, .toms-tab-count {
    display: none !important;
}

/* Brand card hover */
.toms-brand-card:hover {
    border-color: #cc0000;
    box-shadow: 0 3px 12px rgba(204,0,0,0.12);
}

/* Responsive */
@media (max-width: 768px) {
    .toms-podbor-header .toms-stats {
        display: inline;
        margin-left: 0;
    }
    .toms-podbor-header h1 {
        display: block;
        font-size: 18px;
    }
    .toms-category-nav a {
        font-size: 11px;
        padding: 4px 10px;
    }
    .toms-ss-input {
        font-size: 13px;
        padding: 9px 38px 9px 38px !important;
    }
    .toms-alpha-filter a {
        min-width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

/* Category nav override */
.toms-cat-nav { background: #fff !important; border: 1px solid #e8e8e8 !important; border-radius: 10px; padding: 10px 16px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.toms-cat-nav-link { color: #666 !important; }
.toms-cat-nav-item.active .toms-cat-nav-link { color: #111 !important; background: #fff !important; border: 2px solid #cc0000 !important; border-radius: 16px !important; box-shadow: 0 4px 14px rgba(0,0,0,0.10) !important; }
.toms-cat-nav-inner { display: flex; align-items: center; gap: 8px; overflow-x: auto; }
.toms-cat-nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.toms-cat-nav .toms-cat-nav-link { color: #555 !important; }
.toms-cat-nav .toms-cat-nav-item.active .toms-cat-nav-link { color: #111 !important; }

/* Category icons - SVG color inheritance */
.toms-cat-nav-item.active .toms-cat-nav-icon svg { stroke: #cc0000 !important; }
.toms-cat-nav-item:not(.active) .toms-cat-nav-icon svg { stroke: #555 !important; }
.toms-cat-nav-item:hover .toms-cat-nav-icon svg { stroke: #cc0000 !important; }
.toms-cat-nav-icon object { pointer-events: none; }

.toms-cat-nav-item:not(.active) .toms-cat-nav-link:hover { color: #cc0000 !important; background: #fff !important; border: 2px solid #cc0000 !important; border-radius: 16px !important; transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.10); transition: all .2s ease; }
.toms-cat-nav-item:hover .toms-cat-nav-icon svg { stroke: #cc0000 !important; }

/* TOMS vehicle model image enlarge v1 */
.toms-vehicle-hero{align-items:center;}
.toms-vehicle-img{flex-shrink:0;display:flex;align-items:center;justify-content:center;}
.toms-vehicle-img img{width:auto !important;height:auto !important;max-width:360px !important;max-height:230px !important;object-fit:contain !important;}
@media (max-width:768px){.toms-vehicle-img img{max-width:260px !important;max-height:170px !important;}}

/* TOMS category-nav mobile scroll arrows v1 */
.toms-cat-nav{position:relative;}
.toms-cat-arrow{display:none;}
@media (max-width:768px){
.toms-cat-nav.can-scroll .toms-cat-arrow{display:flex;align-items:center;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);width:30px;height:30px;padding:0;border:none;border-radius:50%;background:#fff;color:#c41230;font-size:24px;line-height:1;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.25);cursor:pointer;z-index:6;}
.toms-cat-arrow-left{left:3px;}
.toms-cat-arrow-right{right:3px;}
.toms-cat-nav.can-scroll.at-start .toms-cat-arrow-left{display:none;}
.toms-cat-nav.can-scroll.at-end .toms-cat-arrow-right{display:none;}
.toms-cat-nav.can-scroll:not(.at-end)::after{content:"";position:absolute;top:6px;bottom:6px;right:0;width:42px;background:linear-gradient(90deg,rgba(255,255,255,0),#fff 75%);pointer-events:none;z-index:5;border-radius:0 10px 10px 0;}
.toms-cat-nav.can-scroll:not(.at-start)::before{content:"";position:absolute;top:6px;bottom:6px;left:0;width:42px;background:linear-gradient(270deg,rgba(255,255,255,0),#fff 75%);pointer-events:none;z-index:5;border-radius:10px 0 0 10px;}
}

/* TOMS podbor mobile catnav horizontal scroll + nice arrows v3 */
@media (max-width:768px){
  .toms-page{padding-top:70px !important;} /* breadcrumb clears fixed header */
  .toms-cat-nav-label{display:none !important;}
  .toms-cat-nav-inner{overflow-x:auto !important;flex-wrap:nowrap !important;-webkit-overflow-scrolling:touch !important;scroll-behavior:smooth !important;padding:2px 34px !important;scrollbar-width:none !important;}
  .toms-cat-nav-inner::-webkit-scrollbar{display:none !important;}
  .toms-cat-nav-list{flex-wrap:nowrap !important;width:max-content !important;}
  .toms-cat-nav-item{flex:0 0 auto !important;}
}
/* nicer, larger arrows */
@media (max-width:768px){
  .toms-cat-nav.can-scroll .toms-cat-arrow{width:34px !important;height:34px !important;font-size:22px !important;background:#c41230 !important;color:#fff !important;box-shadow:0 2px 10px rgba(0,0,0,.30) !important;}
  .toms-cat-nav.can-scroll:not(.at-end)::after{background:linear-gradient(90deg,rgba(255,255,255,0),#fff 80%) !important;}
}



/* TOMS catnav always show both arrows v4 */
@media (max-width:768px){
  .toms-cat-nav.can-scroll .toms-cat-arrow.toms-cat-arrow-left,
  .toms-cat-nav.can-scroll .toms-cat-arrow.toms-cat-arrow-right{display:flex !important;}
}

/* TOMS catnav arrows outside + first-card visible v5 */
@media (max-width:768px){
  .toms-cat-nav{overflow:visible !important;}
  .toms-cat-nav-inner{padding-left:4px !important;padding-right:4px !important;}
  .toms-cat-nav.can-scroll .toms-cat-arrow.toms-cat-arrow-left{left:-15px !important;}
  .toms-cat-nav.can-scroll .toms-cat-arrow.toms-cat-arrow-right{right:-15px !important;}
  .toms-cat-nav.can-scroll .toms-cat-arrow{width:36px !important;height:36px !important;}
}

/* TOMS catnav instant scroll reset v6 */
@media (max-width:768px){.toms-cat-nav-inner{scroll-behavior:auto !important;}}

/* TOMS model FAQ accordion v1 */
.toms-faq{margin:24px 0;background:#fff;border:1px solid #ececec;border-radius:10px;padding:6px 18px;}
.toms-faq-title{font-size:18px;color:#111;margin:14px 4px;font-weight:700;}
.toms-faq-item{border-bottom:1px solid #f0f0f0;}
.toms-faq-item:last-child{border-bottom:none;}
.toms-faq-q{cursor:pointer;list-style:none;padding:14px 30px 14px 4px;font-weight:600;color:#1a1a1a;position:relative;font-size:15px;}
.toms-faq-q::-webkit-details-marker{display:none;}
.toms-faq-q::after{content:"+";position:absolute;right:8px;top:11px;color:#c41230;font-size:22px;font-weight:700;line-height:1;}
.toms-faq-item[open] .toms-faq-q::after{content:"\2212";}
.toms-faq-a{padding:0 4px 16px;color:#555;font-size:14px;line-height:1.6;}
.toms-faq-a a{color:#c41230;font-weight:600;text-decoration:none;}
@media(max-width:768px){.toms-faq{padding:4px 12px;}.toms-faq-title{font-size:16px;}}

/* TOMS category intro v1 */
.toms-cat-intro{max-width:880px;margin:0 auto 16px;text-align:center;color:#5a5a5a;font-size:14px;line-height:1.65;padding:0 16px;}
@media(max-width:768px){.toms-cat-intro{font-size:13px;}}

/* TOMS variant type list v1 */
#toms-variants-list.toms-variants-list{display:flex;flex-direction:column;gap:8px;}
.toms-variant-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #ececec;border-radius:8px;padding:14px 18px;text-decoration:none;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;}
.toms-variant-card:hover{border-color:#c41230;box-shadow:0 4px 14px rgba(196,18,48,.12);transform:translateX(2px);}
.toms-variant-info{display:flex;flex-direction:column;gap:3px;min-width:0;}
.toms-variant-name{font-weight:700;color:#1a1a1a;font-size:15px;line-height:1.3;}
.toms-variant-years{font-size:12.5px;color:#8a8a8a;}
.toms-variant-arrow{flex:0 0 auto;color:#c41230;}
@media(max-width:768px){.toms-variant-card{padding:12px 14px;}.toms-variant-name{font-size:14px;}}
