/* ===== Koszyk (strona /koszyk) ===== */

/* ===== HEADER na jasnym tle koszyka =====
   Nieprzewinięty (przezroczysty) nagłówek jest w wariancie „na ciemne hero":
   białe logo, biała ikona koszyka, biały hamburger. Na jasnym tle koszyka
   (#f4f5f7) są niewidoczne — wymuszamy ciemny wariant już od góry strony.
   Linki menu są domyślnie czarne, więc ich nie ruszamy. */
body:has(.cart) .header:not(.header--scrolled) .header__logo img {
    filter: none;
}
body:has(.cart) .header:not(.header--scrolled) .header__cart {
    color: #1a1a1a;
}
body:has(.cart) .header:not(.header--scrolled) .header__hamburger span {
    background: #1a1a1a;
}

.cart {
    width: 100%;
    min-height: 70vh;
    background: #f4f5f7;
    padding: 174px 20px 80px;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
.cart__inner {
    max-width: 960px;
    margin: 0 auto;
}
.cart__head {
    margin-bottom: 32px;
}
.cart__h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart__h1 i {
    color: #800000;
}
.cart__lead {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    max-width: 720px;
}

/* --- lista --- */
.cart__list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cart__item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s, transform 0.25s;
}
.cart__item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.cart__itemLogo {
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    border-radius: 12px;
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    color: #800000;
    font-size: 1.6rem;
}
.cart__itemLogo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}
.cart__itemBody {
    flex: 1 1 auto;
    min-width: 0;
}
.cart__itemTitle {
    display: inline-block;
    font-size: 1.12rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.cart__itemTitle:hover {
    color: #800000;
}
.cart__itemMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cart__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #444;
    background: #f1f2f4;
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
}
.cart__chip i {
    font-size: 0.78rem;
    opacity: 0.85;
}
.cart__chip--date {
    background: #eef2f8;
    color: #2b4a6f;
}
.cart__chip--guaranteed {
    background: #e7f5e9;
    color: #2e7d32;
}
.cart__chip--evening {
    background: #e8eaf6;
    color: #283593;
}
.cart__chip--warn {
    background: #fff4e5;
    color: #b26a00;
}
.cart__chip--danger {
    background: #fdecea;
    color: #b71c1c;
}

/* --- prawa kolumna: cena + akcje --- */
.cart__itemRight {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 180px;
}
.cart__price {
    text-align: right;
    line-height: 1.25;
}
.cart__priceOld {
    display: block;
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}
.cart__priceNow {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #800000;
}
.cart__priceNow small {
    font-size: 0.72rem;
    font-weight: 600;
    color: #999;
}
.cart__priceBrutto {
    display: block;
    font-size: 0.8rem;
    color: #888;
}
.cart__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}
.cart__btn--primary {
    background: linear-gradient(135deg, #1a3a5c, #1e5080);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 58, 92, 0.3);
}
.cart__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26, 58, 92, 0.42);
    background: linear-gradient(135deg, #1e4a6c, #2268a0);
}
.cart__btn--lg {
    padding: 15px 28px;
    font-size: 1rem;
}
.cart__btn--remove {
    background: #f7eded;
    color: #a52a2a;
}
.cart__btn--remove:hover {
    background: #f2dede;
    color: #800000;
}
.cart__btn--remove:disabled {
    opacity: 0.5;
    cursor: default;
}
.cart__btn--disabled {
    background: #ececec;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- stopka listy --- */
.cart__footer {
    display: flex;
    justify-content: flex-start;
}
.cart__continue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #800000;
    text-decoration: none;
    transition: gap 0.2s;
}
.cart__continue:hover {
    gap: 14px;
}

/* --- pusty koszyk --- */
.cart__empty {
    text-align: center;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 60px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.cart__emptyIcon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #b0b0b0;
}
.cart__emptyTitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}
.cart__emptyText {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    max-width: 480px;
    margin: 0 auto 28px;
}

/* --- responsywność --- */
@media (max-width: 1200px) {
    .cart {
        padding-top: 149px;
    }
}
@media (max-width: 760px) {
    .cart__item {
        flex-wrap: wrap;
        gap: 14px;
    }
    .cart__itemLogo {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
        font-size: 1.35rem;
    }
    .cart__itemBody {
        flex: 1 1 calc(100% - 68px);
    }
    .cart__itemRight {
        flex: 1 1 100%;
        align-items: stretch;
        min-width: 0;
        border-top: 1px solid #f0f0f0;
        padding-top: 14px;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .cart__price {
        text-align: left;
    }
    .cart__actions {
        flex: 1 1 100%;
        justify-content: flex-end;
    }
}
@media (max-width: 600px) {
    .cart {
        padding-top: 126px;
    }
    .cart__h1 {
        font-size: 1.6rem;
    }
    .cart__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .cart__btn {
        width: 100%;
    }
}
