/**
 * Mika Luxury Store - Front Page Stylesheet
 * File: 02-front-page.css
 * Path: assets/css/02-front-page.css
 * Scope: Front Page Only (Loaded conditionally on is_front_page())
 * Version: 1.0.0
 * Created By Pixit-ACHTUNg
 */

/* ====================================================================================================
   ---------------------- #37: Front Page - Full-Bleed Peek Hero Carousel Slider -----------------------
   ==================================================================================================== */

/*--- #37: Front Page - Full-Bleed Peek Hero Carousel Slider ---*/


/* ۱. بالا کشیدن اسلایدر و حذف فاصله خالی از زیر هدر */
.mika-hero-slider,
.wd-carousel.mika-hero-slider {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: -15px !important;                 /* بالا کشیدن اسلایدر جهت حذف فاصله اضافه با هدر */
    margin-bottom: 25px !important;
    box-sizing: border-box !important;
    direction: rtl !important;
    overflow: hidden !important;
}

/* نمایش آزادانه لبه‌های اسلایدهای کناری + ایجاد فضا برای افتادن سایه */
.mika-hero-slider .wd-carousel-wrap {
    overflow: visible !important;
    padding: 10px 0 15px 0 !important; /* ایجاد فضای تنفسی جهت بریده نشدن سایه در بالا و پایین */
}

/* ۳. انحنای گرد برگی + سایه نرم و لوکس خاکستری جهت تفکیک کامل مرز اسلایدها از یکدیگر */
.mika-hero-slider .wd-carousel-item .wp-block-wd-cover,
.mika-hero-slider .wd-carousel-item .wd-block-cover-img,
.mika-hero-slider .wd-carousel-item .wd-block-cover-img img {
    border-radius: 30px !important;
    overflow: hidden !important;
}

.mika-hero-slider .wd-carousel-item .wp-block-wd-cover {
    /* سایه نرم، سه‌بعدی و باکلاس خاکستری برای تفکیک شفاف مرز اسلایدها از هم */
    box-shadow: 0 10px 30px 0px rgba(0, 0, 0, 0.07) !important;
    border: 1px solid rgba(0, 0, 0, .04) !important; /* مرز بسیار محو و ظریف برای تفکیک لبه‌ها */
    background: transparent !important;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease !important;
}

.mika-hero-slider .wd-carousel-item .wd-block-cover-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* ۴. شفافیت ۱۰۰٪ کامل برای تمام اسلایدها (اسلاید وسط و کناری هر دو با وضوح و رنگ کامل) */
.mika-hero-slider .wd-carousel-item.wd-active {
    opacity: 1 !important;
    transform: scale(1) translateZ(0) !important;
}

/* اسلایدهای قبلی و بعدی: شفافیت کامل ۱۰۰٪ همراه با اسکیل بسیار نامحسوس */
.mika-hero-slider .wd-carousel-item:not(.wd-active) {
    opacity: 1 !important;                       /* شفافیت ۱۰۰٪ کامل و زنده مانند گیشا اسپرت */
    transform: scale(0.97) translateZ(0) !important; /* اسکیل بسیار ملایم برای عمق‌بخشی */
    transition: transform 0.35s ease !important;
}
/* ۵. استقرار دات‌های وودمارت (.wd-nav-pagin) روی بنر با کپسول شیشه‌ای و رنگ سرخابی کشیده */
.mika-hero-slider .wd-nav-pagin {
    position: absolute !important;
    bottom: 35px !important;                      /* قرارگیری مستقیم روی لبه پایینی تصویر بنر */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    margin-bottom: 25px !important;
    padding: 6px 14px !important;
    background: rgba(15, 23, 42, 0.25) !important; /* کپسول شیشه‌ای دودی مات */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 30px !important;
    border: 1px solid rgba(0, 0, 0, .04) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    list-style: none !important;
    z-index: 10 !important;
}

.mika-hero-slider .wd-nav-pagin-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

/* دات‌های عادی (سفید نیمه‌شفاف با سایه ملایم جهت خوانایی روی عکس‌های روشن) */
.mika-hero-slider .wd-nav-pagin-item span {
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
    border: none !important;
    opacity: 1 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* دات اسلاید فعال (.wd-active): کپسول کشیده سرخابی سازمانی (#C01157) */
.mika-hero-slider .wd-nav-pagin-item.wd-active span {
    width: 26px !important;                       /* کشیدگی مدرن و لوکس برای اسلاید در حال نمایش */
    height: 10px !important;
    border-radius: 10px !important;
    background-color: #C01157 !important;          /* رنگ سرخابی برند میکا */
    box-shadow: 0 0 10px rgba(192, 17, 87, 0.8) !important;
}

.mika-hero-slider .wd-carousel-item:active .wp-block-wd-cover {
    transform: scale(0.96) translateZ(0) !important;
    transition: transform 0.2s ease !important;
}

/* ==========================================================================
   ۶. بهینه‌سازی اختصاصی هیروسکشن در تبلت و موبایل (رفع فاصله‌ها، سنتر دات‌ها و مهار سایه)
   ========================================================================== */

/* الف) تبلت (iPad و نمایشگرهای تا ۱۰۲۴ پیکسل) */
@media (max-width: 1024px) {
    /* ۱. حذف فاصله زیاد تا هدر و هماهنگی کامل با دسکتاپ */
    .mika-hero-slider,
    .wd-carousel.mika-hero-slider {
        margin-top: -25px !important;
        margin-bottom: 25px !important;
    }

    /* ۲. ملایم‌تر کردن شدت سایه خاکستری در تبلت */
    .mika-hero-slider .wd-carousel-item .wp-block-wd-cover {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05) !important;
        border-color: rgba(0, 0, 0, 0.03) !important;
    }

    /* ۳. تراز دقیق کپسول دات‌ها در مرکز هندسی اسلاید وسط (رفع انحراف به چپ) */
    .mika-hero-slider .wd-nav-pagin {
        left: 50% !important;
        transform: translateX(calc(-50% + 3px)) !important; /* شیفت ملایم به راست جهت سنتر شدن ۱۰۰٪ */
    }
}

/* ب) موبایل (گوشی‌های هوشمند تا ۷۶۷ پیکسل) */
@media (max-width: 767px) {
    /* ۱. حذف فاصله زیاد تا هدر در موبایل */
    .mika-hero-slider,
    .wd-carousel.mika-hero-slider {
        margin-top: -25px !important;
        margin-bottom: 25px !important;
    }

    /* ۲. یکسان‌سازی انحنای تمام لایه‌ها و حذف ۱۰۰٪ سفیدی دور گوشه‌ها */
    .mika-hero-slider .wd-carousel-item .wp-block-wd-cover,
    .mika-hero-slider .wd-carousel-item .wd-block-cover-img,
    .mika-hero-slider .wd-carousel-item .wd-block-cover-img img {
        border-radius: 20px !important;
        background-color: transparent !important; /* حذف پس‌زمینه سفید عامل هاله گوشه‌ها */
        overflow: hidden !important;
    }

    /* ملایم و محو کردن سایه خاکستری در موبایل */
    .mika-hero-slider .wd-carousel-item .wp-block-wd-cover {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.03) !important;
    }

    /* ۳. کشیدن کپسول دات‌ها به داخل محدوده خود عکس (با فاصله شیک از کف) */
    .mika-hero-slider .wd-nav-pagin {
        bottom: 30px !important;                  /* استقرار در داخل کادر عکس */
        margin-bottom: 30px !important;              /* خنثی‌سازی پرتاب به زیر عکس */
        padding: 4px 10px !important;
        background: rgba(15, 23, 42, 0.28) !important;
    }

    .mika-hero-slider .wd-nav-pagin-item span {
        width: 6px !important;
        height: 6px !important;
    }

    .mika-hero-slider .wd-nav-pagin-item.wd-active span {
        width: 18px !important;
        height: 6px !important;
    }

    /* مخفی‌سازی دکمه‌های ناوبری */
    .mika-hero-slider .wd-nav-arrow,
    .mika-hero-slider .swiper-button-prev,
    .mika-hero-slider .swiper-button-next {
        display: none !important;
    }
}


/* ====================================================================================================
   ----------------------- #38: Front Page - Floating Features & Trust Perks Bar -----------------------
   ==================================================================================================== */

/*--- #38: Front Page - Floating Features & Trust Perks Bar ---*/

/* کانتینر اصلی نوار با همپوشانی ملایم با انتهای اسلایدر */
.mika-luxury-perks-wrap {
    width: 100% !important;
    max-width: 1220px !important;
    margin: -15px auto 40px auto !important;
    padding: 0 15px !important;
    position: relative !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
    direction: rtl !important;
}

/* کپسول سفید شناور با سایه ابریشمی و فرم برگی اختصاصی */
.mika-perks-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 24px 6px 24px 6px !important; /* فرم برگی امضای برند میکا */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    padding: 16px 20px !important;
    box-sizing: border-box !important;
}

.mika-perk-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 4px 10px !important;
    position: relative !important;
    cursor: default !important;
}

.mika-perk-item:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 15% !important;
    height: 70% !important;
    width: 1px !important;
    background-color: #f1f5f9 !important;
}

/* ۱. استقرار فریم آیکون با تناسب ریاضی ۱.۵ برابر نسبت به viewBox ۲۴ */
.mika-perk-icon-box {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transform-origin: center center !important;
    /* قفل دائمی فایرفاکس روی بستر سه‌بعدی برای جلوگیری ۱۰۰٪ از پرش ۱ پیکسلی بازگشت */
    transform: perspective(1px) translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    filter: blur(0px) !important;
    will-change: transform !important;
    transition: transform 0.24s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* وکتور با ابعاد رُند ۳۶px بدون اعشار بی‌نهایت و قفل رندر هندسی */
.mika-perk-icon-box svg {
    width: 36px !important;
    height: 36px !important;
    stroke: #C01157 !important;
    display: block !important;
    transform: none !important;
    shape-rendering: geometricPrecision !important; /* اولویت دقت هندسی بر اسنپ پیکسلی فایرفاکس */
    pointer-events: none !important;
}

/* ۲. اسکیل پایدار سه‌بعدی بدون رندر مجدد فونت/وکتور در فریم پایانی */
.mika-perk-item:hover .mika-perk-icon-box {
    transform: perspective(1px) scale3d(1.15, 1.15, 1) translateZ(0) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ۳. تایپوگرافی خاکستری متین و لوکس با فونت Vazirmatn */
.mika-perk-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    text-align: right !important;
}

.mika-perk-title {
    font-family: "Vazirmatn", sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #475569 !important;               /* رنگ خاکستری تیره شیک */
    line-height: 1.3 !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
    transition: color 0.2s ease !important;
}

.mika-perk-item:hover .mika-perk-title {
    color: #C01157 !important;
}

/* زیرنویس ظریف و روشن برای ۵ میلیون تومان */
.mika-perk-sub {
    font-family: "Vazirmatn", sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* ۴. بهینه‌سازی اختصاصی تبلت (کاهش فاصله با هیرو + چیدمان تک‌ردیفه ۴تایی لوکس) */
@media (min-width: 601px) and (max-width: 1024px) {
    /* کاهش فاصله و همپوشانی ملایم ۱۰ پیکسلی با انتهای اسلایدر */
    .mika-luxury-perks-wrap {
        margin: -35px auto 25px auto !important; /* بالا کشیدن کپسول جهت کاهش فاصله و چفت شدن با اسلایدر */
        padding: 0 15px !important;
    }

    /* ۱. تبدیل به یک ردیف ۴ تایی باوقار در تبلت */
    .mika-perks-container {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        padding: 12px 14px !important;
        border-radius: 20px 6px 20px 6px !important;
    }

    /* ۲. فعال‌سازی خطوط جداکننده عمودی محو بین ۴ آیتم */
    .mika-perk-item:not(:last-child)::after {
        display: block !important;
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 20% !important;
        height: 60% !important;
        width: 1px !important;
        background-color: #f1f5f9 !important;
    }

    .mika-perk-item {
        justify-content: center !important;
        padding: 2px 4px !important;
        gap: 8px !important;
    }

    /* تناسب ابعاد آیکون برای قرارگیری در یک خط */
    .mika-perk-icon-box {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    .mika-perk-icon-box svg {
        width: 28px !important;
        height: 28px !important;
    }

    .mika-perk-title {
        font-size: 11.5px !important;
        white-space: nowrap !important;
        letter-spacing: -0.3px !important;
    }

    .mika-perk-sub {
        font-size: 9px !important;
        white-space: nowrap !important;
    }
}

/* ب) موبایل: گوشی‌های هوشمند تا ۶۰۰ پیکسل (سنتر کامل ۲×۲ + حذف خط اضافه + همپوشانی شیک با هیرو) */
@media (max-width: 600px) {
    /* ۱. بالا کشیدن قوی کادر (مشابه تبلت) جهت رفع قطعی فاصله زیاد با اسلایدر */
    .mika-luxury-perks-wrap {
        padding: 0 12px !important;
        margin: -32px auto 25px auto !important; /* مارجین منفی -32px برای چفت شدن کامل با اسلایدر */
    }

    /* ۲. تراز ۱۰۰٪ کل مجموعه در مرکز کادر (فاصله مساوی از لبه چپ و راست) */
    .mika-perks-container {
        display: grid !important;
        grid-template-columns: repeat(2, auto) !important; /* اندازه متناسب با محتوا */
        justify-content: center !important;                /* سنتر شدن کل ۴ آیتم در وسط باکس */
        gap: 12px 24px !important;                         /* ۱۲px فاصله عمودی و ۲۴px فاصله بین دو ستون */
        padding: 14px 12px !important;
        border-radius: 18px 4px 18px 4px !important;
    }

    .mika-perk-item {
        justify-content: flex-start !important;
        padding: 0 !important;
        gap: 7px !important;
        position: relative !important;
    }

    /* ۳. 🚫 حذف کامل خطوط جداکننده و ایجاد فقط ۱ خط تمیز در وسط دو ستون 🚫 */
    .mika-perk-item::after {
        display: none !important;                          /* حذف خط اضافه از ستون چپ */
    }

    /* فقط ستون راست یک خط جداکننده در وسط دو ستون داشته باشد */
    .mika-perk-item:nth-child(2n+1)::after {
        display: block !important;
        content: '' !important;
        position: absolute !important;
        left: -12px !important;                            /* استقرار دقیق خط در وسط گپ ۲۴ پیکسلی */
        top: 15% !important;
        height: 70% !important;
        width: 1px !important;
        background-color: #f1f5f9 !important;
    }

    /* ابعاد آیکون */
    .mika-perk-icon-box {
        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;
        flex-shrink: 0 !important;
    }

    .mika-perk-icon-box svg {
        width: 25px !important;
        height: 25px !important;
    }

    .mika-perk-text {
        text-align: right !important;
    }

    .mika-perk-title {
        font-size: 11px !important;
        white-space: nowrap !important;
        letter-spacing: -0.3px !important;
    }

    .mika-perk-sub {
        font-size: 8.5px !important;
        white-space: nowrap !important;
    }
}
