/* Wishlist Header - WSZYSTKIE STYLE DZIEDZICZONE Z MOTYWU */
/* Header wishlist używa identycznej konstrukcji jak koszyk - zero custom CSS! */

/* Jedyne co potrzebne - ukrycie badge gdy 0 TYLKO dla wishlist */
#_wishlist .header-block__badge {
    display: none; /* Domyślnie ukryte - tylko wishlist! */
}

#_wishlist .header-block__badge.show,
#_wishlist .header-block__badge:not(:empty) {
    display: flex; /* Pokaż gdy ma zawartość lub klasę show - tylko wishlist! */
}

/* Ukryj pustą h1 na stronie wishlist */
.page-header h1.h4:empty {
    display: none;
}

/* Wishlist button używa dokładnie takich samych klas jak add-to-cart: .add-to-cart-category .btn */
/* Dziedziczy hover: .add-to-cart-category .btn:hover { opacity: 0.7; } */

/* Tylko styl disabled - reszta z add-to-cart-category */
.wishlist-button-add:disabled {
    opacity: 0.65 !important;
    pointer-events: none;
}

/* Zapobieganie skakaniu podczas animacji */
.wishlist-button-add.animating {
    transform: none !important;
}

.wishlist-button-add.animating .eva-heart-outline-wrap,
.wishlist-button-add.animating .eva-heart-wrap {
    transform-origin: center center;
}

/* Wyłączenie focus effects - tylko outline i box-shadow */
.wishlist-button-add:focus,
.wishlist-button-add:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Hover - całość opacity 0.7 jak add-to-cart */
.wishlist-button-add:hover {
    opacity: 0.7 !important;
}

/* Active (kliknięcie) - scale tylko podczas kliknięcia, NIE gdy ma klasę .active */
.wishlist-button-add:active:not(.active),
.add-to-cart-category .wishlist-button-add:active:not(.active),
.btn.wishlist-button-add:active:not(.active) {
    transform: scale(1.2) !important;
}

/* Nadpisanie Bootstrap - żeby nie usuwał tła */
.btn.wishlist-button-add:not([disabled]):not(.disabled):active,
.add-to-cart-category .btn.wishlist-button-add:not([disabled]):not(.disabled):active {
    background-color: inherit !important; /* Zachowaj oryginalne tło */
}

/* Stan .active (dodany do wishlist) - BEZ scale, zachowaj normalny wygląd */
.wishlist-button-add.active {
    transform: none !important; /* Bez skalowania gdy dodany */
}

/* Usuń nadpisywanie tła - niech dziedziczy z .add-to-cart-category .btn */

/* Product Page Button - używa standardowych klas Bootstrap */


/* Product Page Button */

/* Wishlist w nagłówku - legacy */
.biix-wishlist-header {
    position: relative;
    display: inline-block;
}

.wishlist-product-list-button {
    display: inline-block;
    margin: 5px;
}

/* Zapewnij, że kontener obrazka ma relative position */
.product-miniature .product-miniature__image-container,
.product-miniature .thumbnail-container,
.product-miniature .product-image-container,
.card .card-img-top,
.product-item .product-img {
    position: relative;
}

/* Przyciski wishlist na kafelkach dziedziczą wszystkie style globalnie z motywu */

/* Wishlist button używa klas .add-to-cart-category .btn - dziedziczny hover opacity: 0.7 */

.product-miniature .wishlist-button-add,
.card .wishlist-button-add {
    /* Pozycjonowanie na kartach produktów - znika z kontenerem */
    position: absolute !important; /* Nadpisuje position: relative z głównego stylu */
    top: 10px;
    right: 10px;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.product-miniature:hover .wishlist-button-add,
.card:hover .wishlist-button-add {
    opacity: 1;
    visibility: visible;
}

/* Na mobilce (do 1024px) wishlist button zawsze widoczny w widoku kategorii */
@media (max-width: 1024px) {
    .product-miniature .wishlist-button-add,
    .card .wishlist-button-add {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Kontrola wyświetlania ikon outline/filled - stabilne pozycjonowanie bez skakania */
.wishlist-button-add {
    position: relative; /* Kontener dla nakładających się ikon */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wishlist-button-add .eva-heart-outline-wrap,
.wishlist-button-add .eva-heart-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease; /* Krótsza animacja */
    pointer-events: none;
    transform: none !important; /* Blokuje przesuwanie */
}

.wishlist-button-add .eva-heart-outline-wrap svg,
.wishlist-button-add .eva-heart-wrap svg {
    display: block;
    fill: currentColor;
    flex-shrink: 0;
    transform: none !important; /* Blokuje przesuwanie SVG */
    position: relative;
    top: 0 !important;
    left: 0 !important;
}

/* Stan domyślny - outline visible */
.wishlist-button-add .eva-heart-outline-wrap {
    opacity: 1;
    z-index: 1;
}

.wishlist-button-add .eva-heart-wrap {
    opacity: 0;
    z-index: 2;
}

/* Stan aktywny - filled visible */
.wishlist-button-add.active .eva-heart-outline-wrap {
    opacity: 0;
}

.wishlist-button-add.active .eva-heart-wrap {
    opacity: 1;
}

/* Debug - tymczasowo pokaż oba elementy */
/*
.wishlist-button-add .eva-heart-outline-wrap {
    background: rgba(255,0,0,0.3) !important;
    border: 1px solid red !important;
}

.wishlist-button-add .eva-heart-wrap {
    background: rgba(0,255,0,0.3) !important;
    border: 1px solid green !important;
}
*/

/* Style dla strony produktu - używa standardowych klas Bootstrap */
.biix-wishlist-product-page {
    margin: 15px 0;
}

/* Stan aktywny (dodane do wishlist) */
.biix-wishlist-product-page .btn.active {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.biix-wishlist-product-page .btn.active .wishlist-text {
    display: none;
}

.biix-wishlist-product-page .btn.active .wishlist-text-remove {
    display: inline-block;
}

/* Style dla wishlist-name-button są zdefiniowane niżej w pliku */

/* Style dla przycisków wishlist na stronie produktu - tylko pozycjonowanie */
.sticky h1.product__name,
.sticky h2.product__name,
.sticky h3.product__name,
.sticky h4.product__name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Bardziej specyficzne selektory - TYLKO dla strony produktu (sticky) */

/* Konto klienta */
.customer-account-wishlist {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}
.customer-account-wishlist svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Pozycjonowanie na kontenerach obrazków */
.product-miniature__image-container {
    position: relative;
}

/* Kompaktowy widok listy wishlist - jak w koszyku */
.cart-products .cart-item {
    transition: background-color 0.3s ease;
    border: none; /* Usuń border na desktop */
    border-bottom: 1px solid #f0f0f0; /* Tylko delikatna linia oddzielajaca */
    padding: 1rem 0;
}

.cart-products .product-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-products .product-actions .btn {
    border-radius: 6px;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F2F2F2;
    border: none;
    box-shadow: none;
}

.cart-products .product-actions .btn svg {
    width: 20px;
    height: 20px;
    display: block;
    stroke: none;
}

.cart-products .product-actions.d-flex {
    gap: 10px;
}

.cart-products .col-md-6.d-flex.align-items-center {
    gap: 1rem;
}

.cart-products .col-md-9.d-flex.align-items-center {
    gap: 1rem;
}

/* Strona listy życzeń */
.btn-add-all-cart {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sticky container z przyciskami akcji - sticky do rodzica */
.wishlist-actions-sticky {
    position: sticky;
    bottom: 0;
    margin-top: 2rem;
    background: white;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    z-index: 100;
}

.wishlist-actions-sticky .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 500;
}

.btn-remove-all-wishlist,
.btn-add-all-to-my-wishlist {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-remove-all-wishlist:hover,
.btn-add-all-to-my-wishlist:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Kontener na sticky przyciski */
.products {
    position: relative;
}

/* Nagłówek listy życzeń */
.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.wishlist-header .text-right {
    margin-left: auto;
}

/* ===== STYLOWANIE PRZYCISKÓW UDOSTĘPNIANIA ===== */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
    white-space: nowrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #dee2e6;
    background: white;
    color: #2F2B32;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn:hover {
    border-color: #2F2B32;
    color: #2F2B32;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.share-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Kolory specyficzne dla platform */
.share-btn[data-share="whatsapp"]:hover {
    border-color: #25d366;
    color: #25d366;
    background-color: rgba(37, 211, 102, 0.1);
}

.share-btn[data-share="tiktok"]:hover {
    border-color: #000000;
    color: #000000;
    background-color: rgba(0, 0, 0, 0.1);
}

.share-btn[data-share="instagram"]:hover {
    border-color: #e4405f;
    color: #e4405f;
    background-color: rgba(228, 64, 95, 0.1);
}

.share-btn[data-share="email"]:hover {
    border-color: #dc3545;
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.share-btn[data-share="copy"]:hover {
    border-color: #6f42c1;
    color: #6f42c1;
    background-color: rgba(111, 66, 193, 0.1);
}

/* ===== WISHLIST HEADER - MOBILE MENU INTEGRATION ===== */

/* Style dla wishlist w mobile menu */
#mobile-wishlist {
    border-bottom: 1px solid #eee;
}

#mobile-wishlist a {
    transition: background-color 0.2s ease;
}

#mobile-wishlist a:hover {
    background-color: #f8f9fa !important;
    text-decoration: none !important;
}

#mobile-wishlist .mobile-wishlist-count {
    background-color: #dc3545;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Poniżej 1200px ukryj ikonę wishlist w headerze i pokaż w mobile menu */
@media (max-width: 1200px) {
    /* Ukryj wishlist w głównym headerze */
    #_wishlist {
        display: none !important;
    }
    
    /* Pokaż wishlist w mobile menu */
    #mobile-wishlist {
        display: block !important;
    }
}

/* Powyżej 1200px ukryj wishlist w mobile menu i pokaż w headerze */
@media (min-width: 1201px) {
    /* Ukryj wishlist w mobile menu */
    #mobileMenu #mobile-wishlist {
        display: none !important;
    }
    
    /* Pokaż wishlist w headerze */
    #_wishlist {
        display: block !important;
    }
}

/* ===== RESPONSIVE BREAKPOINTS =====
 * > 1200px: Pełny layout tabelaryczny z dużymi czcionkami
 * 993px - 1200px: Layout tabelaryczny z mniejszymi czcionkami (aby cena nie wchodziła pod przyciski)
 * <= 992px: Layout mobilny (zdjęcie po lewej, nazwa/cena/stan po prawej, przyciski pod spodem)
 */

/* Breakpoint 1200px - zmniejszenie czcionki aby cena nie wchodziła pod przyciski (zachowuje layout tabelaryczny) */
@media (max-width: 1200px) and (min-width: 993px) {
    /* Zwiększona specyficzność dla czcionek */
    .cart-products .cart-item .product-name a,
    .cart-products .product-name > a,
    .product-name > a {
        font-size: 18px !important;
    }
    
    .cart-products .cart-item .product-price .price,
    .cart-products .product-price .price,
    .product-price .price {
        font-size: 18px !important;
    }
    
    .cart-products .cart-item .status-text,
    .cart-products .status-text,
    .status-text {
        font-size: 16px !important;
    }
}

/* Responsywność dla urządzeń mobilnych - tylko ikony wishlist */
@media (max-width: 768px) {
    .share-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .share-label {
        width: 100%;
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
    }
    
    .share-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Zawsze pokazuj ikony wishlist w kafelkach produktów na mobile */
    .product-miniature .wishlist-button-add,
    .card .wishlist-button-add {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ===== LAYOUT MOBILNY - od 992px w dół ===== */
@media (max-width: 992px) {
    .wishlist-header .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .wishlist-header .col-md-8,
    .wishlist-header .col-md-4 {
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    /* UKRYJ NAGŁÓWEK TABELI - z maksymalną specyficznością */
    .cart-products .cart-item.cart-header,
    .cart-products .cart-header,
    div.cart-header,
    .cart-products > .cart-header,
    div.cart-products .cart-header {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* USUŃ BORDER I PADDING Z KONTENERA */
    .cart-products {
        border: none !important;
        padding: 0 !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    /* KARTA PRODUKTU - bez bordera */
    .cart-products .cart-item {
        display: block !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
        background: white !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    .cart-products .cart-item:hover {
        background: white !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    /* ROW - grid z 2 kolumnami: zdjęcie i reszta */
    .cart-products .cart-item .row {
        display: grid !important;
        height: 120px;
        grid-template-columns: 130px 1fr !important;
        grid-template-rows: auto auto 1fr !important;
        gap: 0 !important;
        row-gap: 0 !important;
        margin: 0 !important;
        outline: none !important;
        align-items: start !important;
    }
    
    /* NAZWA - ukryj wersję desktopową, pokaż mobilną */
    .cart-products .cart-item .desktop-name {
        display: none !important;
    }
    
    .cart-products .cart-item .mobile-name {
        display: block !important;
    }
    
    /* NAJPIERW PRZYWRÓĆ WIDOCZNOŚĆ WSZYSTKICH .text-center */
    .cart-products .cart-item .text-center {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        width: auto !important;
        overflow: visible !important;
        position: static !important;
        left: auto !important;
    }
    
    /* UKRYJ TYLKO STATUS (pierwszy .col-md-2 który ma .text-center) */
    .cart-products .cart-item .col-md-2:nth-of-type(1).text-center,
    .cart-products .cart-item .col-md-2:nth-of-type(1) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* COL-MD-7: ZDJĘCIE - kolumna 1, wszystkie wiersze */
    .cart-products .cart-item > .row > .col-md-7 {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 4 !important;
        width: 120px !important;
        max-width: 120px !important;
        min-width: 120px !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* ZDJĘCIE - 120x120 z maksymalną specyficznością */
    .cart-products .cart-item .product-image,
    .cart-products .cart-item .col-md-7 .product-image,
    .cart-products .cart-item .product-image a {
        width: 120px !important;
        height: 120px !important;
        margin: 0 !important;
        display: block !important;
    }
    
    .cart-products .cart-item .product-image img,
    .cart-products .cart-item .col-md-7 .product-image img {
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        border-radius: 4px !important;
        outline: none !important;
        display: block !important;
    }
    
    /* NAZWA MOBILNA - wiersz 1, kolumna 2 */
    .cart-products .cart-item > .row > .mobile-name {
        grid-column: 2 / 3 !important;
        grid-row: 1 / 2 !important;
        font-weight: 500 !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
        display: block !important;
        align-self: start !important;
        overflow: hidden !important;
    }
    
    .cart-products .cart-item .mobile-name a {
        font-size: 1.2rem !important;
        color: #2F2B32 !important;
        text-decoration: none !important;
        text-wrap:nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important; 
    }
    
    /* CENA - wiersz 2, kolumna 2 - selektor z :has dla pewności */
    .cart-products .cart-item > .row > .col-md-2:has(.product-price),
    .cart-products .cart-item > .row > .col-md-2.text-center:has(.product-price) {
        grid-column: 2 / 3 !important;
        grid-row: 2 / 3 !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        display: block !important;
        text-align: left !important;
        align-self: start !important;
    }
    
    .cart-products .cart-item .product-price {
        display: inline-block !important;
    }
    
    .cart-products .cart-item .product-price .price {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #2F2B32 !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }
    
    /* PRZYCISKI - wiersz 3, kolumna 2 */
    .cart-products .cart-item > .row > .col-md-1 {
        grid-column: 2 / 3 !important;
        grid-row: 3 / 4 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        align-self: end !important;
    }
    
    /* Dodatkowe wyrównanie dla samego kontenera przycisków */
    .cart-products .cart-item .product-actions {
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* STATUS - UKRYJ NA MOBILCE (pierwszy col-md-2 w HTML - DOSTĘPNY) */
    .cart-products .cart-item .col-md-2:nth-of-type(1),
    .cart-products .cart-item .col-md-2:nth-of-type(1) .status-text,
    .cart-products .cart-item .status-text {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .cart-products .cart-item .product-price {
        display: inline-block !important;
    }
    
    .cart-products .cart-item .product-price .price {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #2F2B32 !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }
    
    /* PRZYCISKI - wiersz 3, kolumna 2 (pełna szerokość) */
    .cart-products .cart-item .col-md-1 {
        grid-column: 2 / 3 !important;
        grid-row: 3 / 4 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
    }
    
    .cart-products .cart-item .product-actions {
        display: flex !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }
    
    .cart-products .cart-item .product-actions .btn {
        padding: 10px 10px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 4px !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    /* DOLNE PRZYCISKI AKCJI - MOBILE: buttony obok siebie, udostępnianie pod nimi wysrodkowane */
    .wishlist-actions .row {
        flex-direction: column !important;
        gap: 16px;
    }
    
    .wishlist-actions .col-md-6 {
        width: 100% !important;
    }
    
    /* Przyciski masowe najpierw, obok siebie */
    .wishlist-actions .col-md-6:last-child {
        order: 1 !important;
    }
    
    .wishlist-actions .action-buttons .d-flex {
        flex-direction: row !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    
    .btn-add-all-cart,
    .btn-remove-all-wishlist,
    .btn-add-all-to-my-wishlist {
        flex: 1 !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        font-size: 13px !important;
        padding: 12px 8px !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }
    
    .btn-add-all-cart svg,
    .btn-remove-all-wishlist svg,
    .btn-add-all-to-my-wishlist svg {
        display: none !important;
    }
    
    /* Udostępnianie pod przyciskami, wysrodkowane */
    .wishlist-actions .col-md-6:first-child {
        order: 2 !important;
    }
    
    .wishlist-share-icons {
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 8px !important;
        gap: 10px !important;
    }
    
    .wishlist-share-icons span {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        flex-basis: 100% !important;
        order: -1 !important;
        margin-bottom: 0 !important;
    }
}

/* DESKTOP - ukryj nazwę mobilną, pokaż desktopową */
@media (min-width: 993px) {
    .cart-products .cart-item .mobile-name {
        display: none !important;
    }
    
    .cart-products .cart-item .desktop-name {
        display: block !important;
    }
    
    /* PRZYCISKI AKCJI NA DESKTOPIE - wyrównane do prawej, obok siebie */
    .cart-products .cart-item .product-actions {
        display: flex !important;
        gap: 8px !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
    
    .cart-products .cart-item .product-actions .btn {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 45px !important;
    }
    
    /* DOLNE PRZYCISKI AKCJI - DESKTOP: udostępnianie z lewej, buttony z prawej w wierszu */
    .wishlist-actions .row {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 16px;
    }
    
    .wishlist-actions .col-md-6 {
        width: auto !important;
        flex: 0 0 auto !important;
    }
    
    .wishlist-actions .col-md-6:first-child {
        order: 1 !important;
    }
    
    .wishlist-actions .col-md-6:last-child {
        order: 2 !important;
    }
    
    .wishlist-share-icons {
        justify-content: flex-start !important;
    }
}


/* ===== CUSTOM TOAST NOTIFICATIONS ===== */
.biix-custom-toast {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 450px;
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.biix-custom-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.biix-custom-toast .btn-close-custom {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 8px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.biix-custom-toast .btn-close-custom:before {
    content: "×";
    display: block;
}

.biix-custom-toast .alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.biix-custom-toast .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.biix-custom-toast .alert-info {
    background-color: #d1ecf1;
    border-color: #b6d4ea;
    color: #055160;
}

.biix-custom-toast .d-flex {
    gap: 8px;
}

.biix-custom-toast svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Mobile responsiveness for toasts */
@media (max-width: 576px) {
    .biix-custom-toast {
        left: 10px;
        right: 10px;
        max-width: none;
        width: calc(100% - 20px);
        transform: translateY(-100%);
    }
    
    .biix-custom-toast.show {
        transform: translateY(0);
    }
}

/* ===== ANIMACJE USUWANIA PRODUKTÓW ===== */
.wishlist-item-removing {
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.4s ease;
    pointer-events: none;
    position: relative;
    overflow: hidden;
}

.wishlist-item-removing::after {
    content: "Usuwanie...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    white-space: nowrap;
}

.wishlist-item-fade-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Animacja dodawania do koszyka */
.cart-adding {
    position: relative;
    pointer-events: none;
}

.cart-adding::after {
    content: "🛒 Dodawanie...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(40, 167, 69, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    white-space: nowrap;
    animation: cart-pulse 1s infinite;
}

@keyframes cart-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Loading spinner dla długich operacji */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover effect na produktach z lepszą animacją */
.product-miniature,
.cart-item,
.wishlist-product-item {
    transition: all 0.2s ease;
}

/* Wishlist buttons dziedziczą animacje z .add-to-cart-category .btn */

/* Specjalne style dla wishlist-name-button (obok nazwy produktu) */
.wishlist-name-button {
    color: #222;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.wishlist-name-button:hover {
    opacity: 0.7;
    color: #333;
}

.wishlist-name-button span {
    display: flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
}

/* Animacja przejścia dla EVA Icons - płynne fade między outline a filled */
.eva-heart-outline-wrap,
.eva-heart-wrap {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    line-height: 0;
}

/* Dla przycisków na shared wishlist - relative positioning */
.btn-add-to-my-wishlist {
    position: relative;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-add-to-my-wishlist .eva-heart-outline-wrap,
.btn-add-to-my-wishlist .eva-heart-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-add-to-my-wishlist .eva-heart-outline-wrap {
    opacity: 1;
    z-index: 1;
}

.btn-add-to-my-wishlist .eva-heart-wrap {
    opacity: 0;
    z-index: 2;
    display: inline-block !important; /* Zawsze block, kontrola przez opacity */
}

/* Na kafelkach produktów - absolute positioning dla nakładania */
.product-miniature .eva-heart-wrap,
.card .eva-heart-wrap {
    transform: translate(-50%, -50%);
}

.eva-heart-outline-wrap {
    opacity: 1;
    z-index: 1;
}

.eva-heart-wrap {
    opacity: 0;
    z-index: 2;
}

.wishlist-name-button .eva-heart-outline-wrap {
    opacity: 1;
}

.wishlist-name-button .eva-heart-wrap {
    opacity: 0;
}

.wishlist-name-button.active .eva-heart-outline-wrap {
    opacity: 0;
}

.wishlist-name-button.active .eva-heart-wrap {
    opacity: 1;
}

/* Kontener dla ikon - style są zdefiniowane wyżej w pliku aby uniknąć duplikatów */

/* Animacja "puls" przy kliknięciu - bez translate aby nie kolidować z pozycjonowaniem */
@keyframes heartPulse {
    0% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.2);
    }
    100% { 
        transform: scale(1);
    }
}

.product-miniature .biix-wishlist-icon.animating .eva-heart-wrap,
.product-miniature .wishlist-button-add.animating .eva-heart-wrap,
.card .biix-wishlist-icon.animating .eva-heart-wrap,
.card .wishlist-button-add.animating .eva-heart-wrap {
    animation: heartPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dla h1 - inna animacja bez translate */
@keyframes heartPulseSimple {
    0% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.2);
    }
    100% { 
        transform: scale(1);
    }
}

.wishlist-name-button.animating .eva-heart-wrap {
    animation: heartPulseSimple 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animacje dla usuwania wszystkich produktów */
.wishlist-remove-all-animation {
    animation: removeAllPulse 0.3s ease-in-out;
    transform-origin: center;
}

@keyframes removeAllPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 76, 76, 0.4);
    }
    50% {
        transform: scale(0.98);
        box-shadow: 0 0 0 10px rgba(255, 76, 76, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 76, 76, 0);
    }
}

/* Efekt kaskadowy dla usuwania wszystkich */
.wishlist-staggered-remove {
    animation: staggeredRemove 0.5s ease-out forwards;
    animation-delay: calc(var(--stagger-delay, 0) * 0.1s);
}

@keyframes staggeredRemove {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(0.98);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
        pointer-events: none;
    }
}


/* Success animation dla przycisku */
.remove-all-success {
    animation: successPulse 0.6s ease-out;
    background: linear-gradient(135deg, #51cf66, #47b85c);
}

@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(81, 207, 102, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(81, 207, 102, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(81, 207, 102, 0);
    }
}

/* Nowe style dla lepszych powiadomień */
.biix-wishlist-message {
    position: fixed;
    top: 120px;
    @media screen and (max-width:1200px) {
      top:20px;
    }
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    z-index: 99999;
    border-radius: 4px;
    box-shadow: 0px 6px 10px #2e2b3215;
    transform: translateX(100%);
    opacity: 0;
    background: #fff;
    color: #232323;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow:hidden;
}

.biix-wishlist-message.biix-message-show {
    transform: translateX(0);
    opacity: 1;
}

.biix-wishlist-message.biix-message-fade-out {
    transform: translateX(100%);
    opacity: 0;
}



/* Zawartość wiadomości */
.biix-message-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    position: relative;
    overflow:hidden;
}

.biix-message-icon {
    font-size: 20px;
    margin-right: 12px;
    animation: messageIconBounce 0.6s ease-out;
}

.biix-message-text {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.biix-message-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    opacity: 0.7;
}


/* Animacje dla ikon */
@keyframes messageIconBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Progress bar dla auto-hide */
.biix-message-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 8px 8px;
    animation: messageProgress 5s linear;
}

@keyframes messageProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Stack multiple messages */
.biix-wishlist-message:nth-of-type(2) {
    top: 100px;
}

.biix-wishlist-message:nth-of-type(3) {
    top: 180px;
}

.biix-wishlist-message:nth-of-type(4) {
    top: 260px;
}

/* === Wishlist main action buttons (remove all / add all to cart) === */
.btn-add-all-cart,
.btn-remove-all-wishlist,
.btn-add-all-to-my-wishlist {
    width: 276px;
    height: 46px;
    min-width: 276px;
    min-height: 46px;
    max-width: 276px;
    max-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    padding: 0;
    box-shadow: none;
    gap: 0;
}

.btn-add-all-cart {
    background: #A7BF2E;
    color: #2F2B32;
    border: none;
    transition: background 0.2s;
}
.btn-add-all-cart:hover {
    background: #bad243 !important;
    color: #2F2B32;
}

.btn-remove-all-wishlist,
.btn-add-all-to-my-wishlist {
    background: #fff;
    color: #2F2B32;
    border: 2px solid #2F2B32;
    transition: background 0.2s, color 0.2s;
}
.btn-remove-all-wishlist:hover,
.btn-add-all-to-my-wishlist:hover {
    background: #2F2B32;
    color: #fff;
    border-color: #2F2B32;
}

.btn-add-all-cart svg,
.btn-remove-all-wishlist svg {
    display: none;
    stroke: none;
}

.d-flex.justify-content-end.flex-wrap .btn-add-all-cart,
.d-flex.justify-content-end.flex-wrap .btn-remove-all-wishlist,
.d-flex.justify-content-end.flex-wrap .btn-add-all-to-my-wishlist {
    margin-right: 0;
    margin-left: 0;
}

.d-flex.justify-content-end.flex-wrap {
    gap: 20px;
}

/* Loader dla wishlisty - spinner Bootstrap */
.biix-wishlist-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 40px 20px;
}

.biix-wishlist-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.biix-wishlist-loader p {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

/* Checkboxy do masowego usuwania */
.product-checkbox,
#select-all-products {
    cursor: pointer;
    accent-color: #A7BF2E;
}

.selected-actions {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-right: 15px;
    align-items: center;
}

.selected-count {
    color: #495057;
    font-size: 14px;
}

.selected-count .count {
    font-weight: 600;
    color: #2F2B32;
}

.btn-remove-selected {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Responsywność dla checkboxów */
@media (max-width: 992px) {
    .selected-actions {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    
    .selected-count {
        margin: 0;
    }
    
    .btn-remove-selected {
        white-space: nowrap;
        font-size: 13px;
    }
}

/* Mobile/Desktop Layout Controls */
@media (max-width: 991.98px) {
    /* Na mobile ukryj desktop layout */
    .cart-item .d-none.d-lg-flex {
        display: none !important;
    }
    
    /* Na mobile pokaż mobile layout */
    .mobile-wishlist-item.d-flex.d-lg-none {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    /* Na desktop pokaż desktop layout */
    .cart-item .d-none.d-lg-flex {
        display: flex !important;
    }
    
    /* Na desktop ukryj mobile layout */
    .mobile-wishlist-item.d-flex.d-lg-none {
        display: none !important;
    }
}

/* Wishlist link w menu nawigacyjnym - wyłącz animacje */
.account-menu__line,
[data-no-animation="true"] {
    /* Resetuj wszystkie animacje i transformacje */
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

.account-menu__line:hover,
.account-menu__line:focus,
.account-menu__line:active,
[data-no-animation="true"]:hover,
[data-no-animation="true"]:focus,
[data-no-animation="true"]:active {
    /* Wyłącz efekty hover/focus/active */
    transition: none !important;
    transform: none !important;
    animation: none !important;
    
    /* Zachowaj tylko podstawowe style jak inne pozycje menu */
    color: inherit !important;
    background: none !important;
    box-shadow: none !important;
}

/* Dodatkowo - wyłącz animacje dla wszystkich dzieci */
.account-menu__line *,
.account-menu__line *:before,
.account-menu__line *:after,
[data-no-animation="true"] *,
[data-no-animation="true"] *:before,
[data-no-animation="true"] *:after {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

/* Jeśli link ma specjalne style dla customer-link - wyłącz je w menu */
.account-menu .account-menu__line.customer-link__link,
.account-menu [data-no-animation="true"] {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

.account-menu .account-menu__line.customer-link__link:hover,
.account-menu [data-no-animation="true"]:hover {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

/* Wishlist Page Styling - Obrazki i Przyciski */

/* Obrazki produktów w wishlist */
.wishlist-item img,
.mobile-wishlist-item img,
.cart-item img {
    filter: brightness(0.95) !important;
    border-radius: 4px !important;
}

/* Przyciski produktów - sztywny rozmiar 40x40px */
.btn-wishlist-add-cart-ajax,
.btn-wishlist-remove,
.product-actions .btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
}

/* Rozmiary SVG w przyciskach */
.btn-wishlist-add-cart-ajax svg,
.btn-wishlist-remove svg,
.product-actions .btn svg {
    width: 18px !important;
    height: 18px !important;
}

/* Usuń wszystkie niebieskie kolory */
.text-primary,
.mobile-price-availability .text-primary {
    color: inherit !important;
}

/* Przyciski - usuń niebieskie tło */
.btn-outline-primary {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}

.btn-outline-primary:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #212529 !important;
}

/* Mobile layout - przyciski mniejsze */
.mobile-actions .btn-sm {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
}

.mobile-actions .btn-sm svg {
    width: 16px !important;
    height: 16px !important;
}

/* Wishlist page - główne przyciski akcji */
.wishlist-actions .btn {
    border-radius: 4px !important;
}

/* Usuń obramowanie focus tylko dla przycisku "dodaj wszystkie" */
.btn-add-all-cart:focus,
.btn-add-all-cart:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* MOBILE: Wyrównaj przyciski do dołu zdjęcia */
@media (max-width: 992px) {
    /* Przyciski produktów - align bottom z obrazkiem */
    .cart-products .cart-item > .row > .col-md-1 {
        align-self: end !important;
        margin-top: auto !important;
    }
    
    /* Dodatkowe wyrównanie przycisków w kontenerze */
    .cart-products .cart-item .product-actions {
        display: flex !important;
        gap: 8px !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        height: 100% !important;
        margin-top: auto !important;
    }
    
    /* MOBILE WISHLIST ITEM - wyrównanie przycisków z dolną krawędzią zdjęcia */
    .mobile-wishlist-item {
        align-items: stretch !important;
    }
    
    .mobile-wishlist-item .mobile-image-col {
        height: 130px !important;
        align-self: stretch !important;
    }
    
    .mobile-wishlist-item .mobile-info-col {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 130px !important;
    }
    
    .mobile-wishlist-item .mobile-actions {
        margin-top: auto !important;
        align-self: flex-start !important;
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    
    /* Dostępność - ciemny kolor */
    .availability-status {
        color: #2F2B32 !important;
        font-size: 14px !important;
        font-weight: normal !important;
    }
    
    /* Myślnik między ceną a dostępnością */
    .mobile-price-availability span:not(.availability-status) {
        color: #6c757d !important;
    }
}
