/* ===== CART STYLES ===== */

.cart-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.cart-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cart-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.cart-header p {
    font-size: 1.1rem;
    color: #666;
}

.cart-items {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
    transition: background-color 0.3s;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1.5rem;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 2rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.quantity-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 1rem;
}

.item-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 2rem;
    min-width: 100px;
    text-align: right;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.cart-summary {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e1e5e9;
}

.summary-row:last-child {
    border-bottom: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

.checkout-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 1rem;
}

.checkout-btn:hover {
    background: #5a6fd8;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-cart h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #999;
    margin-bottom: 2rem;
}

.continue-shopping {
    background: #667eea;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.continue-shopping:hover {
    background: #5a6fd8;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .item-quantity {
        margin: 1rem 0;
    }

    .item-total {
        margin: 0;
        text-align: center;
    }

    .cart-container {
        padding: 0 1rem;
    }
}
