/* ── Cart page ────────────────────────────────────────────────────────────── */

.cart-section {
    padding: 60px 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.cart-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: 2.2rem;
    letter-spacing: 0.08em;
    color: #221c18;
    margin: 0 0 40px;
    text-transform: uppercase;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */

.cart-empty {
    text-align: center;
    padding: 80px 0;
    color: #9a8770;
}

.cart-empty-icon {
    margin-bottom: 24px;
    opacity: 0.35;
}

.cart-empty p {
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    margin-bottom: 28px;
}

.cart-empty-link {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #221c18;
    border-bottom: 1px solid #221c18;
    text-decoration: none;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.cart-empty-link:hover {
    opacity: 0.55;
}

/* ── Two-column layout: items | summary ───────────────────────────────────── */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 820px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Column headers ───────────────────────────────────────────────────────── */

.cart-col-headers {
    display: grid;
    grid-template-columns: 80px 1fr 140px 100px 36px;
    gap: 16px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e0d4;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b0a090;
}

@media (max-width: 600px) {
    .cart-col-headers { display: none; }
}

/* ── Individual cart item ─────────────────────────────────────────────────── */

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 140px 100px 36px;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e8e0d4;
}

@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 72px 1fr 36px;
        grid-template-rows: auto auto;
    }
}

/* Product thumbnail */
.cart-item-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: #f0ebe3;
    display: block;
}

.cart-item-thumb-placeholder {
    width: 80px;
    height: 80px;
    background: #f0ebe3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5b49a;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Product info */
.cart-item-info { min-width: 0; }

.cart-item-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #221c18;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-name:hover { opacity: 0.65; }

.cart-item-category {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b0a090;
    margin: 0;
}

.cart-item-size {
    font-size: 0.75rem;
    color: #6b5d4f;
    margin: 2px 0 0;
    letter-spacing: 0.04em;
}

.cart-item-price-unit {
    font-size: 0.88rem;
    color: #221c18;
}

/* Quantity controls */
.cart-qty-form { display: flex; align-items: center; gap: 0; }

.cart-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #e8e0d4;
    background: #faf8f5;
    color: #221c18;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.cart-qty-btn:hover { background: #f0ebe3; border-color: #c5b49a; }

.cart-qty-input {
    width: 40px;
    height: 30px;
    border: 1px solid #e8e0d4;
    border-left: none;
    border-right: none;
    background: #faf8f5;
    text-align: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    color: #221c18;
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Item subtotal */
.cart-item-subtotal {
    font-size: 0.95rem;
    color: #221c18;
    font-weight: 500;
}

/* Remove button */
.cart-remove-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #b0a090;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    padding: 0;
    line-height: 1;
}

.cart-remove-btn:hover { color: #8b2020; }

/* ── Order summary panel ──────────────────────────────────────────────────── */

.cart-summary {
    background: #f5f0ea;
    padding: 28px 24px 32px;
    position: sticky;
    top: 100px;
}

.cart-summary-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #221c18;
    margin: 0 0 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.82rem;
    color: #6b5d52;
    padding: 8px 0;
    border-bottom: 1px solid #e8e0d4;
}

.cart-summary-row:last-of-type { border-bottom: none; }

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1rem;
    color: #221c18;
    padding: 16px 0 24px;
    border-top: 1px solid #c5b49a;
    margin-top: 8px;
    font-weight: 500;
}

.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #221c18;
    color: #faf8f5;
    text-align: center;
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 12px;
}

.cart-checkout-btn:hover { background: #3a2e28; }

.cart-continue-link {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a8770;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
    margin-bottom: 20px;
}

.cart-continue-link:hover { color: #221c18; }

.cart-clear-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid #e8e0d4;
    color: #9a8770;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.cart-clear-btn:hover { border-color: #b0a090; color: #6b5d52; }

/* ── Responsive mobile tweaks ─────────────────────────────────────────────── */

@media (max-width: 600px) {
    .cart-item-price-unit,
    .cart-item-subtotal { font-size: 0.82rem; }

    .cart-summary { position: static; }
}
