main.cart-section {
    box-sizing: border-box;
    width: 100%;
    max-width: 1180px;
    min-height: 65vh;
    margin: 0 auto;
    padding: 88px clamp(24px, 5vw, 64px);
}

.cart-heading > span {
    color: var(--gold, #a28765);
    font-size: 10px;
    letter-spacing: 3px;
}

.cart-heading h1 {
    margin: 12px 0 35px;
    color: var(--wine, #491f25);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 500;
    line-height: 1;
}

.cart-layout {
    display: block;
}

.cart-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 42px 42px;
    gap: 16px;
    align-items: center;
    min-height: 112px;
    margin-bottom: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(73, 31, 37, .16);
    background: rgba(233, 223, 208, .45);
}

.cart-item-image {
    width: 84px;
    height: 84px;
    overflow: hidden;
    background: var(--paper, #e9dfd0);
}

.cart-item-image img,
.cart-item-image .product-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h2 {
    margin: 2px 0 3px;
    color: var(--wine, #491f25);
    font: 500 23px "Cormorant Garamond", Georgia, serif;
}

.cart-design-name {
    color: var(--gold, #a28765);
    font-size: 9px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.cart-unit-price,
.cart-line-total {
    margin: 3px 0 0;
    color: var(--text, #392522);
    font-size: 10px;
}

.quantity-form {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2px;
}

.quantity-form button,
.delete-cart-item,
.clear-cart {
    border: 1px solid rgba(73, 31, 37, .3);
    background: transparent;
    color: var(--wine, #491f25);
    cursor: pointer;
    font: inherit;
}

.quantity-form button {
    width: 30px;
    height: 27px;
    padding: 0;
    border: 0;
    font-size: 20px;
    line-height: 1;
}

.quantity-form span {
    min-width: 24px;
    color: var(--wine, #491f25);
    text-align: center;
    font-size: 12px;
}

.remove-form {
    display: flex;
    justify-content: center;
}

.delete-cart-item {
    border: 0;
    padding: 6px;
    color: var(--wine, #491f25);
    font-size: 18px;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 22px;
    padding: 15px 20px;
    background: var(--paper, #e9dfd0);
}

.cart-summary > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text, #392522);
    font-size: 13px;
}

.cart-summary .cart-grand-total {
    align-items: flex-end;
    color: var(--wine, #491f25);
    font-size: 15px;
}

.cart-clear-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.checkout-link {
    display: inline-block;
    padding: 12px 18px;
    background: var(--wine, #491f25);
    color: var(--cream, #f3ede3);
    font-size: 12px;
    text-decoration: none;
}

.clear-cart {
    padding: 8px 12px;
    font-size: 11px;
}

.cart-empty {
    padding: 35px;
    background: var(--paper, #e9dfd0);
}

.cart-empty a {
    display: inline-block;
    margin-top: 15px;
    color: var(--wine, #491f25);
}

@media (max-width: 768px) {
    main.cart-section {
        padding: 70px 7%;
    }

    .cart-item {
        grid-template-columns: 64px minmax(0, 1fr) 32px 32px;
        gap: 8px;
        min-height: 92px;
        padding: 8px;
    }

    .cart-item-image {
        width: 64px;
        height: 64px;
    }

    .cart-item-info h2 {
        font-size: 19px;
    }

    .cart-unit-price,
    .cart-line-total {
        font-size: 9px;
    }

    .quantity-form button {
        width: 26px;
        height: 24px;
    }

    .cart-summary {
        gap: 10px;
        margin-top: 16px;
        padding: 12px;
    }

    .cart-summary > div {
        font-size: 10px;
    }

    .cart-summary .cart-grand-total {
        font-size: 12px;
    }
}
