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

/* ===== RESET & BASE ===== */
.toms-page { color: #222; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.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-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 6px;
}
.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%;
    margin-bottom: 6px;
    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;
}

/* ===== 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-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; }
    .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;
}
.toms-recs-vehicle-header img {
    width: 180px;
    height: 110px;
    object-fit: contain;
}
