.product-tabs .nav-tabs {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    padding: 10px 0
}

.product-tabs::after {
    content: "";
    display: block;
    height: 1px
}

.tab-content {
    margin-top: 20px
}

/* Header: white bar with the logo's mid blue (#0863c2) as accent over demo8 blue */
.header a:not(.btn):hover {
    color: #0863c2
}

.header-top {
    background: #0863c2
}

/* لینک‌های نوار بالا روی زمینهٔ آبی: hover نباید هم‌رنگ زمینه شود */
.header-top .header-right > a:hover,
.header-top .dropdown > a:hover {
    color: #fff;
    text-decoration: underline
}

/* در عرض‌های تبلت/موبایل شعار nowrap است و لینک‌ها را از صفحه بیرون می‌زد؛
   اسکرول افقی صفحه باعث می‌شد منوی موبایل (fixed) نیمه‌باز دیده شود و درست باز نشود */
@media (max-width: 991px) {
    .header-top .header-left {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .header-top .welcome-msg {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-top .header-right {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* در موبایل لینک‌های نوار بالا در منوی موبایل و نوار پایین هستند؛ جا را به شعار می‌دهیم */
@media (max-width: 767px) {
    .header-top .header-right {
        display: none;
    }
}

/* جابجایی صفحه هنگام باز شدن منوی موبایل، عرض صفحه را ۲۹۶px بیشتر می‌کرد و منو بریده دیده می‌شد */
.mmenu-active .page-wrapper {
    margin-right: 0;
    margin-left: 0;
}

.header-middle {
    color: #333;
    background: #fff;
    border-bottom: 1px solid #eee
}

.header-middle .header-right > a:hover,
.header-middle .dropdown > a:hover {
    color: #0863c2
}

.header-search input.form-control {
    border-color: #0863c2
}

.header-search .btn-search {
    border-color: #0863c2
}

.header-search .btn-search:hover,
.header-search .btn-search:active,
.header-search .btn-search:focus {
    color: #0863c2;
    background-color: transparent
}

.header-search.hs-expanded .select-box {
    border-color: #0863c2
}

.header-search.hs-toggle:hover {
    color: #0863c2
}

.header-call .chat a:hover,
.header-call:hover .w-icon-call,
.header-call:hover .phone-number {
    color: #0863c2
}

.category-dropdown:hover > a,
.category-dropdown.show > a {
    color: #fff;
    background-color: #0863c2
}

/* BannerShopProducts: style-rtl .col-lg-3 used to win over demo8 5-col at xl */
/*@media (min-width: 1200px) {
    .banner-product-wrapper .col-xl-5col3,
    .banner-product-wrapper .col-xl-5col {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%
    }
}*/

/* Theme has .d-none (!important) but no Bootstrap .d-sm-block; needed so the odd last
   BannerShopProducts item is hidden only on xs, not on every screen size */
@media (min-width: 576px) {
    .d-sm-block {
        display: block !important
    }
}

/* Category menu icons (water-treatment set). Glyph-like: size = font-size, color = currentColor */
.kh-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1;
    vertical-align: middle;
    font-style: normal
}

.kh-icon::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    -webkit-mask: var(--kh-icon) center / contain no-repeat;
    mask: var(--kh-icon) center / contain no-repeat;
    transform: scale(1.2)
}

/* Industrial water treatment systems: twin pressure vessels on skid */
.kh-icon-water-plant {
    --kh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='6' height='13' rx='3'/%3E%3Crect x='11' y='4' width='6' height='16' rx='3'/%3E%3Cpath d='M9 10.5h2M9 15.5h2M17 9h2.5a1.5 1.5 0 0 1 1.5 1.5V21M2 21h20'/%3E%3C/svg%3E")
}

/* Filtration, resin & softener: tank with control valve and resin bed */
.kh-icon-softener {
    --kh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9.5' y='2' width='5' height='3' rx='.8'/%3E%3Cpath d='M9.5 3.5H6.5M14.5 3.5h3'/%3E%3Crect x='7' y='5' width='10' height='17' rx='4'/%3E%3Cpath d='M7 10h10'/%3E%3Cg fill='black' stroke='none'%3E%3Ccircle cx='10' cy='13' r='1'/%3E%3Ccircle cx='14' cy='13' r='1'/%3E%3Ccircle cx='12' cy='15.8' r='1'/%3E%3Ccircle cx='10' cy='18.5' r='1'/%3E%3Ccircle cx='14' cy='18.5' r='1'/%3E%3C/g%3E%3C/svg%3E")
}

/* RO equipment & parts: membrane housing with end caps and ports */
.kh-icon-membrane {
    --kh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='8' width='20' height='8' rx='2'/%3E%3Cpath d='M5.5 8v8M18.5 8v8M8.5 10.7h7M8.5 13.3h7M4 8V4.5M20 16v3.5'/%3E%3C/svg%3E")
}

/* Water disinfection equipment: shield protecting a water drop */
.kh-icon-disinfection {
    --kh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l7.5 3V11c0 4.6-3.2 8.6-7.5 10.5C7.7 19.6 4.5 15.6 4.5 11V5.5z'/%3E%3Cpath d='M12 7.5c-1.8 2.4-3 4-3 5.5a3 3 0 0 0 6 0c0-1.5-1.2-3.1-3-5.5z'/%3E%3C/svg%3E")
}

/* RO consumables & chemicals: chemical jerrycan */
.kh-icon-jerrycan {
    --kh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='8' width='14' height='13.5' rx='1.5'/%3E%3Cpath d='M7.5 8V5.5A1.5 1.5 0 0 1 9 4h3a1.5 1.5 0 0 1 1.5 1.5V8M15.5 8V4h2.5v4'/%3E%3Crect x='8' y='12' width='8' height='5.5' rx='.6'/%3E%3C/svg%3E")
}

/* Water & wastewater chemicals: lab flask with liquid and bubbles */
.kh-icon-flask {
    --kh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2.5h6M10 2.5V9l-5.4 9.4A1.7 1.7 0 0 0 6.1 21h11.8a1.7 1.7 0 0 0 1.5-2.6L14 9V2.5M7 15h10'/%3E%3Cg fill='black' stroke='none'%3E%3Ccircle cx='10.5' cy='18' r='.9'/%3E%3Ccircle cx='13.8' cy='17.6' r='.7'/%3E%3Ccircle cx='12' cy='11.8' r='.6'/%3E%3C/g%3E%3C/svg%3E")
}

/* RO control & instrumentation: pressure gauge */
.kh-icon-gauge {
    --kh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='10' r='7.5'/%3E%3Cpath d='M12 10l3.3-3.3M7 10h1.2M15.8 10H17M12 5v1.2M8.5 6.5l.85.85M10.5 17.5v2h3v-2M8.5 21.5h7'/%3E%3Ccircle cx='12' cy='10' r='1.1' fill='black' stroke='none'/%3E%3C/svg%3E")
}

/* Fallback for water-related categories */
.kh-icon-water {
    --kh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.8C8.6 7.2 6 10.6 6 14a6 6 0 0 0 12 0c0-3.4-2.6-6.8-6-11.2z'/%3E%3Cpath d='M9.2 14.5a2.9 2.9 0 0 0 2.6 2.7'/%3E%3C/svg%3E")
}

/* Home guide cards (ImageIntroduce): photo on the left, copy on a light wash; middle card in brand gradient */
.guide-cards {
    margin-bottom: .6rem
}

.guide-cards .swiper-slide {
    height: auto
}

.guide-card {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 23rem;
    overflow: hidden;
    border: 1px solid #e3eaf1;
    border-radius: 1.2rem;
    background: #f4f7fa;
    box-shadow: 0 4px 16px rgba(23, 64, 107, .07);
    color: #17406b;
    transition: transform .3s, box-shadow .3s
}

.guide-card:hover,
.guide-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(23, 64, 107, .14);
    color: #17406b
}

.guide-card:focus-visible {
    outline: 2px solid #0088dd;
    outline-offset: 2px
}

.guide-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    transition: transform .6s
}

.guide-card:hover .guide-card-img {
    transform: scale(1.04)
}

/* Even out the photos' wall tones so both light cards share one backdrop behind the copy */
.guide-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to left, rgba(246, 249, 252, .96) 0, rgba(246, 249, 252, .9) 48%, rgba(246, 249, 252, 0) 70%)
}

.guide-card-body {
    position: relative;
    z-index: 2;
    width: 64%;
    padding: 2rem 2.2rem
}

.guide-card-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .4rem 1rem;
    border-radius: 2rem;
    background: rgba(0, 136, 221, .1);
    color: #0077c2;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4
}

.guide-card-tag .kh-icon {
    font-size: 1.3rem
}

.guide-card-title {
    margin-bottom: .6rem;
    color: #17406b;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.4
}

.guide-card-text {
    margin-bottom: 1.6rem;
    color: #5d6b78;
    font-size: 1.35rem;
    line-height: 1.8
}

.guide-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem .7rem .7rem 1.6rem;
    border-radius: 2rem;
    background: #336699;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    transition: background-color .3s
}

.guide-card-cta i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    font-size: 1.4rem;
    transition: transform .3s
}

.guide-card:hover .guide-card-cta {
    background: #0088dd
}

.guide-card:hover .guide-card-cta i {
    transform: translateX(-3px)
}

/* Brand card: navy-to-water-blue gradient with soft waves and a large gauge mark */
.guide-card-brand {
    border-color: transparent;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q50 10 100 30 T200 30 T300 30 T400 30 V60 H0Z' fill='white' fill-opacity='.07'/%3E%3Cpath d='M0 42 Q50 24 100 42 T200 42 T300 42 T400 42 V60 H0Z' fill='white' fill-opacity='.07'/%3E%3C/svg%3E") bottom / 100% 6rem no-repeat,
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .16), transparent 45%),
        linear-gradient(135deg, #17406b 0, #336699 45%, #0088dd 100%);
    color: #fff
}

.guide-card-brand::before {
    content: none
}

.guide-card-brand:hover,
.guide-card-brand:focus-visible {
    color: #fff
}

.guide-card-mark {
    position: absolute;
    left: -1.5rem;
    top: 50%;
    z-index: 1;
    font-size: 15rem;
    color: rgba(255, 255, 255, .1);
    transform: translateY(-50%) rotate(-12deg);
    transition: transform .6s
}

.guide-card-brand:hover .guide-card-mark {
    transform: translateY(-50%) rotate(0)
}

.guide-card-brand .guide-card-body {
    width: 80%
}

.guide-card-brand .guide-card-tag {
    background: rgba(255, 255, 255, .16);
    color: #fff
}

.guide-card-brand .guide-card-title {
    color: #fff
}

.guide-card-brand .guide-card-text {
    color: rgba(255, 255, 255, .82)
}

.guide-card-brand .guide-card-cta {
    background: #fff;
    color: #17406b
}

.guide-card-brand .guide-card-cta i {
    background: rgba(0, 136, 221, .12);
    color: #0088dd
}

.guide-card-brand:hover .guide-card-cta {
    background: #fff
}

@media (max-width: 1199px) {
    .guide-card-body {
        width: 70%;
        padding: 1.8rem 1.6rem
    }

    .guide-card-cta {
        padding-left: 1.2rem;
        font-size: 1.2rem
    }

    .guide-card-title {
        font-size: 1.9rem
    }

    .guide-card-text {
        font-size: 1.25rem
    }
}

/* Footer social icons: larger buttons with per-network brand styling */
.footer .social-icons-colored {
    gap: .8rem;
    margin-top: .6rem
}

.footer .social-icons-colored .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    margin: 0;
    font-size: 1.8rem;
    line-height: 1;
    color: #fff;
    border: 0;
    border-radius: .8rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    transition: transform .25s, box-shadow .25s, filter .25s
}

.footer .social-icons-colored .social-icon:hover,
.footer .social-icons-colored .social-icon:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
    filter: brightness(1.08)
}

.footer .social-icons-colored .social-icon:focus-visible {
    outline: 2px solid #0088dd;
    outline-offset: 2px
}

.footer .social-icons-colored .social-icon.social-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%)
}

.footer .social-icons-colored .social-icon.social-telegram {
    background: linear-gradient(180deg, #37aee2 0%, #1e96c8 100%)
}

.footer .social-icons-colored .social-icon.social-aparat {
    background: linear-gradient(180deg, #f2316f 0%, #d6094b 100%)
}

.footer .social-icons-colored .social-icon.social-bale {
    background: linear-gradient(180deg, #2ed3a5 0%, #0fa57d 100%)
}

.footer .social-icons-colored .social-icon.social-rubika {
    background: linear-gradient(135deg, #7b2ff7 0%, #d6249f 55%, #f9873b 100%)
}

.footer .social-icons-colored .social-icon.ks-icon {
    font-size: 1.8rem
}

/* Footer: سرمه‌ای هم‌رنگ متن لوگو (#0a2947) با نوار کپی‌رایت تیره‌تر */
.kh-footer {
    background: #08294a;
    color: #c9d6e3;
    font-size: 1.35rem;
    line-height: 1.9
}

.kh-footer-top {
    padding: 5rem 0 3rem
}

.kh-footer-col {
    margin-bottom: 2.4rem
}

.kh-footer a {
    color: #c9d6e3;
    transition: color .2s
}

.kh-footer a:hover,
.kh-footer a:focus-visible {
    color: #fff
}

.kh-footer-title {
    margin: 0 0 1.4rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6
}

/* نسخهٔ روشن لوگو (Logo-light.png) مستقیم روی زمینهٔ تیره */
.kh-footer-logo {
    display: inline-flex
}

.kh-footer-logo img {
    width: 180px;
    height: auto
}

.kh-footer-about {
    margin: 1.4rem 0;
    color: #c9d6e3
}

.kh-footer-enamad {
    display: inline-block;
    padding: .4rem;
    background: #fff;
    border-radius: .8rem
}

.kh-footer-enamad img {
    display: block;
    width: 80px;
    height: auto
}

.kh-footer-links,
.kh-footer-contact {
    margin: 0;
    padding: 0;
    list-style: none
}

.kh-footer-links li {
    margin-bottom: .5rem
}

.kh-footer-catalogs i {
    margin-left: .8rem;
    color: #61cdff;
    font-size: 1.2rem
}

.kh-footer-contact li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: .8rem
}

.kh-footer-contact i {
    flex-shrink: 0;
    width: 1.6rem;
    color: #61cdff;
    text-align: center
}

.kh-footer .social-icons-colored {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.6rem
}

.kh-footer .social-icons-colored .social-icon,
.kh-footer .social-icons-colored .social-icon:hover {
    color: #fff
}

.kh-footer-bottom {
    padding: 1.4rem 0;
    background: #061e37
}

.kh-footer-copyright {
    margin: 0;
    color: #8fa6bd;
    font-size: 1.25rem;
    text-align: center
}

/* بخش‌های کشویی: در دسکتاپ و تبلت عنوان ساده است */
.kh-footer-collapse > summary {
    display: block;
    list-style: none
}

.kh-footer-collapse > summary::-webkit-details-marker {
    display: none
}

@media (min-width: 576px) {
    .kh-footer-collapse > summary {
        pointer-events: none
    }
}

/* موبایل: عنوان بخش‌های کشویی دکمهٔ باز و بسته شدن است */
@media (max-width: 575px) {
    .kh-footer-top {
        padding: 3.5rem 0 1.5rem
    }

    .kh-footer-col {
        margin-bottom: 2rem
    }

    .kh-footer-collapse {
        border-top: 1px solid #1f4369;
        border-bottom: 1px solid #1f4369
    }

    .kh-footer-col + .kh-footer-col .kh-footer-collapse {
        border-top: 0
    }

    .kh-footer-col:has(.kh-footer-collapse) {
        margin-bottom: 0
    }

    .kh-footer-col:has(.kh-footer-collapse) + .kh-footer-col:not(:has(.kh-footer-collapse)) {
        margin-top: 2.4rem
    }

    .kh-footer-collapse > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.2rem 0;
        cursor: pointer
    }

    .kh-footer-collapse > summary .kh-footer-title {
        margin: 0
    }

    .kh-footer-collapse > summary::after {
        content: "";
        width: .8rem;
        height: .8rem;
        border-left: 2px solid #c9d6e3;
        border-bottom: 2px solid #c9d6e3;
        transform: rotate(-45deg);
        transition: transform .2s
    }

    .kh-footer-collapse[open] > summary::after {
        transform: rotate(135deg)
    }

    .kh-footer-collapse > ul {
        padding-bottom: 1.2rem
    }
}

/* Social network icon font (built by tools/SocialIconFont/build-font.cs) */
@font-face {
    font-family: "khanehab-social";
    src: url("../fonts/khanehab-social.woff?v=1") format("woff"), url("../fonts/khanehab-social.ttf?v=1") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block
}

.ks-icon:before {
    font-family: "khanehab-social" !important;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.ks-instagram:before { content: "\e900" }
.ks-telegram:before { content: "\e901" }
.ks-aparat:before { content: "\e902" }
.ks-bale:before { content: "\e903" }
.ks-rubika:before { content: "\e904" }

/* Main nav dropdowns: demo8's 215px is too narrow for long product titles; keep text clear of the submenu arrow */
.main-nav .menu ul:not(.megamenu) {
    width: 280px;
    min-width: 280px
}

.main-nav .menu ul:not(.megamenu) li > a {
    padding-left: 1.8rem;
    line-height: 1.6
}

/* Nested submenus open to the left in RTL: demo8's chevron-right points the wrong way */
.main-nav .menu .submenu .has-submenu > a::after {
    content: "\f053"
}

/* Third-level lists hold long product titles: grow with content (capped so the list stays on screen) */
.main-nav .menu .submenu .submenu {
    width: max-content;
    max-width: 440px
}

@media (max-width: 1199px) {
    .main-nav .menu .submenu .submenu {
        max-width: 380px
    }
}

/* Mobile menu: demo8's 12px is small for touch reading; long product titles wrap, so give the lines room and keep text clear of the toggle arrow */
.mobile-menu {
    font-size: 1.3rem;
    line-height: 1.7
}

.mobile-menu li a {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem
}

.mobile-menu li a:has(.toggle-btn) {
    padding-left: 3rem
}

/* Home intro: the category menu is shorter than the slider on wide screens; taller items + a 2:1 slider close the gap */
@media (min-width: 1200px) {
    .category-dropdown.show-dropdown .category-menu > li > a {
        padding-top: 18px;
        padding-bottom: 18px
    }

    .intro-wrapper .intro-slide {
        height: auto;
        aspect-ratio: 2 / 1
    }

    .intro-wrapper .intro-slide figure {
        height: 100%
    }
}

/* Home intro below 1200px: demo8's fixed 50.9rem min-height leaves a white gap under the narrower image and drops the
   centered text below it; follow the image ratio instead and shrink the em-based slide text with the screen */
@media (max-width: 1199px) {
    .intro-wrapper .intro-slide {
        min-height: 0;
        height: auto;
        aspect-ratio: 904 / 509
    }

    .intro-wrapper .intro-slide figure {
        height: 100%
    }
}

@media (max-width: 767px) {
    .intro-wrapper .intro-slide {
        font-size: .7rem
    }

    .intro-wrapper .intro-slide .banner-title {
        margin-bottom: 1rem
    }

    .intro-wrapper .intro-slide p {
        font-size: 1.3rem;
        line-height: 1.6;
        margin-bottom: 1rem
    }

    .intro-wrapper .swiper-pagination {
        bottom: 1rem
    }
}

@media (max-width: 575px) {
    /* New home page: the slider spans the full phone width (cancels the container's 15px gutter) for a taller image without cropping */
    .home-page .intro-wrapper {
        margin-left: -15px;
        margin-right: -15px
    }

    .home-page .intro-wrapper .intro-slide,
    .home-page .intro-wrapper .intro-slide figure {
        /* !important to beat the theme's .br-sm */
        border-radius: 0 !important
    }

    .intro-wrapper .intro-slide {
        font-size: .5rem
    }

    .intro-wrapper .intro-slide .banner-content {
        max-width: 65%
    }

    .intro-wrapper .intro-slide .banner-title {
        margin-bottom: .6rem
    }

    .intro-wrapper .intro-slide p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: 1.1rem;
        margin-bottom: .6rem
    }

    .intro-wrapper .intro-slide .btn {
        font-size: 1.1rem;
        padding: .6em 1.2em
    }
}

/* Mobile header: hamburger stays on the right, logo image sits on the left */
@media (max-width: 479px) {
    .header-middle .logo {
        min-width: 0;
        max-width: 120px;
        margin: 0 auto 0 0;
    }
}

/* گوشی‌های خیلی کوچک (۳۲۰px): لینک‌های نوار بالا با فاصلهٔ ۲۰px جا نمی‌شدند و صفحه اسکرول افقی می‌گرفت */
@media (max-width: 374px) {
    .header-top .header-right > * {
        margin-right: 10px;
    }
}

/* ===== مقایسه محصولات: نوار پایین صفحه (shop-compare.js) ===== */
.compare-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    z-index: 1050;
    display: none;
    align-items: center;
    gap: 1.2rem;
    max-width: calc(100% - 32px);
    padding: .8rem 1.2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
    transform: translateX(-50%);
    direction: rtl;
}
.compare-bar.show { display: flex; }
.compare-bar-items { display: flex; gap: .6rem; }
.compare-bar-item {
    position: relative;
    width: 52px;
    height: 52px;
    border: 1px solid #eee;
    border-radius: .6rem;
    background: #fafafa;
}
.compare-bar-item img { width: 100%; height: 100%; object-fit: contain; border-radius: .6rem; }
.compare-bar-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}
.compare-bar-info { display: flex; flex-direction: column; font-size: 1.3rem; white-space: nowrap; }
.compare-bar-note { color: #d26e4b; font-size: 1.2rem; }
.compare-bar-actions { display: flex; align-items: center; gap: .8rem; }
.compare-bar-go.disabled { opacity: .5; }
.compare-bar-clear { padding: 0; border: 0; background: none; color: #999; font-size: 1.3rem; cursor: pointer; }
.compare-bar-clear:hover { color: #333; }
.product .btn-compare.added { color: #fff; background-color: #369; border-color: #369; }

@media (max-width: 767px) {
    /* بالای sticky-footer موبایل */
    .compare-bar { bottom: 75px; gap: .8rem; padding: .6rem .8rem; }
    .compare-bar-item { width: 40px; height: 40px; }
    .compare-bar-info { display: none; }
}

/* ===== صفحه مقایسه ===== */
.compare-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.compare-diff-toggle { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.4rem; cursor: pointer; }
.compare-empty { padding: 4rem 1rem; text-align: center; }
.compare-empty > i { display: block; margin-bottom: 1rem; font-size: 4rem; color: #ccc; }
.compare-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #eee; border-radius: .8rem; }
.compare-table { width: 100%; min-width: calc(150px + var(--compare-cols, 3) * 180px); border-collapse: collapse; table-layout: fixed; font-size: 1.4rem; }
.compare-table th, .compare-table td { padding: 1.2rem 1rem; border-bottom: 1px solid #eee; text-align: center; vertical-align: middle; word-break: break-word; }
.compare-table th[scope="row"] { width: 150px; background: #f8f8f8; color: #333; font-weight: 600; text-align: right; }
.compare-table td + td { border-right: 1px solid #f0f0f0; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-section-row th { background: #369; color: #fff; text-align: right; }
.compare-table.only-diff .compare-same { display: none; }
.compare-product { position: relative; }
.compare-product img { display: block; max-width: 160px; width: 100%; height: auto; margin: 0 auto .8rem; }
.compare-product-name { margin: 0; font-size: 1.4rem; font-weight: 600; line-height: 1.6; color: #333; }
.compare-remove { position: absolute; top: 0; left: 0; padding: .3rem; border: 0; background: none; color: #999; cursor: pointer; }
.compare-remove:hover { color: #d26e4b; }
.compare-price ins { display: block; text-decoration: none; font-weight: 600; }
.compare-price del { color: #999; font-size: 1.2rem; }

@media (max-width: 575px) {
    .compare-table th[scope="row"] { width: 88px; padding: 1rem .6rem; }
    .compare-table { min-width: calc(88px + var(--compare-cols, 3) * 128px); }
    .compare-table th, .compare-table td { padding: 1rem .6rem; }
    .compare-table { font-size: 1.3rem; }
}

/* BannerShopProducts: text stays in the right-hand 40% so the product photo is not covered */
.banner-product-wrapper .banner-content {
    width: 40%;
    right: 6.2%;
    left: auto;
    box-sizing: border-box
}

.banner-product-wrapper .banner-title {
    font-size: 2.4em;
    line-height: 1.35
}

.banner-product-wrapper .banner-content .btn {
    white-space: normal
}

.banner-product-wrapper .banner-divider {
    margin: 0.8rem 0 1rem
}

@media (max-width: 575px) {
    .banner-product-wrapper .banner-title {
        font-size: 1.7rem
    }
}
