/* =========================================
   HERO SLIDER
   ========================================= */
/* 1. تنظیمات کلی سکشن */
.hero-slider-section {
    position: relative;
    overflow: hidden;
}

/* 2. تنظیمات آیتم اسلایدر و نگهدارنده تصویر */
.hero-slide-item {
    position: relative;
    height: 600px; /* ارتفاع پیش‌فرض دسکتاپ */
    overflow: hidden;
}

/* نگهدارنده تصویر برای پشتیبانی از تگ picture */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* استایل تصاویر (هم موبایل هم دسکتاپ) */
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* پر کردن فضا بدون دفرمه شدن */
    object-position: center;
    display: block;
}

/* لایه تاریک روی عکس */
.hero-slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* کمی تیره‌تر برای خوانایی بهتر */
    z-index: 1;
    pointer-events: none;
}

/* کانتینر بوت‌استرپ (برای قرارگیری محتوا روی عکس) */
.hero-slide-item .container {
    position: relative;
    height: 100%; /* ارتفاع کامل برای وسط‌چین کردن */
    z-index: 2;
}

/* =========================================
   3. استایل کادر متن (نسخه دسکتاپ)
   ========================================= */
.hero-text-box {
    position: absolute;
    top: 70%;
    right: 12%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    padding: 35px;
    max-width: 450px;
    border-radius: 25px;
    text-align: right;

    /* انیمیشن ورود */
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s ease-out;
}

/* فعال شدن انیمیشن وقتی اسلاید نمایش داده می‌شود */
.swiper-slide-active .hero-text-box {
    opacity: 1;
    transform: translateY(-50%);
}

/* تایپوگرافی دسکتاپ */
.hero-text-box h1 {
    font-weight: 900;
    color: var(--c-dark-blue);
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.hero-text-box p {
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

/* =========================================
   4. دکمه‌های ناوبری (فلش‌ها)
   ========================================= */
.swiper-button-prev, .swiper-button-next {
    color: var(--c-dark-blue);
    background: rgba(255, 255, 255, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-prev:hover, .swiper-button-next:hover {
    background: var(--c-primary);
    color: #fff;
}

/* =========================================
   5. ریسپانسیو (تبلت)
   ========================================= */
@media (max-width: 992px) {
    .hero-slide-item {
        height: 500px;
    }

    .hero-text-box {
        max-width: 380px;
        right: 50%;
        /* وسط چین در تبلت */
        transform: translate(50%, -50%);
        text-align: center;
    }

    .swiper-slide-active .hero-text-box {
        transform: translate(50%, -50%);
    }
}

/* =========================================
   6. ریسپانسیو (موبایل - تنظیمات نهایی)
   ========================================= */
@media (max-width: 768px) {
    .hero-slide-item {
        height: 80vh; /* ارتفاع بلند در موبایل */
        min-height: 500px;
    }

    .hero-text-box {
        /* موقعیت دقیق در مرکز صفحه */
        top: 80% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;

        /* حالت شروع انیمیشن: وسط افقی، کمی پایین‌تر از وسط عمودی */
        transform: translate(-50%, -30%) !important;

        /* ابعاد و ظاهر */
        width: 85%;
        max-width: 320px;
        padding: 20px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.85);
        text-align: center;
    }

    /* انیمیشن پایان در موبایل: دقیقاً وسط در وسط */
    .swiper-slide-active .hero-text-box {
        opacity: 1;
        transform: translate(-50%, -50%) !important;
    }

    /* حذف تیتر H1 */
    .hero-text-box h1 {
        display: none;
    }

    /* کوچک کردن متن */
    .hero-text-box p {
        font-size: 0.9rem;
        margin-top: 5px;
        margin-bottom: 15px;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* نمایش حداکثر 3 خط */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* کوچک کردن دکمه */
    .hero-text-box .btn {
        font-size: 0.85rem;
        padding: 8px 25px;
        width: auto;
        min-width: 120px;
    }

    /* کوچک کردن دکمه‌های ناوبری */
    .swiper-button-prev, .swiper-button-next {
        width: 35px;
        height: 35px;
    }

    .swiper-button-prev::after, .swiper-button-next::after {
        font-size: 14px;
    }
}

/* Haftgel Story Section */
.haftgel-section {
    background-color: #fff;
}

.haftgel-image-box {
    position: relative;
    padding: 20px;
}

.haftgel-image-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    border: 2px solid var(--c-gold);
    z-index: 0;
    border-radius: 20px 0 20px 0;
}

.haftgel-image-box .main-img {
    position: relative;
    z-index: 1;
    border-radius: 20px 0 20px 0;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 40px;
    background: var(--c-dark-blue);
    color: #fff;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.experience-badge .year {
    font-size: 32px;
    font-weight: 900;
    color: var(--c-gold);
    line-height: 1;
}

.experience-badge .text {
    font-size: 11px;
    opacity: 0.9;
}

.decoration-circle {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--c-gold);
    opacity: 0.05;
    border-radius: 50%;
}

.decoration-pattern {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--c-primary) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.1;
}

.element-card {
    background: #fff;
    padding: 15px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.element-card i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--c-dark-blue);
    transition: 0.3s;
}

.element-card span {
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.hover-up-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--c-gold);
}

.hover-up-card:hover .icon-water {
    color: #3498db;
}

.hover-up-card:hover .icon-fire {
    color: #e74c3c;
}

.hover-up-card:hover .icon-earth {
    color: #8B5A2B;
}

.hover-up-card:hover .icon-air {
    color: #87CEEB;
}

/* Special Offers Section */
.special-offers-section {
    background-color: var(--c-dark-blue);
    padding: 60px 0;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C99E33' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.special-offers-container {
    background-color: var(--c-dark-blue);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10, 36, 79, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C99E33' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.special-sidebar {
    background: linear-gradient(135deg, var(--c-primary), #a05a2c);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    color: #fff;
}

.special-sidebar img {
    max-width: 80%;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2));
}

.special-swiper-container {
    padding: 30px;
}

.product-card-special {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    height: 100%;
    transition: 0.3s;
    border: 1px solid #eee;
}

.product-card-special:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card-special img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Workshop Banner */
.promo-banner-bg {
    height: 400px;
}

/* Comparison Slider */
.comparison-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    overflow: hidden;
    border-radius: 30px;
    cursor: grab;
    user-select: none;
}

.comparison-container:active {
    cursor: grabbing;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.comparison-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-image.before {
    width: 50%;
    z-index: 2;
    border-right: 2px solid #fff;
}

.comparison-image.before img {
    width: 900px;
    height: 100%;
}

.slider-handle-dotted {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 40px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.handle-btn-glass {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    font-size: 20px;
}

.dot-line {
    width: 2px;
    flex-grow: 1;
    background: repeating-linear-gradient(to bottom, #fff, #fff 5px, transparent 5px, transparent 10px);
    opacity: 0.7;
}

/* Video Section */
.mid-page-video-wrapper {
    position: relative;
    height: 500px;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 79, 0.4);
    z-index: 1;
}

.overlay-content {
    position: relative;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
}

.backdrop-blur {
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.backdrop-blur:hover {
    background-color: #fff;
    color: var(--c-dark-blue);
}

/* Credit Sales */
.credit-sales-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: 0.3s;
    height: 80px;
}

.credit-sales-item:hover {
    border-color: var(--c-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.credit-sales-item i {
    font-size: 30px;
    color: var(--c-dark-blue);
}

.credit-sales-item span {
    font-weight: 700;
    color: #555;
}
