/* Definicje zmiennych - przenieść na początek pliku */
:root {
    --color-primary: #DA6E4B;
    --color-background-light: #EFEEEC;
    --color-text-dark: #1D1D1B;
    --color-white: #FFFFFF;
    --color-border-light: rgba(0, 0, 0, 0.1);
    --color-text-gray: #666;
}

/* Resetowanie oraz podstawowe style */
.woocommerce-page .site-main {
    max-width: 100%;
    padding: 0;
}

/* Hero Section */
.archive-header-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.banner-background img {
    height: auto;
}

.archive-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.archive-header-banner .container {
    position: relative;
    height: 100%;
    z-index: 2;
}

.page-title {
    position: absolute;
    top: 60%;
    max-width: 800px;
    text-align: left;
}

.archive-header-banner h1 {
    font-family: var(--title-font-family);
    font-size: 70px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--color-white);
}

/* Container dla produktów */
.products-container {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 40px;
    padding-top: 50px;
    padding-bottom: 80px;
    overflow-x: hidden;
}

/* Sekcja filtrów - podstawowe style desktop */
.products-filters-container {
    width: 280px;
    max-width: 280px;
    flex: 0 0 280px;
    order: 1;
    background: var(--color-background-light);
}

.products-filters {
    top: 30px;
}

/* Style dla przycisku zamykania filtrów - desktop */
.close-filters {
    display: none;
    /* Domyślnie ukryty na desktop */
    position: relative;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 30px;
    cursor: pointer;
    width: 100%;
}

.close-filters .close-text {
    font-size: 16px;
    text-transform: uppercase;
    color: var(--color-text-dark);
    margin-right: 10px;
}

.close-filters .close-arrow {
    margin-right: 10px;
}

/* Grupy filtrów */
.filter-group {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.filter-group h3 {
    font-size: 28px;
    font-weight: 400;
    font-family: var(--title-font-family);
}

.filter-group button {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-primary);
    border: none;
    background: none;
    font-family: var(--body-font-family);
}

.filter-group button:hover {
    text-decoration: underline;
    cursor: pointer;
}

.filter-options {
    margin-bottom: 20px;
}

.filter-option {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 40px;
}

/* Stylizowane checkboxy */
.filter-option input[type="checkbox"] {
    margin-right: 10px;
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid #ccc;
    position: relative;
    cursor: pointer;
}

.filter-option input[type="checkbox"]:checked {
    border-color: #D04F22;
}

.filter-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 3px;
    height: 7px;
    border: solid #D04F22;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

.filter-option label {
    font-size: 16px;
    cursor: pointer;
}

/* Style dla przycisku filtrów */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    min-width: 110px;
    /* Stała szerokość */
}

.filter-toggle img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    /* Zapobiega zmniejszaniu ikony */
}

.filter-toggle:hover {
    color: #000;
}

/* Podstawowe style dla tekstów przycisku filtrów */
.filter-text-hide,
.filter-text-show {
    display: inline-block;
    min-width: 78px;
    text-align: left;
}

/* Domyślny stan na desktop - pokazujemy "Ukryj filtry" */
.filter-text-show {
    display: none;
}

/* Wskaźnik aktywnych filtrów na przycisku */
.filter-toggle.has-active-filters .filter-icon {
    position: relative;
}

.filter-toggle.has-active-filters .filter-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* Filtry daty - style podobne do single-product */
.date-filter {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.date-filter:last-child {
    margin-bottom: 0;
}

.date-filter label {
    width: 30px;
    font-size: 14px;
    color: var(--color-text-dark);
    margin-right: 5px;
}

/* Stylizacja datepickera jak w single-product */
.date-picker {
    position: relative;
    width: 100%;
    flex: 1;
}

.date-picker input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(99, 99, 97, 0.4);
    font-size: 16px;
    background-color: #fff;
    font-family: var(--body-font-family);
    cursor: pointer;
    color: #1D1D1B;
    box-sizing: border-box;
}

.date-picker input::placeholder {
    color: #1D1D1B;
}

.date-picker input:focus {
    outline: none;
    border-color: #DA6E4B;
}

.calendar-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2V5M16 2V5M3.5 9.09H20.5M21 8.5V17C21 20 19.5 22 16 22H8C4.5 22 3 20 3 17V8.5C3 5.5 4.5 3.5 8 3.5H16C19.5 3.5 21 5.5 21 8.5Z' stroke='%23292D32' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

/* Dodajmy style kalendarza podobne do tych z product-single.css */
.ui-datepicker {
    background: #fff;
    padding: 20px !important;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.048);
    width: 400px !important;
    font-family: var(--body-font-family) !important;
    border-radius: 0;
}

.ui-datepicker-header {
    background: none;
    border: none !important;
    padding: 0;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-datepicker-title {
    font-size: 16px;
    font-weight: 500;
    color: #1D1D1B;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

.ui-corner-all {
    border-radius: 0px !important;
}

/* Usuwamy domyślne style i ikony UI */
.ui-datepicker-prev,
.ui-datepicker-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%);
    cursor: pointer;
    width: 40px !important;
    height: 40px !important;
    background: #1D1D1B !important;
    color: #EFEEEC !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.ui-datepicker-prev {
    left: 0 !important;
    border-radius: 0px !important;
    background: #EFEEEC !important;
}

.ui-datepicker-next {
    right: 0 !important;
    border-radius: 0px !important;
}

.ui-widget-header {
    background: none !important;
}

/* Ukrywamy domyślne ikony */
.ui-datepicker .ui-icon,
.ui-widget-header .ui-icon,
.ui-datepicker-prev span,
.ui-datepicker-next span {
    display: none !important;
}

/* Dodajemy własne strzałki */
.ui-datepicker-prev::after,
.ui-datepicker-next::after {
    content: '';
    width: 8px;
    height: 8px;
    border-width: 0 1px 1px 0;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
}

.ui-datepicker-prev::after {
    border: 1px solid #1D1D1B;
    border-width: 0 1px 1px 0;
    transform: translate(-25%, -50%) rotate(135deg);
}

.ui-datepicker-next::after {
    border: 1px solid #EFEEEC;
    border-width: 0 1px 1px 0;
    transform: translate(-75%, -50%) rotate(-45deg);
}

/* Style dla dni tygodnia */
.ui-datepicker th {
    padding: 10px 5px;
    text-align: center;
    font-weight: normal;
    font-size: 12px;
    color: #1D1D1B;
    text-transform: uppercase;
}

/* Style dla dni */
.ui-datepicker td {
    padding: 2px;
    text-align: center;
}

.ui-datepicker td span,
.ui-datepicker td a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    margin: 0 auto;
    text-align: center !important;
    text-decoration: none;
    font-size: 14px;
    color: #1D1D1B;
    border: none !important;
    background: none !important;
}

/* Style dla dzisiejszego dnia */
.ui-datepicker td.ui-datepicker-today {
    background: #f5f5f5 !important;
    border: 1px solid #DA6E4B !important
}

/* Style dla wybranego dnia */
.ui-datepicker td.ui-datepicker-current-day {
    background: #DA6E4B !important;
    border: 1px solid #DA6E4B !important;
    color: #fff !important;
}

/* Style dla wyłączonych dni */
.ui-datepicker td.ui-state-disabled {
    opacity: 0.3;
    background-color: #EFEEEC;
}

.ui-datepicker-calendar {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 2px !important;
}

.ui-datepicker-calendar td {
    margin: 1px !important;
}

@media (max-width: 576px) {

    /* Poprawne pozycjonowanie kalendarza datepicker */
    #ui-datepicker-div {
        width: calc(100% - 40px) !important;
        position: fixed !important;
        /* Użyj fixed zamiast absolute */
        left: 20px !important;
        right: 20px !important;
        margin: 0 auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        max-height: 90vh;
        overflow-y: auto;
        z-index: 9999 !important;
        /* Upewnij się, że jest nad wszystkimi elementami */
    }

    .ui-datepicker {
        width: 100% !important;
        box-sizing: border-box;
        padding: 15px !important;
    }

    .ui-datepicker td span,
    .ui-datepicker td a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .ui-datepicker-header {
        margin-bottom: 10px;
    }

    .ui-datepicker-title {
        font-size: 14px;
    }

    /* Poprawka dla przycisku strzałek */
    .ui-datepicker-prev,
    .ui-datepicker-next {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Dodatkowe style dla kalendarza na małych ekranach */
@media (max-width: 400px) {
    .ui-datepicker td {
        padding: 1px;
    }

    .ui-datepicker td span,
    .ui-datepicker td a {
        width: 24px;
        height: 24px;
    }

    .ui-datepicker-calendar {
        border-spacing: 1px !important;
    }
}

/* Ulepszony filtr dostępności */
.filter-group:has(.date-filter) {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 25px;
}

.filter-group .filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-group .filter-group-header h3 {
    font-size: 28px;
    font-weight: 400;
    margin: 0;
    font-family: var(--title-font-family);
}

.filter-group .filter-clear {
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-family: var(--body-font-family);
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.filter-group .filter-clear:hover {
    opacity: 0.8;
}


/* Wyświetlanie aktywnych filtrów */
.active-date-filters {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #F5F5F5;
    border-radius: 3px;
    font-size: 13px;
    display: none;
    /* Domyślnie ukryte, pokazywane przez JS gdy filtry są aktywne */
    width: auto;
    box-sizing: border-box;
}

.active-date-filters.has-filters {
    display: block;
}

.active-date-filters span {
    font-weight: 500;
}

.clear-date-filter {
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    text-decoration: underline;
}

/* Opcje koloru */
.color-options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.color-option {
    position: relative;
    display: flex;
    align-items: center;
}

.color-label {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.color-label.red {
    background-color: #f44336;
}

.color-label.black {
    background-color: #000;
}

.color-label.white {
    background-color: #fff;
    border: 1px solid #ddd;
}

.color-label.orange {
    background-color: #ff9800;
}

.color-label.gray {
    background-color: #9e9e9e;
}

/* Style dla filtrów kolorów */
.color-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.color-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-filter-item:hover {
    color: var(--color-primary);
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

/* .color-dot.red { background-color: #f44336; }
.color-dot.black { background-color: #000; }
.color-dot.gloss-grey-brw { background-color: #B9BBBB; }
.color-dot.white { 
    background-color: #fff; 
    border: 1px solid #ddd; 
}
.color-dot.orange { background-color: #ff9800; }
.color-dot.gray { background-color: #9e9e9e; }
.color-dot.khaki { background-color: #808000; } */

.color-name {
    font-size: 16px;
}

/* Style dla aktywnego filtra */
.color-filter-item.active .color-dot {
    box-shadow: 0 0 0 2px var(--color-primary);
}

.color-filter-item.active .color-name {
    color: var(--color-primary);
    font-weight: 500;
}

/* Style dla linków wyglądających jak checkboxy */
.category-checkbox {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.checkbox-icon {
    width: 15px;
    height: 15px;
    border: 1px solid #ccc;
    margin-right: 10px;
    position: relative;
}

.category-checkbox.checked .checkbox-icon {
    border-color: #D04F22;
}

.category-checkbox.checked .checkbox-icon::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 3px;
    height: 7px;
    border: solid #D04F22;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

.category-name {
    font-size: 16px;
}

.category-checkbox:hover .category-name {
    color: #D04F22;
}

/* Sekcja główna produktów */
.products-listing {
    flex: 1;
    box-sizing: border-box;
    order: 2;
    overflow-x: hidden;
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    color: #000000;
    font-size: 14px;
}

.products-sorting {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sorting-container {
    position: relative;
    display: inline-block;
}

.sort-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
    color: inherit;
    font-family: inherit;
}

.sort-icon {
    transition: transform 0.2s ease;
}

.sort-trigger.active .sort-icon {
    transform: rotate(180deg);
}

.sort-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 200px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.sort-dropdown.active {
    display: block;
}

.sort-option {
    padding: 10px 15px;
    cursor: pointer;
}

.sort-option:hover {
    background-color: var(--color-background-light);
}

/* Ukryj oryginalny select */
.orderby {
    display: none !important;
}

/* Grid produktów */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    padding-bottom: 80px;
}

/* Karty produktów */
.product-card {
    border: 1px solid rgba(99, 99, 97, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: visible;
}

.product-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 14px;
    color: var(--color-text-gray);
    text-transform: lowercase;
}

.product-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #000;
    text-decoration: none;
}

.product-title a:hover {
    color: var(--color-primary);
}

.product-description {
    font-size: 14px;
    color: var(--color-text-gray);
    line-height: 1.1;
    min-height: 80px;
}

.product-footer {
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
    gap: 15px;
}

.product-price {
    font-weight: 400;
    color: var(--color-primary);
    font-size: 18px;
}

.price-period {
    font-size: 14px;
    color: var(--color-text-gray);
    font-weight: normal;
}

.zarezerwuj-button,
.product-card .button.add_to_cart_button {
    background-color: var(--color-text-dark);
    color: var(--color-background-light);
    padding: 20px 40px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 140px;
    text-align: center;
    width: 100%;
}

.zarezerwuj-button:hover,
.product-card .button.add_to_cart_button:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Ukryj standardowe elementy WooCommerce */
.woocommerce-ordering,
.woocommerce-result-count {
    display: none;
}

/* Usuwanie domyślnych marginesów WooCommerce */
.woocommerce ul.products {
    margin: 0;
    padding: 0;
}

/* Stopka z kategoriami */
.product-categories-footer {
    background-color: #f7f7f7;
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.categories-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.category-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.category-item span {
    font-size: 14px;
    font-weight: 500;
}

.category-item:hover {
    transform: translateY(-5px);
    color: #000;
}

.category-item:hover img {
    transform: scale(1.1);
}

/* Pasek kategorii */
.categories-bar {
    background-color: var(--color-primary);
    padding: 15px 0;
    margin-top: 60px;
}

.categories-scroll {
    display: flex;
    white-space: nowrap;
}

.categories-icons {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* Zachowaj pozostałe style dla category-icon-item, img i span */
.category-icon-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.category-icon-item img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.category-icon-item span {
    font-size: 27px;
    text-transform: lowercase;
    font-family: var(--title-font-family);
    line-height: 87%;
    font-weight: 300;
    letter-spacing: 0.6px;
}

.category-icon-item:hover {
    color: var(--color-background-light);
}

/* Overlay dla filtrów mobilnych */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border-light);
}

.filter-close {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* === MEDIA QUERIES === */

/* Tablet i Desktop */
@media (min-width: 769px) {
    .category-item {
        width: 20%;
        max-width: 20%;
        box-sizing: border-box;
    }

    .products-filters-container.filters-hidden {
        display: none;
    }

    .categories-bar {
        overflow: visible;
    }

    .categories-icons {
        justify-content: space-between;
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
    }

    .category-icon-item {
        margin-right: 0;
    }
}

/* Large Desktop */
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-bottom: 40px;
    }

    .product-image {
        height: 200px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .archive-header-banner {
        height: 250px;
    }

    .archive-header-banner h1 {
        font-size: 60px;
    }
}

/* Mobile i Tablet - Najważniejszy breakpoint dla przełączania filtrów */
@media (max-width: 991px) {
    .products-filters-container {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 999;
        background: var(--color-background-light);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 100%;
        max-width: 100%;
        padding: 20px;
        display: block !important;
        box-sizing: border-box;
    }

    .products-filters-container.active {
        transform: translateX(0);
    }

    .close-filters {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 15px;
        border: none;
        cursor: pointer;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1000;
    }

    .products-filters {
        padding: 60px 15px 20px 15px;
        position: static;
    }

    .products-container {
        flex-direction: column;
    }

    .products-listing {
        order: 2;
        width: 100%;
    }
}

/* Mobile - zachowaj style specyficzne dla mniejszych ekranów */
@media (max-width: 768px) {

    /* Zmień specyficzne aspekty mobilne - unikaj duplikowania deklaracji */
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding-bottom: 40px;
    }

    .products-sorting {
        width: 100%;
    }

    .categories-menu {
        flex-wrap: wrap;
        gap: 30px;
    }

    .category-item {
        flex: 0 0 45%;
    }

    .banner-background {
        width: auto;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
    }

    .archive-header-banner h1 {
        font-size: 60px;
    }

    /* Specyficzne dla przycisku filtrów na mobile */
    .filter-toggle span {
        content: 'Pokaż filtry';
    }
}

/* Mobile category icons */
@media (max-width: 767px) {
    .categories-bar {
        overflow: hidden;
    }

    .categories-scroll {
        will-change: transform;
    }

    .categories-icons {
        gap: 60px;
    }

    .category-icon-item span {
        font-size: 22px;
    }
}

/* Małe telefony */
@media (max-width: 480px) {
    .product-card {
        margin-bottom: 20px;
    }

    .product-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .categories-menu {
        gap: 20px;
    }

    .category-item {
        flex: 0 0 100%;
    }

    .filter-toggle {
        min-width: 130px;
    }
}

.product-colors-container {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 20px;
}

.product-colors-container a {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-colors-container a:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

/* Paginacja – zawsze w osobnym wierszu pod produktami (grid-column przy siatce) */
.products-grid .woocommerce-pagination {
    grid-column: 1 / -1;
    width: 100%;
}

.woocommerce-pagination {
    margin: 60px 0;
    text-align: center;
    width: 100%;
}

.woocommerce-pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-pagination ul li {
    margin: 0;
    border: 1px solid var(--color-border-light);
}

.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 10px 15px;

    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.woocommerce-pagination .page-numbers:hover {
    background-color: var(--color-background-light);
    border-color: var(--color-text-dark);
}

.woocommerce-pagination .page-numbers.current {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 500;
}

.woocommerce-pagination .page-numbers.prev,
.woocommerce-pagination .page-numbers.next {
    font-size: 20px;
    padding: 10px;
}

.woocommerce-pagination .page-numbers.dots {
    border: none;
    background: none;
    pointer-events: none;
}

/* Mobile */
@media (max-width: 768px) {
    .woocommerce-pagination {
        margin: 40px 0;
    }

    .woocommerce-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .woocommerce-pagination .page-numbers.prev,
    .woocommerce-pagination .page-numbers.next {
        font-size: 18px;
        padding: 8px;
    }
}