.shop-cart-page {
    max-width: 1060px;
    padding-bottom: 3rem;
}

.shop-cart-page-heading { margin: 1.5rem 0; }
.shop-cart-page-heading h1 { margin: 0 0 .35rem; font-size: clamp(1.9rem, 4vw, 2.75rem); }
.shop-cart-page-heading p { margin: 0; color: var(--ink-soft); }

.shop-cart-section {
    --cart-accent: #226858;
    --cart-icon-background: #e3f2eb;
    --cart-summary-background: #f1f7f5;
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1.25rem;
    border: 1px solid #e8e5df;
    border-radius: 18px;
    background: var(--surface-solid);
}

.shop-cart-gifts {
    --cart-accent: #765831;
    --cart-icon-background: #f8efdf;
    --cart-summary-background: #fbf5e9;
    scroll-margin-top: 100px;
}

.shop-cart-heading { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; }
.shop-cart-heading h2 { margin: 0; font-size: 1.25rem; }
.shop-cart-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--cart-icon-background);
    color: var(--cart-accent);
}

.shop-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.shop-cart-items { list-style: none; padding: 0; margin: 0; }
.shop-cart-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid #e7ece8;
}

.shop-cart-item-content { min-width: 0; }
.shop-cart-item h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.shop-cart-note { margin: .25rem 0 0; color: var(--ink-soft); font-size: .875rem; }
.shop-cart-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.shop-cart-item-controls, .shop-cart-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .75rem;
}

.shop-cart-item-controls label { margin: 0; font-size: .875rem; }
.shop-cart-item-controls .cart-quantity-col { width: 116px; }
.shop-cart-item-controls .input_quantity_cart { max-width: 100%; }
.shop-cart-actions { justify-content: space-between; margin-top: .5rem; }
.shop-cart-actions a { color: #226858; font-weight: 700; }
.shop-cart-link {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: .875rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop-cart-link:hover { color: #9c3030; }
.shop-cart-summary { padding: .85rem; border-radius: 12px; background: var(--cart-summary-background); }
.shop-cart-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem .5rem; }
.shop-cart-total strong { font-size: 1.25rem; }
.shop-cart-summary #shipment_mode { margin-top: .6rem; }
.shop-cart-summary #shipment_mode label { margin-bottom: .25rem; color: var(--ink-soft); font-size: .875rem; }
.shop-cart-grand-total { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid #d5e2dc; font-weight: 700; }
.shop-cart-payment-methods { display: grid; gap: .35rem; margin: .75rem 0 0; padding: 0; border: 0; }
.shop-cart-payment-methods legend { margin-bottom: .35rem; color: var(--ink); font-size: .95rem; font-weight: 700; }
.shop-cart-payment-methods label { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--ink-soft); font-size: .875rem; }
.shop-cart-payment-methods input { margin: 0; }
.shop-cart-payment-methods small { color: var(--ink-soft); font-size: .75rem; }
.shop-cart-summary .shop-cart-checkout {
    margin-top: .75rem;
    min-height: 44px;
    border-color: #226858;
    background: #226858;
    color: #fff;
}

.shop-cart-summary .shop-cart-checkout:hover,
.shop-cart-summary .shop-cart-checkout:focus { border-color: #184f43; background: #184f43; }

@media (max-width: 767.98px) {
    .shop-cart-layout { grid-template-columns: minmax(0, 1fr); }
}
