/* =========================================
   cart.css  –  Shopping cart page
   ========================================= */

.cart-section {
    padding: 60px 0;
}

.cart-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.cart-left {
    flex: 1;
    min-width: 300px;
}

/* Cart table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table th,
.cart-table td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.cart-table th {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.qty-btn {
    padding: 5px 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.remove-btn {
    background: none;
    border: none;
    color: #cc4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: #ffe5e5;
}

/* Cart summary */
.cart-summary {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 320px;
    flex-shrink: 0;
    border-top: 4px solid var(--primary-color);
}

.cart-summary h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.summary-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.summary-flex span:last-child {
    color: var(--primary-color);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-layout {
        flex-direction: column;
    }

    .cart-summary {
        width: 100%;
    }

    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) {
        display: none;
    }
}
