/**
 * صفحه اصلی — موبایل / viewport باریک (≤991px)
 */

@media (min-width: 992px) {
    .hamta-home-search-dock,
    .hm-dsl,
    .crafto-blanton-grid__head--mobile-only,
    .crafto-blanton-grid__more--mobile-only {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    body.home,
    body.page-id-159241,
    .home-mega-app {
        --hm-brand: #812990;
        --hm-brand-deep: #5c1d66;
        --hm-surface: #f4f6fb;
        --hm-card: #ffffff;
        --hm-text: #0f172a;
        --hm-muted: #64748b;
        --hm-border: rgba(15, 23, 42, 0.08);
        --hm-radius: 16px;
        --hm-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
        background: var(--hm-surface);
    }

    body.home main .container {
        padding-inline: 0;
    }

    /* ─── هدر: بدون override پهنا — همان layout-enhanced سراسری ─── */
    body.hpb-has-site-header .hd-mobile-top-spacer,
    body.hpb-has-site-header .hpb-lb-mobile-spacer,
    body.home:has(#hpb-site-header) .hd-mobile-top-spacer,
    body.home:has(#hpb-site-header) .hpb-lb-mobile-spacer {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .hpb-lb-sticky-bottom-host {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }

    body.hpb-has-site-header,
    body:has(#hpb-site-header),
    body.home:has(#hpb-site-header),
    body.hpb-has-sticky-bottom-nav {
        padding-top: env(safe-area-inset-top, 0) !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0)) !important;
    }

    body.home main.home-mega-app,
    body.home .home-mega-app {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* ─── ریتم فاصله یکدست بین سکشن‌ها و آیتم‌ها ─── */
    body.home main.crafto-home,
    body.home .crafto-home.home-v2-app,
    body.home main.home-v2-app {
        --h-gap: 8px !important;
        --h-pad: 0 !important;
        gap: 8px !important;
        padding: 0 0 8px !important;
        overflow-x: hidden;
    }

    /* استایل/لینک داخل main فاصلهٔ flex نسازند */
    body.home main.crafto-home > style,
    body.home main.crafto-home > link,
    body.home main.home-v2-app > style,
    body.home main.home-v2-app > link {
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
        clip: rect(0, 0, 0, 0) !important;
    }

    /* سکشن خالی هیرو تماس — فقط فاصله می‌ساخت */
    body.home main .crafto-section.contact-hero:not(:has(.contact-hero__title, .contact-hero__text, h1, h2, p, a, img, button, input)) {
        display: none !important;
    }

    body.home main.crafto-home > .hpb-sp-styled,
    body.home main.crafto-home > .crafto-section,
    body.home main.home-v2-app > .hpb-sp-styled,
    body.home main.home-v2-app > .crafto-section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    body.home main .hamta-flash-deals {
        margin: 0 !important;
    }

    body.home main .crafto-products .hpb-carousel,
    body.home main .crafto-news-block .hpb-carousel {
        --hpb-gap: 8px !important;
        padding: 2px 0 8px !important;
        overflow: visible !important;
        position: relative;
        z-index: 1;
        touch-action: pan-x pan-y !important;
    }

    body.home main .crafto-products .hpb-carousel__swiper,
    body.home main .crafto-products .hpb-carousel .swiper {
        padding: 2px 0 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        contain: none !important;
        touch-action: pan-x pan-y !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    body.home main .crafto-products .hpb-carousel .swiper-wrapper {
        align-items: stretch;
        padding: 1px 0 2px;
        transform: none !important;
        width: max-content !important;
        max-width: none !important;
        overflow: visible !important;
    }

    body.home main .crafto-products .hpb-carousel .swiper-wrapper::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    body.home main .crafto-products .hpb-carousel .swiper-slide,
    body.home main .crafto-products .hpb-carousel__slide {
        height: auto !important;
        padding: 1px 1px 3px;
        box-sizing: border-box;
    }

    body.home .crafto-products,
    body.home .crafto-products .crafto-container,
    body.home .crafto-products .hpb-carousel-mega-product,
    body.home .crafto-products .hpb-module--carousel {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body.home .crafto-products__header,
    body.home main .crafto-products__header,
    body.home .crafto-products .hpb-mega-top-arrow-header,
    body.home main .crafto-products .hpb-mega-top-arrow-header {
        position: relative !important;
        z-index: 4 !important;
        order: -1 !important;
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: calc(100% - 20px) !important;
        min-height: 28px !important;
        margin: -20px 0 38px !important;
        padding-inline: 0 !important;
        overflow: visible !important;
        padding: 0 10px !important;
    }

    body.home .crafto-products .hpb-mega-top-arrow-header__title,
    body.home .crafto-products .hpb-mega-top-arrow-link {
        display: revert !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }

    body.home .crafto-products:has(.crafto-products__header) .hpb-mega-top-arrow-header {
        display: none !important;
    }

    body.home .crafto-products .hpb-mega-top-arrow-header__tools {
        display: none !important;
    }

    body.home .crafto-products .crafto-products__panels,
    body.home .crafto-products .hpb-carousel {
        order: 2;
        position: relative;
        z-index: 1;
    }

    body.home main .slider_home_mega {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.home main .hpb-ctaimg-section {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.home main .request_consultant,
    body.home main .crafto-consult,
    body.home main .freebox_image {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    header.elementor-location-header,
    .elementor-location-header {
        display: none !important;
    }

    /* هدر سایت: فقط layout-enhanced / LayoutCriticalCss سراسری — بدون override خانه */

    /* بلانتون — فقط ظرف و فلش؛ ابعاد مربع از grid.css می‌آید و کوچک نمی‌شود */
    body.home,
    body.home main,
    body.home .home-mega-app,
    body.home .crafto-section,
    body.home .crafto-blanton-grid,
    body.home .crafto-blanton-grid__viewport {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.home {
        overflow-x: clip;
    }

    body.home .hpb-grid--blanton,
    body.home .hpb-grid--blanton-carousel {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    body.home .hpb-blanton-pager,
    body.home .hpb-grid--blanton .hpb-blanton-nav {
        display: none !important;
    }

    body.home .hpb-grid--blanton-carousel {
        padding-inline: 0 !important;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card.is-page-hidden {
        display: flex !important;
    }

    body.home .hpb-grid--blanton .hpb-blanton-grid {
        display: flex !important;
        flex-flow: row nowrap !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 0 !important;
        width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y !important;
        scroll-snap-type: none !important;
        padding: 4px 12px 8px;
        scrollbar-width: none;
    }

    body.home .hpb-grid--blanton .hpb-blanton-grid::-webkit-scrollbar {
        display: none;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card {
        flex: 0 0 calc(100% / 4.35) !important;
        width: calc(100% / 4.35) !important;
        max-width: none !important;
        min-width: 0 !important;
        scroll-snap-align: unset !important;
        -webkit-user-drag: none;
    }

    body.home .crafto-blanton-grid__head {
        display: flex !important;
        flex-flow: row nowrap !important;
        justify-content: space-between !important;
        align-items: center;
        text-align: right;
        padding: 4px 12px 6px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    body.home .crafto-blanton-grid__title {
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    body.home .crafto-blanton-grid__more {
        display: inline-flex !important;
        align-items: center;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        text-decoration: none;
        white-space: nowrap;
    }

    body.home .crafto-blanton-grid__subtitle {
        display: none;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card__wrapper {
        height: 88px !important;
        min-height: 88px !important;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card__circle {
        display: block !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        bottom: auto !important;
        width: 72px !important;
        height: 72px !important;
        border-radius: 50% !important;
        transform: translate(-50%, -50%) !important;
        box-shadow: none !important;
        background: #e7f3ff !important;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card:nth-child(8n + 2) .hpb-blanton-card__circle {
        background: #efe7ff !important;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card:nth-child(8n + 3) .hpb-blanton-card__circle {
        background: #ffe8f1 !important;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card:nth-child(8n + 4) .hpb-blanton-card__circle {
        background: #e6faf0 !important;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card:nth-child(8n + 5) .hpb-blanton-card__circle {
        background: #fff4d6 !important;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card:nth-child(8n + 6) .hpb-blanton-card__circle {
        background: #e6f8fb !important;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card:nth-child(8n + 7) .hpb-blanton-card__circle {
        background: #ffe9dc !important;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card:nth-child(8n + 8) .hpb-blanton-card__circle {
        background: #f3e8ff !important;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card__img {
        filter: none !important;
        max-width: 52px !important;
        max-height: 52px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        position: relative;
        z-index: 1;
    }

    body.home .hm-dsl,
    body.home .hm-dsl__scroller {
        touch-action: pan-x pan-y !important;
        box-shadow: none !important;
        background: transparent;
    }

    body.home .hm-dsl__slide {
        touch-action: pan-x pan-y !important;
        box-shadow: none !important;
    }

    body.home .hm-dsl {
        overflow: hidden !important;
        margin-bottom: 8px !important;
    }

    body.home .hm-dsl__scroller {
        padding: 0 12px !important;
        scroll-padding-inline: 12px !important;
    }

    body.home .hm-dsl__slide {
        flex-basis: calc(100% - 24px) !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        scroll-snap-align: center !important;
        box-shadow: none !important;
    }

    body.home .hm-dsl__dots,
    body.home .hm-dsl__dot {
        display: none !important;
    }

    body.home .hpb-grid--blanton .hpb-blanton-card__label {
        margin-top: 6px !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
        color: #3f4064 !important;
        min-height: 2.6em;
    }

    body.home main .slider_home_mega .hpb-slider,
    body.home main .slider_home_mega .hpb-slider__swiper,
    body.home main .slider_home_mega .hpb-slide__bg {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    body.home main .slider_home_mega .hpb-slider:not(.hpb-slider--dk-peek) .swiper-slide {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    #hpb-site-header .hamta-shop-search-mobile .hamta-mobile-search-toggle {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        border: 1px solid var(--hm-border);
        background: #fff;
    }

    body.home #hpb-site-header .hamta-shop-search-desktop,
    body.home #hpb-site-header .hamta-shop-search-mobile,
    body.home #hpb-site-header .hamta-mobile-search-toggle,
    body.home #hpb-site-header.hamta-has-org-header-link .hamta-shop-search-mobile,
    body.home #hpb-site-header.hamta-has-org-header-link .hamta-mobile-search-toggle {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .hamta-home-search-dock {
        position: relative;
        top: auto;
        z-index: auto;
        background: #ffffff;
        padding: 8px 12px 10px;
        margin: 0 0 6px;
    }

    .hamta-home-search-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        border: 0;
        border-radius: 8px;
        background: #f0f0f1;
        color: #81858b;
        font-size: 13px;
        font-weight: 500;
        font-family: inherit;
        line-height: 1.4;
        text-align: right;
        cursor: pointer;
    }

    .hamta-home-search-bar i {
        font-size: 16px;
        color: #a1a3a8;
    }

    .hamta-home-search-bar span {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.home .hamta-sw-mobile-overlay,
    #hpb-site-header .hamta-sw-mobile-overlay {
        display: block !important;
    }

    .hamta-mobile-search-overlay.is-open {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* ─── اسلایدر — الگوی دیجی‌کالا با ارتفاع تصویر خودمان ─── */
    body.home main .slider_home_mega,
    body.home main .crafto-section.crafto-hero {
        margin: 8px 0 12px;
    }

    body.home main .crafto-hero .crafto-container {
        padding-inline: 0 !important;
        max-width: none !important;
    }

    body.home main .slider_home_mega .hpb-slider,
    body.home main .slider_home_mega .hpb-slider__swiper {
        border-radius: 0;
        overflow: hidden;
        box-shadow: none;
    }

    body.home main .slider_home_mega .hpb-slider--dk-peek .swiper-slide {
        width: calc(100% - 32px) !important;
        max-width: none !important;
        overflow: hidden;
    }

    body.home main .slider_home_mega .hpb-slider--dk-peek .swiper-slide,
    body.home main .slider_home_mega .hpb-slider--dk-peek .hpb-slide,
    body.home main .slider_home_mega .hpb-slider--dk-peek .hpb-slide__inner,
    body.home main .slider_home_mega .hpb-slider--dk-peek img.hpb-slide__bg--img {
        border-radius: 8px !important;
        overflow: hidden;
    }

    body.home main .slider_home_mega .hpb-slider--dk-peek .hpb-slider__arrow,
    body.home main .slider_home_mega .hpb-slider--dk-peek .hpb-slider__pagination,
    body.home main .slider_home_mega .hpb-slider--dk-peek .swiper-button-prev,
    body.home main .slider_home_mega .hpb-slider--dk-peek .swiper-button-next {
        display: none !important;
    }

    body.home main .slider_home_mega .hpb-slider__swiper {
        min-height: 0;
        aspect-ratio: unset;
    }

    /* ارتفاع تنظیم‌شده — فقط وقتی ارتفاع موبایل جدا ست شده؛ وگرنه تصویر ارتفاع را تعیین می‌کند */
    body.home main .slider_home_mega .hpb-slider--has-height-mobile .hpb-slider__frame,
    body.home main .slider_home_mega .hpb-slider--has-height-mobile .hpb-slider__swiper,
    body.home main .slider_home_mega .hpb-slider--has-height-mobile .hpb-slider__swiper.swiper,
    body.home main .slider_home_mega .hpb-slider--has-height-mobile .swiper-slide,
    body.home main .slider_home_mega .hpb-slider--has-height-mobile .hpb-slide,
    body.home main .slider_home_mega .hpb-slider--has-height-mobile .hpb-slide__inner {
        aspect-ratio: unset !important;
        height: var(--hpb-slider-h-mobile) !important;
        min-height: var(--hpb-slider-h-mobile) !important;
        max-height: none !important;
    }

    body.home main .slider_home_mega .hpb-slider--fit-image-mobile:not(.hpb-slider--has-height-mobile) .hpb-slider__frame,
    body.home main .slider_home_mega .hpb-slider--fit-image-mobile:not(.hpb-slider--has-height-mobile) .hpb-slider__swiper,
    body.home main .slider_home_mega .hpb-slider--fit-image-mobile:not(.hpb-slider--has-height-mobile) .swiper-slide,
    body.home main .slider_home_mega .hpb-slider--fit-image-mobile:not(.hpb-slider--has-height-mobile) .hpb-slide,
    body.home main .slider_home_mega .hpb-slider--fit-image-mobile:not(.hpb-slider--has-height-mobile) .hpb-slide__inner {
        aspect-ratio: unset !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    body.home main .slider_home_mega .hpb-slider--fit-image-mobile:not(.hpb-slider--has-height-mobile) {
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }

    body.home main .slider_home_mega .hpb-slider--fit-image-mobile:not(.hpb-slider--has-height-mobile) img.hpb-slide__bg--img {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: none !important;
    }

    body.home main .slider_home_mega .hpb-slider--fit-image-mobile:not(.hpb-slider--has-height-mobile) .hpb-slide--has-mobile-bg img.hpb-slide__bg--mobile {
        display: block !important;
    }

    body.home main .slider_home_mega .hpb-slider--fit-image-mobile:not(.hpb-slider--has-height-mobile) .hpb-slide:not(.hpb-slide--has-mobile-bg).hpb-slide--has-tablet-bg img.hpb-slide__bg--tablet {
        display: block !important;
    }

    body.home main .slider_home_mega .hpb-slider--fit-image-mobile:not(.hpb-slider--has-height-mobile) .hpb-slide:not(.hpb-slide--has-mobile-bg):not(.hpb-slide--has-tablet-bg) img.hpb-slide__bg--desktop {
        display: block !important;
    }

    body.home main .slider_home_mega .swiper-button-prev,
    body.home main .slider_home_mega .swiper-button-next {
        width: 32px !important;
        height: 32px !important;
        background: rgba(255, 255, 255, 0.92) !important;
        border-radius: 50% !important;
        color: var(--hm-brand) !important;
    }

    /* ─── دکمه‌های مصرف‌کننده / نمایندگی ─── */
    body.home .home-segment-pills {
        margin: 10px 0 8px;
    }

    body.home .home-segment-pills__row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    body.home .home-segment-pills__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 10px 8px;
        border-radius: 14px;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
        text-align: center;
        line-height: 1.35;
        border: 1px solid transparent;
    }

    body.home .home-segment-pills__btn--consumer {
        background: linear-gradient(135deg, var(--hm-brand) 0%, #9b3aab 100%);
        color: #fff;
        box-shadow: 0 4px 14px rgba(129, 41, 144, 0.2);
    }

    body.home .home-segment-pills__btn--branch {
        background: var(--hm-card);
        color: var(--hm-brand-deep);
        border-color: rgba(129, 41, 144, 0.22);
    }

    /* ─── گرید دسته‌بندی — ارتفاع بهینه ─── */
    body.home main .home_mega_categoies .hpb-grid__inner {
        grid-auto-rows: minmax(0, auto) !important;
        gap: 10px !important;
    }

    body.home main .home_mega_categoies .hpb-grid__item {
        min-height: 0;
    }

    body.home main .home_mega_categoies .hpb-cat-card {
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
        min-height: 0;
    }

    body.home main .home_mega_categoies .hpb-cat-card__media {
        aspect-ratio: 1 / 1;
        max-height: 72px;
        padding: 8px;
    }

    body.home main .home_mega_categoies .hpb-cat-card__media img {
        object-fit: contain;
        max-height: 56px;
        width: auto;
        margin: 0 auto;
    }

    body.home main .home_mega_categoies .hpb-cat-card__icon {
        font-size: 1.75rem;
        padding: 8px;
    }

    body.home main .home_mega_categoies .hpb-cat-card__body {
        padding: 8px 10px 12px;
    }

    body.home main .home_mega_categoies .hpb-cat-card__title {
        font-size: 0.78rem;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }

    /* ─── بنر دریافت نمایندگی ─── */
    body.home main .freebox_image {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 12px;
        margin: 16px 0;
        padding: 20px 16px;
        min-height: 0;
        height: auto;
        border-radius: 20px;
        background: linear-gradient(135deg, #812990 0%, #673ab7 55%, #5ec8f0 100%);
        box-shadow: var(--hm-shadow);
        overflow: hidden;
    }

    body.home main .freebox_image .col-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
    }

    body.home main .freebox_image .circle {
        display: none !important;
    }

    body.home main .freebox_image h2 {
        margin: 0 0 8px;
        font-size: 1.05rem;
        font-weight: 800;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    body.home main .freebox_image .content,
    body.home main .freebox_image p {
        margin: 0 0 12px;
        font-size: 0.88rem;
        line-height: 1.65;
        color: rgba(255, 255, 255, 0.92);
    }

    body.home main .freebox_image a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        color: var(--hm-brand-deep);
        font-weight: 700;
        font-size: 0.9rem;
        padding: 10px 22px;
        border-radius: 999px;
        text-decoration: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    }

    body.home main .freebox_image .image_branch {
        display: flex;
        justify-content: center;
        max-width: 180px;
        margin: 0 auto;
        height: auto;
    }

    body.home main .freebox_image .image_branch img {
        width: 100%;
        max-width: 160px;
        height: auto;
        filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.35));
    }

    /* ─── فرم درخواست مشاوره — موبایل‌فرندلی ─── */
    body.home main .request_consultant {
        display: flex !important;
        flex-direction: column !important;
        margin: 16px 0;
        padding: 0;
        border-radius: 18px;
        overflow: hidden;
        background: linear-gradient(145deg, #7b1fa2 0%, #512da8 100%);
        border: none;
        box-shadow: var(--hm-shadow);
        position: relative;
    }

    body.home main .request_consultant::before,
    body.home main .request_consultant::after {
        display: none;
    }

    body.home main .request_consultant .col-6,
    body.home main .request_consultant .form_boxer,
    body.home main .request_consultant .the_form_container {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    body.home main .request_consultant .form_boxer {
        padding: 18px 16px 8px;
        color: #fff;
    }

    body.home main .request_consultant .inner_title > div,
    body.home main .request_consultant .inner_title {
        font-size: 1.05rem;
        font-weight: 800;
        color: #fff;
        margin-bottom: 8px;
    }

    body.home main .request_consultant .form_boxer p {
        margin: 0;
        font-size: 0.85rem;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.9);
    }

    body.home main .request_consultant .the_form_container {
        padding: 8px 16px 18px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    body.home main .request_consultant .hpb-home-consultation-form {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0;
    }

    body.home main .request_consultant .hpb-home-consultation-form.is-loading button[type="submit"] {
        opacity: 0.75;
        pointer-events: none;
    }

    body.home main .request_consultant .hpb-cta-newsletter__form-message {
        display: none;
        margin-top: 4px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 0.82rem;
        line-height: 1.6;
    }

    body.home main .request_consultant .hpb-cta-newsletter__form-message.is-visible.is-success {
        display: block;
        background: rgba(255, 255, 255, 0.95);
        color: #166534;
    }

    body.home main .request_consultant .hpb-cta-newsletter__form-message.is-visible.is-error {
        display: block;
        background: rgba(255, 255, 255, 0.95);
        color: #b91c1c;
    }

    body.home main .request_consultant label {
        display: block;
        font-size: 0.82rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.95);
        margin: 4px 0 2px;
    }

    body.home main .request_consultant input,
    body.home main .request_consultant select {
        width: 100% !important;
        min-height: 46px !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        background: #fff !important;
        font-size: 14px !important;
        box-sizing: border-box;
    }

    body.home main .request_consultant button {
        width: 100%;
        min-height: 48px;
        margin-top: 8px;
        padding: 12px 20px;
        border: none;
        border-radius: 12px;
        background: #fff;
        color: var(--hm-brand-deep);
        font-size: 15px;
        font-weight: 800;
        cursor: pointer;
    }

    /* ─── کاروسل‌ها — یکدست با محصولات، بدون progress bar ─── */
    .home-mega-app .home_mega_categoies,
    .home-mega-app section {
        margin-bottom: 8px;
    }

    .home-mega-app .hpb-mega-top-arrow-header,
    .home-mega-app .hpb-module-title {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-bottom: 6px !important;
    }

    /* عناوین سکشن و لینک همه — یک شکل در کل صفحه */
    body.home .crafto-blanton-grid__title,
    body.home .crafto-products__title,
    body.home .crafto-categories__title,
    body.home .crafto-consult__title,
    body.home .crafto-section-title,
    body.home .crafto-content-block__title,
    body.home .crafto-news .hpb-module-title__heading,
    body.home .crafto-partners .hpb-module-title__heading,
    body.home .crafto-partners .hpb-module-title__highlight,
    body.home .crafto-partners .hpb-module-title__rest,
    body.home .hpb-module-title__highlight,
    body.home .hpb-module-title__rest,
    body.home .hpb-mega-top-arrow-header__title,
    body.home .hpb-module-title__heading,
    body.home .hpb-shops-banner__title,
    body.home .hpb-all-cats__title,
    .home-mega-app .hpb-mega-top-arrow-header__title,
    .home-mega-app .hpb-module-title__heading,
    .home-mega-app .crafto-products__title {
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: #333 !important;
        margin: 0 !important;
    }

    body.home .crafto-partners .hpb-module-title,
    body.home .crafto-partners .hpb-module-title__row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin: 0 0 8px !important;
        padding: 0 10px !important;
    }

    body.home .crafto-partners .hpb-module-title__heading::after,
    body.home .crafto-partners .hpb-module-title__line,
    body.home .crafto-partners .hpb-module-title__pill,
    body.home .crafto-partners .hpb-module-title__subtitle {
        display: none !important;
    }

    body.home .crafto-blanton-grid__more,
    body.home .crafto-view-all,
    body.home .hpb-module-title__link,
    body.home .hpb-mega-top-arrow-link,
    body.home .hpb-mega-top-arrow-header__tools a,
    body.home .hpb-all-cats__back,
    .home-mega-app .crafto-view-all,
    .home-mega-app .hpb-module-title__link,
    .home-mega-app .hpb-mega-top-arrow-header__tools a,
    .home-mega-app .hpb-mega-top-arrow-link {
        font-size: 12px !important;
        font-weight: 400 !important;
        line-height: 1.3 !important;
        color: #333 !important;
        text-decoration: none !important;
        white-space: nowrap;
    }

    /* عنوان راست + لینک «+ همه» چپ، یک ردیف */
    body.home .crafto-products__header,
    .home-mega-app .crafto-products__header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    body.home .crafto-products__title,
    .home-mega-app .crafto-products__title {
        margin: 0 !important;
        flex: 1 1 auto;
        min-width: 0;
    }

    body.home .crafto-view-all,
    .home-mega-app .crafto-view-all {
        display: inline-flex !important;
        align-items: center !important;
        margin-inline-start: auto !important;
        white-space: nowrap !important;
        text-align: start !important;
        font-size: 12px !important;
        font-weight: 400 !important;
        color: #333 !important;
        text-decoration: none !important;
    }

    .home-mega-app .hpb-carousel__pagination,
    .home-mega-app .swiper-pagination-progressbar,
    .home-mega-app .hpb-mega-top-arrow-pagination,
    .home-mega-app .hpb-carousel--pag-progressbar .hpb-carousel__pagination {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: hidden !important;
    }

    .home-mega-app .hpb-carousel .swiper-button-prev,
    .home-mega-app .hpb-carousel .swiper-button-next {
        display: none !important;
    }

    .home-mega-app .hpb-carousel-mega-product .hpb-card,
    .home-mega-app .hpb-carousel .hpb-card,
    body.home .crafto-products .hpb-card {
        border: 1px solid #d5d7de !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        background-clip: padding-box !important;
    }

    body.home .crafto-products .add-to-cart-btn,
    body.home .crafto-products .contact-btn,
    body.home .crafto-products .btn-outstock,
    body.home .crafto-products .product-actions,
    body.home .hpb-carousel .add-to-cart-btn,
    body.home .hpb-carousel .contact-btn,
    body.home .hpb-carousel .btn-outstock,
    body.home .hpb-carousel .product-actions {
        display: none !important;
    }

    body.home .crafto-products .hpb-product-loop.product-card,
    body.home .crafto-products .hamta-product-card,
    body.home .hpb-carousel .hpb-product-loop.product-card,
    body.home .hpb-carousel .hamta-product-card {
        overflow: hidden !important;
        border: 1px solid #d5d7de !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        transform: none !important;
        isolation: isolate;
        background: #fff !important;
        background-clip: padding-box !important;
        box-sizing: border-box !important;
    }

    body.home .crafto-products .hpb-product-loop.product-card:hover,
    body.home .crafto-products .hamta-product-card:hover,
    body.home .hpb-carousel .hpb-product-loop.product-card:hover,
    body.home .hpb-carousel .hamta-product-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: #d5d7de !important;
    }

    body.home .crafto-products .product-image,
    body.home .hpb-carousel .product-image {
        overflow: hidden !important;
        border-radius: 11px 11px 0 0;
    }

    body.home .crafto-products .product-image img,
    body.home .hpb-carousel .product-image img {
        object-fit: contain !important;
        transform: none !important;
        inset: 0;
        max-width: 100%;
        max-height: 100%;
    }

    body.home .crafto-products .product-info,
    body.home .hpb-carousel .product-info {
        padding-bottom: 12px !important;
    }

    /* ─── نوار پایین ثابت ─── */
    .hpb-sticky-bottom-nav-shell.mobile-bottom-nav-shell {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 10060 !important;
    }

    body.hpb-has-sticky-bottom-nav,
    body.has-mobile-bottom-nav {
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0)) !important;
    }

    body.hpb-has-sticky-bottom-nav:has(.hpb-sticky-bottom-nav-shell--has-search),
    body.has-mobile-bottom-nav:has(.hpb-sticky-bottom-nav-shell--has-search) {
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0)) !important;
    }

    /* ─── فوتر: همان نسخه سراسری صفحات داخلی (بدون مخفی‌کردن ردیف‌ها) ─── */
    body.home #hpb-site-footer {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* offcanvas منو — خارج از جریان سند (جلوگیری از اسکرول سفید زیر فوتر) */
    .hpb-sticky-offcanvas.offcanvas,
    .offcanvas.mobile-menu-offcanvas {
        position: fixed !important;
        inset: 0 0 0 auto !important;
        width: min(100vw, 420px) !important;
        max-width: 100vw !important;
        height: 100% !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: 1050 !important;
    }

    .hpb-sticky-offcanvas.offcanvas.show,
    .offcanvas.mobile-menu-offcanvas.show {
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.home {
        min-height: 0 !important;
    }
}

@media (min-width: 992px) {
    .hpb-sticky-bottom-nav-shell.mobile-bottom-nav-shell {
        display: none !important;
    }
}
