/*
=================================================================
   NOWY, CZYTELNY STYL DLA BOCZNEGO KOSZYKA (SIDE CART)
=================================================================
*/

/* --- Główny kontener koszyka --- */
.elementor-menu-cart__main {
    background-color: #f8f9fa; /* Jasnoszare, czyste tło */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* Nowoczesna, systemowa czcionka */
    color: #343a40; /* Ciemniejszy kolor tekstu dla kontrastu */
    padding: 24px;
}

/* --- Lista produktów --- */
.wpr-woo-mini-cart.cart_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Pojedynczy produkt na liście --- */
.woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    gap: 16px; /* Odstęp między zdjęciem a tekstem */
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef; /* Delikatny separator */
}

/* --- Obrazek produktu --- */
.wpr-mini-cart-image img {
    width: 64px;
    height: 64px;
    object-fit: cover; /* Zapewnia, że obrazek dobrze wypełnia przestrzeń */
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* --- Kontener na nazwę i cenę --- */
.wpr-mini-cart-name-and-quantity {
    flex-grow: 1; /* Zajmuje całą dostępną przestrzeń */
    display: flex;
    flex-direction: column;
    gap: 4px; /* Mały odstęp między nazwą a ceną */
}

/* --- Nazwa produktu --- */
.wpr-mini-cart-name {
    font-size: 15px;
    font-weight: 600;
    color: #212529; /* Bardzo ciemny szary dla nazwy */
    line-height: 1.4;
}
.wpr-mini-cart-product-name a {
    text-decoration: none;
}
.wpr-mini-cart-product-name a:hover .wpr-mini-cart-name {
    color: #0d6efd; /* Niebieski kolor po najechaniu */
}

/* --- Ilość i cena --- */
.wpr-mini-cart-quantity {
    font-size: 14px;
    color: #6c757d; /* Szary kolor dla mniej ważnych informacji */
}

/* --- Przycisk usuwania "X" --- */
.wpr-mini-cart-remove a.remove {
    background-color: #e9ecef;
    color: #6c757d;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}
.wpr-mini-cart-remove a.remove:hover {
    background-color: #dc3545;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

/* --- Podsumowanie (kwota) --- */
.woocommerce-mini-cart__total {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #dee2e6;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    display: flex;
    justify-content: space-between;
}
.woocommerce-mini-cart__total .woocommerce-Price-amount {
    color: #0d6efd; /* Wyróżnienie kwoty kolorem */
}

/* --- Główne przyciski na dole --- */
.woocommerce-mini-cart__buttons {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.woocommerce-mini-cart__buttons .button {
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
}

/* Przycisk "Zamówienie" (główny) */
.woocommerce-mini-cart__buttons .checkout {
    background-color: #0d6efd;
    color: #fff;
}
.woocommerce-mini-cart__buttons .checkout:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

/* Przycisk "Zobacz koszyk" (drugorzędny) */
.woocommerce-mini-cart__buttons .wc-forward:not(.checkout) {
    background-color: #e9ecef;
    color: #212529;
}
.woocommerce-mini-cart__buttons .wc-forward:not(.checkout):hover {
    background-color: #dee2e6;
}
/* --- Kontener wiadomości o pustym koszyku --- */
.woocommerce-mini-cart__empty-message {
    display: flex;
    flex-direction: column; /* Ustawia elementy jeden pod drugim */
    align-items: center;    /* Centruje w poziomie */
    justify-content: center;/* Centruje w pionie */
    text-align: center;
    padding: 60px 20px;     /* Dużo wewnętrznego marginesu, aby było przestronnie */
    font-size: 1.1rem !important;      /* Lekko większa czcionka */
    color: #6c757d;         /* stonowany kolor tekstu */
}

/* --- Ikona koszyka nad tekstem (wymaga Font Awesome) --- */
.woocommerce-mini-cart__empty-message::before {
    font-family: "Font Awesome 5 Free"; /* Upewnij się, że motyw ładuje Font Awesome */
    font-weight: 900;
    content: '\f07a'; /* Ikona koszyka na zakupy */
    font-size: 48px;  /* Duży rozmiar ikony */
    color: #dee2e6;   /* Bardzo jasny, subtelny kolor ikony */
    margin-bottom: 24px;
}

/* --- Przycisk "Wróć do sklepu", który dodamy kodem PHP --- */
.wc-empty-cart-button {
    display: inline-block;
    background-color: #0d6efd;
    color: #fff !important; /* Ważne, aby nadpisać inne style linków */
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 24px;
    transition: all 0.2s ease;
}

.wc-empty-cart-button:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}