/* cart.css - استایل صفحه سبد خرید */

.cart-container {
    max-width: 900px;
    margin: 140px auto 40px;
    padding: 0 20px;
}

.cart-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 35px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cart-card h1 {
    color: #fff;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 25px;
}

.cart-card h1 i {
    color: #3498db;
    margin-left: 10px;
}

/* آیتم‌های سبد خرید */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 15px;
    flex-wrap: wrap;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item .item-info {
    flex: 1;
    min-width: 150px;
}

.cart-item .item-title {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

.cart-item .item-price {
    color: #2ecc71;
    font-weight: bold;
    font-size: 0.95rem;
}

.cart-item .item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item .item-actions button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.cart-item .item-actions button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cart-item .item-actions .remove-btn {
    color: #e74c3c;
}

.cart-item .item-actions .remove-btn:hover {
    background: rgba(231, 76, 60, 0.25);
}

.cart-item .item-total {
    color: #2ecc71;
    font-weight: bold;
    min-width: 80px;
    text-align: left;
}

.cart-item .item-quantity {
    color: #fff;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* مجموع و دکمه نهایی */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.cart-total .total-label {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.cart-total .total-price {
    color: #2ecc71;
    font-size: 1.5rem;
    font-weight: bold;
}

.btn-checkout {
    padding: 14px 35px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(46, 204, 113, 0.5);
}

.btn-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* سبد خرید خالی */
.empty-cart {
    text-align: center;
    padding: 40px 0;
    color: #bdc3c7;
}

.empty-cart i {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 15px;
    display: block;
}

.empty-cart h3 {
    color: #fff;
    margin-bottom: 10px;
}

.empty-cart .btn-order {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.empty-cart .btn-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .cart-container {
        margin-top: 100px;
    }
    .cart-card {
        padding: 20px 15px;
    }
    .cart-card h1 {
        font-size: 1.6rem;
    }
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0;
    }
    .cart-item .item-actions {
        justify-content: center;
    }
    .cart-item .item-total {
        text-align: center;
    }
    .cart-total {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .btn-checkout {
        width: 100%;
        justify-content: center;
    }
}