/**
 * STILURI PENTRU COȘUL DE CUMPĂRĂTURI
 * Acest fișier trebuie inclus în pagina cos.php sau adăugat în main.css
 */

/* Cart Items List */
.cart-items-list {
    margin-bottom: 2rem;
}

.cart-item {
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.cart-item h5 a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item h5 a:hover {
    color: #0d6efd;
}

.cart-item .variant {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.cart-item .prices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.cart-item .price-new {
    font-size: 1.1rem;
}

.cart-item .price-old {
    font-size: 0.9rem;
}

/* Cart Update Form */
.cart-update-form .input-group {
    max-width: 150px;
}

.cart-update-form input[type="number"] {
    border-right: none;
}

.cart-update-form .btn {
    border-left: none;
    background: #fff;
}

.cart-update-form .btn:hover {
    background: #f8f9fa;
}

/* Empty Cart */
.empty-cart {
    padding: 3rem 1rem;
}

.empty-cart i {
    color: #dee2e6;
}

/* Cart Actions */
.cart-actions .btn {
    padding: 0.75rem 1.5rem;
}

/* Sidebar Checkout */
.sidebar-checkout-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-checkout-content .title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

/* List Product in Sidebar */
.list-product .item-product {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.list-product .item-product:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.list-product .img-product {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.list-product .img-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-product .content-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-product .name-product {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-product .name-product:hover {
    color: #0d6efd;
}

.list-product .variant {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.list-product .total-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-top: 8px;
}

/* Shipping Progress */
.shipping-progress {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.shipping-progress .progress-info p {
    margin: 0;
    font-size: 0.9rem;
}

.shipping-progress .progress {
    border-radius: 10px;
    overflow: hidden;
}

.shipping-progress .progress-bar {
    transition: width 0.6s ease;
    font-weight: 600;
}

/* Total Price Section */
.sec-total-price .top {
    padding-bottom: 1rem;
}

.sec-total-price .item {
    padding: 0.5rem 0;
}

.sec-total-price .bottom h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.sec-total-price .total-price-checkout {
    color: #0d6efd;
}

/* Line Separation */
.line-separation {
    width: 1px;
    background: #e5e5e5;
    height: 100%;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1199px) {
    .line-separation {
        display: none;
    }
}

@media (max-width: 767px) {
    .cart-item .row {
        text-align: center;
    }
    
    .cart-item .col-md-2,
    .cart-item .col-md-4,
    .cart-item .col-md-3,
    .cart-item .col-md-2 {
        margin-bottom: 1rem;
    }
    
    .cart-update-form .input-group {
        margin: 0 auto;
    }
    
    .sidebar-checkout-content {
        margin-top: 2rem;
    }
    
    .list-product .img-product {
        width: 60px;
        height: 60px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    animation: fadeIn 0.3s ease-in-out;
}

/* Buttons */
.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

/* Alert Success */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
    padding: 1rem;
    border-radius: 8px;
}

.alert-success i {
    margin-right: 5px;
}

/* Badge */
.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}