/* =========================
   CART PAGE — TABLE LAYOUT
========================= */

.cart-page {
    background: #F6F2EA;
    min-height: 100vh;
    padding: 120px 0 80px;
    color: #121212;
    width: 100%;
    overflow-x: hidden;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: .82rem;
    font-family: 'Inter', sans-serif;
    color: #999;
}
.breadcrumb a { color: #999; transition: .2s; }
.breadcrumb a:hover { color: #b79aad; }
.breadcrumb span { color: #999; }

.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
    color: #121212;
}

/* ── LAYOUT ── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

.cart-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
    font-family: 'Inter', sans-serif;
    color: #999;
}

.cart-empty p { font-size: 1.1rem; margin-bottom: 24px; }

/* ── TABLE ── */
.cart-table-wrap {
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
}

.cart-table thead tr {
    border-bottom: 1.5px solid rgba(0,0,0,.07);
}

.cart-table th {
    padding: 18px 20px;
    text-align: left;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #aaa;
    font-weight: 500;
    background: #faf8f4;
}

.cart-table th:last-child { text-align: center; }

.cart-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    vertical-align: middle;
}

.cart-table tbody tr:last-child td { border-bottom: none; }
.cart-table tbody tr:hover td { background: #fdfbf7; }

/* ── PRODUCT CELL ── */
.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 220px;
}

.cart-product-cell img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.cart-product-name {
    font-size: .95rem;
    font-weight: 600;
    color: #121212;
    margin-bottom: 4px;
}

.cart-product-sub {
    font-size: .8rem;
    color: #aaa;
}

/* ── PRICE ── */
.cart-price {
    font-size: .95rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* ── QTY STEPPER ── */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(0,0,0,.12);
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #555;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover { background: #f4f1eb; }

.qty-num {
    width: 38px;
    text-align: center;
    font-size: .9rem;
    font-weight: 600;
    color: #121212;
    border-left: 1px solid rgba(0,0,0,.08);
    border-right: 1px solid rgba(0,0,0,.08);
    padding: 8px 0;
}

/* ── LINE TOTAL ── */
.cart-line-total {
    font-size: .95rem;
    font-weight: 700;
    color: #121212;
    white-space: nowrap;
}

/* ── REMOVE ── */
.cart-remove {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 1.3rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    margin: auto;
}

.cart-remove:hover { background: #fee2e2; color: #dc2626; }

/* ── SUMMARY PANEL ── */
.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 30px;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: #121212;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
    color: #555;
}

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

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 2px solid rgba(0,0,0,.1);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #121212;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 17px;
    background: #b79aad;
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    text-align: center;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
}

.checkout-btn:hover { opacity: .9; transform: translateY(-2px); }

.continue-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #888;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: .875rem;
    cursor: pointer;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.continue-btn:hover { border-color: #b79aad; color: #b79aad; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

@media (max-width: 768px) {
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2),
    .cart-table th:nth-child(4),
    .cart-table td:nth-child(4) { display: none; }

    .cart-product-cell img { width: 60px; height: 60px; }
    .cart-page { padding-top: 100px; }
}
