/* =========================================================
   TACTICAL COMMERCE - STRONA GŁÓWNA
   ========================================================= */

/* ---- Przełącznik językowy (header) ---- */
.language-switcher {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.language-switcher .lang-item a {
    display: block;
    padding: 4px 8px;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    border-radius: var(--radius);
}

.language-switcher .lang-item.current-lang a {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.language-switcher .lang-item a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ---- Hero slider ---- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background: var(--color-bg-elevated);
}

@media (max-width: 700px) {
    .hero-slider {
        height: 420px;
    }
}

.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
    display: flex;
    align-items: center;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.55) 55%, rgba(11,11,12,.25) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.hero-slide-content h1 {
    font-size: 2.6rem;
    margin-bottom: .3em;
}

.hero-slide-content p {
    color: var(--color-text);
    font-size: 1.05rem;
    margin-bottom: 1.4em;
}

@media (max-width: 700px) {
    .hero-slide-content h1 {
        font-size: 1.8rem;
    }
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11,11,12,.6);
    border: 1px solid var(--color-border);
    color: #fff;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    border-radius: 50%;
}

.hero-nav:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.hero-nav-prev { left: 20px; }
.hero-nav-next { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: none;
    cursor: pointer;
    padding: 0;
}

.hero-dot.is-active {
    background: var(--color-accent);
}

/* ---- Sekcje strony głównej ---- */
.home-section {
    padding: 56px 0;
}

.home-section h2 {
    text-align: center;
    margin-bottom: 32px;
}

/* ---- Siatka marek pojazdów ---- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.brand-tile {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-align: center;
    padding: 22px 12px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: var(--radius);
    transition: border-color .15s ease, color .15s ease, transform .15s ease;
}

.brand-tile:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* ---- Polecane produkty (nadpisanie siatki shortcode WC na stronie głównej) ---- */
.home-featured-products ul.products {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1000px) {
    .home-featured-products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .home-featured-products ul.products {
        grid-template-columns: 1fr;
    }
}
