﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #FF6B00;
    --primary-dark: #E55A00;
    --secondary-color: #1A1A1A;
    --light-color: #F5F5F5;
    --text-color: #333;
    --text-light: #777;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* بهینه‌سازی فاصله سکشن‌ها */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

    .section-title h2 {
        font-size: 2.2rem;
        color: var(--secondary-color);
        display: inline-block;
        padding-bottom: 10px;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 3px;
            background: var(--primary-color);
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
        }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

    .btn:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline:hover {
        background: var(--primary-color);
        color: var(--white);
    }

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Header Styles */
header {
    background-color: var(--secondary-color);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header-main {
    background: var(--secondary-color);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
}

    .logo span {
        color: var(--primary-color);
        margin:5px;
    }

    .logo i {
        margin-left: 10px;
        font-size: 1.5rem;
    }

.nav-menu {
    display: flex;
}

    .nav-menu li {
        margin-left: 25px;
        position: relative;
    }

    .nav-menu a {
        color: var(--white);
        font-weight: 500;
        transition: var(--transition);
        position: relative;
        padding: 10px 0;
        display: block;
    }

        .nav-menu a:hover {
            color: var(--primary-color);
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 3px;
            background: var(--primary-color);
            bottom: 0;
            left: 0;
            transition: var(--transition);
        }

        .nav-menu a:hover::after {
            width: 100%;
        }

.header-actions {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    margin-left: 20px;
}

    .search-box input {
        padding: 10px 15px;
        border: none;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
        width: 0;
        opacity: 0;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }

    .search-box.active input {
        width: 250px;
        opacity: 1;
        padding-right: 45px;
    }

.search-icon, .cart-icon, .user-icon {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .search-icon:hover, .cart-icon:hover, .user-icon:hover {
        color: var(--primary-color);
        background: rgba(255, 107, 0, 0.1);
    }

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.mobile-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
}

    .top-bar-contact span {
        margin-left: 20px;
        display: flex;
        align-items: center;
    }

    .top-bar-contact i {
        margin-left: 5px;
    }

.top-bar-links {
    display: flex;
}

    .top-bar-links a {
        margin-right: 15px;
        transition: var(--transition);
        position: relative;
        display: flex;
        align-items: center;
    }

        .top-bar-links a:hover {
            color: var(--secondary-color);
        }

        .top-bar-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 1px;
            background: var(--secondary-color);
            bottom: -2px;
            right: 0;
            transition: var(--transition);
        }

        .top-bar-links a:hover::after {
            width: 100%;
        }
.hero-slider {
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.swiper {
    width: 100%;
    height: 500px;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* تغییر از center به flex-start برای محتوای راست */
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* تغییر از auto به 100% */
    height: 100%;
    z-index: -1;
    transition: transform 0.5s ease;
}

    /* استایل برای تصویر داخل slide-bg */
    .slide-bg .banner-image {
        width: 100%;
        height: 100%;
        object-fit: cover; /* برای پوشش کامل فضای موجود */
    }

.swiper-slide:hover .slide-bg .banner-image {
    transform: scale(1.05);
}

.slide-content {
    text-align: center; /* تغییر از center به right */
    color: var(--white);
    max-width: 600px;
    padding: 0 60px; /* افزایش padding برای فاصله از لبه */
    z-index: 2;
    margin-right: 0;
    margin-left: 0; /* برای قرارگیری در سمت راست */
}

    .slide-content h1 {
        font-size: 2rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 25px;
        padding: 10px 20px;
    }
    .slide-content h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 25px;
        padding: 10px 20px;
    }
    .slide-content p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 25px;
        padding: 10px 20px;
    }

    .slide-content .btn {
        animation: fadeInUp 1s ease 0.4s both;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 25px;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 600;
        transition: var(--transition);
        text-align: center;
        text-decoration: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

        .slide-content .btn:hover {
            background: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
        }
.swiper-button-next, .swiper-button-prev {
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
}

    .swiper-button-next:hover, .swiper-button-prev:hover {
        background: var(--primary-color);
    }

.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.7;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Quick Stats */
.quick-stats {
    background: var(--white);
    padding: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-text {
    font-size: 1rem;
    color: var(--text-light);
}


/* Banner Sections - بهینه‌سازی فاصله‌ها */
.banner-section {
    padding: 40px 0;
    margin: 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.banner-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    margin: 0;
}

    .banner-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .banner-card.large {
        grid-column: span 2;
        height: 350px;
    }

    .banner-card.medium {
        height: 280px;
    }

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    transition: transform 0.5s ease;
}

.banner-card:hover .banner-image {
    transform: scale(1.05);
}

.banner-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    z-index: 2;
}

    .banner-content h3 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .banner-content p {
        margin-bottom: 12px;
        opacity: 0.9;
    }

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.banner-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.banner-small {
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    margin: 0;
}

    .banner-small:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    }

    .banner-small .banner-content {
        padding: 15px;
    }

        .banner-small .banner-content h3 {
            font-size: 1.1rem;
        }

        .banner-small .banner-content p {
            font-size: 0.85rem;
        }

.banner-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.banner-cta-content {
    flex: 1;
}

    .banner-cta-content h3 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .banner-cta-content p {
        margin-bottom: 0;
        opacity: 0.9;
    }

.banner-cta .btn {
    background: var(--white);
    color: var(--primary-color);
}

    .banner-cta .btn:hover {
        background: var(--secondary-color);
        color: var(--white);
    }

/* Categories Section */
.categories {
    background-color: var(--white);
    margin: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    padding: 25px 20px;
    position: relative;
    z-index: 1;
    margin: 0;
}

    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--primary-color);
        transition: var(--transition);
        z-index: -1;
    }

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

        .category-card:hover::before {
            height: 100%;
        }

        .category-card:hover .category-icon,
        .category-card:hover h3,
        .category-card:hover p {
            color: var(--white);
        }

.category-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    transition: var(--transition);
}

.category-card p {
    color: var(--text-light);
    transition: var(--transition);
    font-size: 0.9rem;
}

/* Featured Products */
.featured-products {
    background-color: var(--light-color);
    margin: 0;
}

    .featured-products .section-title h2 {
        color: var(--secondary-color);
    }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    margin-bottom: 0;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

    .product-badge.sale {
        background: #e74c3c;
    }

    .product-badge.new {
        background: #2ecc71;
    }

.product-content {
    padding: 18px;
}

    .product-content h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
        color: var(--secondary-color);
    }

.product-rating {
    color: #FFC107;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.product-price {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.price {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-color);
    text-align: center; /* اضافه کردن این خط */
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.85rem;
}

.product-card .btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-light);
}

    .product-meta span {
        display: flex;
        align-items: center;
    }

    .product-meta i {
        margin-left: 5px;
    }

/* Services Section */
.services {
    background: var(--light-color);
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    padding: 25px;
    text-align: center;
    margin: 0;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.service-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Blog Section */
.blog {
    background: var(--light-color);
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    margin: 0;
}

    .blog-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.blog-image {
    height: 200px;
    overflow: hidden;
}

    .blog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 18px;
}

.blog-meta {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

    .blog-meta span {
        margin-left: 15px;
        display: flex;
        align-items: center;
    }

    .blog-meta i {
        margin-left: 5px;
    }

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.blog-content .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Newsletter */
.newsletter {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 50px 0;
    margin: 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.newsletter p {
    margin-bottom: 25px;
    color: #ccc;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

    .newsletter-btn:hover {
        background: var(--primary-dark);
    }

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin: 0;
}
/* استایل نمادهای مجوز */
.certificates {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

    .certificates a {
        display: inline-block;
        transition: var(--transition);
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

        .certificates a:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-3px);
            border-color: var(--primary-color);
        }

    .certificates img {
        width: 80px;
        height: auto;
        border-radius: 4px;
        display: block;
    }

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .certificates {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }

        .certificates a {
            padding: 5px;
        }

        .certificates img {
            width: 70px;
        }
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h3::after {
        content: '';
        position: absolute;
        width: 50px;
        height: 2px;
        background: var(--primary-color);
        bottom: 0;
        right: 0;
    }

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: var(--transition);
}

    .footer-links a:hover {
        color: var(--primary-color);
        padding-right: 5px;
    }

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.contact-info i {
    margin-left: 10px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    margin-top: 15px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        margin-left: 10px;
        transition: var(--transition);
    }

        .social-links a:hover {
            background: var(--primary-color);
            transform: translateY(-5px);
        }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* WOW.js Animation Styles */
.wow {
    visibility: hidden;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .swiper {
        height: 400px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .stats-container {
        justify-content: space-between;
    }

    .stat-item {
        flex-basis: 50%;
        margin-bottom: 15px;
    }

    .banner-grid {
        grid-template-columns: 1fr;
    }

    .banner-card.large {
        grid-column: span 1;
    }

    .banner-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .search-box.active input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card {
        padding: 20px 15px;
        margin-bottom: 0;
    }

    .category-icon {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .category-card h3 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .category-card p {
        font-size: 0.85rem;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.6rem;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    /* نمایش همبرگر در سمت راست */
    .mobile-toggle {
        display: block;
        order: 1;
        margin-left: auto;
    }

    /* قرار دادن سبد خرید در سمت چپ */
    .header-actions {
        order: 2;
        display: flex;
        align-items: center;
        margin-right: auto;
    }

        /* تنظیم فاصله‌ها */
        .header-actions .cart-icon {
            margin-left: 0;
            margin-right: 10px;
        }

      

    .stats-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        text-align: center;
        padding: 15px 10px;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .header-main {
        padding: 10px 0;
    }

   

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition);
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

        .nav-menu.active {
            right: 0;
        }

        .nav-menu li {
            margin: 0 0 20px 0;
        }

        .nav-menu a {
            padding: 8px 0;
        }

    .swiper {
        height: 350px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        border-radius: 4px;
        margin-bottom: 8px;
    }

    .newsletter-btn {
        border-radius: 4px;
        padding: 12px;
    }

    .banner-cta {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        margin-top: 20px;
    }

        .banner-cta .btn {
            margin-top: 15px;
        }

    .banner-row {
        grid-template-columns: 1fr;
    }

    .search-box.active input {
        width: 150px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    .product-card {
        margin-bottom: 0;
    }

    .banner-section {
        padding: 30px 0;
    }

    .banner-card {
        height: 250px;
    }

        .banner-card.large {
            height: 300px;
        }
}

@media (max-width: 576px) {
    .swiper {
        height: 300px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px; /* اختیاری - برای فاصله بین آیتم‌ها */
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-icon {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .service-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .service-card .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px; /* اختیاری - برای فاصله بین آیتم‌ها */
    }
     .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .stat-item {
        flex-basis: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .search-box.active input {
        width: 120px;
    }

    .header-actions {
        margin-left: 10px;
    }
    @media (min-width: 769px) {
        .mobile-toggle {
            display: none;
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* به طور طبیعی با justify-content: space-between و ترتیب زیر:
       - mobile-toggle (مخفی)
       - header-actions (سمت چپ)
       - nav (وسط)
       - logo (سمت راست)
    */
    }
    .search-icon, .cart-icon, .user-icon {
        margin-left: 10px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .header-actions .cart-icon {
        margin-right: 5px;
    }

    .mobile-toggle {
        margin-left: 5px;
    }

    .section {
        padding: 30px 0;
    }

    .banner-section {
        padding: 25px 0;
    }

    .banner-cta {
        padding: 20px;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: var(--secondary-color);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    height: 60px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    flex: 1;
    max-width: 80px;
}

    .nav-item i {
        font-size: 1.2rem;
        margin-bottom: 4px;
        transition: var(--transition);
    }

    .nav-item span {
        font-size: 0.7rem;
        font-weight: 500;
        transition: var(--transition);
    }

    .nav-item.active {
        color: var(--primary-color);
    }

        .nav-item.active i,
        .nav-item.active span {
            color: var(--primary-color);
        }

    .nav-item:hover {
        background: rgba(255, 107, 0, 0.1);
    }

        .nav-item:hover i,
        .nav-item:hover span {
            color: var(--primary-color);
        }

.cart-badge {
    position: absolute;
    top: 0;
    left: 50%;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    transform: translateX(-50%);
}

/* نمایش نوار ناوبری فقط در موبایل */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    /* اضافه کردن padding به محتوای اصلی برای جلوگیری از پوشیده شدن توسط نوار */
    body {
        padding-bottom: 60px;
    }

    /* مخفی کردن ناوبری اصلی در موبایل */
    .nav-menu {
        display: none;
    }

    .header-actions .user-icon {
        display: none;
    }
}

/* انیمیشن برای تغییر وضعیت فعال */
@keyframes navItemActive {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.nav-item.active i {
    animation: navItemActive 0.3s ease;
}
.sale-banner {
    padding: 30px 0;
}

.sale-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    transition: var(--transition);
    background: linear-gradient(135deg, rgba(255,107,0,0.06), rgba(229,90,0,0.04));
}

/* background image (replace path with your image) */
.sale-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/sale baner.webp');
    background-size: cover;
    background-position: center;
    filter: saturate(0.85) contrast(0.9) brightness(0.6);
    transform-origin: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

.sale-card:hover .sale-bg {
    transform: scale(1.03);
}

/* dark gradient overlay for readability */
.sale-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(0,0,0,0.55), rgba(0,0,0,0.18));
    z-index: 2;
}

/* content layout */
.sale-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px;
    color: var(--white);
    direction: rtl;
}

/* text side */
.sale-text {
    max-width: 62%;
    text-align: right;
}

    .sale-text h2 {
        font-size: 2.2rem;
        margin-bottom: 10px;
        line-height: 1.05;
        background: rgba(255,255,255,0.06);
        display: inline-block;
        padding: 10px 14px;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.25) inset;
    }

.sale-lead {
    color: rgba(255,255,255,0.92);
    margin-bottom: 18px;
    font-size: 1.05rem;
}

/* CTA - use existing .btn but override for this banner */
.sale-cta {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .sale-cta:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 36px rgba(0,0,0,0.22);
        color:black
    }

/* discount badge */
.sale-badge {
    width: 140px;
    min-width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.92));
    box-shadow: 0 10px 30px rgba(0,0,0,0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-align: center;
    transform: translateY(-6px);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 6px 18px rgba(229,90,0,0.12));
}

/* percent number */
.badge-percent {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

/* small label under percent */
.badge-text {
    font-size: 0.9rem;
    margin-top: 6px;
    color: rgba(26,26,26,0.85);
    font-weight: 700;
}

/* responsiveness */
@media (max-width: 992px) {
    .sale-content {
        padding: 28px;
    }

    .sale-text {
        max-width: 60%;
    }

    .sale-card {
        height: 300px;
    }

    .sale-badge {
        width: 120px;
        height: 120px;
        min-width: 120px;
    }

    .sale-text h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .sale-card {
        height: auto;
        padding-bottom: 26px;
    }

    .sale-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        padding: 22px;
    }

    .sale-text {
        max-width: 100%;
        text-align: center;
    }

        .sale-text h2 {
            font-size: 1.6rem;
        }

    .sale-lead {
        font-size: 0.98rem;
    }

    .sale-badge {
        margin-top: 12px;
        transform: translateY(0);
    }

    .sale-bg {
        filter: saturate(0.6) brightness(0.55);
    }
}

/* small screens */
@media (max-width: 420px) {
    .sale-badge {
        width: 100px;
        height: 100px;
        min-width: 100px;
    }

    .badge-percent {
        font-size: 1.6rem;
    }

    .sale-text h2 {
        font-size: 1.35rem;
        padding: 8px 10px;
    }

    .sale-cta {
        padding: 10px 16px;
    }
}

/* ensure rtl compatibility with existing site */
.sale-banner, .sale-card, .sale-content {
    direction: rtl;
}

/* re-use float animation from your CSS (if present) else define a lightweight one) */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}
/* بهبود نمایش در صفحه‌های بسیار کوچک */
@media (max-width: 360px) {
    .nav-item span {
        font-size: 0.65rem;
    }

    .nav-item i {
        font-size: 1.1rem;
    }

    .nav-container {
        padding: 6px 0;
    }
}
/* Special Sale Section Styles */
.special-sale-section {
    background: linear-gradient(135deg, #0c0c0c 0%, #2d1f0c 25%, #5a2f0c 50%, #8b4513 75%, #da7c0c 100%);
    padding: 60px 0;
    margin: 40px 20px;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

    .special-sale-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(218, 124, 12, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(44, 31, 12, 0.2) 0%, transparent 50%);
        background-size: cover;
    }

.special-sale-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

/* Header Styles */
.special-sale-title {
    text-align: center;
    margin-bottom: 20px;
}

    .special-sale-title h2 {
        font-size: 3rem;
        color: #FFFFFF;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        background: linear-gradient(45deg, #FFFFFF, #FFA500);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        position: relative;
        display: inline-block;
    }

        .special-sale-title h2::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(45deg, #FF6B00, #FF8E00);
            border-radius: 2px;
        }

/* Swiper Styles */
.special-sale-swiper {
    width: 100%;
    height: 520px;
    overflow: hidden;
    padding: 20px 0;
}

    .special-sale-swiper .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        box-sizing: border-box;
        transition: all 0.3s ease;
        opacity: 0.7;
        transform: scale(0.95);
    }

    .special-sale-swiper .swiper-slide-active,
    .special-sale-swiper .swiper-slide-next,
    .special-sale-swiper .swiper-slide-prev {
        opacity: 1;
        transform: scale(1);
    }

.special-sale-product-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 380px;
    height: 480px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 165, 0, 0.1);
    margin: 0 auto;
}

    .special-sale-product-card:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 165, 0, 0.3);
    }

.special-sale-product-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

    .special-sale-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: all 0.4s ease;
    }

.special-sale-product-card:hover .special-sale-product-image img {
    transform: scale(1.15);
}

.special-sale-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #FF6B00, #FF8E00);
    color: #FFFFFF;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.special-sale-product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #1a1a1a;
}

    .special-sale-product-content h3 {
        font-size: 1.25rem;
        margin-bottom: 15px;
        color: #FFFFFF;
        line-height: 1.4;
        text-align: center;
    }

.special-sale-product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.special-sale-price {
    font-weight: 700;
    font-size: 1.4rem;
    color: #27AE60;
}

.special-sale-old-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 0.95rem;
}

.discount-percent {
    background: #E74C3C;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.special-sale-product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #bdc3c7;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.special-sale-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.special-sale-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(45deg, #FF6B00, #FF8E00);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

    .special-sale-btn:hover {
        background: linear-gradient(45deg, #E55A00, #E57A00);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
    }

.compare-btn {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #2c3e50;
    border: 2px solid #34495e;
    color: #ecf0f1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .compare-btn:hover {
        background: #3498DB;
        color: #FFFFFF;
        border-color: #3498DB;
    }

/* Swiper Navigation */
.special-sale-swiper-button-next,
.special-sale-swiper-button-prev {
    color: #FFFFFF;
    background: rgba(255, 165, 0, 0.3);
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 165, 0, 0.5);
    margin-top: -30px;
}

    .special-sale-swiper-button-next::after,
    .special-sale-swiper-button-prev::after {
        display: none;
    }

    .special-sale-swiper-button-next:hover,
    .special-sale-swiper-button-prev:hover {
        background: rgba(255, 165, 0, 0.6);
        transform: scale(1.1);
    }

/* Footer Styles */
.special-sale-footer {
    text-align: center;
    margin-top: 20px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 165, 0, 0.2);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 165, 0, 0.4);
}

    .view-all-btn:hover {
        background: rgba(255, 165, 0, 0.4);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

/* Responsive Styles */
@media (max-width: 991px) {
    .special-sale-section {
        margin: 30px 15px;
        border-radius: 25px;
    }

    .special-sale-title h2 {
        font-size: 2.5rem;
    }

    .special-sale-swiper {
        height: 500px;
    }

    .special-sale-product-card {
        height: 460px;
    }

    .special-sale-product-image {
        height: 250px;
    }

    .special-sale-swiper .swiper-slide {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 767px) {
    .special-sale-section {
        margin: 20px 10px;
        padding: 40px 0;
        border-radius: 20px;
    }

    .special-sale-title h2 {
        font-size: 2rem;
    }

    .special-sale-swiper {
        height: 480px;
    }

    .special-sale-product-card {
        height: 440px;
    }

    .special-sale-product-image {
        height: 230px;
    }

    .special-sale-swiper-button-next,
    .special-sale-swiper-button-prev {
        width: 50px;
        height: 50px;
        margin-top: -25px;
    }

    .view-all-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .special-sale-swiper .swiper-slide {
        opacity: 1;
        transform: scale(1);
    }
}
/* New Custom Banner Section Styles */
.custom-banner-section {
    padding: 60px 0;
    background: var(--light-color);
}

.custom-banner-large {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.banner-image-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-banner-large:hover .banner-image {
    transform: scale(1.05);
}

.brand-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.banner-content {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 30px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.banner-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 15px 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--white);
    font-weight: 700;
}

.banner-description {
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 1rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

    .banner-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
    }

.custom-banner-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.custom-banner-small {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .custom-banner-small:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

        .custom-banner-small:hover .banner-image {
            transform: scale(1.08);
        }

    .custom-banner-small .banner-content {
        padding: 20px;
        align-items: flex-start;
    }

    .custom-banner-small .banner-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: var(--secondary-color);
        padding: 12px 16px;
        margin-top: 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .custom-banner-small .banner-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
        color: var(--text-color);
        text-shadow: none;
    }

    .custom-banner-small .banner-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        background: transparent;
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
        box-shadow: none;
    }

        .custom-banner-small .banner-btn:hover {
            background: var(--primary-color);
            color: var(--white);
        }

/* Responsive Styles */
@media (max-width: 992px) {
    .custom-banner-large {
        min-height: 400px;
    }

    .banner-content {
        padding: 25px;
    }

    .banner-title {
        font-size: 1.6rem;
        padding: 12px 18px;
    }

    .brand-logo {
        width: 70px;
        height: 70px;
    }

    .custom-banner-small {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .custom-banner-section {
        padding: 40px 0;
    }

    .custom-banner-large {
        min-height: 350px;
    }

    .banner-content {
        padding: 20px;
    }

    .banner-title {
        font-size: 1.4rem;
        padding: 10px 15px;
    }

    .custom-banner-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .custom-banner-small {
        height: 250px;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
        top: 15px;
        left: 15px;
    }
}

@media (max-width: 576px) {
    .custom-banner-large {
        min-height: 300px;
    }

    .banner-content {
        padding: 15px;
    }

    .banner-title {
        font-size: 1.2rem;
        padding: 8px 12px;
        margin-top: 15px;
    }

    .banner-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .banner-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .custom-banner-small {
        height: 220px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 8px;
    }
        .custom-banner-small .banner-content {
            padding: 15px;
        }

        .custom-banner-small .banner-title {
            font-size: 1.1rem;
            padding: 8px 12px;
        }

    .brand-logo {
        width: 50px;
        height: 50px;
        top: 10px;
        left: 10px;
    }
}
.custom-banner-section {
    padding: 60px 0;
    background: var(--light-color);
}

.custom-banner-large {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.banner-image-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-banner-large:hover .banner-image {
    transform: scale(1.05);
}

.brand-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 3;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.banner-content {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.banner-description {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 1rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    padding: 0 10px;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    align-self: flex-start;
}

.banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.custom-banner-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.custom-banner-small {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 320px; /* افزایش ارتفاع بنرهای کوچک */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-banner-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.custom-banner-small:hover .banner-image {
    transform: scale(1.08);
}

.custom-banner-small .banner-content {
    padding: 20px;
    background: linear-gradient(to bottom, 
                rgba(0,0,0,0.7) 0%, 
                rgba(0,0,0,0.4) 50%, 
                rgba(0,0,0,0.7) 100%);
}

.custom-banner-small .banner-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
}

.custom-banner-small .banner-description {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.custom-banner-small .banner-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .custom-banner-large {
        min-height: 350px;
    }
    
    .banner-content {
        padding: 25px;
    }
    
    .banner-title {
        font-size: 1.6rem;
    }
    
    .brand-logo {
        width: 70px;
        height: 70px;
    }
    
    .custom-banner-small {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .custom-banner-section {
        padding: 40px 0;
    }
    
    .custom-banner-large {
        min-height: 300px;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .banner-title {
        font-size: 1.4rem;
    }
    
    .custom-banner-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .custom-banner-small {
        height: 240px;
    }
    
    .brand-logo {
        width: 60px;
        height: 60px;
        top: 15px;
        left: 15px;
    }
}

@media (max-width: 576px) {
    .custom-banner-large {
        min-height: 250px;
    }
    
    .banner-content {
        padding: 15px;
    }
    
    .banner-title {
        font-size: 1.2rem;
        padding: 8px 16px;
    }
    
    .banner-description {
        font-size: 0.9rem;
    }
    
    .banner-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .custom-banner-small {
        height: 220px;
    }
    
    .custom-banner-small .banner-content {
        padding: 15px;
    }
    
    .brand-logo {
        width: 50px;
        height: 50px;
        top: 10px;
        left: 10px;
    }
}
/* Custom Banner Section Styles */
.custom-banner-section {
    padding: 60px 0;
    background: var(--light-color);
}

.custom-banner-large {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--white);
    height: 400px;
    width: 100%;
}

.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-banner-large:hover .banner-image {
    transform: scale(1.05);
}

.custom-banner-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.custom-banner-small {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .custom-banner-small:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

        .custom-banner-small:hover .banner-image {
            transform: scale(1.08);
        }

/* استایل محتوای بنر - اصلاح شده */
.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

.banner-title {
    align-self: flex-end; /* برای سمت راست */
    background: rgba(255, 255, 255, 0.8); /* شیشه‌ای روشن‌تر */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 16px;
    color: #333; /* رنگ متن تیره‌تر برای خوانایی */
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0;
    margin-left: auto; /* برای اطمینان از قرارگیری در سمت راست */
}

/* استایل دکمه - اصلاح شده */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    align-self: flex-end; /* برای سمت راست */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-left: auto; /* برای اطمینان از قرارگیری در سمت راست */
}

    .btn:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline:hover {
        background: var(--primary-color);
        color: var(--white);
    }

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .custom-banner-section {
        padding: 40px 0;
    }

    .custom-banner-large {
        height: 300px;
        margin-bottom: 20px;
    }

    .custom-banner-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .custom-banner-small {
        height: 200px;
    }

    .banner-content {
        padding: 15px;
    }

    .banner-title {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .custom-banner-large {
        height: 250px;
    }

    .custom-banner-small {
        height: 180px;
    }

    .banner-content {
        padding: 10px;
    }
}
/* Modern FAQ Section - Fixed Mobile Closing */
.modern-faq {
    background: var(--light-color);
    padding: 80px 0;
}

.faq-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop Two Column Layout - بدون تغییر */
.desktop-view {
    display: block;
}

.faq-two-column {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin: 50px 0;
}

/* Questions Side - بدون تغییر */
.faq-questions-side {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: fit-content;
}

.faq-questions-list {
    display: flex;
    flex-direction: column;
}

.faq-question-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .faq-question-item:last-child {
        border-bottom: none;
    }

    .faq-question-item::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, rgba(255,107,0,0.1) 0%, transparent 100%);
        transition: width 0.3s ease;
    }

    .faq-question-item:hover::before,
    .faq-question-item.active::before {
        width: 4px;
    }

    .faq-question-item:hover {
        background: #fafafa;
        transform: translateX(-5px);
    }

    .faq-question-item.active {
        background: rgba(255, 107, 0, 0.05);
        border-right: 3px solid var(--primary-color);
    }

.question-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.question-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.faq-question-item.active .question-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.question-text h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.question-text p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

.question-indicator {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.faq-question-item.active .question-indicator {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* Answers Side - بدون تغییر */
.faq-answers-side {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.faq-answer-content {
    position: relative;
    min-height: 500px;
}

.answer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    height: 100%;
    color: var(--text-light);
}

.placeholder-icon {
    font-size: 4rem;
    color: rgba(255, 107, 0, 0.2);
    margin-bottom: 20px;
}

.answer-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.faq-answer {
    display: none;
    padding: 0;
    animation: fadeInUp 0.5s ease;
}

    .faq-answer.active {
        display: block;
    }

.answer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.answer-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.answer-header h3 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

.answer-body {
    padding: 30px;
}

.answer-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

    .answer-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .answer-item h4 {
        font-size: 1.1rem;
        color: var(--secondary-color);
        margin-bottom: 10px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .answer-item p {
        color: var(--text-color);
        line-height: 1.7;
        margin: 0;
        font-size: 0.95rem;
    }

/* Mobile Accordion Layout - اصلاح‌شده */
.mobile-view {
    display: none;
}

.mobile-faq-accordion {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 30px 0;
}

.mobile-faq-item {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

    .mobile-faq-item:last-child {
        border-bottom: none;
    }

    .mobile-faq-item.active {
        background: rgba(255, 107, 0, 0.03);
    }

.mobile-faq-question {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .mobile-faq-question:hover {
        background: #fafafa;
    }

.mobile-faq-item.active .mobile-faq-question {
    background: rgba(255, 107, 0, 0.05);
}

.mobile-question-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.mobile-question-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-faq-item.active .mobile-question-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.mobile-question-text h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.mobile-question-text p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

.mobile-faq-toggle {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.mobile-faq-item.active .mobile-faq-toggle {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* اصلاح مهم: حل مشکل بسته‌نشدن کامل */
.mobile-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: #fafafa;
    opacity: 0;
    visibility: hidden;
}

.mobile-faq-item.active .mobile-faq-answer {
    max-height: 2000px;
    padding: 0 20px 20px;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.mobile-answer-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

    .mobile-answer-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .mobile-answer-item h4 {
        font-size: 1rem;
        margin-bottom: 8px;
        color: var(--secondary-color);
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-answer-item p {
        font-size: 0.9rem;
        line-height: 1.6;
        color: var(--text-color);
        margin: 0;
    }

/* FAQ Contact CTA */
.faq-contact-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: var(--white);
    margin-top: 40px;
}

.cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-contact-cta .btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.faq-contact-cta .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

    .faq-contact-cta .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
    }

.faq-contact-cta .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

    .faq-contact-cta .btn-outline:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-3px);
    }

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .desktop-view {
        display: none;
    }

    .mobile-view {
        display: block;
    }

    .modern-faq {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .faq-contact-cta {
        padding: 30px 25px;
        margin-top: 30px;
    }

    .cta-content h3 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .faq-contact-cta .btn {
        width: 200px;
    }

    .mobile-faq-question {
        padding: 18px;
    }

    .mobile-question-content {
        gap: 12px;
    }

    .mobile-question-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .mobile-faq-item.active .mobile-faq-answer {
        padding: 0 18px 18px;
    }
}

@media (max-width: 576px) {
    .modern-faq {
        padding: 50px 0;
    }

    .mobile-faq-accordion {
        margin: 20px 0;
        border-radius: 12px;
    }

    .mobile-faq-question {
        padding: 16px;
    }

    .mobile-question-content {
        gap: 10px;
    }

    .mobile-question-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .mobile-question-text h3 {
        font-size: 1rem;
    }

    .mobile-question-text p {
        font-size: 0.8rem;
    }

    .mobile-answer-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

        .mobile-answer-item h4 {
            font-size: 0.95rem;
        }

        .mobile-answer-item p {
            font-size: 0.85rem;
        }

    .mobile-faq-item.active .mobile-faq-answer {
        padding: 0 16px 16px;
    }

    .faq-contact-cta {
        padding: 25px 20px;
        margin-top: 25px;
        border-radius: 12px;
    }

    .cta-content h3 {
        font-size: 1.3rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }
}
/* Modern FAQ Section - Completely Fixed */
.modern-faq {
    background: var(--light-color);
    padding: 80px 0;
}

.faq-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop Two Column Layout */
.desktop-view {
    display: block;
}

.faq-two-column {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin: 50px 0;
}

/* Questions Side */
.faq-questions-side {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: fit-content;
}

.faq-questions-list {
    display: flex;
    flex-direction: column;
}

.faq-question-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .faq-question-item:last-child {
        border-bottom: none;
    }

    .faq-question-item::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, rgba(255,107,0,0.1) 0%, transparent 100%);
        transition: width 0.3s ease;
    }

    .faq-question-item:hover::before,
    .faq-question-item.active::before {
        width: 4px;
    }

    .faq-question-item:hover {
        background: #fafafa;
        transform: translateX(-5px);
    }

    .faq-question-item.active {
        background: rgba(255, 107, 0, 0.05);
        border-right: 3px solid var(--primary-color);
    }

.question-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.question-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.faq-question-item.active .question-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.question-text h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.question-text p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

.question-indicator {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.faq-question-item.active .question-indicator {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* Answers Side */
.faq-answers-side {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.faq-answer-content {
    position: relative;
    min-height: 500px;
}

.answer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    height: 100%;
    color: var(--text-light);
}

.placeholder-icon {
    font-size: 4rem;
    color: rgba(255, 107, 0, 0.2);
    margin-bottom: 20px;
}

.answer-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.faq-answer {
    display: none;
    padding: 0;
    animation: fadeInUp 0.5s ease;
}

    .faq-answer.active {
        display: block;
    }

.answer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px 30px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.answer-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.answer-header h3 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

.answer-body {
    padding: 30px;
}

.answer-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

    .answer-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .answer-item h4 {
        font-size: 1.1rem;
        color: var(--secondary-color);
        margin-bottom: 10px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .answer-item p {
        color: var(--text-color);
        line-height: 1.7;
        margin: 0;
        font-size: 0.95rem;
    }

/* Mobile Accordion Layout - کاملاً اصلاح‌شده */
.mobile-view {
    display: none;
}

.mobile-faq-accordion {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 30px 0;
}

.mobile-faq-item {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

    .mobile-faq-item:last-child {
        border-bottom: none;
    }

    .mobile-faq-item.active {
        background: rgba(255, 107, 0, 0.03);
    }

.mobile-faq-question {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .mobile-faq-question:hover {
        background: #fafafa;
    }

.mobile-faq-item.active .mobile-faq-question {
    background: rgba(255, 107, 0, 0.05);
}

.mobile-question-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.mobile-question-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-faq-item.active .mobile-question-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.mobile-question-text h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.mobile-question-text p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

.mobile-faq-toggle {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.mobile-faq-item.active .mobile-faq-toggle {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* اصلاح اساسی: ساختار جدید برای پاسخ‌ها */
.mobile-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.mobile-faq-item.active .mobile-faq-answer {
    max-height: 2000px;
    transition: max-height 0.4s ease-in-out;
}

.mobile-answer-content {
    padding: 0 20px 20px;
    background: #fafafa;
}

.mobile-answer-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

    .mobile-answer-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .mobile-answer-item h4 {
        font-size: 1rem;
        margin-bottom: 8px;
        color: var(--secondary-color);
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-answer-item p {
        font-size: 0.9rem;
        line-height: 1.6;
        color: var(--text-color);
        margin: 0;
    }

/* FAQ Contact CTA */
.faq-contact-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: var(--white);
    margin-top: 40px;
}

.cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-contact-cta .btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.faq-contact-cta .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

    .faq-contact-cta .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
    }

.faq-contact-cta .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

    .faq-contact-cta .btn-outline:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-3px);
    }

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .desktop-view {
        display: none;
    }

    .mobile-view {
        display: block;
    }

    .modern-faq {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .faq-contact-cta {
        padding: 30px 25px;
        margin-top: 30px;
    }

    .cta-content h3 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .faq-contact-cta .btn {
        width: 200px;
    }

    .mobile-faq-question {
        padding: 18px;
    }

    .mobile-question-content {
        gap: 12px;
    }

    .mobile-question-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .mobile-answer-content {
        padding: 0 18px 18px;
    }
}

@media (max-width: 576px) {
    .modern-faq {
        padding: 50px 0;
    }

    .mobile-faq-accordion {
        margin: 20px 0;
        border-radius: 12px;
    }

    .mobile-faq-question {
        padding: 16px;
    }

    .mobile-question-content {
        gap: 10px;
    }

    .mobile-question-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .mobile-question-text h3 {
        font-size: 1rem;
    }

    .mobile-question-text p {
        font-size: 0.8rem;
    }

    .mobile-answer-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

        .mobile-answer-item h4 {
            font-size: 0.95rem;
        }

        .mobile-answer-item p {
            font-size: 0.85rem;
        }

    .mobile-answer-content {
        padding: 0 16px 16px;
    }

    .faq-contact-cta {
        padding: 25px 20px;
        margin-top: 25px;
        border-radius: 12px;
    }

    .cta-content h3 {
        font-size: 1.3rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }
}
/* استایل بخش ویژگی‌ها */
.features-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #f9f9f9;
}

.features-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.features-title {
    font-size: 18px;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-feature-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: background 0.3s ease;
}

    .add-feature-btn:hover {
        background: #218838;
    }

.features-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/* استایل ساده دکمه افزودن ویژگی */
.add-feature-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: background 0.2s ease;
}

    .add-feature-btn:hover {
        background: #218838;
    }

/* استایل ساده دکمه حذف ویژگی */
.remove-feature-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .remove-feature-btn:hover {
        background: #c82333;
    }

/* استایل برای حالت موبایل */
@media (max-width: 768px) {
    .add-feature-btn {
        padding: 12px 16px;
        width: 100%;
        justify-content: center;
    }

    .feature-item {
        position: relative;
        padding-right: 60px;
    }

    .remove-feature-btn {
        position: absolute;
        top: 15px;
        left: 15px;
    }
}
.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .feature-item:hover {
        border-color: #007bff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.feature-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

    .feature-content .form-group {
        margin-bottom: 0;
    }

.remove-feature-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: center;
}

    .remove-feature-btn:hover {
        background: #c82333;
    }

/* رسپانسیو */
@media (max-width: 768px) {
    .feature-content {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: column;
    }

    .features-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .add-feature-btn {
        align-self: stretch;
        justify-content: center;
    }
}
.spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-weight: bold;
    color: #555;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
    min-height: 200px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 0, 0.2);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
}

.loading-dots {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

    .loading-dots:after {
        content: "...";
        position: absolute;
        animation: dots 1.5s steps(4, end) infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes dots {
    0%, 20% {
        content: ".";
    }

    40% {
        content: "..";
    }

    60%, 100% {
        content: "...";
    }
}

/* استایل‌های اضافی برای لودر در حالت‌های مختلف */
.loading-container.small {
    padding: 20px;
    min-height: 120px;
}

    .loading-container.small .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
        margin-bottom: 15px;
    }

    .loading-container.small .loading-text {
        font-size: 0.95rem;
    }

.loading-container.large {
    padding: 60px 30px;
    min-height: 300px;
}

    .loading-container.large .loading-spinner {
        width: 80px;
        height: 80px;
        border-width: 5px;
        margin-bottom: 25px;
    }

    .loading-container.large .loading-text {
        font-size: 1.3rem;
    }

/* استایل‌های لودر برای حالت‌های مختلف */
.loading-container.primary .loading-spinner {
    border-top-color: var(--primary-color);
}

.loading-container.secondary .loading-spinner {
    border-top-color: var(--secondary-color);
}

.loading-container.light .loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--white);
}

.loading-container.light .loading-text {
    color: var(--white);
}

/* استایل‌های انیمیشن‌های اضافی */
.loading-container.pulse .loading-spinner {
    animation: pulse-spin 1.5s ease-in-out infinite;
}

@keyframes pulse-spin {
    0% {
        transform: rotate(0deg);
        border-top-color: var(--primary-color);
    }

    50% {
        transform: rotate(180deg);
        border-top-color: var(--primary-dark);
    }

    100% {
        transform: rotate(360deg);
        border-top-color: var(--primary-color);
    }
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .loading-container {
        padding: 30px 15px;
        min-height: 180px;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
    }

    .loading-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .loading-container {
        padding: 20px 10px;
        min-height: 150px;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
        margin-bottom: 15px;
    }

    .loading-text {
        font-size: 0.9rem;
    }
}

/* Minimal Search Section Styles */
.minimal-search-section {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-top:100px;
    border-radius:10px;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.minimal-search-form {
    width: 100%;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

    .search-input-group:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
        background: var(--white);
    }

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
    direction: rtl;
}

    .search-input::placeholder {
        color: var(--text-light);
        opacity: 0.7;
    }

.search-submit {
    background: var(--primary-color);
    border: none;
    padding: 12px 20px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

    .search-submit:hover {
        background: var(--primary-dark);
    }

    .search-submit i {
        font-size: 1.1rem;
    }
/* Brands Slider Section */
.brands-slider-section {
    padding: 20px 0;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
ش    border-radius: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

    .section-header h2 {
        font-size: 1.6rem;
        color: var(--secondary-color);
        margin-bottom: 8px;
        font-weight: 700;
    }

    .section-header p {
        color: var(--text-light);
        font-size: 0.95rem;
    }

.brands-slider {
    width: 100%;
    height: 120px;
    padding: 10px 0;
}

.brand-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    transition: all 0.3s ease;
}
.brand-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 130px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 107, 0, 0.1);
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .brand-logo-card::before {
        content: '';
        position: absolute;
        bottom: 0; /* تغییر به پایین */
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #FF6B00, #FF8E3C);
        transform: scaleX(0);
        transition: transform 0.4s ease;
        transform-origin: center; /* مبدا از مرکز */
    }

    .brand-logo-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 12px 28px rgba(255, 107, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        border-color: rgba(255, 107, 0, 0.3);
    }

        .brand-logo-card:hover::before {
            transform: scaleX(1);
        }

    .brand-logo-card:active {
        transform: translateY(-2px) scale(1.01);
        transition-duration: 0.1s;
    }

    .brand-logo-card img {
        max-height: 45px;
        width: auto;
        object-fit: contain;
        margin-bottom: 8px;
        filter: grayscale(30%);
        transition: var(--transition);
    }

    .brand-logo-card:hover img {
        filter: grayscale(0%);
        transform: scale(1.05);
    }



/* Swiper Navigation */
.brands-slider .swiper-button-next,
.brands-slider .swiper-button-prev {
    color: var(--primary-color);
    background: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    margin-top: -18px;
}

    .brands-slider .swiper-button-next::after,
    .brands-slider .swiper-button-prev::after {
        display: none;
    }

    .brands-slider .swiper-button-next:hover,
    .brands-slider .swiper-button-prev:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: scale(1.1);
    }

/* Responsive */
@media (max-width: 768px) {
    .brands-slider-section {
        padding: 20px 0;
    }

    .brands-slider {
        height: 100px;
    }

    .brand-logo-card {
        height: 80px;
        width: 100px;
        padding: 10px;
    }

        .brand-logo-card img {
            max-height: 35px;
        }


    .section-header h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .brands-slider {
        height: 90px;
    }

    .brand-logo-card {
        height: 70px;
        width: 90px;
    }

        .brand-logo-card img {
            max-height: 30px;
        }


    .section-header h2 {
        font-size: 1.3rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }
}

/* Brands Slider Section */
.brands-slider-section {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.brands-slider {
    width: 100%;
    height: 120px;
    padding: 10px 0;
}

.brand-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.brand-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100px;
    width: 120px;
}

.brand-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.2);
}

.brand-logo-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.brand-logo-card:hover img {
    filter: grayscale(0);
}

/* Swiper Navigation */
.brands-button-next,
.brands-button-prev {
    color: var(--primary-color);
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.brands-button-next::after,
.brands-button-prev::after {
    display: none;
}

.brands-button-next:hover,
.brands-button-prev:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .brands-slider-section {
        padding: 20px 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .brands-slider {
        height: 100px;
    }
    
    .brand-logo-card {
        height: 80px;
        width: 100px;
        padding: 10px;
    }
    
    .brand-logo-card img {
        width: 40px;
        height: 40px;
    }
    
    
}

@media (max-width: 576px) {
    .brands-slider {
        height: 90px;
    }
    
    .brand-logo-card {
        height: 70px;
        width: 90px;
    }
    
    .brand-logo-card img {
        width: 35px;
        height: 35px;
    }
    
   
    
    .brands-button-next,
    .brands-button-prev {
        width: 35px;
        height: 35px;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInCard .4s ease-out forwards;
}

@keyframes fadeInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
}

    .logo span {
        color: var(--primary-color);
        margin: 5px;
    }

    .logo i {
        margin-left: 10px;
        font-size: 1.5rem;
    }

.nav-menu {
    display: flex;
}

    .nav-menu li {
        margin-left: 25px;
        position: relative;
    }

    .nav-menu a {
        color: var(--white);
        font-weight: 500;
        transition: var(--transition);
        position: relative;
        padding: 10px 0;
        display: block;
    }

        .nav-menu a:hover {
            color: var(--primary-color);
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 3px;
            background: var(--primary-color);
            bottom: 0;
            left: 0;
            transition: var(--transition);
        }

        .nav-menu a:hover::after {
            width: 100%;
        }

.header-actions {
    display: flex;
    align-items: center;
}
.cart-icon, .user-icon {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cart-icon:hover, .user-icon:hover {
        color: var(--primary-color);
        background: rgba(255, 107, 0, 0.1);
    }

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* استایل‌های سایدبار سبد خرید - هماهنگ با سایدبار منو */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: var(--secondary-color); /* تغییر به رنگ تیره هماهنگ با سایدبار منو */
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3); /* سایه مشابه سایدبار منو */
    transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1); /* انیمیشن مشابه */
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .cart-sidebar.active {
        left: 0;
    }

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* تیره‌تر مشابه سایدبار منو */
    backdrop-filter: blur(4px); /* افکت بلور مشابه */
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

    .cart-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* border مشابه */
    background: rgba(255, 255, 255, 0.05); /* پس‌زمینه مشابه */
    position: sticky;
    top: 0;
    z-index: 10;
}

    .cart-header h3 {
        font-size: 1.3rem;
        color: var(--white); /* رنگ متن سفید مشابه سایدبار منو */
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .cart-header h3 i {
            color: var(--primary-color);
        }

.close-cart {
    background: rgba(255, 107, 0, 0.2); /* مشابه دکمه بستن سایدبار منو */
    border: 1px solid rgba(255, 107, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-cart:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: rotate(90deg); /* انیمیشن چرخش مشابه */
    }

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--secondary-color); /* پس‌زمینه تیره */
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ساختار جدید برای آیتم‌های سبد خرید */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* border مشابه */
    border-radius: 10px; /* radius مشابه */
    transition: var(--transition);
    position: relative;
    background: rgba(255, 255, 255, 0.05); /* پس‌زمینه مشابه */
}

    .cart-item:hover {
        border-color: var(--primary-color);
        box-shadow: 0 2px 10px rgba(255, 107, 0, 0.2); /* سایه نارنجی مشابه */
        background: rgba(255, 107, 0, 0.05); /* پس‌زمینه hover مشابه */
    }

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px; /* radius مشابه */
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1); /* border مشابه */
}

    .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right; /* راست‌چین مشابه */
}

.item-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--white); /* رنگ سفید مشابه */
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.item-old-price {
    color: rgba(255, 255, 255, 0.6); /* رنگ روشن‌تر مشابه */
    text-decoration: line-through;
    font-size: 0.9rem;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 4px 10px; /* padding بیشتر مشابه */
    border-radius: 6px; /* radius مشابه */
    font-size: 0.8rem;
    margin-top: 5px;
    display: inline-block;
    align-self: flex-start; /* تراز مشابه */
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 32px; /* کمی بزرگتر */
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2); /* border مشابه */
    background: rgba(255, 255, 255, 0.1); /* پس‌زمینه مشابه */
    color: var(--white); /* رنگ سفید */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

    .quantity-btn:hover {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
        transform: scale(1.1); /* انیمیشن scale مشابه */
    }

.quantity {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: var(--white); /* رنگ سفید */
}

.remove-item {
    color: rgba(255, 255, 255, 0.7); /* رنگ روشن‌تر */
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(231, 76, 60, 0.1); /* پس‌زمینه مشابه */
    border: 1px solid rgba(231, 76, 60, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

    .remove-item:hover {
        color: #ff6b6b; /* رنگ روشن‌تر برای hover */
        background: rgba(231, 76, 60, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3); /* سایه مشابه */
    }

.cart-footer {
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* border مشابه */
    background: rgba(0, 0, 0, 0.2); /* پس‌زمینه مشابه سایدبار منو */
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 12px; /* فاصله بیشتر */
    margin-bottom: 20px;
}

.cart-total, .cart-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
}

.cart-total {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* border مشابه */
}

    .cart-total span:first-child, .cart-discount span:first-child {
        font-weight: 600;
        color: var(--white); /* رنگ سفید */
    }

    .cart-total span:last-child {
        font-weight: 700;
        font-size: 1.3rem; /* کمی بزرگتر */
        color: var(--primary-color);
    }

.cart-discount span:last-child {
    font-weight: 600;
    color: #27ae60;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px; /* radius مشابه */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2); /* سایه مشابه */
}

    .checkout-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-3px); /* lift effect مشابه */
        box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3); /* سایه بزرگتر */
    }

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7); /* رنگ روشن‌تر */
}

    .empty-cart i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: rgba(255, 255, 255, 0.3); /* رنگ خیلی روشن */
    }

    .empty-cart p {
        margin-bottom: 20px;
    }

.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px; /* padding بیشتر */
    background: rgba(255, 255, 255, 0.1); /* پس‌زمینه مشابه */
    color: var(--white);
    border-radius: 8px; /* radius مشابه */
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2); /* border مشابه */
}

    .continue-shopping:hover {
        background: var(--primary-color);
        transform: translateY(-2px); /* lift effect مشابه */
        box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2); /* سایه مشابه */
        border-color: var(--primary-color);
    }

/* انیمیشن‌های مشابه */
@keyframes cart-slide-in-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes cart-slide-out-left {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.cart-sidebar.active {
    animation: cart-slide-in-left 0.4s ease-out;
}

/* اسکرول‌بار سفارشی مشابه */
.cart-content::-webkit-scrollbar {
    width: 4px;
}

.cart-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.cart-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

    .cart-content::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }

/* رسپانسیو */
@media (max-width: 576px) {
    .cart-sidebar {
        width: 85%;
        max-width: 500px;
        left: -85%;
    }

    .cart-header, .cart-footer {
        padding: 15px 12px;
    }

    .cart-content {
        padding: 15px;
    }

    .cart-item {
        padding: 12px;
    }

    .item-image {
        width: 70px;
        height: 70px;
    }

    .checkout-btn {
        padding: 12px;
    }
}
/* محتوای اصلی */
.main-content {
    margin-top: 80px;
    padding: 40px 0;
    text-align: center;
}

    .main-content h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: var(--secondary-color);
    }

    .main-content p {
        font-size: 1.1rem;
        color: var(--text-light);
        max-width: 600px;
        margin: 0 auto 30px;
    }

/* رسپانسیو */
@media (max-width: 576px) {
    .cart-sidebar {
        margin-right:15px;
    }

    .cart-header, .cart-footer {
        padding: 15px;
    }

    .cart-content {
        padding: 15px;
    }

    .cart-item {
        padding: 12px;
    }

    .item-image {
        width: 70px;
        height: 70px;
    }
}
/* استایل‌های جدید برای بخش برند و هدر محصول */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.product-title-code {
    flex: 1;
    text-align: right;
}

    .product-title-code h3 {
        font-size: 1.15rem;
        margin-bottom: 6px;
        color: var(--secondary-color);
        line-height: 1.4;
    }

    .product-title-code h4 {
        font-size: 0.9rem;
        color: var(--text-light);
        margin-bottom: 0;
        font-weight: 500;
    }

.product-brand {
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 107, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    max-width: 120px;
    text-align: center;
}

    .product-brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* رسپانسیو برای نمایش موبایل */
@media (max-width: 768px) {
    .product-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 8px;
    }

    .product-brand {
        align-self: flex-start;
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .product-title-code h3 {
        font-size: 1.1rem;
    }

    .product-title-code h4 {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 8px;
    }

    .product-brand {
        min-width: 50px;
        max-width: 100px;
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .product-title-code h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .product-title-code h4 {
        font-size: 0.8rem;
    }
}
/* Categories Carousel Section */
.categories-carousel-section {
    background: var(--white);
    padding: 60px 0;
    margin-top: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

    .categories-carousel-section .section-header {
        text-align: center;
        margin-bottom: 40px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

        .categories-carousel-section .section-header h2 {
            font-size: 2.2rem;
            color: var(--secondary-color);
            margin-bottom: 10px;
            position: relative;
            display: inline-block;
        }

            .categories-carousel-section .section-header h2::after {
                content: '';
                position: absolute;
                bottom: -8px;
                left: 50%;
                transform: translateX(-50%);
                width: 80px;
                height: 3px;
                background: var(--primary-color);
                border-radius: 2px;
            }

        .categories-carousel-section .section-header p {
            color: var(--text-light);
            font-size: 1rem;
            max-width: 600px;
            margin: 15px auto 0;
            line-height: 1.6;
        }

/* Swiper Container */
.categories-carousel {
    padding: 20px 10px 50px;
    overflow: hidden;
}

/* Category Card */
.category-card {
    height: 100%;
    padding: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card-inner {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover .category-card-inner {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.2);
}

.category-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #f9f9f9 100%);
}

.category-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 25px;
    transition: all 0.5s ease;
    filter: grayscale(0.2) brightness(0.95);
    transform: scale(0.9);
}

.category-card:hover .category-logo {
    transform: scale(1);
    filter: grayscale(0) brightness(1.05);
}

.category-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-size: 4rem;
    opacity: 0.9;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-content {
    padding: 20px;
    text-align: center;
    background: var(--white);
}

.category-title {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.category-card:hover .category-title {
    color: var(--primary-color);
}

.category-products-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    background: rgba(255, 107, 0, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.category-card:hover .category-products-count {
    background: rgba(255, 107, 0, 0.15);
    color: var(--primary-dark);
    transform: scale(1.05);
}

.category-products-count i {
    font-size: 0.8rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 107, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

    .category-link:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
        border-color: var(--primary-color);
    }

    .category-link i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .category-link:hover i {
        transform: translateX(-3px);
    }

/* Swiper Navigation */
.categories-button-next,
.categories-button-prev {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
    margin-top: -24px;
}

    .categories-button-next::after,
    .categories-button-prev::after {
        display: none;
    }

    .categories-button-next i,
    .categories-button-prev i {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .categories-button-next:hover,
    .categories-button-prev:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
    }

        .categories-button-next:hover i,
        .categories-button-prev:hover i {
            transform: scale(1.1);
        }

.categories-button-prev {
    right: -20px;
    left: auto;
}

.categories-button-next {
    left: -20px;
    right: auto;
}

/* Swiper Pagination */
.categories-pagination {
    bottom: 10px !important;
}

    .categories-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: rgba(0, 0, 0, 0.2);
        opacity: 1;
        transition: all 0.3s ease;
        margin: 0 5px !important;
    }

    .categories-pagination .swiper-pagination-bullet-active {
        background: var(--primary-color);
        transform: scale(1.3);
        box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
    }

/* Responsive Styles */
@media (max-width: 1400px) {
    .categories-carousel-section {
        padding: 50px 0;
    }

        .categories-carousel-section .section-header h2 {
            font-size: 2rem;
        }
}

@media (max-width: 1200px) {
    .category-image {
        height: 160px;
    }

    .category-title {
        font-size: 1.1rem;
        min-height: 45px;
    }
}

@media (max-width: 992px) {
    .categories-carousel-section {
        padding: 40px 0;
        margin-top: 30px;
    }

        .categories-carousel-section .section-header {
            margin-bottom: 30px;
        }

            .categories-carousel-section .section-header h2 {
                font-size: 1.8rem;
            }

    .category-image {
        height: 150px;
    }

    .category-logo {
        padding: 20px;
    }

    .category-content {
        padding: 15px;
    }

    .category-title {
        font-size: 1.05rem;
        min-height: 40px;
    }

    .categories-button-next,
    .categories-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .categories-button-prev {
        right: -15px;
    }

    .categories-button-next {
        left: -15px;
    }
}

@media (max-width: 768px) {
    .categories-carousel-section {
        padding: 35px 15px;
        border-radius: 12px;
        margin: 25px 15px 0;
        width: calc(100% - 30px);
    }

        .categories-carousel-section .section-header h2 {
            font-size: 1.6rem;
        }

        .categories-carousel-section .section-header p {
            font-size: 0.95rem;
            padding: 0 10px;
        }

    .category-card {
        padding: 5px;
    }

    .category-image {
        height: 140px;
    }

    .category-logo {
        padding: 15px;
    }

    .category-title {
        font-size: 1rem;
        min-height: 38px;
    }

    .category-products-count {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .category-link {
        font-size: 0.85rem;
        padding: 7px 14px;
    }

    .categories-button-next,
    .categories-button-prev {
        display: none;
    }

    .categories-pagination {
        bottom: 5px !important;
    }
}

@media (max-width: 576px) {
    .categories-carousel-section {
        padding: 30px 10px;
        margin: 20px 10px 0;
        width: calc(100% - 20px);
    }

        .categories-carousel-section .section-header {
            margin-bottom: 25px;
            padding-bottom: 15px;
        }

            .categories-carousel-section .section-header h2 {
                font-size: 1.4rem;
            }

            .categories-carousel-section .section-header p {
                font-size: 0.9rem;
            }

    .category-image {
        height: 120px;
    }

    .category-logo {
        padding: 12px;
    }

    .category-content {
        padding: 12px;
    }

    .category-title {
        font-size: 0.95rem;
        min-height: 35px;
        margin-bottom: 8px;
    }

    .category-products-count {
        font-size: 0.75rem;
        padding: 4px 8px;
        margin-bottom: 10px;
    }

    .category-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .categories-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

/* Animation for loading */
@keyframes fadeInUpCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.swiper-slide {
    animation: fadeInUpCard 0.5s ease-out forwards;
    opacity: 0;
}

.swiper-slide-visible {
    opacity: 1;
}

/* Active state for category card */
.category-card.active .category-card-inner {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}
.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .no-results i {
        color: var(--text-light);
        font-size: 1.2rem;
    }
/* به یکی از این کلاس‌ها position relative اضافه کنید */
.minimal-search-form {
    position: relative;
}

/* یا */
.search-input-group {
    position: relative;
}
/* استایل‌های بخش نتایج جستجوی زنده */
.live-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.live-search-form {
    margin: 0;
    padding: 0;
}

.live-search-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: right;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
    gap: 15px;
    font-size: 0.95rem;
}

    .live-search-item:hover {
        background: rgba(255, 107, 0, 0.08);
        border-right: 3px solid var(--primary-color);
    }

    .live-search-item img {
        width: 50px;
        height: 50px;
        border-radius: 6px;
        object-fit: cover;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .live-search-item span {
        flex: 1;
        line-height: 1.4;
    }

/* =========================================== */
/* استایل‌های جدید سایدبار موبایل - نام‌های منحصر به فرد */
/* =========================================== */

/* سایدبار موبایل - اصلاح شده برای انیمیشن روان */
.azim-mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 1101;
    transition: right 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

    .azim-mobile-sidebar.azim-active {
        right: 0;
    }

.azim-sidebar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .azim-sidebar-overlay.azim-active {
        opacity: 1;
        visibility: visible;
    }

.azim-sidebar-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 85%;
    height: 100%;
    background: var(--secondary-color);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    z-index: 1102;
    display: flex;
    flex-direction: column;
    /* حذف انیمیشن از اینجا - انتقال به transition اصلی */
}
.azim-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.azim-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .azim-sidebar-logo img {
        width: 75px;
        height: 75px;
        object-fit: contain;
        border-radius: 5px;
        padding: 5px;
    }

.azim-brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    line-height: 1.2;
    gap: 5px;
}

    .azim-brand-name span {
        color: var(--primary-color);
        font-size: 1.4rem;
        font-weight: 700;
        display: flex;
        line-height: 1.2;
    }

.azim-close-sidebar {
    background: rgba(255, 107, 0, 0.2);
    border: 1px solid rgba(255, 107, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .azim-close-sidebar:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: rotate(90deg);
    }

/* محتوای سایدبار */
.azim-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

/* بخش جستجو - بهبود یافته */
.azim-sidebar-search {
    padding: 0 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.azim-search-wrapper {
    width: 100%;
}

.azim-search-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.azim-search-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    height: 50px;
}

    .azim-search-input-group:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
        background: rgba(255, 255, 255, 0.15);
    }

.azim-search-input {
    flex: 1;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.95rem;
    direction: rtl;
    outline: none;
    font-family: inherit;
}

    .azim-search-input::placeholder {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
    }

.azim-search-submit-btn {
    background: var(--primary-color);
    border: none;
    padding: 0 20px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    font-size: 1.1rem;
}

    .azim-search-submit-btn:hover {
        background: var(--primary-dark);
    }

    .azim-search-submit-btn:active {
        transform: scale(0.95);
    }

/* منوی ناوبری */
.azim-sidebar-nav {
    flex: 1;
    padding: 10px 0;
}

.azim-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    margin: 0;
}

.azim-sidebar-item {
    list-style: none;
    position: relative;
}

.azim-sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    border-right: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

    .azim-sidebar-link:hover,
    .azim-sidebar-link.azim-active {
        background: linear-gradient(90deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.05) 100%);
        color: var(--primary-color);
        border-right-color: var(--primary-color);
    }

    .azim-sidebar-link::before {
        content: '';
        position: absolute;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: right 0.6s ease;
    }

    .azim-sidebar-link:hover::before {
        right: 100%;
    }

.azim-sidebar-icon {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.azim-sidebar-link:hover .azim-sidebar-icon {
    transform: scale(1.1);
}

.azim-sidebar-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* دراپ‌داون‌ها */
.azim-sidebar-item.azim-has-dropdown .azim-dropdown-toggle {
    justify-content: space-between;
}

.azim-dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.azim-sidebar-item.azim-has-dropdown.azim-open .azim-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.azim-sidebar-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    background: rgba(0, 0, 0, 0.2);
    margin: 0;
    padding: 0;
}

.azim-sidebar-item.azim-has-dropdown.azim-open .azim-sidebar-dropdown {
    max-height: 400px;
}

.azim-dropdown-item {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.azim-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px 13px 35px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
}

    .azim-dropdown-link:hover {
        background: rgba(255, 107, 0, 0.1);
        color: var(--primary-color);
        padding-right: 40px;
    }

.azim-dropdown-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: inherit;
}

.azim-dropdown-text {
    flex: 1;
}

/* ساب‌دراپ‌داون */
.azim-dropdown-item.azim-has-subdropdown .azim-subdropdown-toggle {
    justify-content: space-between;
}

.azim-subdropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.azim-dropdown-item.azim-has-subdropdown.azim-open .azim-subdropdown-arrow {
    transform: rotate(-90deg);
    color: var(--primary-color);
}

.azim-sidebar-subdropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    background: rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
}

.azim-dropdown-item.azim-has-subdropdown.azim-open .azim-sidebar-subdropdown {
    max-height: 300px;
}

.azim-subdropdown-item {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.azim-subdropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px 11px 50px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
    position: relative;
}

    .azim-subdropdown-link:hover {
        background: rgba(255, 107, 0, 0.1);
        color: var(--primary-color);
        padding-right: 55px;
    }

.azim-subdropdown-bullet {
    font-size: 0.8rem;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
}

.azim-subdropdown-link:hover .azim-subdropdown-bullet {
    opacity: 1;
    transform: translateX(-3px);
}

/* فوتر سایدبار */
.azim-sidebar-footer {
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    margin-top: auto;
}

.azim-sidebar-contact {
    margin-bottom: 20px;
}

.azim-contact-title {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

    .azim-contact-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 2px;
        background: var(--primary-color);
        border-radius: 1px;
    }

.azim-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.azim-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.azim-contact-icon {
    color: var(--primary-color);
    width: 16px;
    font-size: 0.9rem;
}

.azim-contact-text {
    flex: 1;
}

.azim-sidebar-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.azim-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .azim-social-link:hover {
        background: var(--primary-color);
        transform: translateY(-3px) scale(1.1);
        border-color: var(--primary-color);
    }

.azim-social-icon {
    font-size: 1.1rem;
}

/* حذف انیمیشن‌های قدیمی که باعث مشکل می‌شدند */
/* 
@keyframes azim-slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes azim-slide-out-right {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.azim-sidebar-container {
    animation: azim-slide-in-right 0.4s ease-out;
}

.azim-mobile-sidebar.azim-closing .azim-sidebar-container {
    animation: azim-slide-out-right 0.4s ease-in;
}
*/

/* انیمیشن‌های ورود آیتم‌های منو - اختیاری */
@keyframes azim-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.azim-sidebar-item {
    animation: azim-fade-in 0.3s ease-out forwards;
    opacity: 0;
}

    .azim-sidebar-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .azim-sidebar-item:nth-child(2) {
        animation-delay: 0.15s;
    }

    .azim-sidebar-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .azim-sidebar-item:nth-child(4) {
        animation-delay: 0.25s;
    }

    .azim-sidebar-item:nth-child(5) {
        animation-delay: 0.3s;
    }

    .azim-sidebar-item:nth-child(6) {
        animation-delay: 0.35s;
    }

    .azim-sidebar-item:nth-child(7) {
        animation-delay: 0.4s;
    }

/* اسکرول‌بار سفارشی */
.azim-sidebar-container::-webkit-scrollbar {
    width: 4px;
}

.azim-sidebar-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.azim-sidebar-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

    .azim-sidebar-container::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }

/* رسپانسیو برای دسکتاپ */
@media (min-width: 769px) {
    .azim-mobile-sidebar {
        display: none;
    }
}

/* رسپانسیو برای موبایل‌های کوچک */
@media (max-width: 576px) {
    .azim-sidebar-container {
        width: 90%;
        left: -90%;
        /* اصلاح: برای سایدبار راست، باید right را تغییر دهیم، نه left */
    }

    

    .azim-search-input-group {
        height: 46px;
    }

    .azim-search-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .azim-search-submit-btn {
        padding: 0 16px;
        min-width: 50px;
    }

    .azim-sidebar-link {
        padding: 13px 15px;
    }

    .azim-sidebar-icon {
        font-size: 1.1rem;
    }

    .azim-sidebar-text {
        font-size: 0.9rem;
    }

    .azim-dropdown-link {
        padding: 11px 15px 11px 30px;
        font-size: 0.85rem;
    }

    .azim-subdropdown-link {
        padding: 9px 15px 9px 40px;
        font-size: 0.8rem;
    }

    .azim-sidebar-footer {
        padding: 15px 12px;
    }

    .azim-contact-item {
        font-size: 0.8rem;
    }

    .azim-social-link {
        width: 36px;
        height: 36px;
    }
}

/* برای صفحات با ارتفاع کم */
@media (max-height: 600px) {
    .azim-sidebar-content {
        padding: 10px 0;
    }

    .azim-sidebar-search {
        padding: 0 15px 15px;
        margin-bottom: 5px;
    }

    .azim-sidebar-link {
        padding: 12px 20px;
    }

    .azim-dropdown-link {
        padding: 10px 20px 10px 35px;
    }

    .azim-subdropdown-link {
        padding: 8px 20px 8px 50px;
    }
}

/* حالت تاریک/روشن سازگار */
@media (prefers-color-scheme: light) {
    .azim-sidebar-container {
        background: #1a1a1a;
    }
}
/* سایدبار موبایل - اصلاح شده برای انیمیشن روان */
.azim-mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 1101;
    transition: right 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

    .azim-mobile-sidebar.azim-active {
        right: 0;
    }

.azim-sidebar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .azim-sidebar-overlay.azim-active {
        opacity: 1;
        visibility: visible;
    }

.azim-sidebar-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: var(--secondary-color);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    z-index: 1102;
    display: flex;
    flex-direction: column;
}

.azim-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.azim-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .azim-sidebar-logo img {
        width: 75px;
        height: 75px;
        object-fit: contain;
        border-radius: 5px;
        padding: 5px;
    }

.azim-brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    line-height: 1.2;
    gap: 5px;
}

    .azim-brand-name span {
        color: var(--primary-color);
        font-size: 1.4rem;
        font-weight: 700;
        display: flex;
        line-height: 1.2;
    }

.azim-close-sidebar {
    background: rgba(255, 107, 0, 0.2);
    border: 1px solid rgba(255, 107, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .azim-close-sidebar:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: rotate(90deg);
    }

/* محتوای سایدبار */
.azim-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

/* بخش جستجو - بهبود یافته */
.azim-sidebar-search {
    padding: 0 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.azim-search-wrapper {
    width: 100%;
}

.azim-search-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.azim-search-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    height: 50px;
}

    .azim-search-input-group:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
        background: rgba(255, 255, 255, 0.15);
    }

.azim-search-input {
    flex: 1;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.95rem;
    direction: rtl;
    outline: none;
    font-family: inherit;
}

    .azim-search-input::placeholder {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
    }

.azim-search-submit-btn {
    background: var(--primary-color);
    border: none;
    padding: 0 20px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    font-size: 1.1rem;
}

    .azim-search-submit-btn:hover {
        background: var(--primary-dark);
    }

    .azim-search-submit-btn:active {
        transform: scale(0.95);
    }

/* منوی ناوبری */
.azim-sidebar-nav {
    flex: 1;
    padding: 10px 0;
}

.azim-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    margin: 0;
}

.azim-sidebar-item {
    list-style: none;
    position: relative;
}

.azim-sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    border-right: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

    .azim-sidebar-link:hover,
    .azim-sidebar-link.azim-active {
        background: linear-gradient(90deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.05) 100%);
        color: var(--primary-color);
        border-right-color: var(--primary-color);
    }

    .azim-sidebar-link::before {
        content: '';
        position: absolute;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: right 0.6s ease;
    }

    .azim-sidebar-link:hover::before {
        right: 100%;
    }

.azim-sidebar-icon {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.azim-sidebar-link:hover .azim-sidebar-icon {
    transform: scale(1.1);
}

.azim-sidebar-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* دراپ‌داون‌ها */
.azim-sidebar-item.azim-has-dropdown .azim-dropdown-toggle {
    justify-content: space-between;
}

.azim-dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.azim-sidebar-item.azim-has-dropdown.azim-open .azim-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.azim-sidebar-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    background: rgba(0, 0, 0, 0.2);
    margin: 0;
    padding: 0;
}

.azim-sidebar-item.azim-has-dropdown.azim-open .azim-sidebar-dropdown {
    max-height: 800px;
}

.azim-dropdown-item {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.azim-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px 13px 35px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
}

    .azim-dropdown-link:hover {
        background: rgba(255, 107, 0, 0.1);
        color: var(--primary-color);
        padding-right: 40px;
    }

.azim-dropdown-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: inherit;
}

.azim-dropdown-text {
    flex: 1;
}

/* ساب‌دراپ‌داون - حالت دو ستونه */
.azim-dropdown-item.azim-has-subdropdown .azim-subdropdown-toggle {
    justify-content: space-between;
}

.azim-subdropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.azim-dropdown-item.azim-has-subdropdown.azim-open .azim-subdropdown-arrow {
    transform: rotate(-90deg);
    color: var(--primary-color);
}

.azim-sidebar-subdropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    background: rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
}

.azim-dropdown-item.azim-has-subdropdown.azim-open .azim-sidebar-subdropdown {
    max-height: 1000px;
}

/* استایل برای لیست‌های دو ستونه */
.azim-sidebar-subdropdown.azim-two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 15px 10px !important;
    max-height: none !important;
}

.azim-sidebar-subdropdown.azim-two-column .azim-subdropdown-item {
    list-style: none;
    margin: 0;
    padding: 0;
    border: none;
    border-top: none !important;
}

.azim-sidebar-subdropdown.azim-two-column .azim-subdropdown-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 100px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.azim-sidebar-subdropdown.azim-two-column .azim-subdropdown-link:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
    color: var(--primary-color);
}

/* استایل برای لوگوها در حالت دو ستونه */
.azim-sidebar-subdropdown.azim-two-column .azim-brand-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    transition: all 0.3s ease;
}

.azim-sidebar-subdropdown.azim-two-column .azim-subdropdown-link:hover .azim-brand-logo {
    transform: scale(1.15);
    background: rgba(255, 107, 0, 0.2);
}

/* استایل برای آیکون‌ها در حالت دو ستونه */
.azim-sidebar-subdropdown.azim-two-column .azim-subdropdown-bullet {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    width: auto;
    height: auto;
}

.azim-sidebar-subdropdown.azim-two-column .azim-subdropdown-link:hover .azim-subdropdown-bullet {
    color: var(--white);
    transform: scale(1.1);
}

/* استایل برای متن در حالت دو ستونه */
.azim-sidebar-subdropdown.azim-two-column .azim-subdropdown-link span:not(.azim-brand-logo) {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
    font-weight: 500;
}

/* استایل مخصوص برای مدل‌های خودرو (در صورت نیاز) */
.azim-models-list.azim-two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 15px 10px !important;
    max-height: none !important;
}

.azim-models-list.azim-two-column .azim-model-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.azim-models-list.azim-two-column .azim-model-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-height: 90px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.azim-models-list.azim-two-column .azim-model-link:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* آیتم‌های ساب‌دراپ‌داون معمولی */
.azim-subdropdown-item {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.azim-subdropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px 11px 50px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
    position: relative;
}

    .azim-subdropdown-link:hover {
        background: rgba(255, 107, 0, 0.1);
        color: var(--primary-color);
        padding-right: 55px;
    }

.azim-subdropdown-bullet {
    font-size: 0.8rem;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
}

.azim-subdropdown-link:hover .azim-subdropdown-bullet {
    opacity: 1;
    transform: translateX(-3px);
}

/* انیمیشن برای نمایش دو ستونه */
@keyframes azim-grid-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.azim-sidebar-subdropdown.azim-two-column {
    animation: azim-grid-fade-in 0.4s ease-out;
}

/* فوتر سایدبار */
.azim-sidebar-footer {
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    margin-top: auto;
}

.azim-sidebar-contact {
    margin-bottom: 20px;
}

.azim-contact-title {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

    .azim-contact-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 2px;
        background: var(--primary-color);
        border-radius: 1px;
    }

.azim-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.azim-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.azim-contact-icon {
    color: var(--primary-color);
    width: 16px;
    font-size: 0.9rem;
}

.azim-contact-text {
    flex: 1;
}

.azim-sidebar-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.azim-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .azim-social-link:hover {
        background: var(--primary-color);
        transform: translateY(-3px) scale(1.1);
        border-color: var(--primary-color);
    }

.azim-social-icon {
    font-size: 1.1rem;
}

/* انیمیشن‌های ورود آیتم‌های منو - اختیاری */
@keyframes azim-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.azim-sidebar-item {
    animation: azim-fade-in 0.3s ease-out forwards;
    opacity: 0;
}

    .azim-sidebar-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .azim-sidebar-item:nth-child(2) {
        animation-delay: 0.15s;
    }

    .azim-sidebar-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .azim-sidebar-item:nth-child(4) {
        animation-delay: 0.25s;
    }

    .azim-sidebar-item:nth-child(5) {
        animation-delay: 0.3s;
    }

    .azim-sidebar-item:nth-child(6) {
        animation-delay: 0.35s;
    }

    .azim-sidebar-item:nth-child(7) {
        animation-delay: 0.4s;
    }

/* اسکرول‌بار سفارشی */
.azim-sidebar-container::-webkit-scrollbar {
    width: 4px;
}

.azim-sidebar-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.azim-sidebar-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

    .azim-sidebar-container::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }

/* رسپانسیو برای دسکتاپ */
@media (min-width: 769px) {
    .azim-mobile-sidebar {
        display: none;
    }
}

/* رسپانسیو برای موبایل‌های کوچک */
@media (max-width: 576px) {
    .azim-sidebar-container {
        width: 85%;
        max-width: 300px;
    }

    .azim-search-input-group {
        height: 46px;
    }

    .azim-search-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .azim-search-submit-btn {
        padding: 0 16px;
        min-width: 50px;
    }

    .azim-sidebar-link {
        padding: 13px 15px;
    }

    .azim-sidebar-icon {
        font-size: 1.1rem;
    }

    .azim-sidebar-text {
        font-size: 0.9rem;
    }

    .azim-dropdown-link {
        padding: 11px 15px 11px 30px;
        font-size: 0.85rem;
    }

    /* تنظیمات دو ستونه در موبایل کوچک */
    .azim-sidebar-subdropdown.azim-two-column {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 12px 8px !important;
    }

    .azim-sidebar-subdropdown.azim-two-column .azim-subdropdown-link {
        padding: 12px 6px;
        min-height: 90px;
    }

    .azim-sidebar-subdropdown.azim-two-column .azim-brand-logo {
        width: 35px;
        height: 35px;
        margin-bottom: 8px;
    }

    .azim-sidebar-subdropdown.azim-two-column .azim-subdropdown-bullet {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .azim-sidebar-subdropdown.azim-two-column .azim-subdropdown-link span:not(.azim-brand-logo) {
        font-size: 0.8rem;
        height: 2.6em;
    }

    .azim-subdropdown-link {
        padding: 9px 15px 9px 40px;
        font-size: 0.8rem;
    }

    .azim-sidebar-footer {
        padding: 15px 12px;
    }

    .azim-contact-item {
        font-size: 0.8rem;
    }

    .azim-social-link {
        width: 36px;
        height: 36px;
    }
}

/* برای صفحات خیلی کوچک */
@media (max-width: 400px) {
    .azim-sidebar-subdropdown.azim-two-column {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .azim-sidebar-subdropdown.azim-two-column .azim-subdropdown-link {
        min-height: 80px;
        padding: 12px;
    }
}
.azim-sidebar-subdropdown.azim-two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 15px 10px !important;
}

/* برای صفحات با ارتفاع کم */
@media (max-height: 600px) {
    .azim-sidebar-content {
        padding: 10px 0;
    }

    .azim-sidebar-search {
        padding: 0 15px 15px;
        margin-bottom: 5px;
    }

    .azim-sidebar-link {
        padding: 12px 20px;
    }

    .azim-dropdown-link {
        padding: 10px 20px 10px 35px;
    }

    .azim-subdropdown-link {
        padding: 8px 20px 8px 50px;
    }
}

/* حالت تاریک/روشن سازگار */
@media (prefers-color-scheme: light) {
    .azim-sidebar-container {
        background: #1a1a1a;
    }
}
/* پشتیبانی از رتینا */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .azim-sidebar-container {
        border-left: 0.5px solid rgba(255, 255, 255, 0.1);
    }
}
@media (max-width: 768px) {
    .product-header {
        display: grid;
        grid-template-areas:
            "title title"
            "code brand";
        grid-template-columns: 1fr auto;
        gap: 10px;
        margin-bottom: 15px;
    }

    .product-title-code h3 {
        grid-area: title;
        margin: 0;
    }

    .product-title-code h4 {
        grid-area: code;
        align-self: center;
        margin: 0;
        font-size: 0.85rem;
        color: var(--text-light);
        padding: 5px 10px;
        background: rgba(0,0,0,0.05);
        border-radius: 4px;
        justify-self: start;
    }

    .product-brand {
        grid-area: brand;
        align-self: center;
        justify-self: end;
        margin: 0;
    }

    .product-title-code {
        display: contents; /* مهم: این باعث می‌شود children مستقیم در grid قرار گیرند */
    }
}
