/* ========================================= */
/* --- FULL CART PAGE STYLES --- */
/* ========================================= */

.cart-page-section {
    padding: 120px 0 80px;
    min-height: 80vh; /* Fill screen */
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

/* --- GRID LAYOUT --- */
.cart-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Table takes 2 parts, Summary takes 1 */
    gap: 50px;
    align-items: start;
}

/* --- TABLE STYLES --- */
.cart-header-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.cart-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

/* Product Column */
.col-product {
    display: flex;
    gap: 20px;
    align-items: center;
}
.col-product img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 4px;
}
.col-product h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: #333;
}
.text-btn {
    background: none;
    border: none;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}
.text-btn:hover { color: red; }

/* Qty Column */
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    width: max-content;
}
.qty-control button {
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.qty-control span {
    width: 30px;
    text-align: center;
    font-weight: 600;
}

.col-total {
    font-weight: 700;
    color: var(--primary);
}

/* --- SUMMARY BOX --- */
.cart-summary {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
}
.cart-summary h3 {
    margin-top: 0;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #555;
}
.summary-divider {
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}
.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
}
.checkout-btn-full {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- EMPTY STATE --- */
.empty-state {
    text-align: center;
    grid-column: 1 / -1; /* Span full width */
    padding: 50px;
}

@media (max-width: 900px) {
    .cart-grid-layout { grid-template-columns: 1fr; }
    .cart-header-row { display: none; } /* Hide headers on mobile */
    .cart-row {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    .col-product { flex-direction: column; }
}