/* --- 1. GLOBALNE UKŁADY --- */
body { overflow-x: hidden; }
header { display: flex; justify-content: space-between; align-items: center; }

/* --- 1b. WSPÓLNY "GLASS" (UJEDNOLICONE PRZEŚWITY + ROZMYCIE) --- */
:root{
    --fv-glass-bg: transparent;
    --fv-glass-blur: 0px;
    --fv-glass-border: transparent;
}

/* >>> Header/nav styling handled by base.css <<< */

/* --- ABOUT / O NAS --- */
.about-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, #3E0013, #5D001E) !important;
    border-radius: 14px;
    border: 1px solid rgba(212,175,55,0.25);
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.about-title {
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.about-text p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.about-text .highlight-text {
    color: var(--gold);
    font-weight: 600;
    font-style: italic;
}

/* --- 2. HERO SECTION (ZMNIEJSZONY) --- */
.hero {
    min-height: 160px;
    height: auto;
    padding: 22px 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; position: relative; width: 100%; margin-bottom: 0;
    background: #F7F4F2;
    border-bottom: 1px solid #F0EDE8;
}
.hero-inner { z-index: 2; width: 100%; max-width: 800px; padding: 0 20px; }

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: none;
    margin-bottom: 8px;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.15;
}

.search-wrapper { position: relative; width: 100%; max-width: 560px; margin: 0 auto 14px auto; display: flex; }
.search-input {
    width: 100%; padding: 11px 100px 11px 20px; font-size: 0.95rem; border-radius: 50px;
    border: 2px solid #5D001E; outline: none; background: white; color: #333; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.search-input:focus { border-color: var(--gold); }
.search-btn {
    position: absolute; right: 4px; top: 4px; bottom: 4px; background: var(--burgundy);
    color: white; border: none; padding: 0 22px; border-radius: 40px; cursor: pointer; font-weight: bold; font-size: 0.88rem; transition: 0.3s;
}
.search-btn:hover { background: #3E0013; }

.hero-cta {
    display: inline-block;
    color: #5D001E;
    border: 1.5px solid #5D001E;
    padding: 7px 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
    background: transparent;
    font-size: 0.85rem;
}
.hero-cta:hover { background: #5D001E; color: #fff; }

@media (max-width: 900px) {
    .hero { min-height: 140px; padding: 18px 0; margin-bottom: 14px; }
    .hero-title { font-size: 1.5rem; margin-bottom: 10px; }
    .search-wrapper { margin-bottom: 10px; }
    .search-input { font-size: 0.9rem; padding: 10px 90px 10px 16px; }
    .search-btn { padding: 0 16px; font-size: 0.82rem; }
}

/* --- 3. UKŁAD SKLEPU (SIDEBAR + WYNIKI) --- */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
    position: relative; z-index: 10;
}

/* --- 4. SIDEBAR (FILTRY) --- */
.filters-sidebar {
    background: linear-gradient(135deg, #3E0013, #5D001E);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 100px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 20;
}

.filters-sidebar::-webkit-scrollbar { width: 6px; }
.filters-sidebar::-webkit-scrollbar-track { background: #3E0013; border-radius: 3px; }
.filters-sidebar::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.filter-section { border-bottom: 1px solid rgba(212,175,55,0.2); padding-bottom: 10px; margin-bottom: 10px; }
.filter-section:last-child { border: none; }

.accordion-btn {
    width: 100%; background: none; border: none; color: var(--gold);
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; font-size: 0.78rem; text-transform: uppercase;
    cursor: pointer; font-weight: 600; letter-spacing: 0.5px;
}
.accordion-btn i { transition: 0.3s; }
.accordion-btn.active i { transform: rotate(180deg); }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.accordion-content.show { max-height: 1000px; overflow: visible; }

.custom-check {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
    color: #ccc; font-size: 0.9rem; cursor: pointer; transition: 0.2s;
}
.custom-check:hover { color: #fff; }
.custom-check input { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }
.custom-check small { margin-left: auto; color: #888; }

.price-inputs { display: flex; gap: 10px; align-items: center; margin-top: 10px; position: relative; z-index: 50; }
.p-input {
    width: 100%; background: rgba(255,255,255,0.1); border: 1px solid rgba(212,175,55,0.3);
    color: #fff; padding: 10px; border-radius: 5px; text-align: center;
    font-size: 1rem; pointer-events: auto; user-select: text;
}
.p-input:focus { border-color: var(--gold); outline: none; background: rgba(255,255,255,0.15); }

.main-filter-btn {
    width: 100%; background: var(--gold); color: black;
    border: none; padding: 15px; font-weight: bold; text-transform: uppercase;
    border-radius: 8px; cursor: pointer; margin-top: 20px; transition: 0.3s;
    font-size: 1rem; box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}
.main-filter-btn:hover { background: white; transform: translateY(-2px); }

.clear-filters-btn {
    display: block; text-align: center; margin-top: 15px;
    color: #ccc; font-size: 0.85rem; text-decoration: underline; cursor: pointer;
}
.clear-filters-btn:hover { color: var(--gold); }

/* --- SLIDER CIEKAWOSTEK --- */
.trivia-container {
    max-width: 1000px;
    margin: 0 auto 10px auto;
    background: linear-gradient(135deg, #3E0013, #5D001E);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 12px;
    padding: 12px 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.trivia-header {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}
.trivia-slider { height: 45px; position: relative; }
.trivia-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s ease-in-out;
    color: #fff;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.4;
}
.trivia-slide.active { opacity: 1; transform: translateY(0); }

/* --- 5. GRID WYNIKÓW --- */
.wines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}
@media (max-width: 900px) {
    .wines-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .v-card { height: auto; }
    .card-img { height: 130px; padding: 6px; }
    .card-img img { object-fit: contain; }
    .card-info { padding: 8px 10px; }
    .w-name { font-size: 0.82rem; }
    .w-meta { font-size: 0.72rem; }
    .w-price { font-size: 0.9rem; }
    .w-stars { gap: 2px; }
    .w-stars .stars { font-size: 0.72rem; }
    .w-availability { font-size: 0.72rem; }
}

.v-card {
    display: block; width: 100%; position: relative; height: 420px;
    border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: 0.3s; background: #fff; color: inherit; text-decoration: none;
    border: 1px solid #F0EDE8; display: flex; flex-direction: column;
}
.v-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.card-img {
    height: 320px;
    background: linear-gradient(135deg, #3E0013, #5D001E);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: 0.5s;
}
.v-card:hover .card-img img { transform: scale(1.05); }

.card-info {
    padding: 20px; background: #fff; flex-grow: 1;
    display: flex; flex-direction: column; justify-content: flex-end; z-index: 2;
}

.w-name { font-size: 1.1rem; font-weight: bold; margin-bottom: 5px; color: #1a1a1a; line-height: 1.3; }
.w-meta { color: #999; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 6px; }
.w-price { font-size: 1.2rem; color: #5D001E; font-weight: bold; }

.w-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.w-stars .stars { color: #ddd; font-size: 0.85rem; letter-spacing: 1px; }
.w-stars .stars .filled { color: #f5c518; }
.w-stars .rating-num { font-size: 0.78rem; color: #888; }
.w-stars .rating-count { font-size: 0.75rem; color: #aaa; }

.badge { position: absolute; top: 10px; right: 10px; padding: 5px 12px; border-radius: 20px; font-weight: bold; font-size: 0.75rem; z-index: 10; letter-spacing: 1px; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.badge-hit { background: var(--gold); color: black; border: 1px solid white; }
.badge-new { background: #27ae60; color: white; border: 1px solid white; }

.pagination-container { display: flex; justify-content: center; align-items: center; gap: 15px; margin: 40px 0; color: #333; font-weight: bold; }
.pag-btn { background: #F7F4F2; color: #5D001E; border: 1px solid #E8E4DD; padding: 8px 20px; border-radius: 25px; font-size: 0.9rem; transition: 0.3s; text-decoration: none; }
.pag-btn:hover { background: #5D001E; color: white; border-color: #5D001E; }

/* Desktop: przycisk mobilny ukryty */
.mobile-filters-toggle, .mobile-filters-overlay, .mobile-close-filters { display: none; }
.mobile-filter-bar { display: none; }

@media (max-width: 900px) {
    .mobile-filter-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        position: sticky;
        top: 60px;
        z-index: 100;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid #F0EDE8;
    }
    .mobile-filters-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--gold);
        color: #000;
        border: none;
        padding: 10px 16px;
        border-radius: 999px;
        font-weight: 800;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
    }
    .mobile-filters-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: linear-gradient(135deg, #3E0013, #5D001E);
        z-index: 1900;
    }
    .mobile-filters-overlay.is-open { display: block; }
    .mobile-close-filters {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px; height: 36px;
        border-radius: 10px;
        border: 1px solid #ddd;
        background: #fff;
        color: #5D001E;
        cursor: pointer;
    }
    /* Na mobile: sidebar jako fixed drawer */
    .shop-layout { grid-template-columns: 1fr; }
    .filters-sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        width: 86vw;
        max-width: 360px;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        z-index: 2000;
        border-radius: 0;
        overflow-y: auto;
        max-height: 100vh;
    }
    .filters-sidebar.is-open { transform: translateX(0); }
    .trivia-slider { height: 60px; }
    .trivia-slide { font-size: 0.9rem; }
}

/* Lista sklepów w filtrach - przewijana */
.stores-scroll {
    max-height: 220px;
    overflow: auto;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    margin-top: 10px;
}

/* SEKCJE SPECJALNE */
.section-banners, .section-map, .partners-section {
    padding: 20px 5%;
    text-align: center;
    position: relative;
    background: transparent;
    z-index: 10;
}
.section-map { color: #1a1a1a; }

/* Baner Wino na dziś — burgundowy */
.wino-dnia-banner {
    background: linear-gradient(135deg, #3E0013, #5D001E);
    color: #fff;
    border-top: none;
}

/* Sekcja B2B — burgundowa */
.b2b-section {
    padding: 20px 5%;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #3E0013, #5D001E);
    color: #fff;
    z-index: 10;
    border-top: none;
}

.type-banner-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
@media (max-width: 900px) {
    .type-banner-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        gap: 8px;
    }
    .type-banner-container::-webkit-scrollbar { display: none; }
    .type-banner {
        flex: 0 0 120px;
        width: 120px;
        scroll-snap-align: start;
    }
}

.type-banner {
    display: flex; flex-direction: column; width: 150px; position: relative;
    border-radius: 10px; overflow: hidden; background: #fff;
    transition: 0.3s; border: 1px solid #E8E4DD;
}
.type-banner:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: var(--gold); }

.type-banner img { width: 100%; height: auto; display: block; object-fit: contain; }

.type-banner.is-deserowe img {
    transform: none;
}

.v-label {
    width: 100%; background: #5D001E; color: #fff;
    padding: 6px; font-weight: 600; font-size: 0.82rem; text-align: center;
}

/* PARTNERZY */
.partners-section {
    background: transparent;
    color: #333;
}
.partners-section p { max-width: 900px; margin: 12px auto 0 auto; color: #666; line-height: 1.6; }

/* B2B – burgundowy */
.b2b-section {
    color: #1a1a1a;
    margin-top: 20px;
    border-top: none;
    background: transparent;
    padding: 20px 5%;
    text-align: center;
}
.b2b-content {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #3E0013, #5D001E);
    color: #fff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid rgba(212,175,55,0.25);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.b2b-btn {
    background: var(--gold);
    border: none;
    color: #000;
    padding: 10px 32px;
    font-size: 0.95rem;
    margin-top: 16px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}
.b2b-btn:hover { background: #fff; transform: translateY(-2px); }
