﻿.address-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
}

    .address-box .text-muted {
        font-size: 0.8rem;
        margin-left: 5px;
    }
/* استایل برای alert */
#alert-message {
    position: sticky;
    top: 20px;
    z-index: 1000;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
}

@@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

/* استایل سبد خرید خالی */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.5s ease;
}

.empty-cart-icon {
    margin-bottom: 25px;
}

    .empty-cart-icon i {
        color: #6c757d;
        font-size: 5rem;
        opacity: 0.5;
        animation: bounce 2s infinite ease-in-out;
    }

.empty-cart-title {
    color: #343a40;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.empty-cart-message {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.empty-cart .btn-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 35px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

    .empty-cart .btn-continue:hover {
        background: linear-gradient(135deg, #0056b3, #004085);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    }

    .empty-cart .btn-continue i {
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .empty-cart .btn-continue:hover i {
        transform: translateX(5px);
    }

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* نسخه موبایل */
@media (max-width: 768px) {
    .empty-cart {
        padding: 40px 15px;
    }

    .empty-cart-title {
        font-size: 1.5rem;
    }

    .empty-cart-message {
        font-size: 1rem;
    }

    .empty-cart .btn-continue {
        padding: 10px 25px;
        font-size: 1rem;
    }
}


.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

.cart-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.cart-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

/* جدول محصولات */
.cart-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1.5fr 1fr 0.5fr;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #eaeaea;
    font-weight: 600;
    color: #555;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1.5fr 1fr 0.5fr;
    padding: 25px 20px;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

    .cart-item:hover {
        background: #fafafa;
    }

/* استایل محصول */
.product-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.product-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* کنترل تعداد */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .qty-btn:hover {
        border-color: #667eea;
        color: #667eea;
    }

.qty-input {
    width: 50px;
    text-align: center;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
}

/* قیمت */
.price {
    font-weight: 00;
    color: #333;
    font-size: 1.1rem;
}

.item-total {
    font-weight: 00;
    color: #28a745;
    font-size: 1rem;
}

/* دکمه حذف */
.remove-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 8px;
}

    .remove-btn:hover {
        background: #fff5f5;
        color: #ff4757;
    }

/* سبد خرید خالی */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 5rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: #666;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #999;
    margin-bottom: 30px;
}

/* خلاصه فاکتور */
.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eaeaea;
}

.summary-label {
    color: #666;
}

.summary-value {
    font-weight: 600;
    color: #333;
}

.total-row {
    font-size: 1.3rem;
    font-weight: 700;
    color: #28a745;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eaeaea;
}

/* دکمه‌ها */
.cart-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

    .btn-checkout:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
    }

.btn-continue {
    background: #f8f9fa;
    color: #555;
    border: 2px solid #eaeaea;
}

    .btn-continue:hover {
        background: white;
        border-color: #667eea;
        color: #667eea;
    }

.btn-clear {
    background: #fff5f5;
    color: #ff6b6b;
    border: 2px solid #ffddd6;
}

    .btn-clear:hover {
        background: #ff6b6b;
        color: white;
    }

/* لودینگ */
.cart-loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ریسپانسیو */
@@media (max-width: 992px) {
    .cart-table-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
        position: relative;
    }

    .product-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .remove-btn {
        position: absolute;
        top: 15px;
        left: 15px;
    }
}

.cart-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: linear-gradient(135deg,#0d6efd,#4da3ff);
    border-radius: 14px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(13,110,253,.25);
}

.cart-header-icon {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
}

.cart-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom:5px;
}

.cart-subtitle {
    margin: 0;
    font-size: 1.2rem;
    color: #e6efff;
}

