/* ===================== */
/* Ogólne style strony   */
/* ===================== */
#wine-list {
    display: flex;
    flex-direction: column;
}

/* Główne sekcje – butelka, dane o winie, mapa */
.wine-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

/* Container lewej kolumny – wyraźny kwadrat */
.wine-card-left {
    flex: 0 0 30%;
    text-align: center;
    position: relative;
    margin: 0 auto;
}

/* Kółko-tło */
.bottle-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;             /* lub inna wartość % / px według uznania */
    aspect-ratio: 1 / 1;    /* wysokość = szerokość */
    background-size: cover;
    background-position: center;
    border-radius: 50%;     /* zamienia kwadrat w koło */
    z-index: 0;
}

/* Butelka i przycisk nad kółkiem */
.bottle-image,
.download-btn {
    position: relative;
    z-index: 1;
}

/* Opcjonalnie zmniejsz img butelki, aby dobrze komponowała się względem kółka */
.bottle-image img.wine-img {
    max-width: 60%;
    height: 550px;
    display: block;
    margin: 0 auto;
}

/* Przycisk pod butelką */
.download-btn {
    text-align: center;
    margin-top: 10px;
}

/* Środkowa i prawa kolumna karty */
.wine-card-middle {
    flex: 1;
}

.wine-card-right {
    flex: 0 0 20%;
    text-align: center;
}

.wine-card-right .map-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

/* Dolny blok karty */
.wine-card-bottom {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.wine-card-left-empty {
    flex: 0 0 30%;
}

.wine-card-right-bottom {
    flex: 1;
    text-align: left;
}

/* ===================== */
/* Tabela GŁÓWNA (.wine-details)  */
/* ===================== */
.wine-details {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: none;
    display: table;          /* przywracamy zachowanie tabeli */
    table-layout: fixed;
}

.wine-details tr {
    border: none;
    display: table-row;
}

.wine-details td {
    display: table-cell !important;  /* nadpisuje ewentualne display:block */
    width: 50%;                      /* po 50% na każdą kolumnę */
    vertical-align: top;             /* wyrównanie góra */
    padding: 0.5rem;                 /* zachowaj odstępy */
}
.wine-details-label {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: normal;
}

.wine-details-value {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: bold;
    margin-left: 5px;
}

.alcohol-content-table {
    border-bottom: 2px solid #707070;
}

.temperature-content-table {
    margin: 0;
    padding: 10px;
}
.left-column .alc-divider {
    height: 1px;
    background-color: #333; /* Twój odcień czerwieni */
    margin: 1rem 0;            /* odstęp w pionie – dostosuj wedle potrzeby */
}
.wine-details td.right-column,
td.left-column {
    opacity: 1;
    border: 2px solid #707070;
}

/* ===================== */
/* Responsywna tabela    */
/* (.wine-info-table)    */
/* ===================== */
.wine-info-table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

.wine-info-table th,
.wine-info-table td {
    border: none;
    border-collapse: collapse;
}

.wine-info-table th:nth-child(-n+3),
.wine-info-table td:nth-child(-n+3) {
    border-right: 2px solid #000; /* dopasuj kolor/grubość */
}
.wine-info-table thead th {
    border-top: none !important;
}
.wine-info-table th:nth-child(n+2),
.wine-info-table td:nth-child(n+2) {
    padding-left: 20px;  /* tu ustaw dowolną wartość */
}
.wine-info-table caption {
    font-size: 1.5em;
    margin: .5em 0 .75em;
}

.wine-info-table tr {
    padding: .35em;
}

.wine-info-table th {
    font-family: 'Georgia', sans-serif;
    font-size: 25px;
    font-weight: bold;
    padding: 15px 15px 15px 0;
    vertical-align: middle;

}

.wine-info-table td {
    padding: 15px 15px 15px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}
table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
    background-color: #fff;
}
/* DOMYŚLNIE: pokazuj tabelę i ukrywaj mobile-view */
.wine-mobile-view { display: none; }
.wine-info-table { display: table; }

/* WERSJA MOBILNA */
@media screen and (max-width: 992px) {
    /* chowamy tabelę */
    .wine-info-table { display: none; }

    /* pokazujemy mobilną wersję */
    .wine-mobile-view { display: block; }

    /* kontener wszystkich sekcji */
    .wine-mobile-view {
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
        margin: 1em 0;
    }

    /* każda sekcja to jedna kolumna */
    .wine-mobile-section {
        padding: 1em 0;
    }
    .wine-mobile-section:first-child {
        border-top: none;
    }

    /* nagłówki sekcji */
    .wine-mobile-section h3 {
        margin: 0 0 0.5em;
        text-align: center;
        font-family: 'Georgia', serif;
        font-weight: bold;
        font-size: 28px;
    }

    /* wartości */
    .wine-mobile-section p {
        margin: 0.25em 0;
        text-align: center;
        font-family: 'Poppins', sans-serif;
        font-size: 1em;
    }
}



/* ===================== */
/* Pozostałe elementy    */
/* ===================== */
.pdf-link {
    display: inline-block;
    text-align: center;
    font: 600 20px Poppins, sans-serif;
    color: #F8F7F7;
    text-transform: uppercase;
    background: #2D2D2D;
    text-decoration: none;
    padding: 10px 20px;
    margin-top: 30px;
}

.pdf-link:hover {
    background-color: #A4243B;
    color: #fff;
}

.header-text,
.also-like-title {
    font-family: Georgia, serif;
    font-size: 36px;
    font-weight: bold;
    flex-shrink: 0;
}

.pair-icons-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.pair-icons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.pair-icon-item {
    display: inline-block;
}

.pair-icon {
    width: 80px;
    height: 80px;
    display: block;
}
@media (max-width: 576px) {
    /* W sekcji z ikonami ustawiamy kolumnę zamiast wiersza */
    .pair-icons-wrapper {
        flex-direction: column;
        align-items: center; /* lub center, jeśli chcesz wyśrodkować */
        gap: 0;
    }

    /* Daj odrobinę przestrzeni między tekstem a ikonami */
    .pair-icons-list {
        margin-top: 20px;
    }
    .wine-card-right {
        display: none;
    }
    .wine-card-small img {
        max-height: 250px;
    }
}
.wine-details-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin: 5px 0;
}
@media (max-width: 992px) {
    /* W sekcji z ikonami ustawiamy kolumnę zamiast wiersza */
    .pair-icons-wrapper {
        flex-direction: column;
        align-items: center; /* lub center, jeśli chcesz wyśrodkować */
        gap: 0;
    }

    /* Daj odrobinę przestrzeni między tekstem a ikonami */
    .pair-icons-list {
        margin-top: 20px;
    }
    .wine-card-right {
        display: none;
    }
    .wine-card-small img {
        max-height: 250px;
    }
}
.wine-details-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin: 5px 0;
}

/* ===================== */
/* Pozostałe style karty */
/* ===================== */
.wine-card {
    position: relative;
    padding: 15px;
    border-radius: 12px;
}
.wine-title-archive{
    font-family: "Gelasio", Sans-serif;
    font-weight: 600;
}
.wine-title-archive a{
    color: #000;
}
.wine-title {
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 70px;
    margin: 10px 0 5px;
}

.wine-details th,
.wine-card-bottom h2,
.wine-card-left-empty p,
.wine-card-left p {
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 25px;
}

.wine-details td,
.wine-card-content,
.wine-card-bottom,
.wine-card-middle,
.wine-card-left p,
.wine-card-right p,
.wine-taste {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

/* ===================== */
/* ELEMENTY ARCHIWUM      */
/* ===================== */
.wine-archive-container {
    display: flex;
    gap: 40px;
    padding: 40px;
}

.wine-sidebar {
    flex: 0 0 20%;
}

.wine-listing {
    flex: 1;
}

/* ===================== */
/* Siatka w archiwum win  */
/* ===================== */
.wine-grid {
    align-items: stretch;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /*justify-items: stretch;*/
    text-align: center;
}
.wine-grid > .wine-card,
.wine-grid > .wine-card-small {
    display: flex;
    flex-direction: column;
}

/* przycisk „WIĘCEJ” na dole kontenera flex */
.wine-grid .more-link {
    margin-top: auto;
    /* opcjonalnie jeśli chcesz centrować poziomo: */
    align-self: center;
}
.wine-grid .wine-card {
    width: 100%;
}
.wine-grid .wine-card-small .more-link {
    margin-top: auto;           /* wypchnie „WIĘCEJ” na dół kolumny */
}
.wine-grid > .wine-card-small {
    display: flex;
    flex-direction: column;
    align-items: center;       /* jeśli chcesz trzymać poziome centrowanie */
    height: 100%;
}

.wine-thumb {
    display: block;
    margin: 0 auto 10px;
    height: 350px!important;
    width: auto;
    object-fit: cover;
}

.wine-taste {
    color: #666;
    font-size: 14px;
    margin: 0 auto 15px;
}

.more-link {
    border: 1px solid #2D2D2D;
    display: inline-block;
    color: #2D2D2D;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 40px;
    text-transform: uppercase;
    /*margin: 0 auto;*/
}

.more-link:hover {
    background-color: #A4243B;
    color: #fff;
    border-color: #A4243B;
}

/* ===================== */
/* Formularz i selecty    */
/* ===================== */
.wine-search-input {
    width: 100%;
    border: 1px solid #ccc;
    /*background-image: url("/wp-content/themes/hello-elementor-child/images/lupa.svg");*/
    /*background-repeat: no-repeat;*/
    /*background-position: 10px center;*/
}
.comment-respond {
    display: none;
}
.entry-title {
    font-family: "Georgia", Sans-serif;
    font-weight: 600;
}
/* domyślny select */
select.wine-filter {
    color: #5B595A;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 20px;
    border: 1px solid #2D2D2D;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    margin: 20px 0;
    border-radius: 0;
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* strzałka wewnętrzna */
select.wine-filter {
    background-image: url("/wp-content/themes/hello-elementor-child/images/strzalka.png");
}

select.wine-filter::-ms-expand {
    display: none;
}

/* ===================== */
/* Przycisk Dodaj do koszyka oraz etykiety */
/* ===================== */
.add-to-cart {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 1px solid #707070;
    border-radius: 50%;
    background-color: #fff;
    color: #5B595A;
    font-size: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.add-to-cart span {
    position: relative;
    top: -5px;
}

.wine-labels {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    z-index:1;
}

.wine-label-item {
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    white-space: nowrap;
    font-family: Poppins;
}
a.wine-label-item:hover{
    color:#fff;
}

.wine-details-wrap p {
    padding-bottom: 20px;
}

.alcohol-value,
.temperature-value {
    font: bold 40px Poppins, sans-serif;
    padding: 0 0 0 20px;
}

.serving-temp-label,
.alcohol-label {
    padding: 20px 0 0 20px;
}

.info-items {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0 0 8px;
    min-height: 250px;
}

/* ===================== */
/* Sekcja "Mogą Ci się też spodobać" */
/* ===================== */
.also-like {
    margin: 40px auto;
    width: 80%;
    padding-bottom: 50px;
}

.also-like-title {
    margin-bottom: 50px;
}

.also-like-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    justify-items: center;
}


.wine-card-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: space-between;*/
    padding-top: 20px;
    height: 100%;
    max-width: 180px; /* albo inna wartość według potrzeby */
    min-width: 180px;
    margin: 0 auto 1rem; /* poziomo auto, dołem trochę odstępu */

}
.wine-card-small h4,
.wine-card-small p {
    text-align: center;
}
.wine-card-small img {
    height: 350px;
    width: auto;
    object-fit: cover;
}

.wine-card-small h4 {
    margin: 10px 0 5px;
}

.also-like-grid .wine-card-small {
    display: flex;
    flex-direction: column;
}
.also-like-grid .wine-card-small .button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 2px 0;
    border: 2px solid #2D2D2D;
    color: #2D2D2D;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    margin-top: auto;
}
}

/* ===================== */
/* Filtry po lewej stronie */
/* ===================== */
.filters-title {
    color: #5B595A;
    font: 24px Poppins;
}

/* ===== Przycisk „Lista kart” ===== */
.wine-cart-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    background: #A4243B;
    color: #fff;
    border: none;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
}

.wine-cart-toggle__icon {
    position: relative;
    display: inline-block;
}

.wine-cart-toggle__icon svg {
    width: 24px;
    height: 24px;
}

.wine-cart-toggle__badge {
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

/* ===== Modal koszyka ===== */
.wine-cart-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.wine-cart-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.wine-cart-modal__content {
    position: relative;
    background: #fff;
    max-width: 400px;
    margin: 80px auto;
    padding: 20px;
    z-index: 1;
}

.wine-cart-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

#wine-cart-modal ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

#wine-cart-modal li {
    margin-bottom: 10px;
}

#wine-cart-modal .wine-cart-modal__pdf {
    display: block;
    width: 100%;
    padding: 12px 0;
    background: #2D2D2D;
    color: #fff;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

/* ===================== */
/* Social Media Links    */
/* ===================== */
.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.social-links__label {
    font-weight: bold;
    font-size: 20px;
    white-space: nowrap;
}

.social-links__list {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-links__icon {
    width: 42px;
    height: 42px;
    object-fit: cover;
    display: block;
}

/* ===================== */
/* Back to top           */
/* ===================== */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);

    /* tu wstaw swój kolor kółka (jeśli PNG ma przezroczystości) */
    background-color: #600;

    /* ikona jako tło */
    background-image: url('/wp-content/themes/hello-elementor-child/images/strzalka-top.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 60%;    /* dostosuj wielkość strzałki wewnątrz kółka */

    display: flex;     /* nie jest konieczne, ale masz wyrównanie w pionie/poziomie */
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    z-index: 9999;
}

#back-to-top.show {
    opacity: 0.8;
    visibility: visible;
}

#back-to-top:hover {
    opacity: 1;
}


html {
    scroll-behavior: smooth;
}

/* ============================================
   BREAKPOINTS:
     xs  ≤320px
     sm  ≤576px
     md  ≤768px
     lg  ≤992px
     xl  ≤1200px
     xxl ≤1400px
============================================ */

/* ================================ */
/* Ikonki po lewej w selectach (ACF) */
/* ================================ */
.filter-wrapper {
    position: relative;
}
.filter-wrapper .filter-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    pointer-events: none;
}
.filter-wrapper .wine-filter {
    padding: 12px 40px 12px 48px;
    appearance: none;
}
/* ============================================ */
/* Układ kolumn w formularzu [wine_search]       */
/* ============================================ */
.wine-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
}

/* Pole tekstowe nad wszystkimi kolumnami */
.wine-search-form .wine-search-input {
    background-color: #E6E6E6;
    grid-column: 1 / -1;
    padding: 25px 20px 25px 20px;
    border-radius: 0px;
    width: 100%;
}

/* Usuń margines spod selectów w tym formularzu */
.wine-search-form select.wine-filter {
    margin: 20;
}

/* 1st column: Wytrawność, Kraj, Szczep, przycisk */
.wine-search-form select.wine-filter:nth-of-type(3),
.wine-search-form select.wine-filter:nth-of-type(4),
.wine-search-form select.wine-filter:nth-of-type(5),
.wine-search-form .wine-filter-button {
    grid-column: 1;
}

/* 2nd column: Rodzaj, Kolor, Sugestie do potraw */
.wine-search-form select.wine-filter:nth-of-type(1),
.wine-search-form select.wine-filter:nth-of-type(2),
.wine-search-form select.wine-filter:nth-of-type(6) {
    grid-column: 2;
}

/* ===================== */
/* Przycisk wyszukaj      */
/* ===================== */
.wine-filter-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    background: #A4243B;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 0px;
    margin-bottom: 20px;
}
.wine-filter-clear-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    outline: 2px solid #A4243B;
    cursor: pointer;
    border-radius: 0px;
    margin-bottom: 50px;
    outline-offset: -2px;
    border: none;
}
/* kontener: wyrównanie w poziomie */
.latest-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;      /* centrowanie całej siatki */
}

/* pojedynczy kafelek: układ kolumnowy, wyśrodkowane */
.latest-post-item {
    position: relative;
    width: calc(25% - 1.5rem);
    padding: 1rem;
    background: #fff;
    overflow: hidden;

    /* dodane: flex kolumnowy do centrowania zawartości */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


/* Pole tekstowe nad wszystkimi kolumnami */
.wine-search-form .wine-search-input {
    background-color: #E6E6E6;
    grid-column: 1 / -1;
    padding: 25px 20px 25px 20px;
    border-radius: 0px;
    width: 100%;
}

/* Usuń margines spod selectów w tym formularzu */
.wine-search-form select.wine-filter {
    margin: 20;
}

/* 1st column: Wytrawność, Kraj, Szczep, przycisk */
.wine-search-form select.wine-filter:nth-of-type(3),
.wine-search-form select.wine-filter:nth-of-type(4),
.wine-search-form select.wine-filter:nth-of-type(5),
.wine-search-form .wine-filter-button {
    grid-column: 1;
}

/* 2nd column: Rodzaj, Kolor, Sugestie do potraw */
.wine-search-form select.wine-filter:nth-of-type(1),
.wine-search-form select.wine-filter:nth-of-type(2),
.wine-search-form select.wine-filter:nth-of-type(6) {
    grid-column: 2;
}

/* ===================== */
/* Przycisk wyszukaj      */
/* ===================== */
.wine-filter-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 0;
    background: #A4243B;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 0px;
    margin-bottom: 20px;
}

/* kontener: wyrównanie w poziomie */
.latest-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;      /* centrowanie całej siatki */
}

/* pojedynczy kafelek: układ kolumnowy, wyśrodkowane */
.latest-post-item {
    position: relative;
    width: calc(25% - 1.5rem);
    padding: 1rem;
    background: #fff;
    overflow: hidden;

    /* dodane: flex kolumnowy do centrowania zawartości */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ewentualne marginesy między elementami wewnątrz */
.latest-post-item img {
    margin-bottom: 0.5rem;
}
.latest-post-title {
    margin: 0.75rem 0 0.5rem;
}
.latest-post-excerpt {
    margin-bottom: 0.75rem;
}
.latest-post-more {
    margin-top: auto;
    background-color: #A4243B;
    font-family: "Poppins", Sans-serif;
    color: #fff;
    font-size: 15px;
    font-weight: 300;
    border-radius: 0;
    padding: 15px 50px;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
}
.latest-post-more:hover{
    color: #fff;
}

a.advanced{
    color:#C3C3C3 ;
}

/* badge kategorii */
.latest-post-category {
    position: absolute;
    right: 1.25em;
    top: 2rem;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 2px;
    font-family: "Poppins", Sans-serif;
}

/* kolory badge (przykład) */
.latest-post-category--wywiad             { background: #3B2771; }
.latest-post-category--nowosci            { background: #085729; }
.latest-post-category--kampania-spoleczna { background: #D2CD42; }
.latest-post-category--publikacja         { background: #7F388D; }

@media (min-width: 576px) {
    .latest-post-category {
        right: 8.25em;
    }
}

@media (min-width: 768px) {
    .latest-post-category {
        right: 16.25em;
    }
}

@media (min-width: 992px) {
    .latest-post-category {
        right: 1.25em;
    }
}
@media (min-width: 1800px) {
    .latest-post-category {
        right: 4.25em;
    }
}
@media (min-width: 2000px) {
    .latest-post-category {
        right: 6.25em;
    }
}
@media (max-width: 768px) {
    .latest-post-item {
        width: 100%;   /* zajmuje całą szerokość kontenera */
    }
}

/* każda karta to slide */
.logo-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* opcjonalnie: ograniczenie rozmiaru obrazków */
.logo-carousel .swiper-slide img {
    max-width: 100%;
    height: 150px;
    display: block;
}
.logo-carousel {
    position: relative;
    padding: 1rem 0;
}

/* strzałki */
.swiper-button-next::after, .swiper-button-prev::after {

    color: #5B595A;!important;
}

/* ============================= */
/* RESPONSYWNOŚĆ ARCHIVE-WINE    */
/* ============================= */

/* xxl ≤1400px – siatka 3 kolumny */
@media (max-width: 1400px) {

}

/* xl ≤1200px – siatka 2 kolumny */
@media (max-width: 1200px) {
    .wine-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* lg ≤992px – sidebar nad listingiem; przestrzeń zmniejszona */
@media (max-width: 992px) {
    .wine-archive-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .wine-sidebar {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }
    .wine-listing {
        width: 100%;
    }
    .wine-grid {
        gap: 20px;
    }
}

/* md ≤768px – siatka 1 kolumna dla kart */
@media (max-width: 768px) {
    .wine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* sm ≤576px – mniejsze przyciski i linki */
@media (max-width: 576px) {
    .wine-filter-button,
    .wine-cart-toggle {
        font-size: 14px;
        padding: 10px 15px;
    }
    .more-link {
        padding: 5px 20px;
        font-size: 14px;
    }
}

/* xs ≤320px – ukryj przycisk “Lista kart” dla zaoszczędzenia miejsca */
@media (max-width: 320px) {
    .wine-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0; /* opcjonalnie: odstęp pionowy */
}

.pagination-wrapper a{
    margin: 0 5px; /* poziomy odstęp między cyframi i linkami */
}


/* === 1200px === */
@media (max-width: 1200px) {

    .map-img {
        width: 100%;
        max-width: 250px;
    }

    .wine-details-table {
        font-size: 0.95rem;
    }
}

/* === 992px === */
@media (max-width: 992px) {
    .wine-card-content {
        flex-direction: column;
        align-items: center;
    }
    .bottle-bg {
        top: 59%;
        width: 35%;
    }

    .wine-card-left,
    .wine-card-middle,
    .wine-card-right {
        width: 100%;
        text-align: center;
    }

    .wine-card-middle {
        padding-top: 0;
    }

    .wine-details-table table {
        margin: 0 auto;
    }

    .map-img {
        margin: 1rem auto;
    }

    .wine-card-bottom {
        flex-direction: column;
    }

    .wine-card-right-bottom {
        width: 100%;
    }

    .wine-card-left-empty {
        display: none;
    }
}

/* === 768px === */
@media (max-width: 768px) {
    .wine-details td {
        display: block;
        padding: 0.5rem 0;
    }

    .pair-icons-list {
        flex-wrap: wrap;
        justify-content: center;
    }


    .wine-card-small {
        text-align: center;
    }
}

/* === 576px === */
@media (max-width: 576px) {
    .also-like-grid {
        grid-template-columns: 1fr;
    }

    .social-links__label {
        display: block;
        margin-bottom: 0.5rem;
    }

    .social-links__list {
        justify-content: center;
    }
}

/* === 320px === */
@media (max-width: 320px) {
    .wine-title {
        font-size: 36px;
    }
    .serving-temp-label, .alcohol-label {
        padding: 0;
        text-align: left;
    }
    table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th{
        padding-left: 10px;
    }
    .alcohol-value, .temperature-value, .alcohol-label
    {
        padding: 0;
        text-align: left;
    }
    .alcohol-value, .temperature-value {
        font-size: 30px;
    }
    .pair-icons-wrapper
    {
        padding-bottom: 30px;
    }
    .wine-details-text {
        padding-bottom: 20px;
    }
    .info-items
    {padding: 0;}
    .wine-details td.right-column, td.left-column {
        text-align: left;
    }
    .wine-card-small img {
        max-width: 100%;
        height: auto;
    }
}
.wine-info-responsive {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wine-info-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    padding-bottom: 20px;

}

.wine-info-item {
    display: flex;
    flex-direction: column;
}

.wine-info-label {
    font-weight: bold;
    color: #444;
    margin-bottom: 0.25rem;
}

.wine-info-value {
    font-size: 1rem;
    color: #222;
}

/* Breakpoint: 768px i mniej – układ pionowy */
@media (max-width: 768px) {
    .wine-info-entry {
        grid-template-columns: 1fr;
    }
    .bottle-bg {
        top: 60%;
        width: 50%;
    }

}
@media (min-width: 576px) {
    .wine-title {
        font-size: 55px;
    }
}
@media only screen and (min-width: 320px) and (max-width: 575px) {
    .wine-title{
        font-size: 40px;
    }
    .bottle-image img.wine-img {
        max-width: 100%;
        height: 450px;
    }

    .bottle-bg {
        top: 59%;
        width: 100%;
    }

    /* ytuł teraz w .wine-card-left, więc wyrównaj go */
    .wine-card-left .wine-title {
        position: relative;
        z-index: 1;
        margin-bottom: 0.5em;
        text-align: center;
    }

    .pdf-link {
        margin-bottom: 20px;
    }
    .wine-details-text {
        display: flex;
        flex-direction: column; /* pionowo */
        align-items: center;
    }

    /* ikony mają być pierwsze */
    .wine-details-text {
        order: 1;
        margin-bottom: 0.5rem; /* odstęp między ikonami a tekstem */
    }

    span.header-text {
        font-size: 28px;
    }
    .wine-details-wrap p {
        text-align: center;
    }
    .social-links {
        display: flex;
        flex-direction: column;
        align-items: center;      /* centrowanie poziome */
        text-align: center;       /* centrowanie tekstu etykiety */
        gap: 0;
        border-top: 1px solid black;
        border-bottom: 1px solid black;

    }

    /* Tekst etykiety: trochę odstępu poniżej */
    .social-links__label {
        padding-top: 20px;
        margin-bottom: 0.5rem;
        font-size: 16px;
    }

    /* Lista ikon: wiersz, wyśrodkuj je */
    .social-links__list {
        display: flex;
        flex-direction: row;      /* obok siebie */
        justify-content: center;  /* centrowanie poziome */
        padding-bottom: 20px;

    }
    .header-text, .also-like-title{
        font-size: 28px;
        text-align: center;
    }
    .wine-details-wrap {
        margin-top: 40px;
    }

}

.wine-search-form-v2 {
    display: flex;
    max-width: 400px;       /* dopasuj szerokość */
    margin: 0 auto;         /* wycentrowanie */
}

.wine-search-input-v2 {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-right: none;
    outline: none;
    border-radius: 0;
}
input[type=text] {

    border-radius: 0px; }

.wine-search-input-v2::placeholder {
    color: #999;
}

.wine-search-button-v2 {
    min-width: 40px;
    background-color: #A4243B;
    font-size: 20px;
    border: 1px solid #A4243B;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0;
}

.wine-search-button-v2 svg {
    display: block;
}

.wine-search-button-v2:hover {
    background: #8e1f35;
    border-color: #8e1f35;
}

.wine-card-small h4 {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: bold;
}
@media only screen and (min-width: 1024px) {
    .wine-title{
        font-size: 60px;
    }
    .bottle-image img.wine-img {
        max-width: 100%;
        height: 450px;
    }

    .bottle-bg {
        top: 48%;
        width: 95%;
    }

    .pdf-link {
        margin-top: 30px;
    }
    span.header-text {
        font-size: 28px;
    }

    .header-text, .also-like-title{
        font-size: 28px;
    }
    .wine-details-wrap {
        margin-top: 40px;
    }
}

@media only screen and (min-width: 1400px) {

    .bottle-image img.wine-img {
        max-width: 100%;
        height: 450px;
    }

    .bottle-bg {
        top: 48%;
        width: 80%;
        max-width: 300px;
    }
}
/* —————————————————————————————— */
/* Accordion „FILTRY” za pomocą <details> */
/* —————————————————————————————— */

/* 1) Podstawowe style summary */
.filters-details summary,
.filters-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    user-select: none;
    color:#5B595A;
}

/* usuń domyślną strzałkę */
.filters-details summary::-webkit-details-marker {
    display: none;
}

/* własna strzałka */
.filters-details summary::after {
    content: '▾';
    font-size: 1.25rem;
    line-height: 1;
    transition: transform .2s;
}

/* 2) Zawartość panelu */
.filters-content {
    display: block;
    padding: 1rem;
    border: 1px solid #ccc;
    border-top: none;
    background: #fafafa;
    border-radius: 0 0 4px 4px;
}

/* domyślnie schowaj na mobilkach (JS ustawi open) */
@media (max-width: 992px) {
    .filters-content {
        display: none;
    }
    .filters-details[open] .filters-content {
        display: block;
    }
    /* obrót strzałki */
    .filters-details[open] summary::after {
        transform: rotate(180deg);
    }
}

@media (min-width: 993px) {

    .filters-details summary::after {
        display: none !important;
    }

    .filters-details summary {
        cursor: default;
        pointer-events: none;
    }

    .filters-content {
        display: block !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
}

.newsletter-info {
    font-weight: 600 !important;
}

.info-items .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
}

.info-items .info-icon {
    width: 30px;      /* mniejsza szerokość */
    height: 30px;     /* mniejsza wysokość */
    margin-right: 0.5em;
    flex-shrink: 0;
}



/* Kółeczko obok smaku */
.info-items .info-dot,
.wine-taste .info-dot {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 0.5em;
    background-color: transparent; /* domyślnie niewidoczne */
}

/* Kolory kółeczka wg koloru wina */
.info-items .info-taste.biale   .info-dot, .wine-taste .info-dot.biale { background-color: #E5E1AA; }
.info-items .info-taste.czerwone .info-dot, .wine-taste .info-dot.czerwone{ background-color: #A4243B; }
.info-items .info-taste.rozowe   .info-dot, .wine-taste .info-dot.rozowe { background-color: #f8d0bb; }

.info-items .info-item strong {
    flex-shrink: 0;           /* etykieta się nie złamie */
}

.aktualnosci {
    text-align: center;
    font-family: "Georgia", Sans-serif;
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 2rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid #ccc;
    font-family: "Georgia", Sans-serif;
    font-size: 16px;
}
.post-navigation a {
    color: #A4243B;
    text-decoration: none;
    font-weight: bold;
}
.post-navigation a:hover {
    text-decoration: underline;
}

/* ============================= */
/* SORTUJ – poprawiona wersja   */
/* ============================= */

/* 1) Kontener SORTUJ zawsze w flexie */
.wine-listing .wine-sort-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem; /* 20px */
}

/* 2) Styl tytułu „SORTUJ” */
.wine-sort-wrapper .wine-sort-title {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: bold;
    color: #5B595A;
    user-select: none;
    margin-right: 0.5rem; /* 8px odstępu między tekstem a selectem */
}

/* 3) Styl dropdowna */
.wine-sort-wrapper .wine-filter-select {
    color: #5B595A;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 20px;
    border: 1px solid #2D2D2D;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    border-radius: 0;
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-image: url("/wp-content/themes/hello-elementor-child/images/strzalka.png");
    margin: 0; /* usuwamy wcześniejsze marginesy */
}
.wine-sort-wrapper .wine-filter-select::-ms-expand {
    display: none;
}

/* ——— Mobile (≤992px): blok na 100% szerokości, wyrównanie do lewej ——— */
@media (max-width: 992px) {
    .wine-sort-wrapper {
        width: 100%;
        justify-content: flex-start;
    }
    .wine-sort-wrapper .wine-filter-select {
        width: 100%;
    }
}

/* ——— Desktop (≥993px): wyrównanie do prawej, dropdown max 30% ——— */
@media (min-width: 993px) {
    .wine-sort-wrapper {
        justify-content: flex-end;
        width: auto;
    }
    .wine-sort-wrapper .wine-filter-select {
        width: 30%;
        max-width: 250px; /* opcjonalne ograniczenie */
    }
}

