/*
 Theme Name:   Avan Child
 Description:  Avan Child Theme
 Author:       Mostafa Kalantari
 Author URI:   https://rtl-theme.com/author/mostafa-kf/
 Template:     avan
 Version:      1.0.0
 Text Domain:  avan
*/

.avan-full-product-menu {
    direction: rtl;
    width: 100%;
}

.avan-full-product-menu__categories {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 4px;
    background: #fff;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.avan-full-product-menu__categories::-webkit-scrollbar {
    display: none;
}

.avan-full-product-menu__categories a {
    flex: 0 0 auto;
    padding: 8px 16px;
    color: #373737;
    background: #f5f5f5;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    touch-action: pan-x pan-y;
    transition: color .2s ease, background-color .2s ease;
}

.avan-full-product-menu__categories a.is-active,
.avan-full-product-menu__categories a:hover {
    color: #fff;
    background: #cb0236;
}

.avan-full-product-menu__section {
    padding-top: 24px;
    scroll-margin-top: 76px;
}

.avan-full-product-menu__title {
    margin: 0 0 16px;
    padding-right: 12px;
    color: #292929;
    font-size: 24px;
    font-weight: 700;
    border-right: 4px solid #cb0236;
}

.avan-full-product-menu__products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.avan-full-product-menu__product {
    display: flex;
    gap: 14px;
    min-width: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 16px;
}

.avan-full-product-menu__product a {
    touch-action: pan-y;
}

.avan-full-product-menu__image {
    flex: 0 0 112px;
}

.avan-full-product-menu__image img {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 12px;
}

.avan-full-product-menu__details {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.avan-full-product-menu__details h3 {
    margin: 2px 0 6px;
    font-size: 17px;
    line-height: 1.6;
}

.avan-full-product-menu__details h3 a {
    color: #292929;
    text-decoration: none;
}

.avan-full-product-menu__description {
    color: #777;
    font-size: 13px;
    line-height: 1.8;
}

.avan-full-product-menu__ingredients {
    margin-top: 6px;
    color: #666;
    font-size: 12px;
    line-height: 1.9;
}

.avan-full-product-menu__ingredients span {
    color: #292929;
    font-weight: 700;
}

.avan-full-product-menu__price {
    margin-top: auto;
    padding-top: 8px;
    color: #cb0236;
    font-weight: 700;
}

.avan-full-product-menu__empty {
    color: #777;
}

.avan-menu-product-title-text,
.avan-menu-product-meta,
.avan-menu-product-ingredients {
    display: block !important;
}

.avan-menu-product-meta,
.avan-menu-product-ingredients {
    margin-top: 4px;
    color: #777;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.7;
    white-space: normal;
}

.avan-menu-product-meta::before,
.avan-menu-product-ingredients::before {
    content: none !important;
}

.bt-hero-slider {
    position: relative;
    width: min(100% - 40px, 1320px);
    min-height: 620px;
    margin: 18px auto 48px;
    overflow: hidden;
    color: #fff;
    background: #02314b;
    border-radius: 32px;
    box-shadow: 0 24px 70px rgba(2, 49, 75, .18);
    isolation: isolate;
    box-sizing: border-box;
}

.elementor-element-btHero01,
.elementor-element-btHero01 > .e-con-inner,
.elementor-element-btHero01 .elementor-widget-shortcode,
.elementor-element-btHero01 .elementor-widget-container {
    max-width: 100%;
    overflow: visible;
}

.bt-hero-slider__viewport,
.bt-hero-slide {
    position: absolute;
    inset: 0;
}

.bt-hero-slide {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.025);
    transition: opacity .75s ease, transform 1.1s ease;
}

.bt-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 1;
}

.bt-hero-slide__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 7s ease;
}

.bt-hero-slide.is-active .bt-hero-slide__image {
    transform: scale(1);
}

.bt-hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 49, 75, .18), rgba(2, 49, 75, .62) 62%, rgba(2, 49, 75, .88)),
        linear-gradient(180deg, rgba(2, 49, 75, .2), rgba(2, 49, 75, .38));
}

.bt-hero-slide__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(560px, 52%);
    min-height: 620px;
    margin-right: clamp(28px, 6vw, 92px);
    padding: 64px 0;
    box-sizing: border-box;
}

.bt-hero-slide__eyebrow {
    width: max-content;
    max-width: 100%;
    padding: 7px 14px;
    color: #02314b;
    background: rgba(255, 255, 255, .86);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.bt-hero-slide__title {
    max-width: 560px;
    margin: 22px 0 16px;
    color: #fff;
    font-size: 58px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: 0;
    text-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    overflow-wrap: anywhere;
}

.bt-hero-slide__text {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 18px;
    font-weight: 500;
    line-height: 2;
}

.bt-hero-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.bt-hero-slide__button,
.bt-hero-slide__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.bt-hero-slide__button {
    color: #02314b;
    background: #fff;
}

.bt-hero-slide__link {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .34);
}

.bt-hero-slide__button:hover,
.bt-hero-slide__link:hover {
    transform: translateY(-2px);
}

.bt-hero-slider__controls {
    position: absolute;
    right: clamp(28px, 6vw, 92px);
    bottom: 34px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.bt-hero-slider__arrow,
.bt-hero-slider__dot {
    border: 0;
    cursor: pointer;
}

.bt-hero-slider__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #02314b;
    background: #fff;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.bt-hero-slider__dots {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.bt-hero-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    background: rgba(255, 255, 255, .55);
    border-radius: 999px;
    transition: width .25s ease, background-color .25s ease;
}

.bt-hero-slider__dot.is-active {
    width: 28px;
    background: #fff;
}

.bt-home-products {
    width: min(100% - 40px, 1320px);
    margin: 20px auto 72px;
    direction: rtl;
}

.bt-home-products__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.bt-home-products__head h2 {
    margin: 0;
    color: #02314b;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0;
}

.bt-home-products__head a {
    color: #679cbc;
    font-weight: 800;
    text-decoration: none;
}

.bt-home-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.bt-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(2, 49, 75, .08);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(2, 49, 75, .08);
}

.bt-product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 18px;
    background: #f4f8fa;
}

.bt-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bt-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.bt-product-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.65;
}

.bt-product-card h3 a {
    color: #02314b;
    text-decoration: none;
}

.bt-product-card__price {
    margin-top: auto;
    color: #bc8767;
    font-size: 15px;
    font-weight: 900;
}

.bt-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    color: #fff;
    background: #02314b;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.bt-offers-section,
.bt-best-sellers {
    width: min(100% - 40px, 1320px);
    margin: 48px auto 72px;
    direction: rtl;
}

.bt-offers-section {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.7fr);
    gap: 22px;
    align-items: stretch;
}

.bt-offers-section__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 34px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(2, 49, 75, .94), rgba(88, 134, 162, .9)),
        url("/keivan/wp-content/uploads/2026/06/baneh-tajer-ac-showroom-768x412.png");
    background-size: cover;
    background-position: center;
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(2, 49, 75, .14);
}

.bt-offers-section__intro span {
    width: max-content;
    max-width: 100%;
    padding: 6px 12px;
    color: #02314b;
    background: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.bt-offers-section__intro h2 {
    margin: 20px 0 12px;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: 0;
}

.bt-offers-section__intro p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    line-height: 2;
}

.bt-offers-section__intro a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    min-height: 42px;
    margin-top: 24px;
    padding: 0 18px;
    color: #02314b;
    background: #fff;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

.bt-offers-section__products .bt-home-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bt-site-footer {
    margin-top: 70px;
    color: #dbeaf1;
    background: #02314b;
}

.bt-site-footer__inner {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(180px, .9fr) minmax(240px, 1fr);
    gap: 28px;
    width: min(100% - 40px, 1320px);
    margin: 0 auto;
    padding: 44px 0;
}

.bt-site-footer__brand strong,
.bt-site-footer__contact strong {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.bt-site-footer__brand p {
    max-width: 520px;
    margin: 12px 0 0;
    line-height: 2;
}

.bt-site-footer__links {
    display: grid;
    gap: 10px;
}

.bt-site-footer__links a {
    color: #dbeaf1;
    text-decoration: none;
    font-weight: 700;
}

.bt-site-footer__contact span {
    display: block;
    margin-bottom: 10px;
    color: #9fc6d9;
    font-weight: 800;
}

.bt-testimonials {
    width: min(100% - 40px, 1320px);
    margin: 64px auto 72px;
    padding: 34px;
    direction: rtl;
    background: linear-gradient(135deg, #f5f9fb, #ffffff);
    border: 1px solid rgba(2, 49, 75, .08);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(2, 49, 75, .07);
}

.bt-testimonials__head {
    display: grid;
    gap: 8px;
    max-width: 620px;
    margin-bottom: 24px;
}

.bt-testimonials__head span {
    width: max-content;
    padding: 6px 12px;
    color: #02314b;
    background: #dbeaf1;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.bt-testimonials__head h2 {
    margin: 0;
    color: #02314b;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0;
}

.bt-testimonials__head p {
    margin: 0;
    color: #667985;
    line-height: 2;
}

.bt-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bt-testimonial-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid rgba(2, 49, 75, .08);
    border-radius: 18px;
}

.bt-testimonial-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #fff;
    background: #02314b;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 900;
}

.bt-testimonial-card h3 {
    margin: 0 0 4px;
    color: #02314b;
    font-size: 18px;
    font-weight: 900;
}

.bt-testimonial-card span {
    color: #8b9aa3;
    font-size: 13px;
    font-weight: 700;
}

.bt-testimonial-card p {
    grid-column: 1 / -1;
    margin: 10px 0 0;
    color: #4f626d;
    font-size: 15px;
    line-height: 2;
}

@media (max-width: 767px) {
    html,
    body {
        overflow-x: hidden;
    }

    .elementor-element-btHero01,
    .elementor-element-btHero01 > .e-con-inner,
    .elementor-element-btHero01 .elementor-widget-shortcode,
    .elementor-element-btHero01 .elementor-widget-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
    }

    .bt-hero-slider {
        width: auto;
        max-width: none;
        min-height: 560px;
        margin: 12px 12px 42px;
        border-radius: 22px;
    }

    .bt-hero-slide__shade {
        background:
            linear-gradient(180deg, rgba(2, 49, 75, .18), rgba(2, 49, 75, .86)),
            linear-gradient(90deg, rgba(2, 49, 75, .2), rgba(2, 49, 75, .35));
    }

    .bt-hero-slide__content {
        justify-content: flex-end;
        align-items: center;
        width: auto;
        max-width: 100%;
        min-height: 560px;
        margin: 0;
        padding: 24px 20px 88px;
        text-align: center;
        overflow: hidden;
    }

    .bt-hero-slide__eyebrow {
        width: auto;
        max-width: 100%;
        white-space: normal;
        font-size: 13px;
    }

    .bt-hero-slide__title {
        max-width: 100%;
        font-size: 23px;
        line-height: 1.3;
        white-space: normal !important;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .bt-hero-slide__text {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.9;
        white-space: normal;
    }

    .bt-hero-slide__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 22px;
    }

    .bt-hero-slide__button,
    .bt-hero-slide__link {
        width: 100%;
        min-height: 42px;
        padding: 0 14px;
        box-sizing: border-box;
        font-size: 14px;
    }

    .bt-hero-slider__controls {
        right: 22px;
        bottom: 24px;
    }

    .bt-home-products {
        width: auto;
        margin: 8px 12px 48px;
    }

    .bt-home-products__head h2 {
        font-size: 22px;
    }

    .bt-home-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .bt-product-card__image {
        padding: 12px;
    }

    .bt-product-card__body {
        padding: 12px;
    }

    .bt-product-card h3 {
        font-size: 13px;
        line-height: 1.6;
    }

    .bt-product-card__button {
        font-size: 12px;
    }

    .bt-offers-section,
    .bt-best-sellers {
        width: auto;
        margin: 36px 12px 48px;
    }

    .bt-offers-section {
        grid-template-columns: 1fr;
    }

    .bt-offers-section__intro {
        padding: 22px;
    }

    .bt-offers-section__intro h2 {
        font-size: 22px;
    }

    .bt-offers-section__products .bt-home-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bt-site-footer__inner {
        grid-template-columns: 1fr;
        width: auto;
        margin: 0 18px;
        padding: 34px 0;
    }

    .bt-testimonials {
        width: auto;
        margin: 42px 12px 48px;
        padding: 22px;
    }

    .bt-testimonials__head h2 {
        font-size: 22px;
    }

    .bt-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .avan-mobile-header > .megamenu-box {
        box-sizing: border-box;
        top: 0 !important;
        bottom: 0;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh;
        max-height: 100dvh;
        padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
    }

    .avan-mobile-header > .megamenu-box.open {
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        overscroll-behavior-y: contain;
        overflow-anchor: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .avan-mobile-header > .megamenu-box.open *,
    .avan-mobile-header > .megamenu-box.open a,
    .avan-mobile-header > .megamenu-box.open .title {
        touch-action: pan-y;
    }

    .avan-mobile-header > .megamenu-box.open ul,
    .avan-mobile-header > .megamenu-box.open .sub-categories {
        overflow: visible !important;
        overflow-y: visible !important;
        overscroll-behavior: none;
    }

    .avan-mobile-header > .megamenu-box.open > div[class*="menu-"] > ul.menu {
        max-height: none !important;
    }

    .avan-mobile-header > .megamenu-box.open ul.open {
        max-height: none !important;
    }

    .avan-mobile-header > .megamenu-box #profile-button {
        position: sticky !important;
        right: auto !important;
        bottom: calc(-24px - env(safe-area-inset-bottom));
        left: auto !important;
        z-index: 30;
        width: calc(100% + 40px);
        margin: 28px -20px 0;
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
        transform: none !important;
        background: rgba(255, 255, 255, .96);
        border-top: 1px solid #ededed;
        box-shadow: 0 -8px 20px rgba(0, 0, 0, .06);
        backdrop-filter: blur(8px);
    }

    .avan-mobile-header > .megamenu-box #profile-button > .flex {
        width: 100%;
    }

    .avan-mobile-header > .megamenu-box #profile-button a {
        flex: 1 1 0;
    }

    .avan-mobile-header > .megamenu-box #profile-button .btn,
    .avan-mobile-header > .megamenu-box #profile-button .btn2 {
        width: 100%;
        white-space: nowrap;
    }

    .avan-full-product-menu__section {
        padding-top: 20px;
    }

    .avan-full-product-menu__title {
        font-size: 20px;
    }

    .avan-full-product-menu__products {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .avan-full-product-menu__product {
        gap: 10px;
        padding: 10px;
    }

    .avan-full-product-menu__image {
        flex-basis: 88px;
    }

    .avan-full-product-menu__image img {
        width: 88px;
        height: 88px;
    }

    .avan-full-product-menu__details h3 {
        margin-top: 0;
        font-size: 15px;
    }

    .avan-full-product-menu__description {
        display: none;
    }
}
