﻿/* تنظیمات کلی فونت و راست‌چین */
body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ================== منوی اصلی (Navbar) ================== */
.navbar-custom {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
}

    .navbar-custom .navbar-brand {
        color: #fff !important;
        font-weight: 800;
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .navbar-custom .nav-link {
        color: rgba(255, 255, 255, 0.85) !important;
        font-weight: 500;
        margin: 0 10px;
        transition: all 0.3s ease;
        position: relative;
    }

        .navbar-custom .nav-link:hover {
            color: #fff !important;
            transform: translateY(-2px);
        }

        .navbar-custom .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 50%;
            background-color: #f1c40f;
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .navbar-custom .nav-link:hover::after {
            width: 100%;
        }

/* آیکون سبد خرید در هدر */
.cart-icon-wrapper {
    position: relative;
    font-size: 1.5rem;
    color: #fff;
    margin-left: 20px;
    transition: transform 0.3s;
}

    .cart-icon-wrapper:hover {
        transform: scale(1.1);
    }

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* ================== کارت محصولات ================== */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }

.product-img-wrapper {
    height: 200px;
    overflow: hidden;
    background: #f1f2f6;
}

    .product-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

.product-old-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 0.9rem;
    margin-right: 10px;
}

/* ================== دکمه‌های + و - ================== */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    border: 1px solid #e1e8ed;
}

.btn-qty {
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s;
}

    .btn-qty:hover {
        background-color: #3498db;
        color: white;
        border-color: #3498db;
    }

.qty-input {
    width: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    -moz-appearance: textfield;
}

    .qty-input::-webkit-outer-spin-button,
    .qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.btn-add-to-cart {
    background: linear-gradient(to right, #00b09b, #96c93d);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: bold;
    color: white;
    transition: all 0.3s;
}

    .btn-add-to-cart:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(150, 201, 61, 0.4);
        color: white;
    }

/* ================== ریسپانسیو ================== */
@media (max-width: 768px) {
    .navbar-custom .navbar-nav {
        text-align: center;
        margin-top: 15px;
    }

    .cart-icon-wrapper {
        margin-left: 0;
        margin-top: 15px;
        display: inline-block;
    }

    .product-img-wrapper {
        height: 250px;
    }
}
