/* File: static/css/cart.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
}

/* Cart Hero Section */
.cart-hero {
    background: linear-gradient(135deg, #0d4008 0%, #1a5c12 100%);
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.cart-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.cart-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Main Cart Container */
.cart-container {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(13, 64, 8, 0.1);
}

.cart-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #0d4008;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Empty Cart Message */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart h2 {
    color: #0d4008;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.empty-cart p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

.empty-cart a {
    display: inline-block;
    padding: 12px 30px;
    background: #0d4008;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-cart a:hover {
    background: #1a5c12;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 64, 8, 0.3);
}

/* Cart Items List */
.cart-items {
    margin-bottom: 30px;
}

.cart-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.cart-product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.product-info {
    flex: 1;
    padding-right: 20px;
}

.product-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #0d4008;
    font-weight: 600;
}

.product-info p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

.product-info .price-detail {
    color: #0d4008;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Product Actions */
.product-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.qty-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0d4008;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 40px;
    text-align: center;
}

.qty-btn:hover {
    background: #1a5c12;
    transform: scale(1.05);
}

.quantity {
    font-weight: 700;
    color: #0d4008;
    font-size: 1.1rem;
    min-width: 40px;
    text-align: center;
    padding: 8px 12px;
    background: white;
    border: 2px solid #0d4008;
    border-radius: 6px;
}

.remove-btn {
    background: #dc3545 !important;
    padding: 8px 14px;
}

.remove-btn:hover {
    background: #c82333 !important;
}

/* Cart Summary/Total Section */
.cart-summary {
    border-top: 3px solid #0d4008;
    padding-top: 25px;
    margin-top: 30px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #f0f7f0;
    border-radius: 8px;
}

.cart-total h2 {
    font-size: 1.8rem;
    color: #0d4008;
    margin: 0;
    font-weight: 700;
}

.total-amount {
    font-size: 2rem;
    color: #0d4008;
    font-weight: 700;
}

/* Checkout Actions */
.checkout-actions {
    text-align: right;
    margin-bottom: 20px;
}

.checkout-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #0d4008;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-btn:hover {
    background: #1a5c12;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 64, 8, 0.3);
}

.continue-shopping {
    display: inline-block;
    margin-right: 15px;
    padding: 15px 30px;
    background: white;
    color: #0d4008;
    border: 2px solid #0d4008;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    background: #0d4008;
    color: white;
}

/* Clear Cart Button */
.clear-cart-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-cart-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #0d4008;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s ease;
    z-index: 1000;
    font-weight: 600;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-hero h2 {
        font-size: 2rem;
    }

    .cart-container {
        padding: 20px;
        margin: 0 15px 40px;
    }

    .cart-product {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .product-info {
        padding-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }

    .product-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cart-total {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .checkout-actions {
        text-align: center;
    }

    .continue-shopping {
        display: block;
        margin: 0 0 15px 0;
    }

    .checkout-btn {
        display: block;
        width: 100%;
    }

    .clear-cart-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .cart-hero {
        padding: 60px 15px 40px;
    }

    .cart-hero h2 {
        font-size: 1.5rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
    }

    .cart-total h2 {
        font-size: 1.4rem;
    }

    .total-amount {
        font-size: 1.6rem;
    }

    .product-actions {
        gap: 8px;
    }

    .qty-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}