:root {
    --primary: #b30000;
    --dark: #121212;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.96);
    --amazon: #ff9900;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--light); color: #1e293b; line-height: 1.6; overflow-x: hidden; }

/* NAV */
.main-nav { background: var(--dark); color: white; position: sticky; top: 0; z-index: 9999; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 70px; padding: 0 20px; position: relative; }
.logo { font-size: 24px; font-weight: 800; color: white; text-decoration: none; }
.logo span { color: var(--primary); }
.nav-links { list-style: none; display: flex; height: 100%; }
.dropdown { position: static; height: 100%; }
.dropbtn { display: flex; align-items: center; height: 100%; padding: 0 20px; color: white; text-decoration: none; font-weight: 600; }

.mega-menu {
    position: absolute; top: 70px; right: 20px; width: 95vw; max-width: 1100px; 
    background: white; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: none; padding: 30px; border-bottom: 5px solid var(--primary);
    border-radius: 0 0 15px 15px; z-index: 10000;
}
@media (min-width: 769px) { .dropdown:hover .mega-menu { display: block; } }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mega-col h4 { color: var(--primary); margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 5px; font-size: 14px; }
.mega-col a { display: block; padding: 5px 0; color: #333; text-decoration: none; font-size: 14px; }

/* HERO - WEBP HÁTTÉRREL */
.hero { 
    min-height: 550px; 
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/bg.webp') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.search-container { background: var(--glass); width: 100%; max-width: 800px; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.3); }
.tab-buttons { display: flex; background: #eee; }
.tab-btn { flex: 1; padding: 18px; border: none; cursor: pointer; font-weight: 800; color: #666; font-size: 14px; }
.tab-btn.active { background: white; color: var(--primary); border-top: 4px solid var(--primary); }
.tab-content { padding: 35px; display: none; }
.tab-content.active { display: block; }

/* KERESŐ MEZŐK */
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.size-layout { grid-template-columns: repeat(3, 1fr); }
.full-width { grid-column: span 3; }

select, input { 
    height: 50px; padding: 0 15px; border: 1px solid #ddd; border-radius: 10px; font-size: 16px; width: 100%; background: white; 
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 15px;
}
.hero-search-btn { height: 50px; background: var(--primary); color: white; border: none; border-radius: 10px; font-weight: 800; cursor: pointer; font-size: 16px; }

/* RESULTS */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.results-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; margin-bottom: 40px;}
.car-card { background: white; padding: 30px; border-radius: 15px; text-align: center; border: 1px solid #eee; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.tire-value { font-size: 2.2rem; font-weight: 900; color: var(--primary); margin: 15px 0; }
.btn-amazon { display: block; background: var(--amazon); color: black; text-decoration: none; padding: 16px; border-radius: 12px; font-weight: 800; }

/* BRAND SLIDER - OPTIMALIZÁLT */
.brand-slider { background: white; padding: 25px 0; overflow: hidden; border-top: 1px solid #eee; contain: content; }
.brand-track { display: flex; gap: 40px; align-items: center; width: max-content; animation: scroll 40s linear infinite; }
/* Logó stílus alaphelyzet */
.brand-track img { opacity: 0.5; filter: grayscale(100%); transition: 0.3s; }
.brand-track img:hover { filter: grayscale(0%); opacity: 1; }

@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 768px) {
    .hero { min-height: auto; padding: 30px 10px; }
    select, input, .hero-search-btn { height: 60px !important; font-size: 18px !important; }
    .search-grid { grid-template-columns: 1fr; }
    .size-layout { grid-template-columns: 1fr !important; }
    .full-width { grid-column: span 1; }
}