/* ─────────────────────────────────────────────
   PAGE: CART (cart.html)
───────────────────────────────────────────── */

.cart-section {
    padding: 40px 48px 60px;
}

.cart-header {
    margin-bottom: 32px;
}

.cart-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 46px;
    font-weight: 300;
    margin-top: 16px;
}
.cart-title em {
    font-style: italic;
    color: var(--pink);
}

/* Empty state */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
}
.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}
.cart-empty p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* Layout: items + summary */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* Cart items list */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    background: var(--bg-soft);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.cart-item-image {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #F5E6EC, #EAD0DC);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.cart-item-brand {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--pink);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-item-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

/* Quantity control */
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 0.5px solid var(--border);
    border-radius: 30px;
    padding: 6px 12px;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--pink);
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.15s;
}
.qty-btn:hover {
    color: var(--pink-dark);
}

.qty-val {
    font-size: 15px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* Subtotal */
.cart-item-subtotal {
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

/* Remove button */
.cart-item-remove {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
    line-height: 1;
}
.cart-item-remove:hover {
    color: var(--pink);
}

/* Summary block */
.cart-summary {
    background: var(--bg-soft);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 80px;
}

.cart-summary h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.summary-shipping {
    font-style: italic;
}

.summary-divider {
    height: 0.5px;
    background: var(--border);
    margin: 16px 0;
}

.summary-total {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 20px;
}

.summary-note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 14px;
    text-align: center;
}

/* Nav cart badge */
.cart-badge22 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--pink);
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    margin-left: 2px;
}

/* Product page "in cart" button state */
.btn-add-to-cart.in-cart {
    background: linear-gradient(145deg, #6aaa7a, #4a8a5a);
    box-shadow: 0 4px 0 #2a6a3a, 0 6px 14px rgba(74,138,90,0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
    .cart-section {
        padding: 32px 20px 48px;
    }
    .cart-item {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto auto;
    }
    .cart-item-qty {
        grid-column: 2;
        max-width: 94px;
    }
    .cart-item-subtotal {
        grid-column: 2;
        text-align: left;
    }
    .cart-item-remove {
        grid-column: 1 / -1;
        justify-self: end;
        margin-top: -8px;
    }
}

@media (max-width: 640px) {
    .cart-title {
        font-size: 32px;
    }
}

.nav-cta-desktop {
    min-width: 120px;
    justify-content: center;
}
