/* Cart Section Styles */
.cart-section {
    padding: 6rem 2rem 4rem;
    background: #f8f9fa;
    min-height: 80vh;
}

.cart-container {
    max-width: 1400px;
    margin: 0 auto;
}

.cart-container h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.item-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.item-price {
    color: #ff6b35;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Quantity Controls */
.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #ff6b35;
    background: white;
    color: #ff6b35;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.qty-btn:hover {
    background: #ff6b35;
    color: white;
}

.qty-input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
}

/* Item Total */
.item-total {
    text-align: right;
}

.item-total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.remove-btn {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.remove-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.cart-summary h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: #666;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    padding-top: 1rem;
}

.cart-summary hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 1rem 0;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1.5rem;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.continue-shopping {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: none;
    margin-top: 1rem;
    padding: 0.75rem;
    transition: color 0.3s;
}

.continue-shopping:hover {
    color: #ff6b35;
}

.clear-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
}

.clear-cart-btn:hover {
    background: #dc3545;
    color: white;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.empty-cart i {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.empty-cart h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.shop-now-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.shop-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: #28a745;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s;
    z-index: 10000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: #dc3545;
}

/* Cart Badge */
.cart-badge {
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 0.3rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-section {
        padding: 5rem 1rem 3rem;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
    }
    
    .item-quantity,
    .item-total {
        grid-column: 2;
        margin-top: 1rem;
    }
    
    .item-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .item-total-price {
        margin-bottom: 0;
    }
}