/* ==========================================================================
   WOOCOMMERCE
   Style sklepu wydzielone ze style.css.
   ========================================================================== */

/* ==========================================================================
   PRZYCISKI I STANY KOSZYKA WOOCOMMERCE
   ========================================================================== */

/* Loading state dla przycisków - nadpisuje WooCommerce */
/* Obejmuje również shortcodes [products], [recent_products], [sale_products] itp. */
.button.loading,
button.loading,
a.button.loading,
a.add_to_cart_button.loading,
.add_to_cart_button.loading,
.single_add_to_cart_button.loading,
.woocommerce .add_to_cart_button.loading,
.woocommerce ul.products li.product a.add_to_cart_button.loading,
.woocommerce-page ul.products li.product a.add_to_cart_button.loading,
input[type="submit"].loading {
    pointer-events: none;
    position: relative;
    color: transparent;
    background: var(--color-rose);
    opacity: 1;
}

/* Ukryj domyślny loader WooCommerce (::after) */
.button.loading::after,
button.loading::after,
a.button.loading::after,
a.add_to_cart_button.loading::after,
.add_to_cart_button.loading::after,
.single_add_to_cart_button.loading::after,
.woocommerce .add_to_cart_button.loading::after,
.woocommerce ul.products li.product a.add_to_cart_button.loading::after,
.woocommerce-page ul.products li.product a.add_to_cart_button.loading::after {
    content: none;
    display: none;
}

/* Nasz własny loader - CSS spinner */
.button.loading::before,
button.loading::before,
a.button.loading::before,
a.add_to_cart_button.loading::before,
.add_to_cart_button.loading::before,
.single_add_to_cart_button.loading::before,
.woocommerce .add_to_cart_button.loading::before,
.woocommerce ul.products li.product a.add_to_cart_button.loading::before,
.woocommerce-page ul.products li.product a.add_to_cart_button.loading::before,
input[type="submit"].loading::before {
    content: '\1F9F6';
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-top: -0.825rem;
    margin-left: -0.825rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0.2rem 0.7rem rgba(62, 47, 38, 0.18);
    color: var(--color-text);
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
    font-size: 1rem;
    line-height: 1;
    animation: crochetButtonYarn 0.78s ease-in-out infinite;
    z-index: 10;
}

@keyframes crochetButtonYarn {
    0%, 100% { transform: translate(-3px, 0) rotate(-12deg) scale(0.96); }
    45% { transform: translate(3px, -2px) rotate(14deg) scale(1.05); }
}

/* Success/Added state dla przycisków - WooCommerce dodaje klasę 'added' automatycznie */
/* Obejmuje również shortcodes [products], [recent_products], [sale_products] itp. */
.button.success,
.button.added,
button.success,
button.added,
a.button.success,
a.button.added,
a.add_to_cart_button.success,
a.add_to_cart_button.added,
.add_to_cart_button.success,
.add_to_cart_button.added,
.single_add_to_cart_button.success,
.single_add_to_cart_button.added,
.woocommerce .add_to_cart_button.added,
.woocommerce ul.products li.product a.add_to_cart_button.added,
.woocommerce-page ul.products li.product a.add_to_cart_button.added,
input[type="submit"].success {
    pointer-events: auto;
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    color: transparent;
    position: relative;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.5);
    border: none;
    overflow: hidden;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Ukryj domyślny pseudo-element WooCommerce na success/added */
.button.success::after,
.button.added::after,
button.success::after,
button.added::after,
a.button.success::after,
a.button.added::after,
a.add_to_cart_button.success::after,
a.add_to_cart_button.added::after,
.add_to_cart_button.success::after,
.add_to_cart_button.added::after,
.single_add_to_cart_button.success::after,
.single_add_to_cart_button.added::after,
.woocommerce .add_to_cart_button.added::after,
.woocommerce ul.products li.product a.add_to_cart_button.added::after,
.woocommerce-page ul.products li.product a.add_to_cart_button.added::after {
    content: none;
    display: none;
}

/* Nasz checkmark dla success/added */
.button.success::before,
.button.added::before,
button.success::before,
button.added::before,
a.button.success::before,
a.button.added::before,
a.add_to_cart_button.success::before,
a.add_to_cart_button.added::before,
.add_to_cart_button.success::before,
.add_to_cart_button.added::before,
.single_add_to_cart_button.success::before,
.single_add_to_cart_button.added::before,
.woocommerce .add_to_cart_button.added::before,
.woocommerce ul.products li.product a.add_to_cart_button.added::before,
.woocommerce-page ul.products li.product a.add_to_cart_button.added::before,
input[type="submit"].success::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-size: 1.5em;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: checkmarkPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    z-index: 10;
    line-height: 1;
    display: block;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

@keyframes checkmarkPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3) rotate(10deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Stan po animacji checkmark - pokazuje tekst "W koszyku: X szt" */
.button.added.added-show-text,
button.added.added-show-text,
a.button.added.added-show-text,
a.add_to_cart_button.added.added-show-text,
.add_to_cart_button.added.added-show-text,
.single_add_to_cart_button.added.added-show-text,
.woocommerce .add_to_cart_button.added.added-show-text,
.woocommerce ul.products li.product a.add_to_cart_button.added.added-show-text,
.woocommerce-page ul.products li.product a.add_to_cart_button.added.added-show-text {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.85rem;
    text-transform: none;
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
}

/* Tekst ilości w koszyku */
.cart-quantity-text {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    animation: fadeInScale 0.3s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ukryj checkmark gdy pokazujemy tekst */
.button.added.added-show-text::before,
button.added.added-show-text::before,
a.button.added.added-show-text::before,
a.add_to_cart_button.added.added-show-text::before,
.add_to_cart_button.added.added-show-text::before,
.single_add_to_cart_button.added.added-show-text::before,
.woocommerce .add_to_cart_button.added.added-show-text::before,
.woocommerce ul.products li.product a.add_to_cart_button.added.added-show-text::before,
.woocommerce-page ul.products li.product a.add_to_cart_button.added.added-show-text::before {
    content: none;
    display: none;
}

/* Przycisk "Zobacz koszyk" - pojawia się obok przycisku dodaj do koszyka */
.woocommerce a.added_to_cart,
.woocommerce-page a.added_to_cart,
a.added_to_cart.wc-forward {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: transparent;
    border: 2px solid var(--color-lavender);
    color: var(--color-lavender);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-left: var(--spacing-xs);
    vertical-align: middle;
    box-shadow: none;
    line-height: 1.5;
}

.woocommerce a.added_to_cart:hover,
.woocommerce-page a.added_to_cart:hover,
a.added_to_cart.wc-forward:hover {
    background: var(--color-lavender);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 197, 224, 0.3);
}

/* Dla małych ekranów - przycisk Zobacz koszyk pod przyciskiem głównym */
@media (max-width: 30em) { /* 480px -> 30em */
    .woocommerce a.added_to_cart,
    .woocommerce-page a.added_to_cart,
    a.added_to_cart.wc-forward {
        display: block;
        margin-left: 0;
        margin-top: var(--spacing-xs);
        text-align: center;
    }
}


/* ==========================================================================
   LINK ZOBACZ KOSZYK
   ========================================================================== */

/* Przycisk "Zobacz koszyk" - specjalny styl */
.added_to_cart,
.woocommerce-message .button,
a.button.view-cart {
    background: transparent;
    border: 2px solid var(--color-lavender);
    color: var(--color-lavender-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.95rem;
    box-shadow: none;
    margin-left: var(--spacing-sm);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.added_to_cart::before,
.woocommerce-message .button::before,
a.button.view-cart::before {
    content: '';
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.added_to_cart:hover,
.woocommerce-message .button:hover,
a.button.view-cart:hover {
    background: var(--color-lavender);
    color: var(--color-white);
    border-color: var(--color-lavender-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 197, 224, 0.3);
}

.added_to_cart:hover::before,
.woocommerce-message .button:hover::before,
a.button.view-cart:hover::before {
    transform: scale(1.2);
}

/* W kartach produktów stan "W koszyku" zastępuje osobny link "Zobacz koszyk". */
.product-card .product-actions .added_to_cart,
.woocommerce ul.products li.product .product-actions .added_to_cart,
.woocommerce-page ul.products li.product .product-actions .added_to_cart,
.woocommerce ul.products li.product .product-actions a.added_to_cart.wc-forward,
.woocommerce-page ul.products li.product .product-actions a.added_to_cart.wc-forward {
    display: none !important;
}

/* Powiadomienie o dostępności produktu */
.szydelkowy-stock-alert {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(128, 106, 167, 0.2);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.82), transparent 8rem),
        linear-gradient(135deg, rgba(250, 244, 238, 0.92), rgba(238, 230, 248, 0.58));
    box-shadow: 0 0.75rem 1.8rem rgba(63, 48, 38, 0.07);
}

.szydelkowy-stock-alert__intro {
    display: grid;
    gap: 0.22rem;
}

.szydelkowy-stock-alert__intro strong {
    color: var(--color-text, #4d352f);
    font-size: 1rem;
    line-height: 1.25;
}

.szydelkowy-stock-alert__intro span,
.szydelkowy-stock-alert__consent {
    color: var(--color-text-light, #7d6f68);
    font-size: 0.86rem;
    line-height: 1.45;
}

.szydelkowy-stock-alert__form {
    display: grid;
    gap: 0.7rem;
}

.szydelkowy-stock-alert__website {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.szydelkowy-stock-alert__field {
    display: grid;
    gap: 0.32rem;
    margin: 0;
}

.szydelkowy-stock-alert__field span {
    color: var(--color-text, #4d352f);
    font-size: 0.82rem;
    font-weight: 800;
}

.szydelkowy-stock-alert__field input[type="email"] {
    width: 100%;
    min-height: 2.75rem;
    border-radius: 0.85rem;
}

.szydelkowy-stock-alert__consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.48rem;
    align-items: start;
    margin: 0;
}

.szydelkowy-stock-alert__consent input {
    margin-top: 0.2rem;
    accent-color: var(--color-lavender-dark, #806aa7);
}

.szydelkowy-stock-alert__consent a {
    color: var(--color-lavender-dark, #806aa7);
    font-weight: 800;
}

.szydelkowy-stock-alert__submit,
.szydelkowy-stock-alert-card-link {
    min-height: 2.55rem !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #dce8d6, #c8d5c0) !important;
    color: #34453b !important;
    font-weight: 900 !important;
    text-align: center;
    text-transform: none !important;
    box-shadow: none !important;
}

.szydelkowy-stock-alert__submit:hover,
.szydelkowy-stock-alert-card-link:hover {
    background: linear-gradient(135deg, #c8d5c0, #b8cab0) !important;
    color: #34453b !important;
    transform: translateY(-1px);
}

.szydelkowy-stock-alert__message {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-text, #4d352f);
    font-size: 0.86rem;
    font-weight: 800;
}

.szydelkowy-stock-alert__message[hidden] {
    display: none !important;
}

.szydelkowy-stock-alert__form.is-success .szydelkowy-stock-alert__message {
    background: rgba(220, 232, 214, 0.78);
    color: #34453b;
}

.szydelkowy-stock-alert__form.is-error .szydelkowy-stock-alert__message {
    background: rgba(255, 228, 232, 0.86);
    color: #8b4e59;
}

.szydelkowy-stock-alert--quick-view {
    margin-top: 0.8rem;
}

.szydelkowy-stock-alert--quick-view .szydelkowy-stock-alert__submit {
    width: 100%;
}

/* ==========================================================================
   PRODUKT, KOSZYK I KOMUNIKATY WOOCOMMERCE
   ========================================================================== */

/* ==========================================================================
   WOOCOMMERCE - PRODUKTY (STARE STYLE USUNIĘTE - NOWE SĄ NIŻEJ)
   ========================================================================== */

/* Pojedynczy produkt */
.woocommerce div.product {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.woocommerce div.product .product_title {
    color: var(--color-mint-dark);
    font-size: 2.5rem;
}

.woocommerce div.product .price {
    color: var(--color-rose-dark);
    font-size: 2rem;
    font-weight: 700;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
    border-radius: var(--radius-lg);
}

.woocommerce div.product form.cart {
    margin: var(--spacing-lg) 0;
}

.woocommerce div.product .woocommerce-tabs {
    margin-top: var(--spacing-lg);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    gap: var(--spacing-sm);
    border: none;
    background: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background-color: var(--color-mint-light);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background-color: var(--color-mint);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text);
}

.woocommerce div.product .woocommerce-tabs .panel {
    background-color: var(--color-gray-light);
    padding: var(--spacing-lg);
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
}

/* Koszyk */
.woocommerce table.shop_table {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.woocommerce table.shop_table th {
    background-color: var(--color-mint-light);
    color: var(--color-text);
}

/* Wiadomości WooCommerce */
/* ==========================================================================
   KOMUNIKATY WOOCOMMERCE (MESSAGE, INFO, ERROR) - NOWY UKŁAD
   ========================================================================== */

/* Wszystkie możliwe selektory dla komunikatów */
.woocommerce-notices-wrapper {
    clear: both;
    width: 100%;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
div.woocommerce-message,
div.woocommerce-info,
div.woocommerce-error,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-error {
    padding: 20px 24px 20px 64px;
    border-radius: 12px;
    margin-bottom: 24px;
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.6;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
    border-left-width: 6px;
    border-left-style: solid;
    position: relative;
    transition: all 0.3s ease;
    list-style: none;
    overflow-wrap: anywhere;
}

.woocommerce-message,
.woocommerce-info,
div.woocommerce-message,
div.woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

/* USUWAMY CAŁKOWICIE ::before */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
div.woocommerce-message::before,
div.woocommerce-info::before,
div.woocommerce-error::before {
    display: none;
    content: none;
}

/* Komunikat sukcesu (zielony) z ikoną SVG */
.woocommerce-message,
div.woocommerce-message,
.woocommerce .woocommerce-message {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234caf50'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") no-repeat 20px center / 24px 24px,
        linear-gradient(135deg, #e8f5e9, #f1f8f4);
    border-left-color: #4caf50;
    color: #1b5e20;
}

.woocommerce-message:hover,
div.woocommerce-message:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

/* Komunikat informacyjny (lavender) z ikoną SVG */
.woocommerce-info,
div.woocommerce-info,
.woocommerce .woocommerce-info {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A990C0'%3E%3Cpath d='M11 7h2v2h-2V7zm0 4h2v6h-2v-6zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3C/svg%3E") no-repeat 20px center / 24px 24px,
        linear-gradient(135deg, var(--color-lavender-light), var(--color-peach-light));
    border-left-color: var(--color-lavender-dark);
    color: var(--color-cocoa-dark);
}

.woocommerce-info:hover,
div.woocommerce-info:hover {
    box-shadow: 0 4px 12px rgba(192, 176, 208, 0.2);
    transform: translateY(-2px);
}

/* Komunikat błędu (czerwony) z ikoną SVG */
.woocommerce-error,
div.woocommerce-error,
.woocommerce .woocommerce-error {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e53935'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'/%3E%3C/svg%3E") no-repeat 20px center / 24px 24px,
        linear-gradient(135deg, #ffebee, #fce4ec);
    border-left-color: #e53935;
    color: #b71c1c;
}

.woocommerce-error:hover,
div.woocommerce-error:hover {
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
    transform: translateY(-2px);
}

/* Jeśli error jest listą */
.woocommerce-error li {
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    box-shadow: none;
}

/* Linki w komunikatach */
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a,
div.woocommerce-message a,
div.woocommerce-info a,
div.woocommerce-error a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover,
.woocommerce-error a:hover,
div.woocommerce-message a:hover,
div.woocommerce-info a:hover,
div.woocommerce-error a:hover {
    opacity: 0.8;
}

/* Przyciski w komunikatach */
.woocommerce-message .button,
.woocommerce-info .button,
div.woocommerce-message .button,
div.woocommerce-info .button {
    background: var(--color-lavender);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none !important;
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.woocommerce-message .button::before,
.woocommerce-info .button::before,
div.woocommerce-message .button::before,
div.woocommerce-info .button::before {
    content: none;
    display: none;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
div.woocommerce-message .button:hover,
div.woocommerce-info .button:hover {
    background: var(--color-lavender-dark);
    transform: scale(1.05);
}

@media (max-width: 40em) {
    .woocommerce-message,
    .woocommerce-info,
    div.woocommerce-message,
    div.woocommerce-info,
    .woocommerce .woocommerce-message,
    .woocommerce .woocommerce-info {
        align-items: stretch;
        padding: 18px 18px 18px 56px;
    }

    .woocommerce-message .button,
    .woocommerce-info .button,
    div.woocommerce-message .button,
    div.woocommerce-info .button {
        width: 100%;
        margin-left: 0;
        margin-top: 0.25rem;
        white-space: normal;
        text-align: center;
    }
}

/* ==========================================================================
   PRODUKTY NA MOBILE
   ========================================================================== */

@media (min-width: 48em) { /* 768px -> 48em */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Product action icon polish - keep separate from header icons. */
.product-actions .wishlist-button,
.product-actions .compare-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.product-actions .wishlist-icon,
.product-actions .compare-icon {
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    min-width: 1.15rem;
    height: 1.15rem;
    border-radius: 0;
    background: transparent;
    color: currentColor;
    font-size: 1rem;
    line-height: 1;
    box-shadow: none;
}

.product-actions .wishlist-button.in-wishlist .wishlist-icon {
    color: #c84f66;
}

.product-actions .compare-button.in-compare .compare-icon {
    color: #b5841d;
}

@media (min-width: 64em) { /* 1024px -> 64em */
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr); /* 3 kolumny na desktop */
        gap: 1rem; /* Mniejszy gap */
    }
}

@media (min-width: 80em) { /* 1280px -> 80em */
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr); /* 4 kolumny na większych ekranach */
        gap: 1rem;
    }
}

@media (min-width: 100em) { /* 1600px -> 100em */
    .woocommerce ul.products {
        grid-template-columns: repeat(5, 1fr); /* 5 kolumn na bardzo dużych ekranach */
        gap: 1rem;
    }
}

@media (max-width: 47.9375em) { /* 767px -> 47.9375em */
    /* KOMPAKTOWE PRODUKTY NA MOBILE */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na mobile */
        gap: 0.75rem; /* Mniejszy gap */
    }

    .woocommerce ul.products li.product .product-image,
    .product-image {
        max-height: 180px; /* Jeszcze niższe obrazki na mobile */
    }

    .woocommerce ul.products li.product .product-image img,
    .woocommerce ul.products li.product img {
        max-height: 180px; /* Jeszcze niższe obrazki na mobile */
    }

    .product-info {
        padding: 0.5rem; /* Bardzo mały padding */
    }

    .woocommerce ul.products li.product h2,
    .woocommerce ul.products li.product h3,
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.95rem; /* Zwiększony z 0.9rem - prawie jak desktop (1rem) */
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .woocommerce ul.products li.product .price {
        font-size: 0.95rem; /* Mniejsza cena */
        margin: 0.25rem 0;
    }

    .product-actions {
        padding: 0.25rem 0.5rem 0.5rem; /* Bardzo mały padding */
    }

    .woocommerce ul.products li.product .button {
        padding: 0.375rem 0.5rem; /* Mniejsze przyciski */
        font-size: 0.75rem; /* Mniejszy font */
        min-width: 80px; /* Mniejsza min-width */
    }
}


