﻿/* ===== Cart Page ===== */

.cart-container {
    /* max-width: 1100px; */
    margin: 40px auto;
    padding: 0 16px;
}

.cart-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cart row */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    background: #f9fafb;
}

/* Details */
.cart-details h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.cart-details .variant {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.cart-details .price {
    font-weight: 700;
    color: #111827;
}

/* Actions */
.cart-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .qty-control label {
        font-size: 0.85rem;
        color: #6b7280;
    }

.cart-actions input[type="number"] {
    width: 70px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    text-align: center;
}

/* ===== Buttons (Unified System) ===== */

.btn {
    padding: 10px 26px;
    border-radius: 30px;
    border: 2px solid transparent;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #007BFF;
    color: #fff;
}

    .btn-primary:hover {
        background-color: transparent;
        color: #007BFF;
        border-color: #007BFF;
    }

.btn-danger {
    background-color: #ef4444;
    color: #fff;
}

    .btn-danger:hover {
        background-color: transparent;
        color: #ef4444;
        border-color: #ef4444;
    }

/* Summary */
.cart-summary {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cart-summary .total {
        font-size: 1.4rem;
        font-weight: 700;
    }

/* Empty */
.empty-cart {
    text-align: center;
    padding: 60px 0;
    font-size: 1.1rem;
    color: #6b7280;
}

/* Mobile */
@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .cart-details {
        margin-left: 40px;
    }

    .cart-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }

    .cart-summary {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

        .cart-summary a {
            width: 100%;
        }
}


/* ===== Empty Cart State ===== */

.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: #374151;
}

    .empty-cart-state .empty-icon {
        font-size: 4rem;
        margin-bottom: 16px;
    }

    .empty-cart-state h2 {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .empty-cart-state p {
        font-size: 1rem;
        color: #6b7280;
        margin-bottom: 24px;
    }
