/* =========================
   Layout Base
========================= */
.page-container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

    .section-head h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #222;
    }

.view-all {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .view-all:hover {
        color: #875692;
    }

/* =========================
   Hero Slider
========================= */
.hero-slider {
    width: 100%;
    /* حذف ارتفاع ثابت برای تغییر سایز داینامیک */
    height: auto;
    /* تنظیم نسبت تصویر بر اساس ابعاد بنرتان (مثلاً اگر بنر شما 1200 در 400 است، نسبت می‌شود 3/1 یا هر نسبت دلخواه) */
    aspect-ratio: 16 / 6;
    border-radius: 20px;
    margin-top: 10px;
    overflow: hidden;
}

    .hero-slider .swiper-slide {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
    }

        .hero-slider .swiper-slide img {
            width: 100%;
            height: 100%;
            /* استفاده از contain یا تغییر رفتار نمایش */
            object-fit: cover;
        }


.slide-content {
    position: absolute;
    width: 90%;
    max-width: 800px;
    padding: 20px;
    z-index: 10;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

    .slide-content h2 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }


/* =========================
   Store Benefits
========================= */
.store-benefits {
    padding: 24px 0;
    background: transparent;
}

.benefits-container {
    width: min(1100px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(135, 86, 146, 0.08);
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(135, 86, 146, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

    .benefit-item:hover {
        transform: translateY(-5px);
        background: #fff;
        border-color: #875692;
        box-shadow: 0 12px 25px rgba(135, 86, 146, 0.12);
    }

.benefit-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(135, 86, 146, 0.1), rgba(135, 86, 146, 0.05));
    color: #875692;
    font-size: 20px;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: #875692;
    color: #fff;
    transform: rotate(-5deg) scale(1.1);
}

.benefit-text h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #2f2233;
}

.benefit-text p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}
/* =========================
   Categories
========================= */
.categories {
    width: min(1100px, 92%);
    margin: 30px auto;
}

.categories-swiper {
    position: relative;
}


.category-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(135, 86, 146, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    background: #fff;
    position: relative;
}

    .category-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(135, 86, 146, 0.10), transparent 50%);
        pointer-events: none;
    }

    .category-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

.category-title {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #2f2233;
    line-height: 1.7;
}

.category-card:hover {
    transform: translateY(-6px);
}

    .category-card:hover .category-image {
        box-shadow: 0 16px 30px rgba(135, 86, 146, 0.18);
    }

        .category-card:hover .category-image img {
            transform: scale(1.08);
        }

/* =========================
   Products Section
========================= */
.products-section {
    width: min(1100px, 92%);
    margin: 30px auto;
}


.products-swiper {
    padding: 10px 0 40px;
}

    .products-swiper .swiper-slide {
        height: auto;
    }

.product-card {
    height: 100%;
}

/* =========================
   Special Offer Banner
========================= */
.special-offer-banner {
    width: min(1100px, 92%);
    margin: 50px auto;
    background: linear-gradient(135deg, #4b2354, #6d3d78, #875692);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(75, 35, 84, 0.35);
    position: relative;
}

    .special-offer-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 35%);
        pointer-events: none;
    }

.offer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.offer-text {
    flex: 1;
    color: #fff;
}

.offer-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}

.offer-text h2 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
}

.offer-text p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.9;
    opacity: 0.95;
}

.offer-btn {
    display: inline-block;
    background: #fff;
    color: #6d3d78;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

    .offer-btn:hover {
        background: #f5eef7;
        transform: translateY(-2px);
    }

.offer-image {
    flex: 0 0 320px;
    text-align: center;
}

    .offer-image img {
        max-width: 100%;
        max-height: 220px;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.18);
        transition: transform 0.3s ease;
    }

        .offer-image img:hover {
            transform: scale(1.05);
        }

/* =========================
   Empty State
========================= */
.empty-state {
    width: min(1100px, 92%);
    margin: 16px auto 0;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px dashed #ddd;
    color: #666;
    text-align: center;
    font-size: 14px;
}

/* =========================
   Swiper Buttons
========================= */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

/* =========================
   Header Theme Color
   اگر هدر در site.css یا layout.css است
   این کد را آنجا هم می‌توانی ببری
========================= */
header,
.navbar,
.site-header,
.top-header {
    background: #875692 !important;
}

    header a,
    .navbar a,
    .site-header a,
    .top-header a {
        color: #fff;
    }

/* =========================
   Responsive
========================= */




/* FAQ Section Styles */
.faq-section {
    width: min(1100px, 92%);
    margin: 50px auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(135, 86, 146, 0.11);
    border-radius: 18px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .faq-item[open] {
        border-color: #875692;
        box-shadow: 0 8px 20px rgba(135, 86, 146, 0.1);
    }

.faq-question {
    font-weight: 800;
    color: #2a102f;
    font-size: 15px;
    list-style: none; /* حذف دکمه پیش‌فرض مرورگر */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    /* افزودن آیکون باز و بسته شدن به صورت اختصاصی */
    .faq-question::after {
        content: "\f078"; /* آیکون FontAwesome */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 12px;
        color: #875692;
        transition: transform 0.3s ease;
    }

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(135, 86, 146, 0.08);
    color: #5d4a63;
    font-size: 13px;
    line-height: 1.8;
}


@media (max-width: 992px) {
    .hero-slider {
        /* تغییر نسبت تصویر در تبلت در صورت نیاز، یا رها کردن به عهده مقدار پیش‌فرض */
        height: auto;
        aspect-ratio: 16 / 7;
    }

    .benefits-container {
        grid-template-columns: repeat(2, 1fr);
    }



    .offer-content {
        flex-direction: column;
        text-align: center;
    }

    .offer-image {
        flex: unset;
    }


    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {


    .hero-slider {
        height: auto;
        /* در موبایل اسلایدر کمی عمودی‌تر (مربعی‌تر) می‌شود تا محتوای متنی جا شود */
        aspect-ratio: 16 / 7;
        border-radius: 16px;
    }

    .section-head {
        align-items: flex-start;
        gap: 8px;
    }

    .benefits-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .benefit-item {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 10px 6px;
        gap: 6px;
        min-height: 92px;
    }

    .benefit-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

        .benefit-icon i {
            font-size: 15px;
        }

    .benefit-text p {
        display: none;
    }

    .benefit-text h3 {
        font-size: 11px;
        line-height: 1.5;
    }

    .categories {
        width: min(1100px, 95%);
    }

    .categories-swiper {
        padding-top: 6px;
    }

    .category-title {
        font-size: 11.5px;
        margin-top: 8px;
        line-height: 1.5;
        font-weight: 800;
    }

    .category-image {
        border-radius: 15px;
    }

    .categories {
        width: min(1100px, 95%);
    }

    .slide-content {
        padding: 16px;
    }

        .slide-content h2 {
            font-size: 1.1rem;
        }

        .slide-content p {
            font-size: 0.75rem;
        }

    .offer-text h2 {
        font-size: 18px;
    }

    .offer-text p {
        font-size: 10px;
    }

    .offer-content {
        padding: 22px;
    }

    .offer-image img {
        max-height: 180px;
    }

    .products-section {
        margin: 32px auto;
    }

    .special-offer-banner {
        margin: 40px auto;
        border-radius: 18px;
    }
}


