/* ============================================================
   Home.css — Emperatoory Bargh (Red / Gray / White)
   صفحه‌ی اصلی: اسلایدر محصولات، قاب بخش‌ها، اسلایدر برندها، نقطه‌های اسلایدر اصلی
   همه‌ی استایل‌ها زیر کلاس‌های .home-slider / .brand-slider / .ss-pagination
   نوشته شده تا روی صفحه‌ی لیست محصولات (Product.css) اثر نگذارد.
   این فایل باید بعد از style.css و Product.css لود شود.
   ============================================================ */

:root {
    --hm-ink: #082B59; /* Deep Navy (Primary) */
    --hm-blue: #124A91; /* Corporate Blue (Secondary) */
    --hm-accent: #477BAF; /* Steel Blue (Accent) */
    --hm-steel: #536273; /* Steel Gray */
    --hm-gold: #FFD54F; /* Golden Yellow (CTA / Highlight) */
    --hm-ice: #EAF2FB; /* Ice Blue (Background) */
    --hm-text: #263442; /* Graphite (Text Primary) */
    --hm-muted: #66727D; /* Text Secondary */
    --hm-line: #D9E1EA; /* Border */
    --hm-disabled: #A8B3BE; /* Disabled */
    --hm-line-soft: #EAF2FB;
    --hm-red: #124A91; /* نام قدیمی؛ فعلاً آبی شرکتی تا بقیه کدها نشکنند */
    --hm-red-dark: #082B59;
    --hm-red-soft: #EAF2FB;
}

/* ============================================================
   1) اسلایدر محصولات
   ============================================================ */
.home-slider {
    position: relative;
    display: block !important;
    overflow: visible;
    padding: 6px 4px !important;
}

/* ظرف‌های style.css / Product.css ارتفاع ثابت می‌گیرند؛ اینجا آزاد می‌شوند */
.home-slider,
.home-slider .boxItem,
.home-slider .swipercontainerfilmstrip,
.home-slider .swiper-wrapper {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* فضای خالی بالا/پایین تا بالا‌آمدن کارت با hover بریده نشود */
.home-slider .boxItem {
    padding: 8px 0 14px !important;
}

.home-slider .swiper-wrapper {
    align-items: stretch;
}

.home-slider .swiper-slide {
    height: auto;
    display: flex;
}

    .home-slider .swiper-slide > a {
        display: block;
        width: 100%;
        height: 100%;
    }

.home-slider .gallery {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: visible; /* Product.css: overflow:hidden */
}

/* ---------- کارت ---------- */
.home-slider .box1 {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0 5px;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 16px;
    box-shadow: none;
    transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s cubic-bezier(.22,.61,.36,1), border-color .3s ease;
}

    .home-slider .box1:hover {
        transform: translateY(-4px);
        border-color: var(--hm-red);
        box-shadow: 0 14px 28px rgba(35, 38, 43, .12);
    }

/* ---------- تصویر ---------- */
.home-slider .galleryIamge {
    position: relative;
    flex: 0 0 auto;
    display: block;
    width: 100%;
    height: 170px;
    overflow: hidden;
    border-radius: 0;
    background: linear-gradient(180deg, #fafafa 0%, #f4f5f6 100%);
}

    .home-slider .galleryIamge:after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--hm-line), transparent);
    }

    .home-slider .galleryIamge img {
        display: block !important;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 8px;
        box-sizing: border-box;
        object-fit: contain;
        transition: opacity .35s ease, transform .45s cubic-bezier(.22,.61,.36,1);
    }

        .home-slider .galleryIamge img:first-child {
            opacity: 1;
            z-index: 2;
        }

        .home-slider .galleryIamge img:last-child {
            opacity: 0;
            z-index: 1;
        }

.home-slider .box1:hover .galleryIamge img:first-child {
    opacity: 0;
    transform: scale(1.04);
}

.home-slider .box1:hover .galleryIamge img:last-child {
    opacity: 1;
    transform: scale(1.04);
}

/* ---------- عنوان ---------- */
.home-slider .galleryTitle {
    flex: 0 0 auto;
    height: 62px;
    margin: 0;
    padding: 14px 14px 6px;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
}

    .home-slider .galleryTitle span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 42px;
        padding: 0;
        font-family: yekan2, YEKAN, sans-serif;
        font-size: 13px;
        font-weight: 500;
        line-height: 21px;
        color: var(--hm-text);
        transition: color .2s ease;
    }

.home-slider .box1:hover .galleryTitle span {
    color: var(--hm-red);
}

/* ---------- قیمت ---------- */
.home-slider .galleryPrice {
    flex: 0 0 auto;
    height: 78px !important;
    margin-top: auto;
    padding: 8px 12px 10px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

    .home-slider .galleryPrice .pfirst2 {
        display: block;
        font-family: iranNum, sans-serif;
    }

/* ردیف: قیمت قبل از تخفیف + برچسب درصد */
.home-slider .hs-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 5px;
}

    .home-slider .hs-price-row .pfirst2.takh {
        display: inline-block;
        order: 0;
        margin: 0;
        font-size: 11.5px;
        color: var(--hm-muted);
        text-decoration: line-through;
    }

    .home-slider .hs-discount-badge {
        display: inline-block;
        direction: ltr;
        padding: 3px 7px;
        border-radius: 999px;
        background: var(--hm-gold);
        color: var(--hm-ink);
        font-family: iranNum, sans-serif;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: .2px;
        white-space: nowrap;
    }
/* قیمت نهایی: چیپ ملایم قرمز */
.home-slider .galleryPrice .pfirst2.all {
    display: inline-block;
    order: 0;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--hm-red-soft);
    color: var(--hm-ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 20px;
}

    .home-slider .galleryPrice .pfirst2.all::after {
        content: " تومان";
        margin-right: 3px;
        font-size: 10.5px;
        font-weight: 600;
        color: var(--hm-red);
    }

/* ناموجود */
.home-slider .hs-soldout {
    align-self: stretch;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .home-slider .hs-soldout span {
        display: inline-block;
        padding: 5px 18px;
        border-radius: 999px;
        background: var(--hm-muted);
        color: #fff;
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: .2px;
    }

/* کرایه (در صورت استفاده) */
.home-slider .Lpfirst {
    float: none;
    width: auto;
    margin-top: 4px;
    font-size: 11px;
    font-weight: normal;
    color: var(--hm-muted);
    text-align: center;
}

/* ---------- دکمه‌های راست/چپ ---------- */
.home-slider .swiper-button-next,
.home-slider .swiper-button-prev {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    margin-top: 0 !important;
    width: 38px !important;
    height: 38px !important;
    transform: translateY(-50%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background-color: var(--hm-ink) !important;
    background-image: none !important;
    box-shadow: 0 3px 8px rgba(35, 38, 43, .25);
    opacity: 1 !important;
    cursor: pointer;
    z-index: 20;
    transition: background-color .2s ease;
}

    .home-slider .swiper-button-next:before,
    .home-slider .swiper-button-prev:before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 9px;
        height: 9px;
        border-right: 2px solid #fff;
        border-top: 2px solid #fff;
    }

.home-slider .swiper-button-prev {
    right: 8px;
    left: auto;
}

    .home-slider .swiper-button-prev:before {
        transform: translate(-50%, -50%) rotate(45deg) translate(-1px, 1px);
    }

.home-slider .swiper-button-next {
    left: 8px;
    right: auto;
}

    .home-slider .swiper-button-next:before {
        transform: translate(-50%, -50%) rotate(-135deg) translate(-1px, 1px);
    }

    .home-slider .swiper-button-next:hover,
    .home-slider .swiper-button-prev:hover {
        background-color: var(--hm-red) !important;
    }

.home-slider .swiper-button-disabled {
    opacity: .35 !important;
    pointer-events: none;
}

@media (max-width: 1080px) {
    .home-slider .swiper-button-next,
    .home-slider .swiper-button-prev {
        display: none !important;
    }
}

@media (max-width: 539px) {
    .home-slider .galleryIamge {
        height: 150px;
    }

    .home-slider .galleryTitle span {
        font-size: 12px;
    }

    .home-slider .galleryPrice .pfirst2.all {
        font-size: 14px;
    }
}

/* دستگاه لمسی: hover چسبنده نشود */
@media (hover: none) {
    .home-slider .box1:hover {
        transform: none;
        border-color: var(--hm-line);
        box-shadow: none;
    }

        .home-slider .box1:hover .galleryTitle span {
            color: var(--hm-text);
        }

        .home-slider .box1:hover .galleryIamge img:first-child {
            opacity: 1;
            transform: none;
        }

        .home-slider .box1:hover .galleryIamge img:last-child {
            opacity: 0;
            transform: none;
        }
}

/* ============================================================
   2) قاب مینیمال دور عنوان + کارت‌ها
   (عنوان .Boxtitle و بدنه .BoxParent دو تگ جدا هستند؛ با :has فقط
   بخش‌های مربوط به .home-slider استایل می‌گیرند)
   ============================================================ */
.Boxtitle:has(+ .BoxParent .home-slider),
.BoxParent:has(.home-slider) {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
    background: #fff;
    border: 1px solid var(--hm-line);
    box-shadow: 0 1px 3px rgba(35, 38, 43, .04);
}

.Boxtitle:has(+ .BoxParent .home-slider) {
    position: relative;
    margin-top: 10px;
    margin-bottom: 0;
    padding: 12px 22px 8px;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    text-align: right;
}

    .Boxtitle:has(+ .BoxParent .home-slider) span {
        position: relative;
        display: inline-block;
        padding-right: 12px;
        font-size: 17px;
        font-weight: 700;
        line-height: 32px;
        color: var(--hm-ink);
        text-shadow: none;
    }

        .Boxtitle:has(+ .BoxParent .home-slider) span:before {
            content: "";
            position: absolute;
            right: 0;
            top: 50%;
            width: 4px;
            height: 18px;
            margin-top: -9px;
            border-radius: 3px;
            background: var(--hm-red);
        }

.BoxParent:has(.home-slider) {
    margin-bottom: 26px;
    padding: 6px 6px 10px;
    border-top: 1px solid var(--hm-line-soft);
    border-radius: 0 0 16px 16px;
}

@media (max-width: 1080px) {
    .Boxtitle:has(+ .BoxParent .home-slider) {
        border-radius: 12px 12px 0 0;
    }

    .BoxParent:has(.home-slider) {
        border-radius: 0 0 12px 12px;
    }
}

/* ============================================================
   3) اسلایدر برندها
   ============================================================ */
.Boxtitle:has(+ .BoxParent .brand-slider),
.BoxParent:has(.brand-slider) {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
    background: #fff;
    border: 1px solid var(--hm-line);
    box-shadow: 0 1px 3px rgba(35, 38, 43, .04);
}

.Boxtitle:has(+ .BoxParent .brand-slider) {
    margin-top: 10px;
    margin-bottom: 0;
    padding: 10px 22px 6px;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    text-align: right;
}

    .Boxtitle:has(+ .BoxParent .brand-slider) span {
        position: relative;
        display: inline-block;
        padding-right: 12px;
        font-size: 16px;
        font-weight: 700;
        line-height: 32px;
        color: var(--hm-ink);
        text-shadow: none;
    }

        .Boxtitle:has(+ .BoxParent .brand-slider) span:before {
            content: "";
            position: absolute;
            right: 0;
            top: 50%;
            width: 4px;
            height: 16px;
            margin-top: -8px;
            border-radius: 3px;
            background: var(--hm-red);
        }

.BoxParent:has(.brand-slider) {
    margin-bottom: 26px;
    padding: 14px 10px 16px;
    border-top: 1px solid var(--hm-line-soft);
    border-radius: 0 0 16px 16px;
}

    /* عرض ثابت .container سراسری فقط داخل قاب برندها خنثی می‌شود */
    .BoxParent:has(.brand-slider) > .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

#swiper-container-filmstrip4 {
    position: relative !important;
    overflow: hidden !important;
    padding: 4px 0 !important;
    background-color: transparent;
}

    /* محو شدن دو طرف */
    #swiper-container-filmstrip4:before,
    #swiper-container-filmstrip4:after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 46px;
        z-index: 15;
        pointer-events: none;
    }

    #swiper-container-filmstrip4:before {
        right: 0;
        background: linear-gradient(to left, #fff 0%, rgba(255,255,255,0) 100%);
    }

    #swiper-container-filmstrip4:after {
        left: 0;
        background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 100%);
    }

#swiper-wrapper4 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    height: auto !important;
    position: relative !important;
}

    #swiper-wrapper4 .swiper-slide {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 100px !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 12px 8px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        overflow: hidden !important;
        background: #fff;
        border: 1px solid var(--hm-line-soft);
        border-radius: 14px;
        transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }

        #swiper-wrapper4 .swiper-slide:hover {
            border-color: var(--hm-red);
            box-shadow: 0 8px 18px rgba(35, 38, 43, .08);
            transform: translateY(-3px);
        }

    #swiper-wrapper4 .mobile-image-filter {
        display: none !important;
    }

    #swiper-wrapper4 .image {
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #swiper-wrapper4 .filmstrip-image {
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: contain !important;
        filter: grayscale(100%);
        opacity: .85;
        transition: filter .25s ease, opacity .25s ease;
    }

    #swiper-wrapper4 .swiper-slide:hover .filmstrip-image {
        filter: grayscale(0);
        opacity: 1;
    }

.brand-slider .brand-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    z-index: 10;
}

.brand-slider .mobile-image-filter {
    pointer-events: none;
}

#swiper-container-filmstrip4 .swiper-button-next,
#swiper-container-filmstrip4 .swiper-button-prev {
    position: absolute !important;
    top: 50% !important;
    bottom: auto !important;
    margin-top: 0 !important;
    width: 32px !important;
    height: 32px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hm-line);
    border-radius: 50% !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: 0 2px 8px rgba(35, 38, 43, .12);
    opacity: 1 !important;
    cursor: pointer;
    z-index: 20 !important;
}

    #swiper-container-filmstrip4 .swiper-button-next:before,
    #swiper-container-filmstrip4 .swiper-button-prev:before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--hm-ink);
        border-top: 2px solid var(--hm-ink);
    }

#swiper-container-filmstrip4 .swiper-button-prev {
    right: 6px !important;
    left: auto !important;
}

    #swiper-container-filmstrip4 .swiper-button-prev:before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

#swiper-container-filmstrip4 .swiper-button-next {
    left: 6px !important;
    right: auto !important;
}

    #swiper-container-filmstrip4 .swiper-button-next:before {
        transform: translate(-50%, -50%) rotate(-135deg);
    }

@media (max-width: 1080px) {
    .Boxtitle:has(+ .BoxParent .brand-slider) {
        border-radius: 12px 12px 0 0;
    }

    .BoxParent:has(.brand-slider) {
        border-radius: 0 0 12px 12px;
    }
}

@media (max-width: 768px) {
    /* در موبایل دکمه‌ها روی کارت‌ها نیفتند */
    #swiper-container-filmstrip4 {
        padding: 4px 32px !important;
    }

        #swiper-container-filmstrip4:before,
        #swiper-container-filmstrip4:after {
            width: 20px;
        }

        #swiper-container-filmstrip4 .swiper-button-next,
        #swiper-container-filmstrip4 .swiper-button-prev {
            width: 26px !important;
            height: 26px !important;
        }

        #swiper-container-filmstrip4 .swiper-button-prev {
            right: 2px !important;
        }

        #swiper-container-filmstrip4 .swiper-button-next {
            left: 2px !important;
        }

    #swiper-wrapper4 .swiper-slide {
        height: 76px !important;
    }
}

/* ============================================================
   4) اسلایدر اصلی: تمام‌عرض + نقطه‌ها + دکمه‌ها
   ============================================================ */
#site-container.slider-full {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.slidering {
    position: relative;
    width: 100%;
    height: auto !important;
    overflow: hidden;
}

    .slidering #mother {
        position: relative;
        display: block;
        float: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden;
    }

    /* لیست اسلایدها: ارتفاع را اولین تصویر تعیین می‌کند، بقیه روی هم می‌افتند */
    .slidering #ss {
        position: relative;
        display: block;
        width: 100% !important;
        height: auto !important;
        margin: 0;
        padding: 0;
        list-style: none;
        overflow: hidden;
    }

        .slidering #ss li {
            height: auto !important;
        }

            .slidering #ss li img {
                display: block;
                width: 100% !important;
                height: auto !important;
            }

/* ---------- نقطه‌ها (پایین، وسط) ---------- */
.ss-pagination {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(8, 43, 89, .55); /* Deep Navy شفاف */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 50;
}

    .ss-pagination .ss-dot {
        position: relative;
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--hm-line); /* Border */
        cursor: pointer;
        overflow: hidden;
        transition: width .3s ease, height .3s ease, border-radius .3s ease, background .3s ease;
    }

        .ss-pagination .ss-dot:hover {
            background: #fff;
        }

        .ss-pagination .ss-dot.active {
            width: 34px;
            height: 6px;
            border-radius: 4px;
            background: rgba(255, 255, 255, .3);
        }

    /* نوار پیشرفت: فقط داخل نقطه‌ی فعال، هم‌زمان با تایمر اسلایدر (6 ثانیه) پر می‌شود.
           از transform: scaleX به‌جای width استفاده می‌شود چون روی GPU اجرا می‌شود
           و بدون ری‌فلو، کاملاً نرم (smooth) انیمیت می‌شود. */
    .ss-pagination .ss-dot-progress {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        border-radius: inherit;
        background: var(--hm-gold); /* Golden Yellow */
        transform: scaleX(0);
        transform-origin: left center;
        will-change: transform;
    }

    .ss-pagination .ss-dot.active .ss-dot-progress {
        animation: ss-dot-fill 6s linear forwards;
    }

@keyframes ss-dot-fill {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}
/* ---------- دکمه‌های چپ/راست ---------- */
.TopImage .flex-direction-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .TopImage .flex-direction-nav li {
        position: absolute !important;
        top: 50% !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateY(-50%);
        z-index: 60;
    }

    .TopImage .flex-direction-nav .flex-nav-prev {
        left: 22px !important;
        right: auto !important;
    }

    .TopImage .flex-direction-nav .flex-nav-next {
        right: 22px !important;
        left: auto !important;
    }

    .TopImage .flex-direction-nav a {
        display: block !important;
        position: relative !important;
        width: 46px !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
        text-indent: -9999px;
        font-size: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background-color: rgba(255, 255, 255, .9) !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 20px 20px !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
        opacity: 0;
        transition: background-color .25s ease, transform .25s ease, opacity .25s ease;
    }

/* با رفتن موس روی اسلایدر دکمه‌ها ظاهر می‌شوند */
.TopImage:hover .flex-direction-nav a {
    opacity: 1;
}

.TopImage .flex-direction-nav a:hover {
    background-color: var(--hm-red) !important;
    transform: scale(1.08);
}

/* فقط فلش را با SVG می‌کشیم؛ :before/:after غیرفعال */
.TopImage .flex-direction-nav a:before,
.TopImage .flex-direction-nav a:after {
    content: none !important;
    display: none !important;
}

/* فلش چپ  < */
.TopImage .flex-direction-nav .flex-prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323262b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4l-8 8 8 8'/%3E%3C/svg%3E") !important;
}

    .TopImage .flex-direction-nav .flex-prev:hover {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4l-8 8 8 8'/%3E%3C/svg%3E") !important;
    }

/* فلش راست  > */
.TopImage .flex-direction-nav .flex-next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323262b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4l8 8-8 8'/%3E%3C/svg%3E") !important;
}

    .TopImage .flex-direction-nav .flex-next:hover {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4l8 8-8 8'/%3E%3C/svg%3E") !important;
    }
@media (max-width: 700px) {
    .ss-pagination {
        bottom: 8px;
        gap: 6px;
        padding: 4px 9px;
    }

        .ss-pagination .ss-dot {
            width: 6px;
            height: 6px;
        }

            .ss-pagination .ss-dot.active {
                width: 22px;
            }

    .TopImage .flex-direction-nav a {
        width: 34px !important;
        height: 34px !important;
        background-size: 16px 16px !important;
        opacity: 1;
    }

    .TopImage .flex-direction-nav .flex-nav-prev {
        left: 8px !important;
    }

    .TopImage .flex-direction-nav .flex-nav-next {
        right: 8px !important;
    }
}
/* ============================================================
   5) اسلایدر اصلی در موبایل: کارت‌های کناریِ نیمه‌دیده + سوایپ لمسی
   ============================================================ */
@media (max-width: 700px) {

    #site-container.slider-full {
        overflow: visible;
    }

    .slidering,
    .slidering #mother {
        overflow: hidden;
        background: transparent;
    }

        .slidering #mother {
            padding: 10px 0 4px;
        }

    /* دکمه‌ها در موبایل حذف می‌شوند */
    .TopImage .flex-direction-nav {
        display: none !important;
    }

    /* ریل اسلایدها: اسکرول افقی با snap */
    .slidering #ss {
        display: flex !important;
        flex-direction: row;
        direction: rtl;
        gap: 10px;
        width: 100% !important;
        padding: 0 6% !important;
        box-sizing: border-box;
        overflow-x: auto !important;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 6%;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

        .slidering #ss::-webkit-scrollbar {
            display: none;
        }

        /* استایل‌های inline اسکریپت (opacity / margin / z-index) را خنثی می‌کنیم */
        .slidering #ss li {
            flex: 0 0 88% !important;
            width: 88% !important;
            float: none !important;
            margin: 0 !important;
            opacity: 1 !important;
            z-index: auto !important;
            position: relative !important;
            display: block !important;
            scroll-snap-align: center;
            scroll-snap-stop: always;
            overflow: hidden;
            border-radius: 14px;
            background: #f4f5f6;
        }

            .slidering #ss li a {
                display: block;
            }

            .slidering #ss li img {
                display: block;
                width: 100% !important;
                height: auto !important;
                aspect-ratio: 2 / 1;
                object-fit: cover;
                object-position: center;
                border-radius: 14px;
                -webkit-user-drag: none;
                user-select: none;
            }

    /* نقطه‌ها سر جای خودشان (پایین، وسط) */
    .ss-pagination {
        bottom: 14px;
    }
}

/* ===== پیشنهادات ویژه — پالت آبی/زرد ===== */
.ProSlideSpecial {
    background: var(--hm-ink) !important;
    border: 1px solid var(--hm-ink);
    border-radius: 16px;
}

    .ProSlideSpecial .titleSpec,
    .ProSlideSpecial .titleSpec span {
        color: #fff !important;
    }

        .ProSlideSpecial .titleSpec a {
            color: var(--hm-gold) !important;
        }

    .ProSlideSpecial .discount {
        background: var(--hm-gold) !important;
        color: var(--hm-ink) !important;
    }

    .ProSlideSpecial .galleryPriceSpec .pfirst2.all {
        color: var(--hm-ink) !important;
    }

    .ProSlideSpecial .galleryPriceSpec .pfirst2.takh {
        color: var(--hm-muted) !important;
    }

    .ProSlideSpecial .notTedad-special span {
        background: var(--hm-disabled) !important;
        color: #fff !important;
    }

    .ProSlideSpecial .times > div > div {
        background: var(--hm-ink) !important;
        color: var(--hm-gold) !important;
    }
/* ===== نقطه‌های اسلایدر — پالت آبی/زرد (override نهایی) ===== */
.slidering .ss-pagination {
    background: rgba(8, 43, 89, .55) !important;
}

    .slidering .ss-pagination .ss-dot {
        background: #D9E1EA !important;
    }

        .slidering .ss-pagination .ss-dot:hover {
            background: #FFFFFF !important;
        }

        .slidering .ss-pagination .ss-dot.active {
            background: rgba(255, 255, 255, .3) !important;
        }

    .slidering .ss-pagination .ss-dot-progress {
        background: #FFD54F !important;
    }
/* ===== پس‌زمینه صفحه اصلی — Ice Blue ===== */
body:has(#site-container.slider-full),
body:has(#site-container.slider-full) .body,
body:has(#site-container.slider-full) .container-main {
    background-color: #EAF2FB !important;
}
/* ===== کاشی‌های دسته‌بندی زیر اسلایدر — پالت آبی/زرد ===== */
/* ============================================================
   کاشی‌های دسته‌بندی زیر اسلایدر — کارت شیشه‌ای (بدون سیم)
   ============================================================ */
.cat-tiles {
    margin: 30px 0 22px;
}

.cat-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 34px 30px;
    padding: 16px 14px;
}

.cat-tile {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-sizing: border-box;
    color: #0B2A5B;
    text-decoration: none !important;
    text-align: center;
    cursor: pointer;
    font-family: yekan2, YEKAN, sans-serif;
    opacity: 0;
    transform: translateY(14px);
    animation: tile-in .55s cubic-bezier(.22, .61, .36, 1) forwards;
    animation-delay: calc(var(--i, 0) * 80ms);
}

@keyframes tile-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cat-tile:focus-visible {
    outline: none;
}

/* ---------- کارت ---------- */
.cat-tile-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 196px;
    padding: 34px 14px 24px;
    box-sizing: border-box;
    color: #0B2A5B;
    transition: transform .4s cubic-bezier(.22, .61, .36, 1), color .3s ease;
}

    /* بدنه‌ی شیشه‌ای: شکل نرم و نامتقارن + کمی چرخش (محتوا صاف می‌ماند) */
    .cat-tile-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: 42px 34px 44px 36px;
        transform: rotate(-2.5deg);
        background: linear-gradient(145deg, rgba(255,255,255,.97) 0%, rgba(238,243,249,.92) 55%, rgba(222,231,241,.88) 100%);
        border: 1px solid rgba(255, 255, 255, .95);
        box-shadow: 0 20px 38px rgba(70, 92, 122, .20), 0 2px 6px rgba(70, 92, 122, .08), inset 0 1px 1px #fff;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        transition: transform .45s cubic-bezier(.22, .61, .36, 1), background .4s ease, border-color .4s ease, box-shadow .4s ease;
    }

.cat-tile:hover .cat-tile-card,
.cat-tile:focus-visible .cat-tile-card {
    transform: translateY(-6px);
    color: #fff;
}

    .cat-tile:hover .cat-tile-card::before,
    .cat-tile:focus-visible .cat-tile-card::before {
        transform: rotate(-3.5deg) scale(1.02);
        background: linear-gradient(150deg, #0F3470 0%, #0A2A5C 55%, #082450 100%);
        border-color: #0A2A5C;
        box-shadow: 0 26px 46px rgba(8, 36, 80, .38);
    }

/* ---------- آیکون ---------- */
.cat-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: inherit;
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}

    .cat-tile-icon svg {
        display: block;
        width: 100%;
        height: 100%;
    }

.cat-tile:hover .cat-tile-icon {
    transform: scale(1.08);
}

/* ---------- عنوان ---------- */
.cat-tile-title {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 25px;
    color: inherit;
}

/* ---------- دکمه‌ی فلش ---------- */
.cat-tile-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #5B7C9E;
    color: #fff;
    transition: background .3s ease, color .3s ease, transform .35s ease;
}

    .cat-tile-arrow svg {
        display: block;
        width: 17px;
        height: 17px;
    }

.cat-tile:hover .cat-tile-arrow {
    background: #FFD54F;
    color: #0A2A5C;
    transform: scale(1.1);
}
/* ============================================================
   کارت‌هایی که عکس آماده دارند (کارت + سیم داخل عکس)
   - عکس هیچ‌وقت کشیده نمی‌شود: کارت نسبت ابعاد عکس را می‌گیرد
   - محتوا (آیکون / عنوان / دکمه) یک دسته‌ی جمع‌وجور در مرکز شیشه است
   --art-ratio = عرض عکس ÷ ارتفاع عکس
   ============================================================ */
.cat-tiles-grid {
    align-items: center;
}

.cat-tile.has-art {
    --art-ratio: 1.09;
    position: relative;
    z-index: 1;
    width: calc(100% + 40px);
    margin: 0 -20px;
    container-type: inline-size;
}

    .cat-tile.has-art .cat-tile-card,
    .cat-tile.has-art:hover .cat-tile-card {
        aspect-ratio: var(--art-ratio);
        min-height: 0 !important;
        padding: 0 24% !important;
        justify-content: center !important;
        gap: 8px !important;
        color: #0B2A5B !important;
    }

        /* تصویر کارت + سیم */
        .cat-tile.has-art .cat-tile-card::before,
        .cat-tile.has-art:hover .cat-tile-card::before,
        .cat-tile.has-art:active .cat-tile-card::before {
            inset: 0 !important;
            transform: none !important;
            border: 0 !important;
            border-radius: 0 !important;
            background: var(--art) center / contain no-repeat !important;
            box-shadow: none !important;
            -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
            transition: transform .5s cubic-bezier(.22, .61, .36, 1) !important;
        }

        .cat-tile.has-art:hover .cat-tile-card::before {
            transform: scale(1.04) !important;
        }

    /* آیکون: حذف شد (سیم دور کارت خودش نوع محصول رو نشون می‌ده) */
    .cat-tile.has-art .cat-tile-icon {
        display: none;
    }

    /* عنوان: دیگر کش نمی‌آید، فقط به اندازه‌ی متن */
    .cat-tile.has-art .cat-tile-title {
        flex: 0 0 auto;
        font-size: 17px;
        font-weight: 800;
        line-height: 26px;
        text-align: center;
    }

    /* دکمه */
    .cat-tile.has-art .cat-tile-arrow {
        flex: 0 0 auto;
        width: 34px;
        height: 34px;
        margin-top: 4px;
    }

        .cat-tile.has-art .cat-tile-arrow svg {
            width: 15px;
            height: 15px;
        }

/* تبلت */
@media (max-width: 900px) {
    .cat-tile.has-art {
        width: calc(100% + 60px);
        margin: 0 -30px;
    }
}

/* موبایل */
@media (max-width: 700px) {
    .cat-tile.has-art {
        width: calc(100% + 36px);
        margin: 0 -18px;
    }

        .cat-tile.has-art .cat-tile-card,
        .cat-tile.has-art:hover .cat-tile-card {
            padding: 0 22% !important;
            gap: 5px !important;
        }

        

        .cat-tile.has-art .cat-tile-title {
            font-size: 12px;
            line-height: 17px;
        }

        .cat-tile.has-art .cat-tile-arrow {
            width: 28px;
            height: 28px;
            margin-top: 2px;
        }
}
/* تبلت */
@media (max-width: 900px) {
    .cat-tiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* موبایل */
@media (max-width: 700px) {
    .cat-tiles {
        margin: 18px 0 10px;
    }

    .cat-tiles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px 18px;
        padding: 10px 8px;
    }

    .cat-tile {
        grid-column: span 2;
    }

        /* کاشی تنهای آخر: هم‌اندازه‌ی بقیه و وسط‌چین */
        .cat-tile:last-child:nth-child(odd) {
            grid-column: 2 / span 2;
        }

    .cat-tile-card {
        min-height: 164px;
        padding: 24px 10px 18px;
        gap: 12px;
    }

        .cat-tile-card::before {
            border-radius: 32px 26px 34px 28px;
        }

    .cat-tile-icon {
        width: 44px;
        height: 44px;
    }

    .cat-tile-title {
        font-size: 13px;
        line-height: 21px;
    }

    .cat-tile-arrow {
        width: 32px;
        height: 32px;
    }

    /* کاشی تنهای آخر: هم‌اندازه‌ی بقیه (عرض یک ستون) و وسط‌چین */
    
}

/* لمسی: هاور چسبنده نشود */
@media (hover: none) {
    .cat-tile:hover .cat-tile-card {
        transform: none;
        color: #0B2A5B;
    }

        .cat-tile:hover .cat-tile-card::before {
            transform: rotate(-2.5deg);
            background: linear-gradient(145deg, rgba(255,255,255,.97) 0%, rgba(238,243,249,.92) 55%, rgba(222,231,241,.88) 100%);
            border-color: rgba(255,255,255,.95);
            box-shadow: 0 20px 38px rgba(70, 92, 122, .20), 0 2px 6px rgba(70, 92, 122, .08), inset 0 1px 1px #fff;
        }

    .cat-tile:hover .cat-tile-icon {
        transform: none;
    }

    .cat-tile:hover .cat-tile-arrow {
        background: #5B7C9E;
        color: #fff;
        transform: none;
    }

    .cat-tile:active .cat-tile-card {
        color: #fff;
    }

        .cat-tile:active .cat-tile-card::before {
            background: linear-gradient(150deg, #0F3470 0%, #0A2A5C 55%, #082450 100%);
            border-color: #0A2A5C;
        }

    .cat-tile:active .cat-tile-arrow {
        background: #FFD54F;
        color: #0A2A5C;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cat-tile {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .cat-tile-card, .cat-tile-card::before {
        transition: none;
    }
}

/* ============================================================
   6) پنل‌های دسته‌بندی (دسکتاپ: کشویی با هاور | تبلت/موبایل: کارت‌های زیر هم)
   ============================================================ */
.cat-panels {
    display: flex;
    width: 100%;
    min-height: 480px;
    overflow: hidden;
    position: relative;
}

.cat-panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 24px;
    overflow: visible;
    color: #fff;
    text-decoration: none !important;
    cursor: pointer;
    isolation: isolate;
    transition: flex-grow .6s cubic-bezier(.22, .61, .36, 1);
}

    /* جلوگیری از آبی شدن متن توسط a:hover سراسری سایت */
    .cat-panel:hover,
    .cat-panel:focus,
    .cat-panel:active,
    .cat-panel:visited {
        color: #fff;
        text-decoration: none !important;
    }

.cat-panel-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70px;
    right: -70px;
    z-index: 0;
    background: var(--hm-blue);
    clip-path: polygon(70px 0, 100% 0, calc(100% - 70px) 100%, 0 100%);
    transition: background-color .4s ease;
}

.cat-panel:nth-child(2) .cat-panel-bg {
    background: var(--hm-ink);
}

.cat-panel-icon {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    opacity: .9;
    transition: transform .4s ease;
}

    .cat-panel-icon svg {
        width: 100%;
        height: 100%;
    }

.cat-panel-title {
    position: relative;
    z-index: 2;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    transition: color .25s ease;
}

.cat-panel-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 320px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .5s ease, opacity .4s ease .05s;
}

.cat-panel-desc {
    font-size: 13px;
    line-height: 24px;
    color: rgba(255, 255, 255, .85);
    text-align: center;
}

.cat-panel:hover .cat-panel-desc {
    color: rgba(255, 255, 255, .85);
}

.cat-panel-btn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 8px;
    background: #fff;
    color: var(--hm-ink);
    font-size: 13px;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease;
}

.cat-panel:hover .cat-panel-btn {
    color: var(--hm-ink);
}

.cat-panel-btn:hover {
    background: var(--hm-gold);
}

.cat-panel:hover,
.cat-panel.is-active {
    flex-grow: 1.7;
}

    .cat-panel:hover .cat-panel-body,
    .cat-panel.is-active .cat-panel-body {
        max-height: 160px;
        opacity: 1;
    }

    .cat-panel:hover .cat-panel-icon,
    .cat-panel.is-active .cat-panel-icon {
        transform: scale(.82) translateY(-6px);
    }

.cat-panels:hover .cat-panel:not(:hover) {
    flex-grow: .65;
}

/* ===== تصویر وایرفریم پنل‌های دسته‌بندی ===== */
.cat-panel-art {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 540px;
    height: 230px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .4s ease;
}

    .cat-panel-art img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.cat-panel:hover .cat-panel-art,
.cat-panel.is-active .cat-panel-art {
    transform: scale(.9) translateY(-6px);
}

/* ===== هر سه پنل هم‌رنگ + خط مورب زرد + هاور پنل وسط ===== */
.cat-panel:nth-child(2) .cat-panel-bg {
    background: var(--hm-blue);
}

.cat-panel:nth-child(2):hover .cat-panel-bg,
.cat-panel:nth-child(2).is-active .cat-panel-bg {
    background: var(--hm-ink);
}

.cat-panel:nth-child(n+2)::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -70px;
    width: 70px;
    z-index: 1;
    pointer-events: none;
    background: var(--hm-gold);
    clip-path: polygon(calc(100% - 4px) 0, 100% 0, 4px 100%, 0 100%);
}

.cat-panel-brand {
    position: relative;
    z-index: 2;
    direction: ltr;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 7px;
    line-height: 1;
    color: #fff;
    transition: color .25s ease;
}

    .cat-panel-brand + .cat-panel-title {
        font-size: 14px;
        font-weight: 500;
        opacity: .9;
    }

/* ============================================================
   دسکتاپ (≥ 1025px): شیب و اندازه‌ها روان با عرض صفحه
   ============================================================ */
@media (min-width: 1025px) {
    .cat-panels {
        --slant: clamp(100px, 10vw, 190px); /* هرچه بزرگ‌تر، خط مورب‌تر */
        min-height: clamp(430px, 27vw, 510px);
    }

    .cat-panel {
        padding-top: 20px;
        padding-bottom: 20px;
    }

        .cat-panel:hover .cat-panel-body,
        .cat-panel.is-active .cat-panel-body {
            max-height: 140px;
        }

    .cat-panel-art {
        height: clamp(170px, 12vw, 230px);
    }

    .cat-panel-brand {
        font-size: clamp(32px, 3.2vw, 46px);
        letter-spacing: clamp(4px, .4vw, 7px);
    }

    .cat-panel-title {
        font-size: clamp(15px, 1.2vw, 18px);
    }

    .cat-panel-bg {
        left: calc(var(--slant) * -1);
        right: calc(var(--slant) * -1);
        clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
    }

    .cat-panel:nth-child(n+2)::before {
        right: calc(var(--slant) * -1);
        width: var(--slant);
        clip-path: polygon(calc(100% - 5px) 0, 100% 0, 5px 100%, 0 100%);
    }

    /* padding فقط برای تعیین عرض (متقارن)؛ جابه‌جایی محتوا با left */
    .cat-panel:nth-child(1) {
        padding-left: calc(24px + var(--slant) / 2);
        padding-right: calc(24px + var(--slant) / 2);
    }

    .cat-panel:nth-child(2) {
        padding-left: calc(24px + var(--slant) / 4);
        padding-right: calc(24px + var(--slant) / 4);
    }

    .cat-panel:nth-child(3) {
        padding-left: 24px;
        padding-right: 24px;
    }

    .cat-panel:nth-child(1),
    .cat-panel:nth-child(3) {
        --shift: calc(var(--slant) / 4);
    }

    .cat-panel:nth-child(2) {
        --shift: calc(var(--slant) / 2);
    }

    .cat-panel > :not(.cat-panel-bg) {
        left: var(--shift, 0px);
    }
}

/* ============================================================
   تبلت و موبایل (≤ 1024px): کارت‌های زیر هم، محتوا همیشه باز
   ============================================================ */
@media (max-width: 1024px) {
    .cat-panels {
        flex-direction: column;
        min-height: 0;
        gap: 0;
        padding: 10px 0;
        overflow: hidden;
        background: var(--hm-blue);
    }

        .cat-panel,
        .cat-panels:hover .cat-panel:not(:hover),
        .cat-panel:hover,
        .cat-panel.is-active {
            flex: none !important;
            flex-grow: 0 !important;
            padding: 28px 20px 30px;
            gap: 12px;
            transition: none;
        }

            /* پس‌زمینه‌ی ساده بدون مورب */
            .cat-panel-bg,
            .cat-panel:nth-child(2) .cat-panel-bg,
            .cat-panel:nth-child(2):hover .cat-panel-bg,
            .cat-panel:nth-child(2).is-active .cat-panel-bg {
                left: 0;
                right: 0;
                clip-path: none;
                background: var(--hm-blue);
                transition: none;
            }

            .cat-panel:nth-child(n+2)::before,
            .cat-panel:not(:last-child)::after {
                display: none !important;
            }

            /* جابه‌جایی left دسکتاپ اینجا اثر نکند */
            .cat-panel > :not(.cat-panel-bg) {
                left: 0;
            }

            /* محتوا همیشه باز */
            .cat-panel .cat-panel-body,
            .cat-panel:hover .cat-panel-body,
            .cat-panel.is-active .cat-panel-body {
                max-height: none;
                max-width: 560px;
                opacity: 1;
                overflow: visible;
                gap: 14px;
                transition: none;
            }

            .cat-panel .cat-panel-art,
            .cat-panel:hover .cat-panel-art,
            .cat-panel.is-active .cat-panel-art {
                height: 200px;
                max-width: 420px;
                transform: none;
                transition: none;
            }

            .cat-panel .cat-panel-icon,
            .cat-panel:hover .cat-panel-icon,
            .cat-panel.is-active .cat-panel-icon {
                transform: none;
            }

    .cat-panel-title {
        font-size: 22px;
        line-height: 34px;
        text-align: center;
    }

    .cat-panel-desc {
        font-size: 14px;
        line-height: 28px;
        color: rgba(255, 255, 255, .9);
    }

    .cat-panel-btn {
        padding: 12px 34px;
        font-size: 14px;
    }

    /* پنل وسط: کارت تیره‌ی گوشه‌گرد با قاب */
    .cat-panel:nth-child(2) {
        width: calc(100% - 24px);
        max-width: 640px;
        margin: 8px auto;
        padding: 28px 16px 30px;
        border-radius: 18px;
        overflow: hidden;
        border: 2px solid var(--hm-accent);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
    }

        .cat-panel:nth-child(2) .cat-panel-bg,
        .cat-panel:nth-child(2):hover .cat-panel-bg,
        .cat-panel:nth-child(2).is-active .cat-panel-bg {
            background: var(--hm-ink);
        }

    .cat-panel-brand {
        font-size: 48px;
        letter-spacing: 7px;
    }

        .cat-panel-brand + .cat-panel-title {
            font-size: 18px;
            font-weight: 600;
            opacity: 1;
        }

    /* ---- هاور/لمس: زرد (به‌جای آبیِ نامرئی) ---- */
    .cat-panel:hover .cat-panel-title,
    .cat-panel:focus .cat-panel-title,
    .cat-panel:active .cat-panel-title,
    .cat-panel:hover .cat-panel-brand,
    .cat-panel:focus .cat-panel-brand,
    .cat-panel:active .cat-panel-brand {
        color: var(--hm-gold);
        opacity: 1;
    }

    .cat-panel:hover .cat-panel-btn,
    .cat-panel:focus .cat-panel-btn,
    .cat-panel:active .cat-panel-btn {
        background: var(--hm-gold);
        color: var(--hm-ink);
    }
}

/* ===== موبایل کوچک (≤ 600px) ===== */
@media (max-width: 600px) {
    .cat-panel,
    .cat-panels:hover .cat-panel:not(:hover),
    .cat-panel:hover,
    .cat-panel.is-active {
        padding: 24px 16px 26px;
    }

        .cat-panel .cat-panel-art,
        .cat-panel:hover .cat-panel-art,
        .cat-panel.is-active .cat-panel-art {
            height: 130px;
            max-width: 320px;
        }

    .cat-panel-title {
        font-size: 20px;
        line-height: 32px;
    }

    .cat-panel-desc {
        font-size: 12.5px;
        line-height: 26px;
    }

    .cat-panel-btn {
        padding: 11px 30px;
        font-size: 13px;
    }

    .cat-panel:nth-child(2) {
        width: calc(100% - 24px);
        margin: 6px auto;
        padding: 24px 14px 26px;
    }

    .cat-panel-brand {
        font-size: 36px;
        letter-spacing: 5px;
    }

        .cat-panel-brand + .cat-panel-title {
            font-size: 16px;
        }
}
/* ============================================================
   7) مراحل سفارش (آخر صفحه) — پالت آبی/طلایی
   ============================================================ */
.order-steps {
    direction: rtl;
    clear: both;
    position: relative;
    display: block;
    width: 100%;
    margin: 30px 0 0;
    padding: 56px 0 72px;
    background: transparent;
    border-top: 0;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
}

    .order-steps *,
    .order-steps *::before,
    .order-steps *::after {
        box-sizing: border-box;
    }

    /* دایره‌ی محو تزئینی */
    .order-steps::before {
        content: "";
        position: absolute;
        top: -140px;
        left: -140px;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(71,123,175,.16) 0%, rgba(71,123,175,0) 70%);
        pointer-events: none;
    }

    /* ---- خنثی‌سازی استایل‌های سراسری سایت ---- */
    .order-steps svg {
        display: block;
        max-width: none;
        flex: 0 0 auto;
    }

    .order-steps .os-svg {
        width: 32px !important;
        height: 32px !important;
    }

    .order-steps .os-svg-ph {
        width: 56px !important;
        height: 56px !important;
    }

    .order-steps h2,
    .order-steps h3,
    .order-steps p {
        float: none;
        width: auto;
        height: auto;
        text-shadow: none;
        text-align: right;
    }

/* ---------- عنوان ---------- */
.os-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 48px;
}

.order-steps .os-title {
    position: relative;
    margin: 0;
    padding: 0 16px 0 0;
    font-family: yekan2, YEKAN, sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 36px;
    color: var(--hm-ink);
    white-space: nowrap;
}

    .order-steps .os-title::before {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        width: 5px;
        height: 24px;
        margin-top: -12px;
        border-radius: 3px;
        background: var(--hm-gold);
    }

.os-line {
    flex: 1 1 auto;
    height: 2px;
    background: linear-gradient(270deg, var(--hm-blue), var(--hm-line) 40%, transparent);
}

/* ---------- چیدمان ---------- */
.os-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* ---------- لیست مراحل ---------- */
.os-list {
    display: block;
    margin: 0;
    padding: 0;
}

.os-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0;
    padding: 0 0 30px;
}

    .os-step:last-child {
        padding-bottom: 0;
    }

    /* خط اتصال بین آیکون‌ها */
    .os-step:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 35px;
        top: 76px;
        bottom: 4px;
        width: 2px;
        border-radius: 2px;
        background: repeating-linear-gradient(180deg, var(--hm-accent) 0 6px, transparent 6px 12px);
        opacity: .55;
    }

.os-icon {
    position: relative;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hm-ice);
    border: 1px solid var(--hm-line);
    color: var(--hm-blue);
    transition: background .35s ease, color .35s ease, transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}

/* شماره‌ی طلایی گوشه‌ی آیکون */
.os-num {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hm-gold);
    color: var(--hm-ink);
    font-family: iranNum, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(8,43,89,.2);
}

.os-text {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 6px;
}

.order-steps .os-text h3 {
    margin: 0 0 6px;
    padding: 0;
    font-family: yekan2, YEKAN, sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 28px;
    color: var(--hm-ink);
    transition: color .3s ease;
}

.order-steps .os-text p {
    margin: 0;
    padding: 0;
    font-family: yekan2, YEKAN, sans-serif;
    font-size: 14px;
    line-height: 26px;
    color: var(--hm-muted);
}

.os-step:hover .os-icon {
    background: var(--hm-ink);
    color: var(--hm-gold);
    transform: scale(1.08) rotate(-6deg);
    box-shadow: 0 12px 24px rgba(8,43,89,.3);
}

.os-step:hover .os-text h3 {
    color: var(--hm-blue);
}

/* ---------- قاب تصویر ---------- */
.os-media {
    position: relative;
    width: 100%;
    max-width: 520px;
    justify-self: center;
    aspect-ratio: 1 / 1.02;
    border-radius: 26px;
    background: linear-gradient(150deg, var(--hm-blue) 0%, var(--hm-ink) 100%);
    padding: 8px;
    box-shadow: 0 24px 48px rgba(8,43,89,.25);
}

    /* خط طلایی آفست پشت قاب */
    .os-media::before {
        content: "";
        position: absolute;
        inset: 0;
        transform: translate(-14px, 14px);
        border: 2px solid var(--hm-gold);
        border-radius: 26px;
        z-index: -1;
        transition: transform .5s ease;
    }

    .os-media:hover::before {
        transform: translate(-20px, 20px);
    }

.os-media-glow {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: radial-gradient(circle at 30% 20%, rgba(255,213,79,.22), transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.os-media-ph {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 20px;
    border: 2px dashed rgba(255,255,255,.35);
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 28px 28px;
    color: rgba(255,255,255,.75);
    font-family: yekan2, YEKAN, sans-serif;
    font-size: 14px;
}

/* وقتی عکس واقعی گذاشتی */
.os-media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* ---------- انیمیشن ظاهر شدن (فقط وقتی JS فعال است) ---------- */
.os-js .os-step,
.os-js .os-media {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
    transition-delay: calc(var(--d, 0) * 110ms);
}

    .os-js .os-step.is-in,
    .os-js .os-media.is-in {
        opacity: 1;
        transform: none;
    }

/* ---------- تبلت و موبایل ---------- */
@media (max-width: 900px) {
    .os-wrap {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .os-media {
        max-width: 440px;
    }
}

@media (max-width: 600px) {
    .order-steps {
        padding: 36px 0 48px;
    }

    .os-head {
        margin-bottom: 30px;
    }

    .order-steps .os-title {
        font-size: 19px;
        white-space: normal;
    }

    .os-step {
        gap: 14px;
        padding-bottom: 24px;
    }

    .os-icon {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .order-steps .os-svg {
        width: 26px !important;
        height: 26px !important;
    }

    .os-step:not(:last-child)::after {
        right: 28px;
        top: 62px;
    }

    .order-steps .os-text h3 {
        font-size: 16px;
    }

    .order-steps .os-text p {
        font-size: 13px;
        line-height: 24px;
    }

    .os-media::before {
        transform: translate(-8px, 8px);
    }
}

@media (hover: none) {
    .os-step:hover .os-icon {
        transform: none;
        background: var(--hm-ice);
        color: var(--hm-blue);
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .os-js .os-step,
    .os-js .os-media {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* ===== کلاژ مراحل سفارش ===== */
.os-collage {
    position: relative;
    width: 100%;
    max-width: 540px;
    justify-self: center;
    aspect-ratio: 1 / 1.05;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 28px;
    background: linear-gradient(150deg, var(--hm-blue) 0%, var(--hm-ink) 100%);
    box-shadow: 0 24px 48px rgba(8,43,89,.25);
}

    /* قاب طلایی آفست پشت کلاژ */
    .os-collage::before {
        content: "";
        position: absolute;
        inset: 0;
        transform: translate(-14px, 14px);
        border: 2px solid var(--hm-gold);
        border-radius: 28px;
        z-index: -1;
        transition: transform .5s ease;
    }

    .os-collage:hover::before {
        transform: translate(-20px, 20px);
    }

.os-tile {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background-color: var(--hm-ink);
    background-image: var(--img, none), linear-gradient(145deg, #1a5fb0 0%, var(--hm-accent) 100%);
    background-size: cover, cover;
    background-position: center, center;
    transition: transform .4s cubic-bezier(.22,.61,.36,1);
}

    /* شماره‌ی بزرگ محو (فقط وقتی عکس نیست دیده می‌شود) */
    .os-tile::before {
        content: attr(data-n);
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: iranNum, sans-serif;
        font-size: 96px;
        font-weight: 800;
        color: rgba(255,255,255,.14);
        z-index: 0;
    }

    /* سایه‌ی پایین برای خوانایی */
    .os-tile::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 55%, rgba(8,43,89,.45) 100%);
        z-index: 1;
        pointer-events: none;
    }

    .os-tile:hover {
        transform: scale(1.025);
        z-index: 3;
    }

/* چیدمان: چپ دو کاشی بزرگ، راست سه کاشی */
.t-2 {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.t-4 {
    grid-column: 1;
    grid-row: 3 / span 2;
}

.t-1 {
    grid-column: 2;
    grid-row: 1;
}

.t-3 {
    grid-column: 2;
    grid-row: 2 / span 2;
}

.t-5 {
    grid-column: 2;
    grid-row: 4;
}

/* برچسب مرحله */
.os-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--hm-ink);
    font-family: yekan2, YEKAN, sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(8,43,89,.25);
    white-space: nowrap;
}

    .os-tag b {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--hm-gold);
        color: var(--hm-ink);
        font-family: iranNum, sans-serif;
        font-size: 12px;
        font-weight: 800;
    }

/* انیمیشن ظاهر شدن */
.os-js .os-collage {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}

    .os-js .os-collage.is-in {
        opacity: 1;
        transform: none;
    }

@media (max-width: 900px) {
    .os-collage {
        max-width: 440px;
    }
}

@media (max-width: 600px) {
    .os-collage {
        gap: 7px;
        padding: 7px;
        border-radius: 22px;
    }

    .os-tile {
        border-radius: 14px;
    }

        .os-tile::before {
            font-size: 64px;
        }

    .os-tag {
        top: 7px;
        right: 7px;
        font-size: 11px;
        padding: 4px 5px 4px 10px;
    }

        .os-tag b {
            width: 19px;
            height: 19px;
            font-size: 11px;
        }

    .os-collage::before {
        transform: translate(-8px, 8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .os-js .os-collage {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* پس‌زمینه‌ی مراحل سفارش = همان Ice Blue صفحه */
body:has(#site-container.slider-full) .order-steps {
    background-color: #EAF2FB !important;
}
.order-steps::before {
    display: none;
}

/* ===== کلاژ: فقط شماره، با همان استایل شماره‌ی کنار متن‌ها ===== */

/* شماره‌ی بزرگ و محو قبلی حذف شود */
.os-tile::before {
    content: none;
}

/* جای شماره داخل کاشی (ظاهرش همان .os-num است) */
.os-tile .os-num {
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 3;
}

/* مرحله‌ها قابل کلیک‌اند */
.os-step {
    cursor: pointer;
    outline: none;
}

    .os-step:focus-visible .os-icon {
        box-shadow: 0 0 0 3px var(--hm-gold);
    }

.os-tile {
    transition: transform .4s cubic-bezier(.22,.61,.36,1), opacity .3s ease, filter .3s ease;
}

/* وقتی یک مرحله انتخاب شده، بقیه‌ی کاشی‌ها کمی کم‌رنگ می‌شوند */
.os-collage.has-focus .os-tile:not(.is-pulse) {
    opacity: .5;
    filter: saturate(.6);
}

/* کاشی انتخاب‌شده: یک ضربان کوتاه با حلقه‌ی طلایی */
.os-tile.is-pulse {
    z-index: 5;
    animation: os-pulse 1.3s cubic-bezier(.22,.61,.36,1);
}

@keyframes os-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,213,79,0);
    }

    25% {
        transform: scale(1.07);
        box-shadow: 0 0 0 4px var(--hm-gold), 0 18px 34px rgba(8,43,89,.45);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 4px var(--hm-gold), 0 14px 28px rgba(8,43,89,.35);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,213,79,0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .os-tile.is-pulse {
        animation: none;
        box-shadow: 0 0 0 4px var(--hm-gold);
    }
}
/* ============================================================
   8) مقالات (قبل از مراحل سفارش)
   ============================================================ */
.blog-section {
    direction: rtl;
    clear: both;
    position: relative;
    width: 100%;
    margin: 10px 0 0;
    padding: 40px 0 10px;
    box-sizing: border-box;
}

    .blog-section *,
    .blog-section *::before,
    .blog-section *::after {
        box-sizing: border-box;
    }

    .blog-section .os-head {
        margin-bottom: 32px;
    }

    .blog-section .os-title {
        position: relative;
        margin: 0;
        padding: 0 16px 0 0;
        font-family: yekan2, YEKAN, sans-serif;
        font-size: 24px;
        font-weight: 800;
        line-height: 36px;
        color: var(--hm-ink);
        white-space: nowrap;
        float: none;
        width: auto;
        text-shadow: none;
    }

        .blog-section .os-title::before {
            content: "";
            position: absolute;
            right: 0;
            top: 50%;
            width: 5px;
            height: 24px;
            margin-top: -12px;
            border-radius: 3px;
            background: var(--hm-gold);
        }

.blog-all {
    flex: 0 0 auto;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--hm-line);
    background: #fff;
    color: var(--hm-blue);
    font-family: yekan2, YEKAN, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

    .blog-all:hover {
        background: var(--hm-ink);
        border-color: var(--hm-ink);
        color: var(--hm-gold);
    }

/* ---------- گرید ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---------- کارت ---------- */
.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 18px;
    color: var(--hm-text);
    text-decoration: none !important;
    font-family: yekan2, YEKAN, sans-serif;
    transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s cubic-bezier(.22,.61,.36,1), border-color .3s ease;
}

    .blog-card:hover,
    .blog-card:focus {
        transform: translateY(-6px);
        border-color: var(--hm-accent);
        box-shadow: 0 18px 34px rgba(8, 43, 89, .16);
        color: var(--hm-text);
        text-decoration: none !important;
    }

/* ---------- تصویر ---------- */
.blog-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(150deg, var(--hm-blue) 0%, var(--hm-ink) 100%);
}

    .blog-thumb > img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s cubic-bezier(.22,.61,.36,1);
    }

.blog-card:hover .blog-thumb > img {
    transform: scale(1.06);
}

/* جای‌نگهدار تصویر (تا وقتی عکس واقعی نیست) */
.blog-thumb-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .45);
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 26px 26px;
}

    .blog-thumb-ph svg {
        width: 56px;
        height: 56px;
    }

/* برچسب دسته */
.blog-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--hm-gold);
    color: var(--hm-ink);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(8, 43, 89, .25);
}

/* ---------- بدنه ---------- */
.blog-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 20px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: iranNum, yekan2, sans-serif;
    font-size: 12px;
    color: var(--hm-muted);
}

.blog-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--hm-disabled);
}

.blog-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 17px;
    font-weight: 800;
    line-height: 28px;
    color: var(--hm-ink);
    transition: color .25s ease;
}

.blog-card:hover .blog-title {
    color: var(--hm-blue);
}

.blog-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 25px;
    color: var(--hm-muted);
}

.blog-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--hm-blue);
    transition: color .25s ease, gap .3s ease;
}

    .blog-more svg {
        width: 16px;
        height: 16px;
        flex: 0 0 auto;
    }

.blog-card:hover .blog-more {
    color: var(--hm-ink);
    gap: 14px;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 700px) {
    .blog-section {
        padding: 28px 0 0;
    }

        .blog-section .os-head {
            gap: 10px;
            margin-bottom: 22px;
        }

        .blog-section .os-title {
            font-size: 19px;
            white-space: normal;
        }

    .blog-all {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* موبایل: اسکرول افقی با snap */
    .blog-grid {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding: 4px 2px 14px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .blog-grid::-webkit-scrollbar {
            display: none;
        }

    .blog-card {
        flex: 0 0 82%;
        scroll-snap-align: center;
    }

    .blog-title {
        font-size: 15.5px;
        line-height: 26px;
    }
}

/* لمسی: hover چسبنده نشود */
@media (hover: none) {
    .blog-card:hover {
        transform: none;
        border-color: var(--hm-line);
        box-shadow: none;
    }

        .blog-card:hover .blog-title {
            color: var(--hm-ink);
        }

        .blog-card:hover .blog-more {
            gap: 8px;
            color: var(--hm-blue);
        }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-thumb > img,
    .blog-more {
        transition: none;
    }
}
/* ===== آیکون کاشی‌های دسته‌بندی = تصویر wire.webp ===== */
.cat-tile-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}
.cat-tile:hover .cat-tile-icon img {
    filter: brightness(0) invert(1);
}

/* کارت‌های دارای عکس پس‌زمینه روشن‌اند و رنگ نباید عوض شود */
.cat-tile.has-art:hover .cat-tile-icon img {
    filter: none;
}
/* ===== اندازه‌ی نسبی متن و دکمه در کارت‌های دارای عکس ===== */
.cat-tile.has-art .cat-tile-card,
.cat-tile.has-art:hover .cat-tile-card {
    padding: 0 27% !important;
    gap: 3cqw !important;
}

.cat-tile.has-art .cat-tile-icon {
    display: none;
}

.cat-tile.has-art .cat-tile-title {
    font-size: clamp(12px, 7.4cqw, 19px);
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    text-wrap: balance;
}

.cat-tile.has-art .cat-tile-arrow {
    display: none;
}
.cat-tile.has-art .cat-tile-title {
    transition: color .3s ease, transform .35s cubic-bezier(.22, .61, .36, 1);
}

.cat-tile.has-art:hover .cat-tile-title {
    color: #124A91;
    transform: translateY(-2px);
}
/* ===== موبایل: کارت‌های دسته‌بندی کوچک‌تر و متن ظریف‌تر ===== */
@media (max-width: 700px) {

    .cat-tiles-grid {
        gap: 10px 0;
        padding: 6px 4px;
    }

    /* کارت: دیگه از ستون بیرون نمی‌زنه */
    .cat-tile.has-art {
        width: 100%;
        margin: 0;
    }

        /* ناحیه‌ی متن: کمی جمع‌تر تا داخل شیشه بمونه */
        .cat-tile.has-art .cat-tile-card,
        .cat-tile.has-art:hover .cat-tile-card {
            padding: 0 24% !important;
        }

        /* متن: کوچک‌تر و سبک‌تر */
        .cat-tile.has-art .cat-tile-title {
            font-size: clamp(10.5px, 6.2cqw, 13.5px);
            font-weight: 700;
            line-height: 1.55;
        }
}