﻿.updateForm{
    display: flex;
    flex-wrap: wrap;
}
.cart-modern-cart {
    background: #f8fafc;
    min-height: 100vh;
    padding: 2rem 0;
}

.cart-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.cart-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0rem !important;
}

    .cart-title h3 {
        color: #2d3748;
        font-size: 2rem;
        font-weight: 700;
        margin: 0;
    }

.cart-count {
    background: #4a5568;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-empty-cart {
    background: white;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.cart-empty-cart-icon {
    font-size: 4rem;
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

.cart-empty-cart h4 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cart-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.cart-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
    width: 32.5%;
    margin-right: 14px;
}

    .cart-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border-color: #e2e8f0;
    }

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cart-product-info {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cart-product-details {
    flex: 1;
}

.cart-product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

    .cart-product-name a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
        font-size: 14px;
    }

        .cart-product-name a:hover {
            color: #4a5568;
        }

.cart-product-code {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-delete-btn {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

    .cart-delete-btn:hover {
        background: #dc2626;
        color: white;
        border-color: #dc2626;
        transform: scale(1.05);
    }

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.cart-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.cart-quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
}

.cart-quantity-btn {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 0.8rem;
}

    .cart-quantity-btn:hover {
        background: #f3f4f6;
        color: #374151;
        border-color: #9ca3af;
    }

.cart-quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.cart-checkout-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    text-align: end;
    width: 100%;
}

.cart-checkout-btn {
    background: #4a5568;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(74, 85, 104, 0.2);
}

    .cart-checkout-btn:hover {
        background: #2d3748;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(74, 85, 104, 0.3);
    }

.cart-login-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.cart-login-btn {
    background: var(--site-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

    .cart-login-btn:hover {
        background: var(--site-hover-color);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        color: white;
        text-decoration: none;
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-modern-cart {
        padding: 1rem 0;
    }

    .cart-header, .cart-container, .cart-empty-cart, .cart-checkout-section, .cart-login-section {
        margin: 0 1rem 1rem 1rem;
        padding: 1.5rem;
    }

    .cart-title h3 {
        font-size: 1.5rem;
    }

    .cart-item {
        padding: 1rem;
        margin-right: 0px;
    }

    .cart-product-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cart-product-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .cart-price-section {
        align-items: center;
    }

    .cart-quantity-controls {
        justify-content: center;
    }

    .cart-checkout-btn, .cart-login-btn {
        width: 100%;
        padding: 1rem;
    }
    .cart-item{
        width: 100%;
    }
    #cart .cart-title {
        justify-content: left;
        align-items: flex-start;
        flex-wrap: wrap;
        flex-direction: unset;
    }
}

@media (max-width: 480px) {
    .cart-header, .cart-container, .cart-empty-cart, .cart-checkout-section, .cart-login-section {
        margin: 0 0.5rem 1rem 0.5rem;
        padding: 1rem;
    }

    .cart-title {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .cart-title h3 {
        font-size: 1.3rem;
    }
}
