/* Featured Products Swiper */
.featured-products {
    padding: 50px 0;
    background-color: #fff;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #961ae8;
}

.featuredProductsSwiper {
    padding: 0 20px;
}

.featuredProductsSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
    width: 90%;
    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 285px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.product-card p {
    color: #961ae8;
    font-weight: bold;
    margin: 10px 0;
}

.product-card button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
}

/* دکمه‌های ناوش */

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 24px;
}

/* پاگینیشن */
.swiper-pagination-bullet {
    background: #961ae8;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}
/* Customer Reviews */
.customer-reviews {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.customer-reviews h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #961ae8;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.review-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.review-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.review-card h3 {
    font-size: 16px;
    color: #333;
    margin: 10px 0;
}

.review-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
/* Location Map */
.location {
    padding: 50px 0;
    background: #fff;
}

.location h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #961ae8;
}

.map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map iframe {
    width: 100%;
    height: 400px;
    border: 0;
}
/* Special Offers */
.special-offers {
    padding: 50px 0;
    background: #f8f9fa;
}

.special-offers h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #961ae8;
}

.specialOffersSwiper {
    padding: 0 20px;
}

.specialOffersSwiper .swiper-slide {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.specialOffersSwiper .swiper-slide:hover {
    transform: scale(1.02);
}
/* FAQ */
.faq {
    padding: 50px 0;
    background: #fff;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #961ae8;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-item h3 {
    padding: 20px;
    margin: 0;
    font-size: 16px;
    cursor: pointer;
    background: #f8f9fa;
    color: #333;
    transition: background 0.3s;
}

.faq-item h3:hover {
    background: #e9ecef;
}

.faq-item p {
    padding: 0 20px 20px;
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    display: none;
}

.faq-item.active p {
    display: block;
}
@media (max-width: 768px) {
    .product-grid, .review-grid {
        grid-template-columns: 1fr;
    }
    .map iframe {
        height: 300px;
    }
    .specialOffersSwiper .swiper-slide {
        height: 250px;
    }
}

@media (max-width: 768px) {
    /* استایل‌های مربوط به موبایل */
    h1 {
        font-size: 24px;
        text-align: center;
        padding-right: 0;
    }

    .search-container {
        flex-direction: column;
        align-items: center;
    }

    .search-container input {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-container button {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr; /* یک ستون برای موبایل */
    }

    .review-grid {
        grid-template-columns: 1fr; /* یک ستون برای موبایل */
    }

    .faq-list {
        padding: 0 10px;
    }

    .map iframe {
        width: 100%;
        height: 300px;
    }

    .customer-reviews .review-card {
        margin-bottom: 20px;
    }

    .special-offers img {
        width: 100%;
        height: auto;
    }
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-card h3 {
    font-size: 18px;
    margin: 10px 0;
}

.product-card p {
    font-size: 16px;
    color: #333;
}

.product-card button {
    background-color: #961ae8;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-card button:hover {
    background-color: #961ae8;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.review-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.review-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.review-card h3 {
    font-size: 18px;
    margin: 10px 0;
}

.review-card p {
    font-size: 14px;
    color: #555;
}

.faq-list {
    padding: 20px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    cursor: pointer;
}

.faq-item p {
    font-size: 14px;
    color: #555;
    display: none; /* مخفی کردن پاسخ‌ها به صورت پیش‌فرض */
}

.faq-item.active p {
    display: block; /* نمایش پاسخ‌ها هنگام فعال شدن */
}
.map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 10px;
}

/* اسلایدر اصلی */
.slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9; /* نسبت تصویر را تنظیم کنید (مثلاً 16:9) */
}

.main-slider {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* تنظیمات ناوبری */
.swiper-button-prev,
.swiper-button-next {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
}

/* صفحه‌بندی */
.swiper-pagination {
    bottom: 20px;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: #961ae8;
    opacity: 1;
}

/* رسپانسیو برای دستگاه‌های مختلف */
@media (max-width: 1200px) {
    .slider-container {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .slider-container {
        aspect-ratio: 1/1;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}