.cart-page {
    padding: 2rem 0 4rem;
    min-height: 50vh;
}

.cart-page h1 {
    font-family: "Noto Serif TC", serif;
    color: #6e1515;
    margin-bottom: 1.5rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .cart-layout {
        grid-template-columns: 1.6fr 1fr;
        align-items: start;
    }
}

.cart-panel,
.cart-summary {
    background: #fff;
    border: 1px solid rgba(110, 21, 21, 0.12);
    padding: 1.25rem;
}

.cart-panel h2,
.cart-summary h2 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: #6e1515;
}

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-item-image img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    display: block;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-details h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.cart-item .price {
    font-size: 1.1rem;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

.quantity-selector .qty-minus,
.quantity-selector .qty-plus {
    font-size: 1.2rem;
    line-height: 1;
    min-width: 1.8rem;
    min-height: 1.8rem;
    padding: 0.3rem 0.45rem;
    cursor: pointer;
}

.quantity-selector .qty-input {
    width: 67px;
    height: 2.15rem;
    font-size: 1.2rem;
    text-align: center;
    padding: 0.25rem 0.35rem;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.cart-field {
    margin-bottom: 0.85rem;
}

.cart-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.cart-field input,
.cart-field select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.cart-field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #666;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 1rem 0;
    font-size: 1.15rem;
}

.cart-checkout-btn {
    width: 100%;
    border: 0;
    background: #6e1515;
    color: #fff;
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-weight: 600;
}

.cart-checkout-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cart-empty {
    color: #666;
    margin: 0;
}

#checkout-overlay {
    display: none;
    opacity: 0.35;
    background-color: #fff;
    z-index: 999;
    position: fixed;
    inset: 0;
}
