.cart-page {
    min-height: 70vh;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    background: var(--surface, #f7f3ea);
}

.cart-page__heading {
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.cart-page__heading h1,
.cart-section-heading h2,
.cart-summary h2,
.cart-empty h2 {
    color: var(--brand-dark, #0b1113);
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-weight: 800;
}

.cart-page__heading h1 {
    margin: 0 0 .5rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
}

.cart-page__heading p,
.cart-empty p,
.cart-summary__note {
    color: var(--text-secondary, #6f6a61);
}

.product-quantity-controls {
    display: flex;
    align-items: center;
    max-width: 170px;
    overflow: hidden;
    border: 1px solid rgba(6, 63, 70, .25);
    border-radius: 6px;
}

.product-quantity-controls button,
.product-quantity-controls input {
    width: 48px;
    height: 44px;
    border: 0;
    background: #fff;
    color: var(--brand-dark, #0b1113);
    text-align: center;
}

.product-quantity-controls button {
    cursor: pointer;
    font-size: 1.25rem;
}

.product-quantity-controls button:hover,
.product-quantity-controls button:focus-visible {
    background: var(--brand-petrol, #063f46);
    color: #fff;
}

.product-quantity-controls input {
    width: 74px;
    border-right: 1px solid rgba(6, 63, 70, .15);
    border-left: 1px solid rgba(6, 63, 70, .15);
}

.cart-alert {
    border: 0;
    border-radius: 8px;
}

.cart-feedback {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: .9rem 1rem;
    border-left: 3px solid var(--brand-gold, #c9a15a);
    background: #fff;
    color: var(--brand-petrol, #063f46);
}

.cart-feedback__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .cart-feedback {
        align-items: flex-start;
        flex-direction: column;
    }
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
}

.cart-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cart-section-heading h2,
.cart-summary h2 {
    margin: 0;
    font-size: 2rem;
}

.cart-section-heading span {
    color: var(--text-secondary, #6f6a61);
    font-size: .9rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(6, 63, 70, .13);
    border-radius: 8px;
    background: var(--surface-white, #fff);
    box-shadow: 0 14px 34px rgba(11, 17, 19, .06);
}

.cart-item__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: #eee8dc;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__content {
    min-width: 0;
}

.cart-item__topline,
.cart-item__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item__category {
    color: var(--brand-gold, #c9a15a);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cart-item h3 {
    margin: .25rem 0 .5rem;
    font-size: 1.35rem;
}

.cart-item h3 a {
    color: var(--brand-dark, #0b1113);
}

.cart-item__pricing {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    color: var(--brand-petrol, #063f46);
}

.cart-item__old-price {
    color: var(--text-secondary, #6f6a61);
    font-size: .85rem;
    text-decoration: line-through;
}

.cart-item__footer {
    align-items: end;
    margin-top: 1rem;
}

.cart-quantity label,
.cart-item__subtotal span {
    display: block;
    margin-bottom: .35rem;
    color: var(--text-secondary, #6f6a61);
    font-size: .78rem;
}

.cart-quantity__controls {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(6, 63, 70, .25);
    border-radius: 6px;
}

.cart-step,
.cart-quantity input {
    width: 38px;
    height: 38px;
    border: 0;
    background: var(--surface-white, #fff);
    color: var(--brand-dark, #0b1113);
    text-align: center;
}

.cart-step {
    cursor: pointer;
    font-size: 1.25rem;
}

.cart-step:hover,
.cart-step:focus-visible {
    background: var(--brand-petrol, #063f46);
    color: #fff;
}

.cart-quantity input {
    border-right: 1px solid rgba(6, 63, 70, .15);
    border-left: 1px solid rgba(6, 63, 70, .15);
}

.cart-remove {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--text-secondary, #6f6a61);
}

.cart-remove:hover,
.cart-remove:focus-visible {
    color: #a94442;
}

.cart-item__subtotal {
    text-align: right;
}

.cart-item__subtotal strong {
    color: var(--brand-dark, #0b1113);
}

.cart-products__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cart-button {
    min-height: 46px;
    padding: .7rem 1.1rem;
    border-radius: 6px;
}

.cart-button--wide {
    width: 100%;
}

.cart-clear {
    color: #a94442;
    text-decoration: underline;
}

.cart-summary {
    position: sticky;
    top: 7rem;
    padding: 1px;
    background: linear-gradient(145deg, var(--brand-gold, #c9a15a), transparent 45%);
}

.cart-summary__inner {
    padding: clamp(1.35rem, 3vw, 2rem);
    background: var(--surface-white, #fff);
}

.cart-summary dl {
    margin: 1.5rem 0;
}

.cart-summary dl div,
.cart-summary__total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0;
    color: var(--text-secondary, #6f6a61);
}

.cart-summary dd {
    margin: 0;
    color: var(--brand-dark, #0b1113);
    text-align: right;
}

.cart-summary__discount {
    color: var(--brand-petrol, #063f46) !important;
}

.cart-summary__total {
    align-items: baseline;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(6, 63, 70, .18);
    color: var(--brand-dark, #0b1113);
    font-size: 1.1rem;
}

.cart-summary__total strong {
    font-size: 1.5rem;
}

.cart-summary__note {
    margin: 1rem 0 0;
    font-size: .82rem;
    line-height: 1.5;
}

.cart-empty {
    max-width: 700px;
    margin: 2rem auto;
    padding: clamp(2rem, 7vw, 5rem) 1.5rem;
    border: 1px solid rgba(6, 63, 70, .14);
    background: #fff;
    text-align: center;
}

.cart-empty__icon {
    display: grid;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    place-items: center;
    border: 1px solid var(--brand-gold, #c9a15a);
    border-radius: 50%;
    color: var(--brand-gold, #c9a15a);
    font-size: 1.8rem;
}

.cart-empty h2 {
    margin: .25rem 0 .75rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.cart-empty p {
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

@media (max-width: 767.98px) {
    .cart-layout {
        display: block;
    }

    .cart-summary {
        position: static;
        margin-top: 2rem;
    }

    .cart-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: .85rem;
        padding: .75rem;
    }

    .cart-item__topline,
    .cart-item__footer {
        gap: .5rem;
    }

    .cart-item h3 {
        font-size: 1.15rem;
    }

    .cart-item__footer {
        align-items: start;
        flex-direction: column;
    }

    .cart-item__subtotal {
        text-align: left;
    }
}

@media (max-width: 374px) {
    .cart-page {
        padding-inline: .25rem;
    }

    .cart-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .cart-item__pricing strong,
    .cart-item__subtotal strong {
        font-size: .9rem;
    }
}
