/* فایل خودکار — ویرایش نکنید. منبع: style.css (npm run rtl) */
@font-face {
    font-family: 'Montserrat';
    src: url('../font/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../font/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* فونت فارسی (اعداد فارسی) — فقط در صفحات فارسی دانلود می‌شود */
@font-face {
    font-family: 'IRANYekan';
    src: url('../font/iranyekanwebregularfanum.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('../font/iranyekanwebboldfanum.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/*!
 *  Iconly icon font. Generated by Iconly: https://iconly.io/
 */

@font-face {
    font-display: swap;
    font-family: "Iconly";
    font-style: normal;
    font-weight: 400;
    src: url("../font/iconly.woff2") format("woff2");
}

[class="icon"], [class^="icon-"], [class*=" icon-"] {
    display: inline-block;
    font-family: "Iconly" !important;
    font-weight: 400;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

.icon-youtube:before {
    content: "\e000";
}

.icon-right:before {
    content: "\e001";
}

.icon-up:before {
    content: "\e002";
}

.icon-sort:before {
    content: "\e003";
}

.icon-sms:before {
    content: "\e004";
}

.icon-search:before {
    content: "\e005";
}

.icon-linkedin-2:before {
    content: "\e006";
}

.icon-right-up:before {
    content: "\e007";
}

.icon-menu:before {
    content: "\e008";
}

.icon-location:before {
    content: "\e009";
}

.icon-tuning:before {
    content: "\e00a";
}

.icon-left:before {
    content: "\e00b";
}

.icon-instagram:before {
    content: "\e00c";
}

.icon-global:before {
    content: "\e00d";
}

.icon-fax:before {
    content: "\e00e";
}

.icon-facebook:before {
    content: "\e00f";
}

.icon-down:before {
    content: "\e010";
}

.icon-call:before {
    content: "\e011";
}


html {
    margin: 0 !Important;
}


* {

    list-style: none;
}


body {
    font-family: "Montserrat";
    font-size: 1rem;
    line-height: 2;
    color: var(--black);

}

/* ── زبان فارسی ── */
body:lang(fa) {
    font-family: "IRANYekan", "Montserrat", sans-serif;
}

/* در نسخه RTL فلش‌های افقی آینه می‌شوند */
.icon-left:before {
    content: "\e001";
}
.icon-right:before {
    content: "\e00b";
}
.icon-right-up {
    transform: scaleX(-1);
}

/* ── سوییچر زبان (Polylang) ── */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 45px;
    font-family: "Montserrat", sans-serif;
    line-height: 1;
}

.lang-switcher__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    border-radius: 45px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .6);
    transition: color .2s ease, background-color .2s ease;
}

.lang-switcher__item:hover,
.lang-switcher__item:focus-visible {
    color: var(--white);
}

.lang-switcher__item.is-active {
    background: var(--secondary);
    color: var(--black);
    pointer-events: none;
}

.lang-switcher--mobile .lang-switcher__item {
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
}

img {
    height: auto !important;
    max-width: 100%;
}

a {
    text-decoration: none !important;
    color: unset;
}


ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1 {
    font-size: 1.6rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 0.9rem;
}

h6 {
    font-size: 0.8rem;
}

.text-justify {
    text-align: justify;
}

.oneline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 1;
    -moz-line-clamp: 1;
    -ms-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
}

.towline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    -ms-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.threeline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 3;
    -moz-line-clamp: 3;
    -ms-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}


/* صفحه‌بندی داخلی پست */
.page-links {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
}


div#wpadminbar {
    position: relative;
}


.footer-shape {
    width: 118px;
    height: 35px;
    aspect-ratio: 98 / 29;

    background: white;

    --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 29 98 29' preserveAspectRatio='none'%3E%3Cpath d='M94.5196 29C110.886 29 65.1008 0 49 0C32.8992 0 -12.8862 29 3.48035 29C19.847 29 23.9386 58 49 58C74.0614 58 78.153 29 94.5196 29Z' fill='black'/%3E%3C/svg%3E");

    -webkit-mask: var(--shape) center / 100% 100% no-repeat;
    mask: var(--shape) center / 100% 100% no-repeat;
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
}

button#to-top-btn {
    background: var(--primary);
    color: white;
    border: unset;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 50%;
    transform: translate(50%, -40%);
}

/* ── Accordion: فقط موبایل ── */
@media (max-width: 767.98px) {


    .footer-accordion-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: none;
        border: none;
        color: inherit;
        padding: 4px 0;
        cursor: pointer;
        font-size: 16px;
        font-weight: normal;
        text-align: left;
    }

    .footer-accordion-toggle i {
        transition: .3s ease;
        transform: rotate(-270deg);
    }

    .footer-accordion-toggle[aria-expanded="true"] i {
        transform: rotate(-90deg);
        color: var(--secondary);
    }


    .footer-accordion-body {
        overflow: hidden;
        max-height: 0;
        transition: max-height .35s ease, padding .35s ease;
        padding-bottom: 0;
    }

    .footer-accordion-body.is-open {
        max-height: 400px;
        padding-bottom: 14px;
    }

    /* عنوان h5 در دسکتاپ — در موبایل داخل دکمه نمایش داده می‌شه */
    .footer-accordion-col .desktop-title {
        display: none;
    }

    .footer-accordion-wrapper {
        padding: 0.25rem 0.75rem;
        background: #FFFFFF30;
        border-radius: 14px;
    }


}

/* دسکتاپ: همه چیز عادی */
@media (min-width: 768px) {
    .footer-accordion-toggle {
        display: none;
    }

    .footer-accordion-body {
        max-height: none !important;
        overflow: visible !important;
    }

    .footer-accordion-col .desktop-title {
        display: block;
    }
}

:root {
    --primary: #8D946A;
    --secondary: #EDD568;
    --acent: #CD2521;
    --black: #070809;
    --g1: #908D96;
    --g2: #C7C6C8;
    --g3: #798596;
    --g4: #B3BDCB;
    --g5: #D9DFE8;
    --g6: #F6F6F6;
    --white: #ffffff;
}

/* Text Colors */
/* Text Colors */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-acent {
    color: var(--acent) !important;
}

.text-black {
    color: var(--black) !important;
}

.text-g1 {
    color: var(--g1) !important;
}

.text-g2 {
    color: var(--g2) !important;
}

.text-g3 {
    color: var(--g3) !important;
}

.text-g4 {
    color: var(--g4) !important;
}

.text-g5 {
    color: var(--g5) !important;
}

.text-g6 {
    color: var(--g6) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-white-70 {
    color: #ffffff70 !important;
}

/* Background Colors */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-acent {
    background-color: var(--acent) !important;
}

.bg-black {
    background-color: var(--black) !important;
}

.bg-g1 {
    background-color: var(--g1) !important;
}

.bg-g2 {
    background-color: var(--g2) !important;
}

.bg-g3 {
    background-color: var(--g3) !important;
}

.bg-g4 {
    background-color: var(--g4) !important;
}

.bg-g5 {
    background-color: var(--g5) !important;
}

.bg-g6 {
    background-color: var(--g6) !important;
}

.bg-white {
    background-color: var(--white) !important;
}

/* Border Colors */
.border-primary {
    border-color: var(--primary) !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}

.border-black {
    border-color: var(--black) !important;
}

.border-g1 {
    border-color: var(--g1) !important;
}

.border-g2 {
    border-color: var(--g2) !important;
}

.border-g3 {
    border-color: var(--g3) !important;
}

.border-g4 {
    border-color: var(--g4) !important;
}

.border-g5 {
    border-color: var(--g5) !important;
}

.border-g6 {
    border-color: var(--g6) !important;
}

.border-white {
    border-color: var(--white) !important;
}

/* Hover Text */
.hover-text-primary:hover {
    color: var(--primary) !important;
}

.hover-text-secondary:hover {
    color: var(--secondary) !important;
}

.hover-text-black:hover {
    color: var(--black) !important;
}

.hover-text-g1:hover {
    color: var(--g1) !important;
}

.hover-text-g2:hover {
    color: var(--g2) !important;
}

.hover-text-g3:hover {
    color: var(--g3) !important;
}

.hover-text-g4:hover {
    color: var(--g4) !important;
}

.hover-text-g5:hover {
    color: var(--g5) !important;
}

.hover-text-g6:hover {
    color: var(--g6) !important;
}

.hover-text-white:hover {
    color: var(--white) !important;
}

/* Hover Background */
.hover-bg-primary:hover {
    background-color: var(--primary) !important;
}

.hover-bg-secondary:hover {
    background-color: var(--secondary) !important;
}

.hover-bg-black:hover {
    background-color: var(--black) !important;
}

.hover-bg-g1:hover {
    background-color: var(--g1) !important;
}

.hover-bg-g2:hover {
    background-color: var(--g2) !important;
}

.hover-bg-g3:hover {
    background-color: var(--g3) !important;
}

.hover-bg-g4:hover {
    background-color: var(--g4) !important;
}

.hover-bg-g5:hover {
    background-color: var(--g5) !important;
}

.hover-bg-g6:hover {
    background-color: var(--g6) !important;
}

.hover-bg-white:hover {
    background-color: var(--white) !important;
}

/* Hover Border */
.hover-border-primary:hover {
    border-color: var(--primary) !important;
}

.hover-border-secondary:hover {
    border-color: var(--secondary) !important;
}

.hover-border-black:hover {
    border-color: var(--black) !important;
}

.hover-border-g1:hover {
    border-color: var(--g1) !important;
}

.hover-border-g2:hover {
    border-color: var(--g2) !important;
}

.hover-border-g3:hover {
    border-color: var(--g3) !important;
}

.hover-border-g4:hover {
    border-color: var(--g4) !important;
}

.hover-border-g5:hover {
    border-color: var(--g5) !important;
}

.hover-border-g6:hover {
    border-color: var(--g6) !important;
}

.hover-border-white:hover {
    border-color: var(--white) !important;
}

/* Font Sizes - Desktop: 8px to 28px */
.fs-8 {
    font-size: 0.5rem;
}

.fs-9 {
    font-size: 0.5625rem;
}

.fs-10 {
    font-size: 0.625rem;
}

.fs-11 {
    font-size: 0.6875rem;
}

.fs-12 {
    font-size: 0.75rem;
}

.fs-13 {
    font-size: 0.8125rem;
}

.fs-14 {
    font-size: 0.875rem;
}

.fs-15 {
    font-size: 0.9375rem;
}

.fs-16 {
    font-size: 1rem;
}

.fs-17 {
    font-size: 1.0625rem;
}

.fs-18 {
    font-size: 1.125rem;
}

.fs-19 {
    font-size: 1.1875rem;
}

.fs-20 {
    font-size: 1.25rem;
}

.fs-21 {
    font-size: 1.3125rem;
}

.fs-22 {
    font-size: 1.375rem;
}

.fs-23 {
    font-size: 1.4375rem;
}

.fs-24 {
    font-size: 1.5rem;
}

.fs-25 {
    font-size: 1.5625rem;
}

.fs-26 {
    font-size: 1.625rem;
}

.fs-27 {
    font-size: 1.6875rem;
}

.fs-28 {
    font-size: 1.75rem;
}

.fs-30 {
    font-size: 30px;
}

.fs-32 {
    font-size: 2rem;
}

.fs-36 {
    font-size: 2.25rem;
}

.fs-40 {
    font-size: 2.5rem;
}

.fs-44 {
    font-size: 2.75rem;
}

.fs-48 {
    font-size: 3rem;
}

.fs-50 {
    font-size: 3.125rem;
}


/* Font Sizes - Mobile: 8px to 28px */
@media (max-width: 768px) {
    .fsm-8 {
        font-size: 0.5rem;
    }

    .fsm-9 {
        font-size: 0.5625rem;
    }

    .fsm-10 {
        font-size: 0.625rem;
    }

    .fsm-11 {
        font-size: 0.6875rem;
    }

    .fsm-12 {
        font-size: 0.75rem;
    }

    .fsm-13 {
        font-size: 0.8125rem;
    }

    .fsm-14 {
        font-size: 0.875rem;
    }

    .fsm-15 {
        font-size: 0.9375rem;
    }

    .fsm-16 {
        font-size: 1rem;
    }

    .fsm-17 {
        font-size: 1.0625rem;
    }

    .fsm-18 {
        font-size: 1.125rem;
    }

    .fsm-19 {
        font-size: 1.1875rem;
    }

    .fsm-20 {
        font-size: 1.25rem;
    }

    .fsm-21 {
        font-size: 1.3125rem;
    }

    .fsm-22 {
        font-size: 1.375rem;
    }

    .fsm-23 {
        font-size: 1.4375rem;
    }

    .fsm-24 {
        font-size: 1.5rem;
    }

    .fsm-25 {
        font-size: 1.5625rem;
    }

    .fsm-26 {
        font-size: 1.625rem;
    }

    .fsm-27 {
        font-size: 1.6875rem;
    }

    .fsm-28 {
        font-size: 1.75rem;
    }

    .fsm-32 {
        font-size: 2rem;
    }

    .fsm-36 {
        font-size: 2.25rem;
    }

    .fsm-40 {
        font-size: 2.5rem;
    }

    .fsm-44 {
        font-size: 2.75rem;
    }

    .fsm-48 {
        font-size: 3rem;
    }

    .fsm-50 {
        font-size: 3.125rem;
    }
}


/* ─── هدر موبایل: چیدمان پایه (همه اندازه‌های زیر 992px) ─── */
/*
 * توجه: transform و backdrop-filter برای فرزندانِ position:fixed
 * یک containing block می‌سازند. به همین دلیل پنل آف-کنواس
 * (#mobile-nav-scene) در app.js به <body> منتقل می‌شود تا داخل این
 * هدر گیر نیفتد و باعث اسکرول افقی نشود.
 */
.mobile-header {
    position: absolute;
    top: 1rem;
    right: 50%;
    transform: translateX(50%);
    width: 90%;
    height: 56px;
    padding: 8px 0;
    z-index: 1030;
    border-radius: 2rem;
    background: #ffffff20;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.mobile-header > .container {
    max-width: 100%;
    height: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
}

.mobile-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
    position: relative;
}

.mobile-header__item {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.mobile-header__logo {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 73px;
    height: 73px;
    top: 10%;
}

.mobile-header__actions {
    gap: 12px;
}

.mobile-header__logo img,
.mobile-logo {
    max-width: 73px;
    max-height: 73px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mobile-header__item .icon {
    font-size: 22px;
    color: var(--g1);
}

.mobile-header__actions .action-search,
.mobile-header__actions .header-cart {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--g1);
    text-decoration: none;
    line-height: 1;
}

/* موبایل کوچک (زیر 380px) */
@media (max-width: 379.98px) {
    .mobile-header {
        height: 46px;
        padding: 6px 0;
    }

    .mobile-header__inner {
        gap: 4px;
    }

    .mobile-header__actions {
        gap: 8px;
    }

    .mobile-header__logo img,
    .mobile-logo {
        max-width: 80px !important;
        max-height: 36px !important;
    }

    .mobile-header__item .icon {
        font-size: 20px !important;
    }
}

/* ─── Mobile Nav Off-Canvas ─── */
.mobile-nav-wrapper {
    display: contents;
}

.mobile-nav__hamburger {
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* صحنه: ظرف ثابت */
.mobile-nav__scene {
    position: fixed;
    inset: 0;
    z-index: 1050;
    pointer-events: none;
}

/* پنل آف-کنواس — پیش‌فرض: پنهان در خارج از صفحه */
.mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #fff;
    overflow-y: auto;
    transform: translateX(110%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    direction: rtl;
    z-index: 99999;
    pointer-events: auto;
}

/* پنل باز */
.mobile-nav__panel.is-open {
    transform: translateX(0);
}

/* هدر پنل */
.mobile-nav__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.mobile-nav__logo img {
    max-width: 100px;
    height: auto;
}

.mobile-nav__close {
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 0 4px;
}

/* آیتم‌های منو */
.mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav__item {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.mobile-nav__link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: #222;
    text-decoration: none;
    font-size: 15px;
}

.mobile-nav__link:hover {
    color: #0b7774;
}

.mobile-nav__link--sub {
    padding-right: 32px;
    font-size: 14px;
    color: #555;
}

/* دکمه تاگل زیرمنو */
.mobile-nav__toggle {
    background: transparent;
    border: 0;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.mobile-nav__toggle-icon {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__toggle-icon {
    transform: rotate(-135deg);
}

/* زیرمنو */
.mobile-nav__dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    background: #f9f9f9;
}

.mobile-nav__dropdown[hidden] {
    display: none;
}

/* Overlay */
.mobile-nav__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-nav__overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* قفل اسکرول هنگام باز بودن پنل */
body.mobile-nav-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}


#header.is-stuck .bottom-header {
    max-height: 0;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* ==========================================================================
   Desktop main-menu / top-menu dropdowns (hover reveal + navigable parents)
   ========================================================================== */
@media (min-width: 992px) {

    .top-header .navbar-nav .dropdown,
    .bottom-header .navbar-nav .dropdown {
        position: relative;
    }

    .top-header .navbar-nav .dropdown-menu,
    .bottom-header .navbar-nav .dropdown-menu {
        display: block; /* rendered but hidden via opacity for smooth hover */
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: 100%; /* first-level opens directly below the parent */
        left: 0;
        right: auto;
        margin: 0;
        border: 0;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        padding: 0.35rem 0;
        min-width: 220px;
        transform: translateY(6px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
        pointer-events: none;
        z-index: 1050;
    }

    /* Reveal a sub-menu when hovering (or keyboard-focusing) its parent item */
    .top-header .navbar-nav .dropdown:hover > .dropdown-menu,
    .bottom-header .navbar-nav .dropdown:hover > .dropdown-menu,
    .top-header .navbar-nav .dropdown:focus-within > .dropdown-menu,
    .bottom-header .navbar-nav .dropdown:focus-within > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Nested sub-menus open to the side (RTL: to the left of the parent) */
    .top-header .navbar-nav .dropdown-menu .dropdown-menu,
    .bottom-header .navbar-nav .dropdown-menu .dropdown-menu {
        top: 0;
        left: 100%;
        right: auto;
        margin: 0 0 0 0.25rem;
    }

    .bottom-header .navbar-nav .dropdown-item {
        color: var(--g1, #1c1c1c);
        padding: 0.5rem 1.25rem;
    }

    .bottom-header .navbar-nav .dropdown-item:hover,
    .bottom-header .navbar-nav .dropdown-item:focus {
        background-color: var(--g5, #f3f3f3);
    }
}


#wpadminbar {
    position: absolute;
}


/* ----- Wrapper ----- */
body .gform_wrapper {
    margin: 0;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.gform-theme--foundation .gform_fields {
    row-gap: 0.5rem !important;
}

input#gform_submit_button_1 {
    display: block;
    width: 100%;
    background: var(--primary);
}

/* ----- Form Title & Description ----- */
body .gform_heading .gform_title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: #111;
}

body .gform_heading .gform_description {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}

/* ----- Fields ----- */
body .gform_wrapper .gfield {
    margin-bottom: 20px;
}

body .gform_wrapper .gfield_label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

/* ----- Inputs, Selects, Textarea ----- */
body .gform_wrapper input[type="text"],
body .gform_wrapper input[type="email"],
body .gform_wrapper input[type="tel"],
body .gform_wrapper input[type="url"],
body .gform_wrapper input[type="number"],
body .gform_wrapper input[type="password"],
body .gform_wrapper textarea,
body .gform_wrapper select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fafafa;
    transition: all .2s ease;
}

body .gform_wrapper input:focus,
body .gform_wrapper textarea:focus,
body .gform_wrapper select:focus {
    border-color: #d8bd65; /* رنگ برند شما */
    box-shadow: 0 0 0 3px rgba(216, 189, 101, 0.35);
    background: #fff;
    outline: none;
}

/* ----- Placeholders ----- */
body .gform_wrapper ::placeholder {
    color: #999;
}

/* ----- Submit Button ----- */
body .gform_wrapper .gform_footer input[type="submit"],
body .gform_wrapper .gform_page_footer input[type="button"],
body .gform_wrapper .gform_page_footer input[type="submit"] {
    display: inline-block;
    background: #d8bd65; /* طلایی برند */
    border: none;
    color: #000;
    font-weight: 600;
    padding: 12px 26px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .25s ease;
}

body .gform_wrapper .gform_footer input[type="submit"]:hover,
body .gform_wrapper .gform_page_footer input[type="submit"]:hover {
    background: #c2a94d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ----- Error Messages ----- */
body .gform_wrapper .gform_validation_errors {
    border: 1px solid #dc3545;
    background: #f8d7da;
    color: #842029;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

body .gform_wrapper .validation_message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
}

/* ----- Success Confirmation ----- */
body .gform_confirmation_message {
    border: 1px solid #198754;
    background: #d1e7dd;
    color: #0f5132;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    text-align: center;
    margin-top: 20px;
}


.contact-image-wrapper {
    height: 100%;
    width: 100%;
    border-radius: 1rem;
    background-size: cover !important;
    background-position: center center !important;
}


/* ==========================================================================
   AJAX Product Search — trigger button + modal + live results
   ========================================================================== */

/* desktop trigger (looks like a search field) */
.header-search.search-modal-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    height: 40px;
    padding: 0 16px;
    border: unset;
    border-radius: 45px;
    background: unset;
    border: unset;
    color: #ffffff50;
    font-size: 12px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

button.btn-close {
    margin-right: unset !important;
    margin-left: auto !important;
}


.header-search.search-modal-trigger i {
    font-size: 20px;
}

/* modal shell */
.search-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

.search-modal .modal-header {
    padding: 1rem 1.25rem .5rem;
}

.search-modal .modal-body {
    padding: .5rem 1.25rem 1.5rem;
}

/* input */
.search-wrapper {
    position: relative;
}

.search-wrapper__icon {
    position: absolute;
    inset-inline-start: 16px;
    top: 26px;
    transform: translateY(-50%);
    color: var(--g2);
    font-size: 20px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 52px;
    padding: 0 48px;
    border: 1px solid var(--g3);
    border-radius: 12px;
    background: #fff;
    color: var(--secondary);
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease;
}

.search-input:focus {
    border-color: var(--primary);
}

.search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* results */
.ajax-search-results {
    display: none;
    margin-top: 14px;
    max-height: 58vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.ajax-search-results .no-result {
    margin: 0;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--g1);
    font-size: 14px;
}

.search-section-label {
    margin: 16px 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--secondary);
}

.search-section-label:first-child {
    margin-top: 4px;
}

.search-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.search-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--g3);
    border-radius: 999px;
    color: var(--secondary);
    font-size: 13px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.search-badge:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.search-badge--brand img {
    height: 22px;
    width: auto;
    border-radius: 4px;
}

.ajax-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ajax-search-results ul li + li {
    border-top: 1px solid var(--g4);
}

.ajax-search-results ul li a {
    border-radius: 10px;
    transition: background .2s ease;
}

.ajax-search-results ul li a:hover {
    background: #f7f9f9;
}


/*sections*/

.slider .info-wrapper.text-white {
    position: absolute;
    z-index: 99;
    top: 50%;
    transform: translateY(-50%);
    right: 5%;
    width: 40%;
}

.slider .swiper-slide > div:before {
    display: block;
    position: absolute;
    height: 100%;
    width: 50%;
    z-index: 99;
    /* background: red; */
    right: 0;
    top: 0;
    content: '';
    background: linear-gradient(to left, #07080970 0%, #07080900 100%);
}

/* ویدئو پس‌زمینه اسلاید */
.slider .slide-video {
    display: block;
    width: 100%;
    object-fit: cover;
    background: #070809;
}

/* بدون عکس: ویدئو خودش ارتفاع اسلاید را تعیین می‌کند */
.slider .slide-video:not(.is-overlay) {
    aspect-ratio: 16 / 9;
}

/* با عکس: ویدئو روی عکس قرار می‌گیرد و پس از آماده شدن ظاهر می‌شود */
.slider .slide-video.is-overlay {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0;
    transition: opacity .6s ease;
    background: transparent;
}

.slider .slide-video.is-overlay.is-ready {
    opacity: 1;
}


.whyus .wrapper {
    padding: 48px 72px;
    border-radius: 48px;
    background-position: center center;
    background-size: cover;
}

.whyus .items {
    width: 50%
}

.wu-accordion {
    margin-bottom: 1rem;
    background: #ffffff20;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1rem;

    border-right: 2px solid transparent;

    transition: background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.wu-accordion-header {
    font-size: 16px;
    display: flex;
    gap: 1rem;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.wu-accordion-header img {
    transition: transform 0.35s ease;
}

.wu-accordion.active {
    border-right-color: var(--secondary);
    background: #ffffff2b;
}

.wu-accordion.active .wu-accordion-header img {
    transform: scale(1.05);
}


/* Accordion Body */
.wu-accordion-body {
    display: grid;
    grid-template-rows: 0fr;

    opacity: 0;
    visibility: hidden;

    transition: grid-template-rows 0.45s cubic-bezier(.4, 0, .2, 1),
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.wu-accordion-body-inner {
    overflow: hidden;

    padding-right: 70px;
    padding-top: 0;

    font-size: 14px;

    transform: translateY(-8px);

    transition: transform 0.4s ease,
    padding-top 0.4s ease;
}


/* Active */
.wu-accordion.active .wu-accordion-body {
    grid-template-rows: 1fr;

    opacity: 1;
    visibility: visible;
}

.wu-accordion.active .wu-accordion-body-inner {
    transform: translateY(0);
    padding-top: 12px;
}

time {
    position: absolute;
    top: 0;
    left: 1rem;
    z-index: 9999;
    background: #00000080;
    padding: 1rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.1rem !important;
    line-height: 1;
}

.blog-image-wrapper {
    padding-top: 1rem;
}

.form-wrapper {
    background: linear-gradient(to bottom, rgba(141, 148, 106, .3) 0%, rgba(141, 148, 106, 0) 100%);
    padding: 3rem;
    border-radius: 32px;
}

.form-wrapper .gform_wrapper {
    padding: unset;
    background: unset;
    box-shadow: unset;
}

.form-wrapper .gform_wrapper .gfield {
    margin-bottom: 0;
}

.form-wrapper .gform-footer {
    margin: 0 !important;
}

.form-wrapper textarea, .form-wrapper .gform_wrapper input[type="text"] {
    padding: 1rem !important;
    border: unset !important;
    border-radius: 24px !important;
    margin-bottom: 1rem;
}

.form-wrapper .gform-footer.gform_footer.top_label {
    display: flex;
    justify-content: center;
    margin-top: 1rem !important;
}

.form-wrapper .gform_button {
    background: var(--primary) !important;
    border-radius: 1rem !important;;
}

.form-wrapper textarea::placeholder, .form-wrapper .gform_wrapper input[type="text"]::placeholder {
    font-size: 14px !important;
    color: var(--g1) !important;
}

header#header {
    position: absolute;
    width: 90%;
    top: 1rem;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2rem;
    backdrop-filter: blur(40px);
    background: #ffffff20;
}

header#header .navbar-nav .nav-link {
    color: white;
    font-size: 12px;
}

header#header .navbar-nav .nav-link.active {
    color: white;
    font-weight: bold;
}

header#header a.custom-logo-link {
    position: absolute;
    top: -0.75rem;
    right: 50%;
    transform: translateX(50%);
}

.footer-accordion-body ul li a {
    font-size: 14px;
}

.footer-logo {
    position: absolute;
    right: 0;
    bottom: calc(100% + 1rem);
}

.copy-right span {
    color: var(--g3);
}

div#search-modal {
    direction: rtl;
}

button.btn-close {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.icon-wrapper {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
}

button#gform_submit_button_1 .icon-wrapper {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    font-size: 8px;
}

.slider-controller {
    position: absolute;
    z-index: 9;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .3rem;
}

.control-wrapper {
    font-size: 30px;
    background: white;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    border-radius: 50%;
    border: 3px solid var(--secondary);
}

.bp-wrapper {
    border: 1px solid #DEDFE3;
    padding: 1.5rem;
    border-radius: 2rem;
    position: relative;
}

.bp-wrapper .icon-wrapper {
    background: var(--black);
    width: 40px;
    height: 40px;
    color: var(--secondary);
    position: absolute;
    left: 1.5rem;
    bottom: 0;
    transform: translateY(50%);
    box-shadow: 0 0 0 6px rgba(141, 148, 106, 0.3);
    transition: .3s;
}

.bp-wrapper:hover .icon-wrapper {
    background: var(--primary);
    color: white;

}

img.leaf-img {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    transform: translate(20px, -10px);
}

.wr-product-wrapper {
    transition: 0.3s linear;
}

.wr-product-wrapper > div {
    position: relative;

}

.wr-product-wrapper > div:after {
    content: '';
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    background: var(--secondary);
    width: 60px;
    height: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    display: block;
    transition: linear 0.3s;
}

.wr-product-wrapper:hover > div {
    background: linear-gradient(to bottom, #EDD56810 0%, #EDD56840 100%);
}

.wr-product-wrapper:hover > div:after {
    height: 5px;
}

.wr-products-swiper {
    direction: ltr;
}

@media (max-width: 767.98px) {

    .slider .info-wrapper {
        width: 80% !important;
        text-align: center !important;
        transform: translate(50%, -50%) !important;
        right: 50% !important;
    }

    section.mobile-header:after {
        position: absolute;
        bottom: 100%;
        height: 6px;
        right: 50%;
        content: '';
        display: block;
        background: var(--black);
        width: 60%;
        transform: translateX(50%);
        border-radius: 20px 20px 0 0;
    }

    .whyus .wrapper {
        padding: 24px 36px;
        border-radius: unset;

    }

    .whyus .items {
        width: 100%;
    }

    .wr-products-swiper {
        direction: rtl;
    }

    .footer-logo {
        right: 50%;
        transform: translateX(50%);
    }

    .mobile-header:not(.home) {
        position: relative;
        background: var(--g6);
        color: var(--black);
    }

    .mobile-header:not(.home) i {
        color: var(--black)!important;
    }
}


body:not(.home) header#header {
    background: var(--g5);
    position: relative;
}

body:not(.home) header#header .navbar-nav .nav-link {
    color: var(--black);
}

.header-wrapper {
    background: linear-gradient(to bottom, rgba(141, 148, 106, .3) 0%, rgba(141, 148, 106, 0) 100%);
    padding: 3rem;
    border-radius: 32px;
}

.category-slide {
    background: var(--primary);
    color: white;
    font-size: 18px;
    border-radius: 20px;
    padding: .5rem 0;
    display: flex;
    justify-content: center;
    align-content: center;
}
body:not(.home) .header-search.search-modal-trigger{
    color: var(--black);
}

body:not(.home) header#header .lang-switcher {
    border-color: rgba(7, 8, 9, .15);
}

body:not(.home) header#header .lang-switcher__item:not(.is-active) {
    color: var(--g3);
}

body:not(.home) header#header .lang-switcher__item:not(.is-active):hover {
    color: var(--black);
}

/* هدر موبایل در این عرض پس‌زمینه روشن دارد */
@media (max-width: 767.98px) {
    .lang-switcher--mobile {
        border-color: rgba(7, 8, 9, .15);
    }

    .lang-switcher--mobile .lang-switcher__item:not(.is-active) {
        color: var(--g3);
    }
}