
        :root {
            --primary: #0d6efd;
            --primary-dark: #084298;
            --secondary: #f8f9fa;
            --dark: #1e2125;
            --text-main: #2b3035;
            --text-muted: #6c757d;
            --bg-body: #f4f6f9;
        }

      /* کدهای اصلاح شده خط ۲۷ به بعد */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-top: 85px; /* این خط اضافه شود */
}


.feature-card{
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 35px 25px;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
    transition: all .35s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,.05);
}

.feature-card::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg,#0d6efd,#20c997,#ffc107);
    transform: scaleX(0);
    transform-origin: right;
    transition: .4s;
}

.feature-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

.feature-card:hover::before{
    transform: scaleX(1);
}

.feature-icon{
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .35s;
}

.feature-icon i{
    font-size: 34px;
    transition: .35s;
}

.feature-card:hover .feature-icon{
    transform: rotate(-10deg) scale(1.08);
}

.feature-card:hover .feature-icon i{
    transform: scale(1.15);
}

.feature-card h5{
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #222;
}

.feature-card p{
    color: #6c757d;
    font-size: .95rem;
    line-height: 1.8;
    margin-bottom: 0;
}
        /* Navbar */
        .navbar {
            background-color: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            padding: 15px 0;
        }

        .navbar-brand {
            font-size: 1.5rem;
            letter-spacing: -0.5px;
        }

        .nav-link {
            font-weight: 500;
            color: var(--text-main) !important;
            transition: color 0.3s ease;
        }

        .nav-link:hover, .nav-link.active {
            color: var(--primary) !important;
        }

        /* Buttons & Inputs */
        .btn {
            font-weight: 500;
            border-radius: 12px;
            padding: 10px 24px;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border: none;
            box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
        }

        .form-control, .form-select {
            border-radius: 12px;
            border: 1px solid #dee2e6;
            padding: 12px 15px;
        }

        .form-control:focus, .form-select:focus {
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
            border-color: var(--primary);
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, #0d6efd 0%, #06357a 100%);
            color: white;
            padding: 100px 0;
            border-radius: 0 0 40px 40px;
            box-shadow: 0 10px 30px rgba(13, 110, 253, 0.15);
            position: relative;
            overflow: hidden;
        }

        .hero::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent);
            pointer-events: none;
        }

        /* Cards Global */
        .card {
            border: none;
            border-radius: 20px;
            background: #fff;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        /* Category Cards */
        .category-card{
    border: none;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    transition: .35s;
    box-shadow: 0 8px 25px rgba(0,0,0,.05);
    cursor: pointer;
    position: relative;
}

.category-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(13,110,253,.15);
}

        /* Product Cards */
        .product-img {
            height: 220px;
            object-fit: cover;
            border-radius: 20px 20px 0 0;
            background: #f8f9fa;
            padding: 15px;
        }

        .price {
            color: var(--primary-dark);
            font-weight: 800;
            font-size: 1.2rem;
        }

        .old-price {
            text-decoration: line-through;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .badge-wholesale {
            background: linear-gradient(45deg, #ff9800, #ff5722);
            color: white;
            font-size: 0.8rem;
            padding: 6px 12px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
        }

        /* Promo Banners */
        .promo-banner {
            border-radius: 24px;
            overflow: hidden;
            position: relative;
            min-height: 180px;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }

        .promo-banner:hover {
            transform: translateY(-8px) scale(1.01);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }

        /* Articles */
        .article-img {
            height: 200px;
            object-fit: cover;
            border-radius: 20px 20px 0 0;
        }

        /* Features */
        .feature-item {
            padding: 30px;
            border-radius: 20px;
            background: #fff;
            box-shadow: 0 5px 15px rgba(0,0,0,0.03);
            transition: all 0.3s ease;
            height: 100%;
        }

        .feature-item:hover {
            box-shadow: 0 10px 25px rgba(13, 110, 253, 0.1);
            background: #fdfdfe;
        }

        /* Footer */
        .footer {
            background: var(--dark);
            color: #adb5bd;
            border-radius: 40px 40px 0 0;
            margin-top: 40px;
        }

        .footer h5 {
            color: #fff;
            font-weight: bold;
        }
        /* جلوگیری از اسکرول افقی در کل صفحه */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
/* تنظیمات اسلایدر */
.swiper-slide {
    height: auto; /* برای هم‌اندازه شدن کارت‌ها */
}
.swiper-button-next, .swiper-button-prev {
    color: #0d6efd; /* رنگ دکمه‌های اسلایدر - آبی */
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}
.swiper-button-prev {
    right: 10px !important;
    left: auto;
}
.swiper-button-next {
    left: 10px !important;
    right: auto;
}

/* استایل نشان تخفیف */
.badge-discount{
    background:linear-gradient(135deg,#ff416c,#ff4b2b);
    color:#fff;
    padding:8px 16px;
    border-radius:40px;
    font-weight:700;
    font-size:.8rem;
    box-shadow:0 8px 18px rgba(255,75,43,.3);
}

/* رنگ قرمز برای قیمت‌های تخفیف‌دار */
.discount-section{
    position:relative;
    padding:70px 0;
    background:linear-gradient(135deg,#fff7f8,#fff,#fff5f5);
    overflow:hidden;
}

.discount-section::before{
    content:"";
    position:absolute;
    width:350px;
    height:350px;
    background:rgba(220,53,69,.08);
    border-radius:50%;
    top:-150px;
    left:-120px;
}

.discount-section::after{
    content:"";
    position:absolute;
    width:250px;
    height:250px;
    background:rgba(13,110,253,.05);
    border-radius:50%;
    bottom:-100px;
    right:-80px;
}
.product-card{
    border:none!important;
    border-radius:22px;
    overflow:hidden;
    transition:.35s;
    position:relative;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.product-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}
.product-img{
    height:220px;
    object-fit:cover;
    background:#f8fafc;
    transition:.4s;
    padding:20px;
}

.product-card:hover .product-img{
    transform:scale(1.08);
}

/* اصلاحات مخصوص موبایل */
@media (max-width: 768px) {
    /* کوچک کردن عنوان اصلی در موبایل */
    .hero h1.display-4 {
        font-size: 1.8rem !important;
    }

    /* تمام‌عرض شدن دکمه‌های بخش هیرو در موبایل */
    .hero .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }

    /* اصلاح فاصله دکمه‌های هیرو */
    .hero .d-flex.gap-3 {
        gap: 0.5rem !important;
    }

    /* تنظیم دکمه بنر تبلیغاتی برای موبایل */
    .promo-banner .btn {
        width: 100%;
    }

    /* رفع بیرون‌زدگی احتمالی در فوتر */
    .footer {
        padding-left: 15px;
        padding-right: 15px;
    }
}
.category-img{
    width:85px;
    height:85px;
    object-fit:cover;
    border-radius:50%;
    padding:6px;
    background:#fff;
    border:3px solid #eef4ff;
    transition:.35s;
}
.category-card:hover .category-img{
    transform:scale(1.08);
    border-color:#0d6efd;
}
.category-card h6{
    font-weight:700;
    color:#2b3035;
    margin-top:10px;
    transition:.3s;
}

.category-card:hover h6{
    color:#0d6efd;
}
#categories{
    background:#f8fbff;
    border-radius:35px;
}
.category-arrow{
    font-size:28px;
    color:#0d6efd;
    opacity:0;
    transform:translateY(10px);
    transition:.3s;
}

.category-card:hover .category-arrow{
    opacity:1;
    transform:translateY(0);
}
.cart-btn{
    width:52px;
    height:52px;
    border:none;
    border-radius:50%;
    background:linear-gradient(135deg,#dc3545,#ff5d6c);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    transition:.35s;
    box-shadow:0 10px 20px rgba(220,53,69,.25);
}

.cart-btn:hover{
    transform:rotate(-15deg) scale(1.08);
}
        .cart-btn-new:hover{
            transform:rotate(-15deg) scale(1.08);
        }
.product-card .card-title{
    line-height:1.8;
    font-size:1rem;
    transition:.3s;
}

.product-card:hover .card-title{
    color:#dc3545;
}

.product-card:hover .card-primary{
    color:#0d6efd;
}

.price{
    font-size:1.45rem;
    font-weight:800;
    color:#dc3545;
}

.old-price{
    opacity:.6;
}
#articles{
    background:#f8fbff;
    border-radius:35px;
}

.article-card{
    border:none;
    border-radius:24px;
    overflow:hidden;
    background:#fff;
    transition:.35s;
    box-shadow:0 8px 25px rgba(0,0,0,.05);
    position:relative;
}

.article-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 45px rgba(13,110,253,.12);
}

.article-card::before{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:100%;
    height:4px;
    background:linear-gradient(90deg,#0d6efd,#20c997);
    transform:scaleX(0);
    transition:.35s;
}

.article-card:hover::before{
    transform:scaleX(1);
}
.article-badge{
    position:absolute;
    top:18px;
    right:18px;
    background:#0d6efd;
    color:#fff;
    padding:8px 16px;
    border-radius:30px;
    font-size:.8rem;
    font-weight:700;
    box-shadow:0 8px 18px rgba(13,110,253,.25);
} .article-img{
    height:230px;
    object-fit:cover;
    transition:.4s;
}

.article-card:hover .article-img{
    transform:scale(1.08);
}
.article-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:18px;
    color:#6c757d;
    font-size:.82rem;
}.article-card h5{
    line-height:1.8;
    font-size:1.1rem;
    font-weight:700;
    transition:.3s;
}

.article-card:hover h5{
    color:#0d6efd;
}.article-card p{
    color:#6c757d;
    line-height:2;
}.article-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#0d6efd;
    font-weight:700;
    text-decoration:none;
    transition:.3s;
}

.article-link i{
    transition:.3s;
}

.article-link:hover{
    color:#084298;
}

.article-link:hover i{
    transform:translateX(-6px);
}.article-card::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:230px;
    background:linear-gradient(to top,rgba(0,0,0,.25),transparent);
    opacity:0;
    transition:.35s;
}

.article-card:hover::after{
    opacity:1;
}
.custom-link:hover {
    color: var(--primary) !important;
    padding-right: 5px;
    transition: all 0.3s ease;
}
