/*
Theme Name: My Custom Theme
Theme URI: https://example.com/
Author: Twoje Imię
Author URI: https://example.com/
Description: Lekki, zoptymalizowany motyw WordPress z WooCommerce
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-theme
*/

/* Resetowanie domyślnych styli */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('assets/images/background-fabric-final.jpg');
    background-repeat: repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: auto;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.content {
    flex-grow: 1;
    padding: 20px;
    margin-left: 270px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.cart {
    font-size: 18px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.cart:hover {
    transform: scale(1.1);
}

.header-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    text-align: center;
}

.header-container {
    width: 100%;
    max-width: 1080px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    max-width: 300px;
    height: auto;
    display: block;
    opacity: 0;
    transform: translateY(-10px);
    animation: logoFadeIn 1s ease-out forwards;
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    max-width: 1080px;
    margin: 3px auto;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.top-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-menu-items li {
    margin: 0;
}

.top-menu-items a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.top-menu-items a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 1);
    text-decoration: none;
}

.top-menu-items li.menu-koszyk a {
    background: rgba(255, 215, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.top-menu-items li.menu-koszyk a:hover {
    background: rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.custom-footer {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    text-align: center;
    color: white;
    border-radius: 10px;
    max-width: 1080px;
    margin: 40px auto;
}

.glass-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    margin-top: 40px;
}

.site-container {
    max-width: 1080px;
    margin: 0 auto;
}

.shop-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 5px;
    justify-content: flex-start;
    max-width: 1080px;
    margin-inline: auto;
}

.shop-sidebar {
    width: 220px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.shop-sidebar:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.shop-category-menu {
    list-style: none;
    padding: 0;
}

.shop-category-menu li {
    margin-bottom: 10px;
}

.shop-category-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.shop-category-menu a:hover {
    text-decoration: underline;
}

.sidebar-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --------------------------
   KAFELKI PRODUKTÓW
--------------------------- */

/* Wyłączenie standardowych pseudo-elementów WooCommerce, które czasem psują układ */
.woocommerce ul.products.columns-4::before,
.woocommerce ul.products.columns-4::after {
    display: none !important;
    content: none !important;
}

/* Podstawowy układ listy produktów */
.woocommerce ul.products.columns-4 {
    display: flex !important;      /* Flexbox zamiast float */
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;                     /* Odstępy między kafelkami */
    padding-left: 0;
    margin: 0;
    width: 100%;
}

.woocommerce ul.products.columns-4 li.product {
    width: calc(50% - 15px) !important;  /* 2 kafelki w wierszu */
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box;
}

/* Dla kafelków nie poziomych (domyślnych) */
.woocommerce ul.products li.product:not(.product-horizontal) {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    padding: 16px;
    margin-bottom: 20px;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0 !important;
    margin-bottom: 12px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin: 8px 0;
}

.woocommerce ul.products li.product .price {
    color: gold;
    font-weight: bold;
    margin-bottom: 8px;
}

/* --------------------------
   KAFELKI PRODUKTÓW POZIOMYCH
--------------------------- */
.woocommerce ul.products li.product.product-horizontal {
    display: flex;
    flex-direction: row;           /* obrazek po lewej, treść po prawej */
    width: calc(50% - 15px) !important;
    max-width: calc(50% - 15px);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 16px;
    box-sizing: border-box;
    margin-bottom: 20px;
    align-items: center;
    justify-content: flex-start;
}

.woocommerce ul.products li.product.product-horizontal img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 20px;
}

.product-horizontal-content {
    display: flex;
    flex-direction: column;
    width: 100%; /* zajmuje całą dostępną przestrzeń obok obrazka */
}

/* Nagłówek (nazwa produktu) i rząd z ceną oraz ilością */
.product-horizontal-header-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Nazwa produktu */
.product-horizontal-header {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    margin: 0;
    padding-right: 10px; /* lekki odstęp od ceny */
}

/* Kontener na cenę i ilość (po prawej stronie) */
.product-horizontal-price-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cena */
.product-horizontal-price {
    color: gold;
    font-weight: bold;
    font-size: 16px;
}

/* Ilość */
.product-horizontal-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #fff;
}

.product-horizontal-qty input[type="number"] {
    width: 50px;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
}

/* Przyciski akcji (np. Dodaj do koszyka) */
.product-horizontal-actions {
    margin-top: 10px;
    text-align: right; /* wyrównanie do prawej */
}

.product-horizontal-actions .button {
    background: rgba(255, 215, 0, 0.5);  /* taki sam kolor jak przycisk koszyka */
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    white-space: nowrap; /* zapobiega zawijaniu tekstu */
}

.product-horizontal-actions .button:hover {
    background: rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

/* --------------------------
   INNE ELEMENTY
--------------------------- */
.main-glass-wrapper {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    padding: 40px 30px;
    margin: 3px auto;
    max-width: 1080px;
}

.shop-products {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

/* ------------
   Responsywność
-------------- */
@media screen and (max-width: 1024px) {
    .main-container {
        width: 90%;
        padding: 20px;
    }
    .top-menu {
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .logo img {
        max-width: 200px;
    }
    .shop-products {
        justify-content: center;
    }
    .main-container {
        width: 95%;
        padding: 15px;
    }
    .top-menu-items {
        flex-direction: column;
    }
    .top-menu-items li {
        margin: 10px 0;
    }
    .header-container {
        flex-direction: column;
        align-items: center;
    }
    .cart {
        margin-top: 10px;
    }
    
    /* Kafelki produktowe na pełną szerokość */
    .woocommerce ul.products.columns-4 li.product {
        width: 100% !important;
    }
    .woocommerce ul.products li.product.product-horizontal {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .woocommerce ul.products li.product.product-horizontal img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .product-horizontal-content {
        align-items: center;
    }
    .product-horizontal-header-price {
        flex-direction: column;
        gap: 6px;
    }
    .product-horizontal-actions {
        text-align: center;
        width: 100%;
    }
}


/* Stylizacja kafelków kategorii */
.shop-category-buttons {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
}

.category-button {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: bold;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease, box-shadow 0.4s ease;
    text-align: left;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.category-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.4);
}
}

.category-button.main-cat {
    font-size: 16px;
    padding: 12px 24px;
}

.category-button.sub-cat {
    font-size: 14px;
    padding: 6px 16px;
    margin-left: 20px;
}

.woocommerce ul.products li.product {
    width: calc(50% - 15px) !important;
    margin: 0 0 30px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.woocommerce ul.products li.product img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Kwadratowe zdjęcie */
    object-fit: cover;
}

.product-info-section {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 100% * 3/4); /* pozostałe 25% kafla */
}

.product-info-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
    color: white;
    font-weight: bold;
}

.product-info-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: white;
    font-size: 14px;
    gap: 6px;
}

.product-info-qty input[type="number"] {
    width: 50px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
}

.product-info-button {
    text-align: center;
}

.product-info-button .button:hover {
    background: rgba(255, 215, 0, 0.5);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.25);
    transform: translateY(-2px);
}

.woocommerce ul.products li.product {
    width: calc(50% - 15px) !important;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.product-box {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.product-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0; /* usuwa zaokrąglenia */
    margin: 0;
    padding: 0;
	line-height: 0;
}

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 16px;
    height: 25%;
    background: transparent;
}

.product-title-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    gap: 12px;
}

.product-qty-stock {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: white;
	position: relative;
    z-index: 2;
}

.product-qty-stock input[type="number"] {
    width: 60px;
    height: 34px;
    font-size: 16px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    text-align: center;
}

.product-info-button {
    text-align: center;
}

.product-info-button .button {
    display: inline-block !important;
    width: 150px !important; /* 👈 dodaj to */
    padding: 6px 0 !important; /* 👈 wyrównaj do szerokości */
    font-size: 14px !important;
    border-radius: 999px !important;
    background: rgba(255, 215, 0, 0.4) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    color: white !important;
    font-weight: bold !important;
    text-align: center !important;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.15) !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
    white-space: nowrap !important;
}

.product-title {
    font-size: 18px;           /* 👈 zwiększamy */
    font-weight: 700;          /* 👈 mocniej, ale nie za bardzo */
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
    position: relative;
    padding-left: 28px;
    flex-shrink: 0;
}

.product-price::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/themes/my-theme/assets/images/icons/Coin.gif');
    background-size: contain;
    background-repeat: no-repeat;
}

.product-info-button .button:hover {
    background: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.35);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
    display: block;
    width: 100% !important;
    height: auto;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.product-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.product-image-wrapper img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.custom-product-tile {
    width: calc(50% - 15px);
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.product-image-wrapper {
    width: 100%;
    height: 220px;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.product-image-wrapper img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.custom-product-tile {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.custom-product-tile:hover {
    background: rgba(255, 255, 255, 0.12); /* lekko jaśniejsze tło */
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.custom-product-tile:hover {
    transform: translateY(-2px);
}

.product-info-button {
    text-align: center;
	position: relative;
    z-index: 2;
}

.product-info-button .button {
    display: inline-block !important;
    padding: 6px 16px !important;
    font-size: 14px !important;
    border-radius: 999px !important;
    background: rgba(255, 215, 0, 0.4) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    color: white !important;
    font-weight: bold !important;
    text-align: center !important;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.15) !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
    white-space: nowrap !important;
}

.product-info-button .button:hover {
    background: rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.25) !important;
    transform: none !important;
}

.product-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.product-info-button .button {
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: white;
    font-weight: bold;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.product-info-button .button:hover {
    background: rgba(255, 215, 0, 0.5);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.product-qty-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px; /* było 14px */
    font-weight: 500;
}

.custom-product-tile {
    position: relative;
	overflow: hidden;
}

.product-link-overlay {
    position: absolute;
	inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    text-indent: -9999px;
    pointer-events: auto;
	background: transparent; /* 👈 To ważne, aby klik działał */
}

/* === Poprawka kliknięcia kafelka bez kolizji z przyciskiem i inputem === */

.custom-product-tile {
    position: relative;
}

/* Klikalna nakładka */
.product-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: auto;
    text-indent: -9999px;
}

/* Wyłącz nakładkę dla interaktywnych elementów */
.product-info-button * ,
.product-qty-stock * {
    pointer-events: auto !important;
}

.product-info-button *:not(.product-link-overlay),
.product-qty-stock *:not(.product-link-overlay) {
    pointer-events: auto !important;
}

/* Wszystko inne ignoruje kliknięcia */
.custom-product-tile *:not(.product-info-button):not(.product-qty-stock):not(form):not(button):not(input) {
    pointer-events: none;
}

/* --- NAPRAWIONE KLIKAJĄCE KAFELKI --- */

.custom-product-tile {
    position: relative;
    overflow: hidden;
}

.product-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: auto;
    text-indent: -9999px;
}

.product-box, 
.product-image-wrapper, 
.product-details, 
.product-title-price, 
.product-bottom-row {
    pointer-events: none; /* 👈 NIC z kafla nie przechwytuje klików */
}

/* Wyjątki: te elementy muszą być normalnie klikalne */
.product-info-button,
.product-qty-stock {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Wewnątrz przycisków i inputów też muszą być normalne kliknięcia */
.product-info-button *,
.product-qty-stock * {
    pointer-events: auto;
}

/* Cała reszta ignoruje kliknięcia */
.custom-product-tile *:not(.product-info-button):not(.product-qty-stock):not(form):not(button):not(input) {
    pointer-events: none;
}

/* --- Klikalne kafelki z aktywnym przyciskiem Dodaj do koszyka --- */
.custom-product-tile, 
.product-box {
    position: relative; /* KAŻDY kontener nadrzędny musi być relative */
}

.product-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    pointer-events: auto;
}

.product-info-button, 
.product-qty-stock {
    position: relative;
	pointer-events: auto !important;
    z-index: 10; /* Przyciski i input nad nakładką */
}

/* Przycisk i input mają pointer-events włączone */

.product-info-button *,
.product-qty-stock * {
    pointer-events: auto !important;
}

/* Cała reszta kafelka ignoruje kliknięcia */
.custom-product-tile *:not(.product-info-button):not(.product-qty-stock):not(form):not(button):not(input) {
    pointer-events: none;
}

.custom-product-tile img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
    line-height: 0 !important;
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* zdjęcie w kwadracie */
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: transparent;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

.custom-product-tile {
    position: relative;
    overflow: hidden;
}

.product-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    text-indent: -9999px;
    background: transparent;
}

.product-info-button,
.product-qty-stock {
    position: relative;
    z-index: 2;
}
.custom-product-tile {
  position: relative;
}

.click-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-link-overlay {
  display: block;
  width: 100%;
  height: 100%;
  text-indent: -9999px;
  background: transparent;
}

.product-info-button,
.product-qty-stock {
  position: relative;
  z-index: 2;
}
.custom-product-tile {
    position: relative;
    overflow: hidden;
}

.product-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: transparent;
    text-indent: -9999px;
}

.product-info-button,
.product-qty-stock {
    position: relative;
    z-index: 2;
}
.custom-product-tile {
    position: relative !important;
    overflow: hidden !important;
}

.product-link-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    background: transparent !important;
    display: block !important;
    text-indent: -9999px !important;
}

.product-info-button,
.product-qty-stock {
    position: relative !important;
    z-index: 20 !important;
}
.product-link-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
}
.custom-product-tile {
    position: relative;
    overflow: hidden;
    width: calc(50% - 15px);
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.product-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: block;
    background: transparent;
    text-indent: -9999px;
}

/* Kluczowy fragment – sprawia, że link działa mimo braku treści */
.product-link-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
}

.product-box {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.product-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    line-height: 0;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 16px;
    background: transparent;
}

.product-title-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    gap: 12px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #FFD700;
}

.product-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.product-info-button,
.product-qty-stock {
    position: relative;
    z-index: 20;
}

.product-info-button .button {
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: white;
    font-weight: bold;
}

.product-qty-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
}
.product-box {
  position: relative;
}

.product-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  text-indent: -9999px;
  background: transparent;
}

.product-info-button,
.product-qty-stock {
  position: relative;
  z-index: 10;
}

.product-box {
    position: relative !important;
}

.product-link-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 0, 0, 0.1); /* 👈 tymczasowo czerwone tło do testów */
    display: block !important;
    text-indent: -9999px !important;
    cursor: pointer;
}

.product-info-button,
.product-qty-stock {
    position: relative !important;
    z-index: 2000 !important;
}

.product-info-button * ,
.product-qty-stock * {
    pointer-events: auto !important;
}
