.cart-page {
    padding: 7rem 0 6rem;
    background: var(--cream);
    min-height: 70vh;
}

.cart-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cart-header__label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.cart-header__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.cart-header__divider {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--cream-dark);
    align-items: center;
}

.cart-item:first-child {
    padding-top: 0;
}

.cart-item__image {
    width: 100px;
    height: 120px;
    overflow: hidden;
    border: 1px solid var(--cream-dark);
    background: var(--white);
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item__details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cart-item__category {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

.cart-item__name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1.3;
}

.cart-item__name a {
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item__name a:hover {
    color: var(--burgundy);
}

.cart-item__price {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-top: 0.25rem;
}

.cart-item__quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    margin-top: 0.75rem;
    width: fit-content;
}

.cart-item__qty-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    transition: all 0.3s ease;
}

.cart-item__qty-btn:hover {
    background: var(--cream-dark);
    color: var(--burgundy);
}

.cart-item__qty-value {
    width: 40px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    height: 34px;
    line-height: 34px;
}

.cart-item__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.cart-item__line-total {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
}

.cart-item__remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 0;
}

.cart-item__remove:hover {
    color: var(--error);
}

.cart-summary {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    padding: 2rem;
    position: sticky;
    top: 90px;
}

.cart-summary__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.cart-summary__divider {
    width: 100%;
    height: 1px;
    background: var(--cream-dark);
    margin: 1rem 0;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-summary__row--total {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    padding: 0.75rem 0;
}

.cart-summary__shipping {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.cart-summary__checkout-btn {
    display: block;
    width: 100%;
    padding: 1.1rem 2rem;
    background: var(--burgundy);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--burgundy);
    cursor: pointer;
    transition: all 0.35s ease;
    margin-top: 1.5rem;
}

.cart-summary__checkout-btn:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
}

.cart-summary__note {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

.cart-summary__continue {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-summary__continue:hover {
    color: var(--burgundy);
}

.cart-empty {
    padding: 4rem 0;
    text-align: center;
}

.cart-empty__inner {
    max-width: 400px;
    margin: 0 auto;
}

.cart-empty__icon {
    color: var(--cream-dark);
    margin: 0 auto 1.5rem;
}

.cart-empty__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.cart-empty__text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.header__cart--active {
    color: var(--burgundy);
}

@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr 320px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: 6rem 0 4rem;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .cart-item__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cart-item__image {
        width: 80px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 70px 1fr;
    }

    .cart-item__image {
        width: 70px;
        height: 85px;
    }

    .cart-item__name {
        font-size: 1rem;
    }
}