@font-face {
    font-family: 'IranianSans';
    src: url("/static/fonts/IranianSans.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ebrima';
    src: url("/static/fonts/ebrima.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IranianSansBold';
    src: url("/static/fonts/IranianSansBold.woff") format('woff');
    font-weight: bold;
    font-style: normal;
}


:root {
    --redk-color: #DA1C23;
    --grayk-color: #4C4D4F;
}


html, body {
    direction: rtl;
}

.fix {
    display: flex;
    flex-direction: column;
    justify-content: center; /* وسط‌چینی افقی */
    /*min-height: 100vh;        !* پر کردن کل ارتفاع صفحه *!*/
    /*max-width: 1440px;*/
    padding: 40px;
    /*box-sizing: border-box; !* تا padding باعث اسکرول نشود *!*/
}

@media (max-width: 768px) {
    .fix {
        padding: 0;
    }
}


/* آیتم های  navbar*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    left: 5%;
    margin: 110px 0 0 0;
    flex-direction: row;
    position: relative;
    z-index: 20000 !important;
}

.topbar {
    display: flex;
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(white, var(--redk-color));
    margin: 0 15%;
    border-radius: 20px;
    padding: 10px 20px;
    transition: top 0.3s ease;
    height: 50px;
    z-index: 1000;
}

.topbar.hide {
    top: -100px;
}

.nav-logo-img2 {
    width: 80px;
    transition: width 0.3s ease;
    filter: grayscale(100%) opacity(0.5);
}

.topbar-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-family: 'IranianSansBold', sans-serif;
}

.topbar-row a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* منوی راست بیاد دقیقا وسط */
.nav-right {
    position: absolute;
    z-index: 9999;
    opacity: 0.8;
    display: flex;
    font-size: 20px;
    gap: clamp(1rem, 3vw, 3rem);
    margin: 0 15% 0 0;
    padding: 0;
    list-style-type: none;
}

.nav-right li {
    font-family: 'IranianSansBold', sans-serif;

}

.battery-logo {
    width: 50px;
    margin: 0;
    transition: width 0.3s ease;
}

/* لوگو بچسبه به چپ */
.nav-left {
    list-style: none;
    display: flex;
    align-items: center;
    position: absolute; /* برای چسباندن به چپ */
    left: 20px; /* فاصله از لبه چپ */
    right: auto; /* اطمینان از override سمت راست */
}

.nav-link {
    color: #666666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    max-height: 20px;
    cursor: pointer;
    font-family: 'IranianSansBold', sans-serif;
}

.nav-link:hover {
    background-color: #555;
    color: white;
    border-radius: 5px;
}

.nav-link span {
    color: #F5A301;
    font-size: clamp(20px, 4vw, 70px);
    font-weight: bold;
}

.nav-logo-img {
    width: clamp(60px, 18vw, 320px);
    transition: width 0.3s ease;
}


.nav-hr {
    color: #9FA2A9;
    opacity: 21%;
    width: 90%;
    margin: 0 auto;
}

/* دکمه همبرگری */
.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* دکمه همبرگری */
.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* ========= منوی کشویی ========= */
.dropdown-parent {
    position: relative;
    z-index: 9999; /* والد هم بیاد بالا */
}

/* خود منو */
.dropdown {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: #283049;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    min-width: 170px;
    z-index: 30000;
    /* حذف اوپَسیتی */
    visibility: hidden;
    transform: translateY(10px);
    transition: transform 0.25s ease, visibility 0s;
    pointer-events: none;
}

/* نمایش در دسکتاپ */
@media (hover: hover) {
    .dropdown-parent:hover .dropdown {
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* برای جلوگیری از پرش */
.dropdown::before {
    content: "";
    position: absolute;
    top: -12px;
    right: 0;
    width: 100%;
    height: 12px;
    background: transparent;
    pointer-events: none;
}

/* برای حالت کلیک در موبایل */
.dropdown-parent.active .dropdown {
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* آیتم‌ها */
.dropdown li {
    text-align: right;
    background: #283049;
    color: white;
}

.dropdown li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    font-size: 15px;
    transition: background 0.2s;
}

.dropdown li a:hover {
    background: white;
    color: #F5A301;
}


/* زیرمنوی سطح دوم */
.sub-parent {
    position: relative;
}

.sub-dropdown {
    list-style: none;
    margin: 5px 0 0 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: none; /* مخفی پیش‌فرض */
    padding: 5px 0;
}

.sub-dropdown li a {
    padding: 8px 15px;
    display: block;
    font-size: 14px;
    color: white;
}

.sub-dropdown li a:hover {
    background: #eee;
}

/* وقتی فعال شد */
.sub-parent.active > .sub-dropdown {
    display: block;
}


/* ریسپانسیو موبایل */
@media (max-width: 768px) {

    .navbar {
        height: 55px;
        margin: 0;
        left: 0;
        width: 100%;
    }

    .topbar {
        display: none;
    }

    .hamburger {
        display: block;
        font-size: 26px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 10px;
    }

    /* منوی اصلی در موبایل full width */
    .nav-right {
        position: absolute;
        top: 50px;
        left: 0; /* کل عرض صفحه */
        right: 0;
        transform: none; /* حذف transform */
        width: 100%;
        display: none;
        flex-direction: column;
        background: #283049;
        color: white;
        text-align: right;
        padding: 15px 0;
        margin: 0;
        border-top: 1px solid #ddd;
        z-index: 9999;
    }

    .nav-right.show {
        display: flex;
    }

    .nav-right li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 5px 20px;
        font-size: 16px;
        color: white;
    }

    /* ===== حالت موبایل برای dropdown ===== */
    /* ===== حالت موبایل برای dropdown ===== */
    .dropdown-parent .dropdown {
        position: relative; /* از absolute به relative */
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #f7f7f7;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    /* وقتی dropdown باز شد */
    .dropdown-parent .dropdown {
        position: relative; /* از absolute به relative */
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: #f7f7f7;
        padding: 0;
        box-shadow: none;
    }

    .dropdown-parent.active .dropdown {
        max-height: 1000px; /* نمایش همه آیتم‌ها */
    }

    .dropdown li a {
        padding: 12px 20px;
        display: block;
        font-size: 16px;
        color: white;
    }

    .dropdown li a:hover {
        background: #e0e0e0;
        color: #F5A301;
    }

    /* لوگو در موبایل */
    .nav-left {
        left: 10px;
        position: absolute;
    }
}


/* //////////////////////////////آیتم های  homepage*/


/* slogan-search   /*/

.slogan-search {
    direction: ltr;
    font-family: 'Ebrima', sans-serif;
    padding: 30px 5%;
    display: flex;
    color: #283049;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* وقتی صفحه کوچک شد، آیتم‌ها زیر هم قرار بگیرند */
}

/* تیترها */
.slogan h1 {
    font-size: clamp(0.5rem, 5vw, 6rem); /* حداقل، متناسب با صفحه، حداکثر */
    margin: 0;
}

.slogan h2 {
    font-family: 'IranianSansBold', sans-serif;
    font-size: clamp(0.5rem, 1.8vw, 7rem);
    font-weight: normal;
    margin: 0;
}

/* متن توضیح */
.search h6 {
    direction: rtl;
    margin-bottom: 15px;
    font-family: 'IranianSans', sans-serif;
    font-size: clamp(0.8rem, 1vw, 1.1rem);
    opacity: 40%;
}

/* فرم جستجو */
.search2 {
    position: relative;
    display: inline-block;
}

.search2 input {
    width: clamp(380px, 0.9vw, 500px);
    height: 55px;
    text-align: center;
    font-size: 22px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background-color: #9FA2A9;
}

.search2 .search-icon {
    background-color: #D1E7A9;
    position: absolute;
    border-radius: 8px;
    top: 50%;
    right: 10px; /* فاصله از سمت راست */
    transform: translateY(-50%);
    width: 60px;
    height: 48px;
    cursor: pointer;
}


@media (max-width: 768px) {

    .slogan-search {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .search2 input {
        width: 100%; /* بزرگ‌تر و مناسب موبایل */
        max-width: 300px;
    }

    .slogan h1 {
        font-size: 2rem;
    }

    .slogan h2 {
        font-size: 1rem;
    }

    .search h6 {
        font-size: 0.6rem;
    }
}


/* slider-one   /*/

.slider-one {
    display: flex;
    overflow-x: auto;
    direction: ltr;
    font-family: 'Ebrima', sans-serif;
}

.slide {
    flex: 0 0 auto;
    width: 19%; /* هر اسلاید 25٪ عرض کانتینر */
    min-width: 80px; /* حداقل اندازه */
    height: 600px;
    margin-right: 10px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1.4s ease, transform 1.1s ease, opacity 0.6s ease;
}

.slide.active {
    position: relative;
    width: 58%; /* عرض بیشتر از اسلایدهای دیگر */
    transition: width 1.4s ease;
}

/* حالت بسته: فقط slide-text نمایش داده بشه */
.slide:not(.active) .slide-text {
    opacity: 1;
    transform: rotate(180deg) translateY(0);
}


.slide:not(.active) .slide-content {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none; /* غیرقابل کلیک */
}

/* حالت باز: فقط slide-content نمایش داده بشه */
.slide.active .slide-text {
    opacity: 0;
    transform: rotate(180deg) translateY(20px);
}

.slide-content {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    text-align: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* حالت باز: فقط محتوا نمایش داده بشه */
.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* استایل متن عمودی در حالت بسته */
.slide-text {
    position: absolute; /* اضافه شد */
    color: white;
    font-size: 2.5rem;
    font-weight: normal;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    opacity: 1;
    transform: rotate(180deg) translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* استایل عنوان در حالت باز */
.slide-content h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: normal;
    color: black;
}


@keyframes slideUp {
    to {
        transform: rotate(180deg) translateY(0);
        opacity: 1;
    }
}

.slide-one {
    background-image: url("/static/images/baner/shop1.webp");
}

.slide-two {
    background-image: url("/static/images/baner/shop2.webp");
}

.slide-three {
    background-image: url("/static/images/baner/shop3.webp");
}


@media (max-width: 768px) {

    .slider-one {
        width: 100%;
        margin: 0 auto;
        justify-content: center;
        /*padding: 0.5rem;*/
        /*margin-bottom: 10px;*/
    }

    .slide {
        min-width: 10%;
        max-width: 55%;
        height: 200px;
    }
}


/* nuts-slider  /*/

.nuts-slider {
    margin: 20px auto;
    font-family: 'Ebrima', sans-serif;
    position: relative;
    border-radius: 37px;
    background-color: #232b45; /* آبی تیره */
    padding: 2rem 1rem;
    text-align: center;
    height: 500px;
    color: #fff;
    max-width: 1400px;
    width: 95%;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 20px;
    padding: 50px;
    margin-top: -195px;
    overflow-x: auto; /* فعال کردن اسکرول افقی */
    scroll-behavior: smooth;
    cursor: grab; /* نشانگر موس هنگام درگ */
    user-select: none;

    /* 🔹 نکته مهم: حذف پدینگ، چون باعث می‌شد تا آخر نره */

    /* 🔹 برای اطمینان از محاسبه درست عرض کل */
    width: 100%;
    box-sizing: border-box;
}

/* 🔹 پنهان کردن نوار اسکرول */
.cards::-webkit-scrollbar {
    display: none;
}

.cards {
    -ms-overflow-style: none; /* برای IE و Edge */
    scrollbar-width: none; /* برای Firefox */
}

.card {
    background: rgba(40, 48, 73, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    flex: 0 0 250px;
    height: 145px;
    padding: 0.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    scroll-snap-align: start; /* برای اسکرول منظم‌تر */
}

.card img {
    display: block;
    margin: -90px -10px -0px auto; /* تصویر کمی بیاد روی کارت */
    width: 130px;
    height: 200px;
}

.card:hover img {
    transform: scale(1.05); /* افکت ظریف بزرگ‌نمایی */
}

.card h3 {
    margin-right: 150px;
    margin-top: -120px;
    font-size: 21px;
    font-weight: normal;
    color: black;
}

.card p {
    margin-right: 150px;
    margin-top: 60px;
    font-size: 22px;
    font-weight: normal;
    color: #ddd;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.dots span {
    display: block;
    width: 18px;
    height: 18px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dots .active {
    background: #fff;
}

.tagline {
    font-family: 'Ebrima', sans-serif;
    position: absolute;
    top: 50%; /* وسط عمودی */
    left: 50%; /* وسط افقی */
    transform: translate(-50%, -50%); /* دقیقاً مرکز */
    font-size: 1.5rem;
    z-index: 10;
}

/* 🔸 واکنش‌گرا برای تغییر اندازه کارت‌ها */
@media (max-width: 992px) {
    .card {
        flex: 0 0 200px; /* کارت کوچکتر */
    }
}

@media (max-width: 600px) {
    .card {
        flex: 0 0 160px; /* حتی کوچکتر در موبایل */
    }
}

@media (max-width: 768px) {

    .nuts-slider {
        margin: 0 auto;
        height: 300px;
        width: 90%;
    }

    .cards {
        gap: 1rem;
        margin-bottom: 30px;
        padding: 50px 0;
        margin-top: -160px;
    }

    .card {
        flex: 0 0 50px;
        height: 100px;
        max-width: 150px;
        padding: 0.5rem;
    }

    .card img {
        margin: -75px -10px -0px auto; /* تصویر کمی بیاد روی کارت */
        width: 80px;
        height: 150px;
    }

    .card h3 {
        margin-right: 80px;
        margin-top: -100px;
        font-size: 17px;
    }

    .card p {
        margin-right: 80px;
        margin-top: 50px;
        font-size: 17px;
    }

    .dots {
        display: flex;
        justify-content: center;
        gap: 0.3rem;
        margin-top: -100px;
    }

    .dots span {
        display: block;
        width: 10px;
        height: 10px;
    }

    .tagline {
        font-family: 'Ebrima', sans-serif;
        position: absolute;
        top: 50%; /* وسط عمودی */
        left: 50%; /* وسط افقی */
        transform: translate(-50%, -50%); /* دقیقاً مرکز */
        font-size: 1rem;
        z-index: 10;
    }

    .dots {
        margin: 0 auto;
    }

    .end-space {
        flex: 0 0 110px;
    }
}


/* products /*/


.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* کارت‌ها از راست شروع بشن */
    align-items: flex-start;
    max-width: 1400px;
    width: 100%;
    direction: rtl;
    padding: 0;
    margin: 0 auto; /* بچسبه به راست */
    gap: 2rem;
}


.nut-card {
    text-align: center;
    font-family: 'Ebrima', sans-serif;
    position: relative;
    margin: 3rem auto;
    width: 270px;
}

.nut-card h3 {
    font-size: 28px;
    font-weight: normal;
    color: #283049;
    margin-bottom: 0.5rem;
}

.nut-image {
    position: relative;
    display: inline-block;
    width: 100%; /* کامل پهنای کارت */
}

.nut-image img {
    position: relative;
    width: 100%; /* عکس متناسب با کارت */
    height: auto;
    z-index: 2; /* عکس بالاتر باشه */
}

.nut-image img.bg-shape-img {
    position: absolute;
    bottom: -20%; /* می‌تونی نسبت به کارت تنظیم کنی */
    left: 30%; /* جایگاه افقی */
    width: 90%;
    height: auto;
    z-index: 0; /* زیر عکس اصلی قرار می‌گیره */
}

.nut-image img:not(.bg-shape-img) {
    position: relative;
    z-index: 1; /* عکس اصلی بالای bg-shape-img */
}

@media (max-width: 768px) {

    .products {
        /*width: 100%;*/
        margin: 10px auto;
        padding: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nut-card h3 {
        font-size: 16px;
    }

    .nut-card {
        width: 30%;
        margin: 10px;
    }
}


/* price-title /*/

.price-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px;
    margin: 50px 0 0 0;
}

.price-title h3 {
    font-family: 'IranianSans', sans-serif;
    font-size: 16px;
    color: var(--grayk-color);
    text-align: center;
    text-wrap: wrap;
    margin-bottom: 30px;
    margin-top: 0;
}

.price-title h1 {
    font-family: 'IranianSansBold', sans-serif;
    text-align: center;
    font-size: 30px;
    color: var(--grayk-color);
}

/* footer /*/

footer {
    font-family: 'IranianSans', sans-serif;
    margin-top: 50px;
    background: #F5A301;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

footer .logo {
    margin-top: -70px;
    margin-bottom: 30px;
}

footer .logo img {
    height: 60px;
}

footer p {
    max-width: 700px;
    margin: 10px auto 30px;
    line-height: 1.8;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: right;
    margin-bottom: 30px;
}

.footer-columns h4 {
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.footer-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-columns ul li {
    margin: 8px 0;
}

.footer-columns ul li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.footer-columns ul li a:hover {
    color: #ffd700;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    margin: 0 8px;
    width: 35px;
    height: 35px;
    background: #fff;
    color: #008037;
    border-radius: 50%;
    line-height: 35px;
    text-align: center;
    font-size: 18px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #ffd700;
    color: #000;
}

.contact {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.8;
}


/*  page2  reference-page  /*/

.reference-page {
    max-width: 1400px;
    margin: 20px auto;
}

.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-family: 'IranianSans', sans-serif;
    gap: 15px;
}

.orange-bar {
    width: 100%;
    height: 80px;
    background-color: #f9a825; /* نارنجی */
    border-radius: 4px;
}

.orange-bar-right {
    width: 114px;
    height: 80px;
    background-color: #f9a825; /* نارنجی */
    border-radius: 4px;
}

.title-text {
    text-align: center;
}

.main-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: #222;
    white-space: nowrap;
}

.sub-title {
    margin: 4px 0 0 0;
    font-size: 26px;
    color: #999;
}

.content-price-reference p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    font-family: 'IranianSans', sans-serif;
    text-align: justify;
    margin: 50px;
}

/*  page3  product-detail-card  /*/

.product-detail-card {
    margin: 20px auto;
    font-family: 'IranianSans', sans-serif;
    padding: 20px;
    display: flex;
    width: 98%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 1400px;
    flex-wrap: wrap;
    /*width: 100%;*/
}

.product-info {
    border-radius: 14px;
    background-color: #F2F6F9;
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    padding: 30px;
    gap: 40px;
}

.product-specs {
    flex: 1.5;
    text-align: center;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
}

.spec-list input {
    font-family: 'IranianSans', sans-serif;
    display: block;
    width: 100%;
    margin: 5px 0 10px;
    border: none;
    background: #F9FBFC;
    color: #A9ACAE;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    position: relative;
    display: flex;
    align-items: center; /* وسط عمودی */
    justify-content: center; /* وسط افقی برای متن */
    border: none;
    font-family: 'IranianSans', sans-serif;
    border-radius: 10px;
    padding: 10px 50px; /* فضای کافی برای آیکن سمت چپ */
    cursor: pointer;
    height: 80px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #1fa75b;
    color: #fff;
}

.btn:hover {
    background-color: #188d4a;
}

.btn img {
    position: absolute;
    left: -20px; /* فاصله از سمت چپ */
    top: 50%;
    transform: translateY(-50%); /* وسط عمودی دقیق */
    width: 50px; /* اندازه آیکن */
    height: 60px;
}

.side-icons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.side-icons h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #444;
}

.price-box {
    background-color: white;
    border-radius: 8px;
    padding: 15px 25px;
    text-align: center;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
    margin: 0;
}

.new-price {
    color: #3a7d2e;
    font-size: 18px;
    font-weight: bold;
    margin: 8px;
}

.icon-item {
    display: flex;
    flex-direction: row-reverse; /* چون فارسیه، عکس سمت راست باشه */
    align-items: center; /* عمودی وسط‌چین */
    gap: 12px;
    margin-top: 15px;
}

.icon-item img {
    width: 20px; /* اندازه دلخواه */
    height: 20px;
    opacity: 50%;
}


.product-image-box {
    flex: 1;
    background-color: #D1DDEA;
    border-radius: 14px;
    text-align: center;
    align-content: center;
    align-items: center;
    padding: 10px;
}

.icon-r-l {
    width: 20px;
}

.slider-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

#slider-image {
    width: 150px; /* پر کردن عرض container */
    height: 150px; /* پر کردن ارتفاع container */
    object-fit: contain; /* نسبت تصویر حفظ شود و در وسط قرار گیرد */
}

.product-add-to-cart {
    font-family: 'IranianSans', sans-serif;
    background-color: #283049;
    color: white;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    height: 40px;
    width: 230px;
    transform: scaleX(0.9);
    transition: background 0.3s;
}

.product-add-to-cart:hover {
    background-color: #2f6223;
}

.quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 12px;
}

.quantity button {
    background-color: white;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 26px;
    cursor: pointer;
    border-radius: 6px;
    color: #477AAC;
}

.quantity input {
    font-family: 'IranianSans', sans-serif;
    width: 70px;
    height: 40px;
    text-align: center;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    color: #477AAC;
}

.mob-fix {
    display: none;
}

@media (max-width: 768px) {

    .product-mob {
        display: none;
    }

    .mob-fix {
        display: block;
        padding: 3px 0 3px 0;
    }

    .product-detail-card {
        width: 85%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /*display: flex;*/
        /*flex-direction: column;*/
        /*align-items: center;*/
        /*justify-content: center;*/
    }

    .product-image-box {
        width: 100%;
        margin-bottom: 15px;
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .product-info {
        /*flex: 1;*/
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-right: 0;
        padding: 20px;
        gap: 40px;
    }

    .btn {
        position: relative;
        margin-top: 20px;
        display: flex;
        align-items: center; /* وسط عمودی */
        justify-content: center; /* وسط افقی برای متن */
        border: none;
        font-family: 'IranianSans', sans-serif;
        border-radius: 10px;
        padding: 10px 50px; /* فضای کافی برای آیکن سمت چپ */
        cursor: pointer;
        height: 40px;
        font-size: 14px;
        transition: all 0.3s ease;
        background-color: #F5A301;
        color: #fff;
    }

    .btn:hover {
        background-color: #188d4a;
    }

    .btn img {
        position: absolute;
        left: -20px; /* فاصله از سمت چپ */
        top: 50%;
        transform: translateY(-50%); /* وسط عمودی دقیق */
        width: 50px; /* اندازه آیکن */
        height: 60px;
    }

    .spec-list {
        display: flex;
        gap: 8px;
    }

    .mob-title input {
        font-family: 'IranianSans', sans-serif;
        display: flex;
        width: 100%;
        text-align: center;
        margin: 5px 0 10px;
        border: none;
        background: #F9FBFC;
        color: #555555;
        padding: 6px 8px;
        border-radius: 8px;
        font-size: 12px;
        box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
    }

    .mob-title {
        display: flex;
        flex-direction: column;
        margin: 0;
        align-items: center;
        justify-content: center;
    }

    .mob-title img {
        width: 35px;
        height: 35px;
    }

    .mob-title span {
        font-family: IranianSansBold, sans-serif;
        font-size: 12px;
    }

    .product-specs {
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 30px;
    }

    .side-icons-mob {
        display: flex;
        align-items: center;
        margin-top: 10px;
        margin-bottom: 0;
        gap: 4px;
    }

    .side-icons-mob h4 {
        margin: 0;
    }

    .side-icons-mob img {
        width: 30px;
        filter: invert(58%) sepia(92%) saturate(2000%) hue-rotate(-10deg) brightness(120%) contrast(105%);
    }

    .price-box {
        background-color: white;
        border-radius: 8px;
        padding: 8px 25px 8px 25px;
        text-align: center;
    }

    #slider-image {
        touch-action: pan-y; /* اجازه اسکرول عمودی ولی فعال بودن سوایپ افقی */
        user-select: none;
    }

}


/*  page4  checkout  /*/

.cart-page {
    font-family: 'IranianSans', sans-serif;
    max-width: 1400px;
    width: 100%;
    margin: 20px auto;
}

.cart-header {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 40px;
}

.btn-primary, .btn-secondary {
    font-family: 'IranianSans', sans-serif;
    padding: 8px 20px;
    border: none;
    height: 50px;
    width: 100px;
    border-radius: 7px;
    font-size: 13px;
    cursor: pointer;
}

.btn-primary {
    background-color: #D1C79F;
}

.btn-secondary {
    background-color: #967C16;
    color: white;
}

.cart-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.cart-table {
    width: 100%;
    border-collapse: separate; /* مهم! برای اعمال radius */
    border-spacing: 0 8px; /* فاصله بین ردیف‌ها */
    text-align: center;
    margin-bottom: 25px;
}

.cart-table th {
    background-color: #fff;
    padding: 12px 0 25px 12px;
    color: #555;
    font-weight: 600;
}

.cart-table tbody tr {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden; /* برای اعمال radius */
}

.cart-table tbody tr:nth-child(odd) td {
    background-color: #F2F2F2;
}

.cart-table tbody tr:nth-child(even) td {
    background-color: #ffffff;
}


.cart-table tbody tr td:first-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.cart-table tbody tr td:last-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.cart-table td {
    padding: 2px;
    font-size: 14px;
    font-weight: bold;
    color: #444;
    border: none;
}

.cart-table img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
}

.cart-table td span {
    opacity: 34%;
}

.cart-summary {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    width: 100%;
}

.cart-summary-table {
    direction: rtl;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cart-summary-table table {
    border-collapse: separate;
    border-spacing: 40px 8px; /* فاصله بین ستون‌ها و ردیف‌ها */
    font-family: 'IranianSans', sans-serif;
    color: #444;
}

.cart-summary-table td {
    font-size: 14px;
    padding: 3px 0;
}

.cart-summary-table td:last-child {
    text-align: left;
    font-weight: 600;
}

.cart-summary-table .final-row td {
    font-size: 16px;
    font-weight: bold;
}


.summary-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-left: 20px;
}

.summary-actions input {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
}

.btn-apply {
    font-family: 'IranianSans', sans-serif;
    font-weight: bold;
    font-size: 12px;
    height: 50px;
    width: 110px;
    color: #999999;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-complete {
    font-family: 'IranianSans', sans-serif;
    font-weight: bold;
    height: 50px;
    width: 120px;
    background-color: #967C16;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .cart-page {
        width: 95%;
        margin: 20px auto;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 15px;
        height: 40px;
        width: 80px;
        font-size: 9px;
    }

    .cart-table th {
        padding: 0 0 10px 0;
        font-size: 12px;
        font-weight: 600;
    }

    .cart-table {
        border-spacing: 0 5px; /* فاصله بین ردیف‌ها */
        margin-bottom: 5px;
    }

    .cart-table td {
        padding: 2px;
        font-size: 9px;
    }

    .cart-table img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .cart-summary {
        margin-top: 5px;
        gap: 0;
        justify-content: center;
    }

    .cart-summary-table {
        direction: rtl;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cart-summary-table table {
        border-spacing: 15px 4px; /* فاصله بین ستون‌ها و ردیف‌ها */
    }

    .cart-summary-table td {
        font-size: 8px;
        padding: 3px 0;
    }

    .cart-summary-table .final-row td {
        font-size: 8px;
    }

    .summary-actions {
        gap: 5px;
        align-items: center;
        flex-wrap: wrap;
        margin-left: 20px;
    }

    .summary-actions input {
        padding: 8px;
        font-size: 14px;
    }

    .btn-apply {
        font-size: 8px;
        height: 40px;
        width: 80px;
        padding: 8px 10px;
    }

    .btn-complete {
        height: 40px;
        width: 80px;
        font-size: 8px;
        padding: 10px 10px;
    }
}

/*  page5  contact  /*/

.contact-section {
    max-width: 1400px;
    margin: auto;
    width: 100%;
    font-family: 'Ebrima', sans-serif;
    direction: ltr;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    background: #F3E8E8;
    text-align: center;
    padding: 100px;
}

.contact-form h1 {
    font-size: 38px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 10px;
}

.contact-form p {
    opacity: 0.35;
    font-size: 14px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group label {
    padding: 10px 15px;
    border: none;
    outline: none;
    border-radius: 20px;
    background: #D9D9D9;
    width: 40%;
}

.input-group label input {
    background-color: unset;
    border: none;
    outline: none;
    font-size: 13px;
    width: 100%;
    text-align: center;
}

.contact-button {
    background: #f7a600;
    color: #555555;
    font-family: 'Ebrima', sans-serif;
    border: none;
    border-radius: 25px;
    padding: 10px 40px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    width: 88%;
}

.contact-button:hover {
    background: #e39600;
}

.contact-info {
    background: #283049;
    color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 30px 10px;
}

.info-box {
    text-align: center;
    margin-top: -80px;
    justify-content: center;
    width: 30%;
}

.info-box-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon {
    background: #f7a600;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #1f2742;
}

.icon img {
    width: 60%;
    height: auto;
    opacity: 50%;
}

.info-box h3 {
    margin-bottom: 10px;
    font-weight: 400;
    opacity: 50%;
    font-size: 20px;
}

.info-box ul {
    list-style: none;
    justify-content: center;
    line-height: 1.8;
    font-size: 13px;
    opacity: 50%;
    display: flex; /* ✅ برای فعال شدن justify-content */
    flex-direction: column; /* عمودی چیدن liها */
    align-items: center; /* ✅ وسط‌چینی افقی */
}

.ri-line {
    display: flex;
    gap: 5px;
}

.ri-line img {
    height: 20px;
    width: 20px;
}

.info-box a {
    font-size: 13px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    opacity: 50%;
}

@media (max-width: 768px) {

    .contact-form {
        padding: 30px;
    }

    .contact-form h1 {
        font-size: 22px;
        line-height: 10px;
        margin-bottom: 5px;
    }

    .contact-form p {
        font-size: 8px;
        margin-bottom: 20px;
    }

    .input-group {
        gap: 5px;
        margin-bottom: 10px;
    }

    .input-group label {
        padding: 5px 10px;
    }

    .input-group label input {
        font-size: 8px;
    }

    .contact-button {
        padding: 5px 10px;
        font-size: 9px;
    }

    .contact-info {
        padding: 30px 0;
    }

    .info-box {
        margin-top: -50px;
        /*width: 30%;*/
        margin-left: 0;
    }

    .icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 10px auto;
    }

    .icon img {
        width: 60%;
        opacity: 50%;
    }

    .info-box h3 {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .info-box ul {
        list-style: none;
        justify-content: center;
        padding: 0 5px;
        margin: 0;
        text-align: center;
        font-size: 8px;
        opacity: 50%;
    }

    .ri-line {
        gap: 5px;
    }

    .ri-line img {
        height: 10px;
        width: 10px;
    }

    .info-box p {
        font-size: 8px;
        opacity: 50%;
    }
}

/*  page6  products-nut  /*/


.container {
    background-color: #F3E8E8;
    font-family: 'IranianSans', sans-serif;
    display: flex;
    max-width: 1400px;
    margin: auto;
    width: 100%;
    padding: 20px;
    gap: 20px;
}

.filter-section {
    min-width: 210px;
    max-width: 250px;
}


.custom-select {
    position: relative;
    font-family: 'IranianSans', sans-serif;
    width: 100%;
    direction: rtl;
}

.selected {
    margin: 10px 0 20px 0;
    padding: 15px 30px 15px 15px;
    color: #888888;
    font-size: 15px;
    font-weight: 600;
    font-family: 'IranianSans', sans-serif;
    border-radius: 12px;
    border: none;
    appearance: none; /* حذف فلش پیش‌فرض مرورگر */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23888888" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 15px center; /* اگر RTL داری، شاید بهتر باشه راست بذاری */
    background-size: 16px; /* سایز فلش – اینو می‌تونی تغییر بدی */
    cursor: pointer;
}

.options {
    font-family: 'IranianSans', sans-serif;
    position: absolute;
    border: none;
    margin-top: 0;
    display: none;
    top: 100%;
    left: 0;
    right: 0;
    list-style: none;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.options li {
    padding: 8px 0 8px 0;
    margin-right: 0;
    opacity: 60%;
    width: 80%;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
}

.options li:hover {
    background: #f0f0f0;
}

/* نمایش لیست وقتی فعال شد */
.custom-select.open .options {
    display: block;
}

.select-items div:last-child {
    border-bottom: none;
}

.filter-checkbox {
    background-color: white;
    justify-content: space-around;
    height: 20px;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-checkbox label {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.5;
}

.filter-checkbox input {
    opacity: 0.5;
}

.price-range-div {
    background-color: white;
    border-radius: 12px;
    padding: 20px 20px 40px 20px;
    justify-content: center;
}

.price-range-div p {
    background-color: #283049;
    border-radius: 16px;
    align-items: center;
    font-weight: 600;
    height: 50px;
    display: flex;
    justify-content: center;
    color: white;
    font-size: 15px;
    margin-bottom: 10px;
    margin-top: 0;
}

.price-range {
    position: relative;
    width: 100%;
    height: 40px;
    justify-content: center;
    font-family: 'IranianSans', sans-serif;
    display: flex;
}

/* نوار پس‌زمینه */
.price-range::before {
    content: "";
    position: absolute;
    left: 0;
    top: 23px;
    width: 100%;
    height: 4px;
    background: #ccc;
    border-radius: 3px;
}

/* نوار بین دو دکمه (بازه فعال) */
.price-range .range-progress {
    position: absolute;
    top: 23px;
    height: 4px;
    background: #000;
    border-radius: 3px;
}

/* اسلایدرها */
.price-range input[type="range"] {
    position: absolute;
    font-family: 'IranianSans', sans-serif;
    left: 0;
    top: 21px;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: transparent;
    height: 2px;
    z-index: 2;
}

.price-range input[type="range"]#minRange {
    z-index: 3; /* دکمه‌ی چپ بالاتر باشه */
}

.price-range input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
}

.price-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
}

.price-label {
    position: absolute;
    bottom: -25px; /* 👈 فاصله از پایین محدوده اسلایدر */
    /*left: 50%;*/
    /*transform: translateX(-50%);*/
    font-size: 13px;
    color: #555;
    text-align: center;
}


.stock-status {
    margin-top: 20px;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stock-status-p {
    background-color: #283049;
    border-radius: 16px;
    align-items: center;
    font-weight: 600;
    height: 50px;
    display: flex;
    justify-content: center;
    color: white;
    font-size: 15px;
    margin-bottom: 20px;
    margin-top: 0;
}

.stock-status-p2 {
    margin: auto;
}

/* --- Products --- */

.container2 {
    width: 100%;
}

.sidebar-header {
    direction: ltr;
    background: linear-gradient(90deg, #F5A301 40%, #283049 30%);
    color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    /*width: 98%;*/
    margin-right: 5px;
    margin-left: 5px;
    /*width: 78%;*/
}

.sidebar-header h2 {
    font-family: 'Ebrima', sans-serif;
    margin: 0;
    font-size: 28px;
    font-weight: 400;
    color: #283049;
}


.products {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.product-card {
    background: #fff;
    flex: 1 1 200px;
    max-width: 220px;
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 150px;
    margin-bottom: 15px;
}

.product-card h3 {
    margin-top: 0;
    font-size: 24px;
    color: white;
    margin-bottom: 25px;
}

.page-products-price {
    display: flex;
    justify-content: center;
    font-family: 'IranianSans', sans-serif;
    flex-direction: column;
    font-variant-numeric: normal;
    /* برای نمایش اعداد فارسی */
    unicode-bidi: bidi-override;
    gap: 2px;
    align-items: center;
    margin-bottom: 15px;
}

.page-products-price .old {
    text-decoration: line-through;
    font-family: 'IranianSans', sans-serif;
    color: gray;
    font-size: 13px;
}

.buy-btn {
    background: #F5A301;
    font-family: 'IranianSans', sans-serif;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    color: black;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.buy-btn:hover {
    background: #e39800;
}

/*!* --- Responsive --- *!*/
/*@media (max-width: 900px) {*/
/*    .container {*/
/*        flex-direction: column;*/
/*    }*/

/*    .sidebar {*/
/*        width: 100%;*/
/*    }*/

/*    .products {*/
/*        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));*/
/*    }*/
/*}*/


/* ////brand-bat///*/

.brand-bat {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
    gap: 35px;

}

.zir-brand-bat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    gap: 10px;
    /*font-family: 'IranianSans', sans-serif;*/
}

.zir-brand-bat a {
    font-family: 'IranianSans', sans-serif;
    color: black;
}

.img-brand-bat {
    width: 80px;
    height: 70px;
    filter: grayscale(100%);
}

.img-brand-bat:hover {
    filter: grayscale(0%); /* روی هاور رنگی شود – اختیاری */
    opacity: 1;
}

.question-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /*padding: 50px;*/
    width: auto;
    margin: 60px auto 0 auto;
}

.qus-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background-color: var(--redk-color);
    padding: 40px;
    gap: 20px;
}

.qus-box span {
    font-family: 'IranianSansBold', sans-serif;
    color: white;
    font-size: 24px;
}

.qus-box-img {
    width: 120px;
}

.qus-text-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-right: 20px;
    gap: 15px;
}

.qus-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin: 0;
}

.plus-b {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    font-size: 14px;
    background: linear-gradient(white, var(--redk-color));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.qus-text span {
    font-family: 'IranianSansBold', sans-serif;
}

.qus-box-btn {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(white, var(--redk-color));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}


.qus-box-btn:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}


.qus-box-btn svg {
    width: 20px;
    transition: transform 0.3s ease;
}


.qus-box-btn.active svg {
    transform: rotate(180deg);
}


.sss {
    margin-right: 25px;
    padding: 0;
    font-family: 'IranianSans', sans-serif;
    line-height: 1.8;
    font-size: 13px;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}


.sss.open {
    max-height: 500px;
    display: block;
}


/*  page4  checkout  /*/

.cart-page {
    font-family: 'IranianSans', sans-serif;
    max-width: 1400px;
    width: 100%;
    margin: 20px auto;
}

.cart-header {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 40px;
}

.btn-primary, .btn-secondary {
    font-family: 'IranianSans', sans-serif;
    padding: 8px 20px;
    border: none;
    height: 50px;
    width: 100px;
    border-radius: 7px;
    font-size: 13px;
    cursor: pointer;
}

.btn-primary {
    background-color: #D1C79F;
}

.btn-secondary {
    background-color: #967C16;
    color: white;
}

.cart-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.cart-table {
    width: 100%;
    border-collapse: separate; /* مهم! برای اعمال radius */
    border-spacing: 0 8px; /* فاصله بین ردیف‌ها */
    text-align: center;
    margin-bottom: 25px;
}

.cart-table th {
    background-color: #fff;
    padding: 12px 0 25px 12px;
    color: #555;
    font-weight: 600;
}

.cart-table tbody tr {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden; /* برای اعمال radius */
}

.cart-table tbody tr:nth-child(odd) td {
    background-color: #F2F2F2;
}

.cart-table tbody tr:nth-child(even) td {
    background-color: #ffffff;
}


.cart-table tbody tr td:first-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.cart-table tbody tr td:last-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.cart-table td {
    padding: 2px;
    font-size: 14px;
    font-weight: bold;
    color: #444;
    border: none;
}

.cart-table img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
}

.cart-table td span {
    opacity: 34%;
}

.cart-summary {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    width: 100%;
}

.cart-summary-table {
    direction: rtl;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cart-summary-table table {
    border-collapse: separate;
    border-spacing: 40px 8px; /* فاصله بین ستون‌ها و ردیف‌ها */
    font-family: 'IranianSans', sans-serif;
    color: #444;
}

.cart-summary-table td {
    font-size: 14px;
    padding: 3px 0;
}

.cart-summary-table td:last-child {
    text-align: left;
    font-weight: 600;
}

.cart-summary-table .final-row td {
    font-size: 16px;
    font-weight: bold;
}


.summary-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-left: 20px;
}

.summary-actions input {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
}

.btn-apply {
    font-family: 'IranianSans', sans-serif;
    font-weight: bold;
    font-size: 12px;
    height: 50px;
    width: 110px;
    color: #999999;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-complete {
    font-family: 'IranianSans', sans-serif;
    font-weight: bold;
    height: 50px;
    width: 120px;
    background-color: #967C16;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .cart-page {
        width: 95%;
        margin: 20px auto;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 15px;
        height: 40px;
        width: 80px;
        font-size: 9px;
    }

    .cart-table th {
        padding: 0 0 10px 0;
        font-size: 12px;
        font-weight: 600;
    }

    .cart-table {
        border-spacing: 0 5px; /* فاصله بین ردیف‌ها */
        margin-bottom: 5px;
    }

    .cart-table td {
        padding: 2px;
        font-size: 9px;
    }

    .cart-table img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .cart-summary {
        margin-top: 5px;
        gap: 0;
        justify-content: center;
    }

    .cart-summary-table {
        direction: rtl;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cart-summary-table table {
        border-spacing: 15px 4px; /* فاصله بین ستون‌ها و ردیف‌ها */
    }

    .cart-summary-table td {
        font-size: 8px;
        padding: 3px 0;
    }

    .cart-summary-table .final-row td {
        font-size: 8px;
    }

    .summary-actions {
        gap: 5px;
        align-items: center;
        flex-wrap: wrap;
        margin-left: 20px;
    }

    .summary-actions input {
        padding: 8px;
        font-size: 14px;
    }

    .btn-apply {
        font-size: 8px;
        height: 40px;
        width: 80px;
        padding: 8px 10px;
    }

    .btn-complete {
        height: 40px;
        width: 80px;
        font-size: 8px;
        padding: 10px 10px;
    }
}

/*  page5  contact  /*/

.contact-section {
    max-width: 1400px;
    margin: auto;
    width: 100%;
    font-family: 'Ebrima', sans-serif;
    direction: ltr;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    background: #F3E8E8;
    text-align: center;
    padding: 100px;
}

.contact-form h1 {
    font-size: 38px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 10px;
}

.contact-form p {
    opacity: 0.35;
    font-size: 14px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group label {
    padding: 10px 15px;
    border: none;
    outline: none;
    border-radius: 20px;
    background: #D9D9D9;
    width: 40%;
}

.input-group label input {
    background-color: unset;
    border: none;
    outline: none;
    font-size: 13px;
    width: 100%;
    text-align: center;
}

.contact-button {
    background: #f7a600;
    color: #555555;
    font-family: 'Ebrima', sans-serif;
    border: none;
    border-radius: 25px;
    padding: 10px 40px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    width: 88%;
}

.contact-button:hover {
    background: #e39600;
}

.contact-info {
    background: #283049;
    color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 30px 10px;
}

.info-box {
    text-align: center;
    margin-top: -80px;
    justify-content: center;
    width: 30%;
}

.icon {
    background: #f7a600;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #1f2742;
}

.icon img {
    width: 60%;
    height: auto;
    opacity: 50%;
}

.info-box h3 {
    margin-bottom: 10px;
    font-weight: 400;
    opacity: 50%;
    font-size: 20px;
}

.info-box ul {
    list-style: none;
    justify-content: center;
    line-height: 1.8;
    font-size: 13px;
    opacity: 50%;
    display: flex; /* ✅ برای فعال شدن justify-content */
    flex-direction: column; /* عمودی چیدن liها */
    align-items: center; /* ✅ وسط‌چینی افقی */
}

.ri-line {
    display: flex;
    gap: 5px;
}

.ri-line img {
    height: 20px;
    width: 20px;
}

.info-box p {
    font-size: 13px;
    opacity: 50%;
}

@media (max-width: 768px) {

    .contact-form {
        padding: 30px;
    }

    .contact-form h1 {
        font-size: 22px;
        line-height: 10px;
        margin-bottom: 5px;
    }

    .contact-form p {
        font-size: 8px;
        margin-bottom: 20px;
    }

    .input-group {
        gap: 5px;
        margin-bottom: 10px;
    }

    .input-group label {
        padding: 5px 10px;
    }

    .input-group label input {
        font-size: 8px;
    }

    .contact-button {
        padding: 5px 10px;
        font-size: 9px;
    }

    .contact-info {
        padding: 30px 0;
    }

    .info-box {
        margin-top: -50px;
        /*width: 30%;*/
        margin-left: 0;
    }

    .icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 10px auto;
    }

    .icon img {
        width: 60%;
        opacity: 50%;
    }

    .info-box h3 {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .info-box ul {
        list-style: none;
        justify-content: center;
        padding: 0 5px;
        margin: 0;
        text-align: center;
        font-size: 8px;
        opacity: 50%;
    }

    .ri-line {
        gap: 5px;
    }

    .ri-line img {
        height: 10px;
        width: 10px;
    }

    .info-box p {
        font-size: 8px;
        opacity: 50%;
    }
}

/*  page6  products-nut  /*/


.container {
    background-color: #F3E8E8;
    font-family: 'IranianSans', sans-serif;
    display: flex;
    max-width: 1400px;
    margin: auto;
    width: 100%;
    padding: 20px;
    gap: 20px;
}

.filter-section {
    min-width: 210px;
    max-width: 250px;
}

.custom-select {
    position: relative;
    font-family: 'IranianSans', sans-serif;
    width: 100%;
    direction: rtl;
}

.selected {
    margin: 10px 0 20px 0;
    padding: 15px 30px 15px 15px;
    color: #888888;
    font-size: 15px;
    font-weight: 600;
    font-family: 'IranianSans', sans-serif;
    border-radius: 12px;
    border: none;
    appearance: none; /* حذف فلش پیش‌فرض مرورگر */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23888888" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 15px center; /* اگر RTL داری، شاید بهتر باشه راست بذاری */
    background-size: 32px; /* سایز فلش – اینو می‌تونی تغییر بدی */
    cursor: pointer;
}

.options {
    font-family: 'IranianSans', sans-serif;
    position: absolute;
    border: none;
    margin-top: 0;
    display: none;
    top: 100%;
    left: 0;
    right: 0;
    list-style: none;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.options li {
    padding: 8px 0 8px 0;
    margin-right: 0;
    opacity: 60%;
    width: 80%;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
}

.options li:hover {
    background: #f0f0f0;
}

/* نمایش لیست وقتی فعال شد */
.custom-select.open .options {
    display: block;
}

.select-items div:last-child {
    border-bottom: none;
}

.filter-checkbox {
    background-color: white;
    justify-content: space-around;
    height: 20px;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-checkbox label {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.5;
}

.filter-checkbox input {
    opacity: 0.5;
}

.price-range-div {
    background-color: white;
    border-radius: 12px;
    padding: 20px 20px 40px 20px;
    justify-content: center;
}

.price-range-div p {
    background-color: #283049;
    border-radius: 16px;
    align-items: center;
    font-weight: 600;
    height: 50px;
    display: flex;
    justify-content: center;
    color: white;
    font-size: 15px;
    margin-bottom: 10px;
    margin-top: 0;
}

.price-range {
    position: relative;
    width: 100%;
    height: 40px;
    justify-content: center;
    font-family: 'IranianSans', sans-serif;
    display: flex;
}

/* نوار پس‌زمینه */
.price-range::before {
    content: "";
    position: absolute;
    left: 0;
    top: 23px;
    width: 100%;
    height: 4px;
    background: #ccc;
    border-radius: 3px;
}

/* نوار بین دو دکمه (بازه فعال) */
.price-range .range-progress {
    position: absolute;
    top: 23px;
    height: 4px;
    background: #000;
    border-radius: 3px;
}

/* اسلایدرها */
.price-range input[type="range"] {
    position: absolute;
    font-family: 'IranianSans', sans-serif;
    left: 0;
    top: 21px;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: transparent;
    height: 2px;
    z-index: 2;
}

.price-range input[type="range"]#minRange {
    z-index: 3; /* دکمه‌ی چپ بالاتر باشه */
}

.price-range input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
}

.price-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
}

.price-label {
    position: absolute;
    bottom: -25px; /* 👈 فاصله از پایین محدوده اسلایدر */
    /*left: 50%;*/
    /*transform: translateX(-50%);*/
    font-size: 13px;
    color: #555;
    text-align: center;
}


.stock-status {
    margin-top: 20px;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stock-status-p {
    background-color: #283049;
    border-radius: 16px;
    align-items: center;
    font-weight: 600;
    height: 50px;
    display: flex;
    justify-content: center;
    color: white;
    font-size: 15px;
    margin-bottom: 20px;
    margin-top: 0;
}

.stock-status-p2 {
    margin: auto;
}

.filter-button {
    display: none;
}

.filter-group {
    background: white;
    border-radius: 12px;
    padding: 15px 15px 5px 15px;
    margin-top: 15px;
    border: none;
}

.filter-content {
    max-height: 220px; /* ارتفاع ثابت برای لیست‌ها */
    overflow-y: auto; /* فعال‌سازی اسکرول عمودی */
    padding-right: 5px; /* کمی فاصله برای اسکرول */
}

/* اسکرول شیک‌تر (اختیاری) */
.filter-content::-webkit-scrollbar {
    width: 6px;
}

.filter-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    direction: rtl;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    padding-bottom: 10px;
}

.filter-title .arrow {
    transition: transform 0.3s ease;
    font-size: 18px;
}

.filter-group.active .arrow {
    transform: rotate(180deg);
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding-right: 5px;
    direction: rtl;
}

.filter-group.active .filter-content {
    max-height: 320px; /* به اندازه دلخواه */
    overflow-y: auto;
}

.filter-content label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.filter-content input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.filter-search {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'IranianSans', sans-serif;
    font-size: 14px;
}

/* لیست اسکرولی */
.filter-scroll {
    max-height: 220px; /* ارتفاع محدود */
    overflow-y: auto; /* اسکرول عمودی */
    padding-left: 5px;
}

/* لیست گزینه‌ها */
.filter-scroll label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.sidebar2 {
    display: none;
}

@media (max-width: 768px) {

    .container {
        flex-direction: column;
        width: 90%;
    }

    .selected {
        margin-top: -16px;
        margin-bottom: 0;
    }

    .filter-section {
        /*min-width: 100px;*/
        padding: 0;
        max-width: 210px;
        display: none;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .custom-select {
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .selected {
        height: 15px;
        padding: 8px 15px 10px 0;
        align-items: center;
        justify-content: center;
        margin-right: 5px;
        font-size: 12px;
        font-family: IranianSansBold, sans-serif;
    }

    .options {
        font-size: 12px;
    }

    .filter-button {
        margin-top: 5px;
        background-color: white;
        justify-content: space-around;
        height: 4px;
        border-radius: 12px;
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .filter-button button {
        background-color: white;
        color: #888888;
        border: none;
        font-size: 16px;
        font-family: IranianSansBold, sans-serif;
    }

    .filter-checkbox {
        display: none;
    }

    .filter-checkbox label {
        display: none;
        font-size: 15px;
        font-weight: 600;
        opacity: 0.5;
    }

    .filter-checkbox input {
        display: none;
        opacity: 0.5;
    }

    .price-range-div {
        display: none;
    }

    .stock-status {
        display: none;
    }


    .filter-checkbox2 {
        margin-top: 25px;
        background-color: #F3E8E8;
        justify-content: space-around;
        height: 20px;
        border-radius: 12px;
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .price-range-div2 {
        background-color: #F3E8E8;
        border-radius: 12px;
        padding: 20px 20px 40px 20px;
        justify-content: center;
    }

    .stock-status2 {
        margin-top: 20px;
        background-color: #F3E8E8;
        border-radius: 12px;
        padding: 20px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .filter-group {
        background: white;
        border-radius: 12px;
        padding: 15px 15px 5px 15px;
        margin-top: 15px;
        border: none;
    }

    .filter-content {
        max-height: 220px; /* ارتفاع ثابت برای لیست‌ها */
        overflow-y: auto; /* فعال‌سازی اسکرول عمودی */
        padding-right: 5px; /* کمی فاصله برای اسکرول */
    }

    /* اسکرول شیک‌تر (اختیاری) */
    .filter-content::-webkit-scrollbar {
        width: 6px;
    }

    .filter-content::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
    }

    .filter-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        direction: rtl;
        font-size: 16px;
        font-weight: 600;
        color: #444;
        padding-bottom: 10px;
    }

    .filter-title .arrow {
        transition: transform 0.3s ease;
        font-size: 18px;
    }

    .filter-group.active .arrow {
        transform: rotate(180deg);
    }

    .filter-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        padding-right: 5px;
        direction: rtl;
    }

    .filter-group.active .filter-content {
        max-height: 320px; /* به اندازه دلخواه */
        overflow-y: auto;
    }

    /* سایدبار موبایل */
    .sidebar2 {
        position: fixed;
        font-family: 'IranianSans', sans-serif;
        top: 0;
        right: -100%; /* پنهان باشد */
        /*margin-right: -80px;*/
        overflow-y: auto;
        /*padding-right: 25px;*/
        width: 300px;
        height: 90%;
        background-color: #f9f9f9;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease;
        z-index: 30000;
        transform: translateX(100%);
        padding: 43px 30px 20px 20px;
    }

    /* وقتی باز شد */
    .sidebar2.active {
        right: 0;
        transform: translateX(0);
    }

    /* اسکرول شیک‌تر (اختیاری) */
    .sidebar2::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar2::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
    }

    /* دکمه بستن */
    .close-btn {
        font-size: 30px;
        border: none;
        background: none;
        cursor: pointer;
        position: absolute;
        top: 60px;
        left: 10px;
    }

}

/* --- Products --- */

.container2 {
    width: 100%;
}

@media (max-width: 768px) {

    .container2 {
        margin-top: -15px;
        /*width: 95%;*/
    }

}

.sidebar-header {
    direction: ltr;
    background: linear-gradient(90deg, var(--redk-color) 40%, var(--grayk-color) 30%) !important;
    color: #fff;
    isolation: isolate;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    /*width: 98%;*/
    margin-right: 5px;
    margin-left: 5px;
    /*width: 78%;*/
}

.sidebar-header h2 {
    font-family: 'Ebrima', sans-serif;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: white;
}


.products {
    display: flex;
    flex-wrap: wrap;
    padding-top: 75px;
    gap: 25px;
    justify-content: center;
}

.product-card {
    font-family: IranianSansBold, sans-serif;
    background: #fff;
    flex: 1 1 200px;
    max-width: 220px;
    text-align: center;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 5px 8px 10px rgba(0, 0, 0, 0.5); /* سایه بیشتر به سمت راست و پایین */
    transition: 0.3s;
    margin-bottom: 75px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 180px;
    margin-bottom: 15px;
    margin-top: -100px;
}

.product-card h3 {
    margin-top: 0;
    font-size: 22px;
    color: white;
    margin-bottom: 15px;
}

.page-products-price {
    display: flex;
    justify-content: center;
    font-family: 'IranianSans', sans-serif;
    flex-direction: column;
    font-variant-numeric: normal;
    /* برای نمایش اعداد فارسی */
    unicode-bidi: bidi-override;
    gap: 2px;
    align-items: center;
    margin-bottom: 15px;
}

.page-products-price .old {
    text-decoration: line-through;
    font-family: 'IranianSans', sans-serif;
    color: gray;
    font-weight: bold;
    font-size: 13px;
}

.page-products-price .new {
    color: white;
    font-family: 'IranianSans', sans-serif;
    font-weight: bold;
}

.buy-btn {
    background: #1f2742;
    font-family: IranianSansBold, sans-serif;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    height: 35px; /* ارتفاع دلخواه */
    line-height: 5px; /* برابر با ارتفاع برای وسط چین دقیق */
}

.buy-btn:hover {
    background: #555555;
}

.sidebar {
    display: none
}

@media (max-width: 768px) {

    .sidebar-header {
        height: 40px;
        width: 100%;
        padding: 7px 0 0 0;
        align-items: center;
        justify-content: center;
    }

    .sidebar-header h2 {
        font-size: 20px;
        margin-left: 20px;
    }

    .sidebar {
        position: fixed;
        font-family: 'IranianSans', sans-serif;
        top: 0;
        right: -250px; /* پنهان باشد */
        margin-right: -25px;
        /*padding-right: 25px;*/
        width: 300px;
        height: 100%;
        background-color: #f9f9f9;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease;
        z-index: 30000;
        padding: 20px 30px 20px 20px;
    }

    /* وقتی باز است */
    .sidebar.active {
        right: 0;
    }

    /* دکمه بستن */
    .close-btn {
        background-color: transparent;
        margin-top: 5px;
        border: none;
        font-size: 25px;
        cursor: pointer;
        float: left;
    }

    .price-range-div2 p {
        background-color: #283049;
        border-radius: 16px;
        align-items: center;
        font-weight: 600;
        height: 50px;
        display: flex;
        justify-content: center;
        color: white;
        font-size: 13px;
        margin-bottom: 10px;
        margin-top: 0;
    }

    .filter-checkbox2 label {
        font-size: 13px;
        font-weight: 600;
        opacity: 0.5;
    }

    .filter-checkbox2 input {
        opacity: 0.5;
    }

    .products {
        display: flex;
        flex-wrap: wrap;
        padding-top: 50px;
        gap: 25px;
        justify-content: center;
    }

    .product-card {
        font-family: IranianSansBold, sans-serif;
        background: #fff;
        flex: 1 1 100px;
        max-width: 100px;
        text-align: center;
        padding: 25px;
        border-radius: 14px;
        box-shadow: 5px 8px 10px rgba(0, 0, 0, 0.5); /* سایه بیشتر به سمت راست و پایین */
        transition: 0.3s;
        margin-bottom: 50px;
    }

    .product-card:hover {
        transform: translateY(-5px);
    }

    .product-card img {
        width: 110px;
        margin-bottom: 15px;
        margin-top: -70px;
    }

    .product-card h3 {
        margin-top: 0;
        font-size: 15px;
        color: white;
        margin-bottom: 10px;
    }

    .page-products-price {
        display: flex;
        justify-content: center;
        font-family: 'IranianSans', sans-serif;
        flex-direction: column;
        font-variant-numeric: normal;
        /* برای نمایش اعداد فارسی */
        unicode-bidi: bidi-override;
        gap: 2px;
        align-items: center;
        margin-bottom: 15px;
    }

    .page-products-price .old {
        text-decoration: line-through;
        font-family: 'IranianSans', sans-serif;
        color: gray;
        font-weight: bold;
        font-size: 13px;
    }

    .page-products-price .new {
        color: white;
        font-family: 'IranianSans', sans-serif;
        font-weight: bold;
        font-size: 15px;
    }

    .buy-btn {
        background: #1f2742;
        font-family: IranianSansBold, sans-serif;
        border: none;
        border-radius: 8px;
        padding: 8px 15px;
        color: white;
        font-size: 10px;
        cursor: pointer;
        transition: 0.3s;
        height: 35px; /* ارتفاع دلخواه */
        line-height: 5px; /* برابر با ارتفاع برای وسط چین دقیق */
    }

    .buy-btn:hover {
        background: #555555;
    }
}


:root {
    --accent-color: #1fa8f5;
    --accent-color-fg: #fefefe;
    --backdrop-color: #89d4fe;
    --app-content-background-color: #c0d8ec;
    --inset-shadow: rgba(7, 43, 74, 0.3);
    --outset-shadow: rgba(223, 240, 255, 0.25);
    --clay-box-shadow: rgba(7, 43, 74, 0.3);
    --clay-background-color: #c0d8ec;
    --clay-fg-color: #444;
}

.flex-center {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/*.container {*/
/*    padding: 1rem 1rem 1.5rem;*/
/*}*/

/*.stage {*/
/*    max-width: 400px;*/
/*    width: 400px;*/
/*    margin: 0 auto;*/
/*}*/

.home.active {
    color: var(--accent-color);
}

.home-style {
    --app-content-background-color: #c0d8ec;
}

.products-nav.active {
    --outset-shadow: rgba(247, 167, 103, 0.45);
    --inset-shadow: rgba(149, 62, 8, 0.45);
    --clay-box-shadow: rgba(211, 69, 20, 0.4);
    --clay-background-color: #d34514;
    --clay-fg-color: #f1f2f3;
    color: #690c0c;
}

.products-nav-style {
    --app-content-background-color: #d36e5a;
}

.services.active {
    --outset-shadow: rgba(255, 159, 40, 0.45);
    --inset-shadow: rgba(88, 54, 13, 0.45);
    --clay-box-shadow: rgba(88, 54, 13, 0.4);
    --clay-background-color: #ed9426;
    --clay-fg-color: #f1f2f3;
    color: #cf5c0f;
}

.services-style {
    --app-content-background-color: #ed9426;
}

.about.active {
    --outset-shadow: rgba(93, 255, 85, 0.45);
    --inset-shadow: rgba(28, 78, 26, 0.45);
    --clay-box-shadow: rgba(28, 78, 26, 0.4);
    --clay-background-color: #4dd146;
    --clay-fg-color: #f1f2f3;
    color: #4dd146;
}

.about-style {
    --app-content-background-color: #4dd146;
}

.help.active {
    --outset-shadow: rgba(230, 230, 230, 0.45);
    --inset-shadow: rgba(81, 81, 81, 0.45);
    --clay-box-shadow: rgba(81, 81, 81, 0.4);
    --clay-background-color: #a3a3a3;
    --clay-fg-color: #f1f2f3;
    color: #783896;
}

.help-style {
    --app-content-background-color: #a3a3a3;
}


.tabbar {
    /*background-color: var(--app-content-background-color);*/
    background-color: #F5A301;
    /*border-bottom-left-radius: 1rem;*/
    /*border-bottom-right-radius: 1rem;*/
    border-radius: 1rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    height: 80px;
    display: flex;
    flex-direction: column;
    box-sizing: content-box;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s;
}

.tabbar ul,
.tabbar li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.tabbar ul {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #283049;
    align-self: flex-end;
    justify-content: center;
    height: 60px;
}

.tabbar li {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    margin-right: 5px;
    transition: all 0.4s;
    background-color: #283049;
    width: 60px;
    height: 60px;
    position: relative;
    color: white;
    cursor: pointer;
}

.tabbar li:last-child {
    margin-right: 0;
}

.tab-style5 ul {
    justify-content: center;
}

.tab-style5 li {
    display: flex;
    justify-content: center;
    align-items: center;
    top: 1px;
    left: 0;
    width: 60px;
    height: 50px;
    transition: top 0.4s ease-out, border-radius 0.4s ease-out, box-shadow 0.4s ease-out;
}

.tab-style5 .active {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    top: -1rem;
    background-color: var(--clay-background-color);
    box-shadow: 1px 2px 4px 0 var(--clay-box-shadow), 2px 4px 8px 0 var(--clay-box-shadow), inset 2px 2px 8px var(--outset-shadow), inset -2px -2px 8px var(--inset-shadow);
    color: var(--clay-fg-color);
}

.tab-style5 .active span {
    font-family: 'IranianSansBold', sans-serif;
    font-size: 12px;
}

.material-icons-outlined {
    font-family: 'IranianSansBold', sans-serif;
    font-size: 10px;
    margin-top: -5px;
}

.home img {
    width: 20px;
    filter: brightness(0) invert(1);
}

.products-nav img {
    width: 20px;
    filter: brightness(0) invert(1);
}

.services img {
    width: 20px;
    filter: brightness(0) invert(1);
}

.about img {
    width: 20px;
    filter: brightness(0) invert(1);
}

.help img {
    width: 20px;
    filter: brightness(0) invert(1);
}

/* footer */

.footer {
    background-color: var(--grayk-color);
}

.footer-dit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 20px 10px 20px;
    gap: 20px;
}

.foot-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-oth .foot-row {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* فاصله بین ستون‌ها */
}

.footer-oth .foot-col {
    flex: 1; /* همه ستون‌ها دقیقا هم‌سایز می‌شوند */
}

.foot-b {
    display: flex;
    filter: grayscale(100%);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.foot-b:hover {
    filter: grayscale(0%); /* روی هاور رنگی شود – اختیاری */
    opacity: 1;
}

.foot-img {
    width: 100px;
    margin-left: 8px;
}

.foot-b span {
    font-family: 'IranianSansBold', sans-serif;
    font-size: 18px
}

.foot-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.foot-col span {
    font-size: 12px;
    text-align: right;
}

.foot-d {
    display: flex;
    filter: grayscale(100%);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 5px;
}

.foot-img-icon {
    width: 25px;
    filter: brightness(0) invert(1);
}

.foot-d a {
    font-family: 'IranianSans', sans-serif;
    font-size: 14px;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.foot-img-e {
    width: 100px;
}

@media (max-width: 768px) {
    .footer-oth .foot-row {
        flex-direction: column;
    }
}

/* products-show /*/

.swiper {
    max-width: 75%;
    margin-top: -45px;
}

.swiper-wrapper {
    padding-top: 50px;
    margin-right: 20px;
    padding-right: 20px;
}

.product-card22 {
    background-color: #283049;
    font-family: IranianSansBold, sans-serif;
    border-radius: 20px;
    justify-content: center;
    position: relative; /* تا مبنای موقعیت‌گذاری برای فرزندها بشه */
    overflow: visible;
    padding: 20px;
    height: 220px;
    max-height: 250px;
    width: 400px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 5px 8px 10px rgba(0, 0, 0, 0.4); /* سایه بیشتر به سمت راست و پایین */
    cursor: grab;
}

.product-card22:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.product-card22 img {
    width: 160px;
    height: 140px;
    object-fit: contain;
    transform: translateX(-50%);
    margin-bottom: 10px;
    top: -40px; /* مقدار منفی که تصویر به سمت بالا بیاد */
    left: 50%;
    position: absolute;
    filter: drop-shadow(0px 20px 8px rgba(0, 0, 0, 0.5));
}

/* Swiper Navigation Buttons */
/*.swiper-button-prev,*/
/*.swiper-button-next {*/
/*    color: #1fa75b;*/
/*    background: #fff;*/
/*    max-font-size: 12px;*/
/*    border-radius: 50%;*/
/*    max-width: 45px;*/
/*    max-height: 30px;*/
/*    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);*/
/*}*/

/*.swiper-button-next::after,*/
/*.swiper-button-prev::after {*/
/*    color: #F1BA3B !important;*/
/*    font-size: 16px !important;*/
/*    font-weight: bold;*/
/*}*/

.products-show {
    background-color: #fabe49;
    border-radius: 20px;
    margin: 40px auto 0;
    display: flex; /* کنار هم */
    flex-direction: row; /* افقی */
    align-items: flex-start;
    max-width: 1400px;
    width: 100%;
    height: 320px;
    padding-top: 110px;
}


.image-slider {
    text-align: center;
    position: relative;
}

.image-slider img {
    width: 180px;
    transition: 0.3s;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    background: #b0b7c4;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slider-dots .dot.active {
    background: #1f2742;
    transform: scale(1.2);
}

.product-show-title {
    /*opacity: 55%;*/
    font-size: 18px;
    margin-bottom: 0;
    margin-top: 30px;
    color: #333;
}

.product-show-price {
    display: flex;
    align-items: center;
    margin-top: 10px;
    justify-content: space-around;
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
}

.new-price {
    color: #3a7d2e;
    font-weight: 600;
    font-size: 16px;
}

.add-to-cart {
    font-family: 'IranianSansBold', sans-serif;
    background-color: #F5A301;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.3s ease;
    transform: scaleX(0.9);
}

.add-to-cart:hover {
    background-color: #555555;
    color: #fff;
    border-color: #555555;
}

.products-off {
    margin-left: -50px;
    margin-right: 50px;
    margin-top: -30px;
    font-family: IranianSansBold, sans-serif;
    width: 190px;
    color: white;
}

.products-off-img {
    width: 160px;
    margin-top: 20px;
    /*filter: invert(25%) sepia(90%) saturate(5000%) hue-rotate(0deg) brightness(90%) contrast(100%);*/
}

@media (max-width: 1024px) {

    .products-off {
        margin-right: 30px;
    }

    .products-off h1 {
        font-size: 28px;
        filter: invert(25%) sepia(90%) saturate(5000%) hue-rotate(0deg) brightness(90%) contrast(100%);
    }

    .products-off-img {
        display: block;
        width: 70px;
        height: 45px;
        margin-top: 20px;
        filter: invert(25%) sepia(90%) saturate(5000%) hue-rotate(0deg) brightness(90%) contrast(100%);
    }
}

/* Fade-in از پایین به بالا */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

.swiper-wrapper-mob {
    margin-top: 80px;
}

@media (max-width: 768px) {

    .products-show {
        background-color: #F5A301;
        border-radius: 20px;
        margin: 40px auto 0;
        display: flex; /* کنار هم */
        flex-direction: column; /* افقی */
        align-items: flex-start;
        justify-content: flex-start;
        /*max-width: 1400px;*/
        width: 95%;
        height: 250px;
        padding-top: 110px;
    }

    .products-off {
        display: flex;
        width: 90%;
        justify-content: space-around;
        margin-top: -110px;
        margin-bottom: 50px;
    }

    .products-off h1 {
        font-size: 25px;
    }

    .swiper {
        max-width: 75%;
        margin-top: -65px;
        margin-right: -150px;
    }

    .swiper-wrapper {
        padding-top: 50px;
        margin-right: -0px;
    }

    .product-card22 {
        padding: 20px;
        /*height: 180px;*/
        max-height: 170px;
        width: 160px !important;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 5px 8px 10px rgba(0, 0, 0, 0.4); /* سایه بیشتر به سمت راست و پایین */
        cursor: grab;
    }

    .product-card22:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    }

    .product-card22 img {
        width: 100px;
        height: 100px;
        object-fit: contain;
        transform: translateX(-50%);
        top: -40px; /* مقدار منفی که تصویر به سمت بالا بیاد */
        left: 50%;
        position: absolute;
        filter: drop-shadow(0px 20px 8px rgba(0, 0, 0, 0.5));
    }

    /* Swiper Navigation Buttons */
    /*.swiper-button-prev,*/
    /*.swiper-button-next {*/
    /*    color: #1fa75b;*/
    /*    background: #fff;*/
    /*    max-font-size: 12px;*/
    /*    border-radius: 50%;*/
    /*    max-width: 45px;*/
    /*    max-height: 30px;*/
    /*    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);*/
    /*}*/
    /*.swiper-button-next::after,*/
    /*.swiper-button-prev::after {*/
    /*    color: #F1BA3B !important;*/
    /*    font-size: 16px !important;*/
    /*    font-weight: bold;*/
    /*}*/
    .product-show-title {
        /*opacity: 55%;*/
        font-size: 12px;
        margin-bottom: 5px;
        margin-top: 5px;
        color: #333;
    }

    .product-show-price {
        display: flex;
        align-items: center;
        margin-top: 2px;
        /*flex-direction: column;*/
        /*justify-content: space-around;*/
        margin-bottom: 15px;
    }

    .swiper-wrapper-mob {
        margin-top: 70px;
    }

    .old-price {
        text-decoration: line-through;
        color: #888;
        max-font-size: 6px;
    }

    .new-price {
        color: #3a7d2e;
        font-weight: 600;
        max-font-size: 6px;
    }

    .product-show-price .new-price,
    .product-show-price .old-price {
        font-size: 12px; /* هر سایزی خواستی */
        margin-top: 0;
        margin-bottom: 0;
    }

    .add-to-cart {
        font-family: 'IranianSansBold', sans-serif;
        background-color: #F5A301;
        border: none;
        border-radius: 8px;
        padding: 6px 12px;
        margin-bottom: 20px;
        font-size: 10px;
        color: white;
        cursor: pointer;
        font-weight: 600;
        line-height: 1.2;
        transition: all 0.3s ease;
        transform: scaleX(0.9);
    }

    .add-to-cart:hover {
        background-color: #555555;
        color: #fff;
        border-color: #555555;
    }
}


/* slide-container-buy */

.slide-container-buy {
    margin: 0 auto;
    direction: ltr;
    max-width: 1400px;
    width: 100%;
    padding: 40px 0;
}

.slide-content-buy {
    margin: 40px;
    overflow: hidden;
    border-radius: 25px;
}

.card-buy {
    border-radius: 25px;
    /*background-color: var(--grayk-color);*/
}

.image-content,
.card-buy-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 14px;
}

.page-products-price-home {
    display: flex;
    justify-content: center;
    font-family: 'IranianSans', sans-serif;
    flex-direction: column;
    font-variant-numeric: normal;
    /* برای نمایش اعداد فارسی */
    unicode-bidi: bidi-override;
    gap: 2px;
    align-items: center;
    margin-bottom: 15px;
    margin-top: 15px;
}

.page-products-price-home .old {
    text-decoration: line-through;
    font-family: 'IranianSans', sans-serif;
    color: gray;
    font-weight: bold;
    font-size: 18px;
}

.page-products-price-home .new {
    color: #428265;
    font-family: 'IranianSans', sans-serif;
    font-weight: bold;
    font-size: 21px;
}

.image-content {
    position: relative;
    row-gap: 0;
    padding: 5px 0;
}

.overlay {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    /*border-radius: 25px 25px 0 25px;*/
}

.overlay::before,
.overlay::after {
    /*content: '';*/
    /*position: absolute;*/
    /*right: 0;*/
    /*bottom: -40px;*/
    /*height: 40px;*/
    /*width: 40px;*/
}

.overlay::after {
    border-radius: 0 25px 0 0;
    background-color: #FFF;
}

.card-buy-image {
    position: relative;
    height: 170px;
    width: 180px;
    /*border-radius: 50%;*/
    /*background: #FFF;*/
    padding: 3px;
}

.card-buy-image .card-buy-img {
    height: 100%;
    width: 100%;
    /*object-fit: cover;*/
    /*border-radius: 50%;*/
    /*border: 4px solid var(--purplek-color);*/
}

.name-buy {
    font-family: IranianSansBold, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.description-buy {
    font-family: IranianSansBold, sans-serif;
    font-size: 14px;
    color: #707070;
    text-align: center;
}

.button {
    border: none;
    font-family: IranianSansBold, sans-serif;
    font-size: 15px;
    /*color: #8A0000;*/
    padding: 8px 16px;
    background-color: white;
    border-radius: 6px;
    margin: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background: var(--grayk-color);
    color: white;
}

.swiper-navBtn {
    color: var(--grayk-color);
    transition: color 0.3s ease;
}

.swiper-navBtn:hover {
    color: var(--grayk-color);
}

.swiper-navBtn::before,
.swiper-navBtn::after {
    font-size: 35px;
}

.swiper-button-next {
    right: 0;
}

.swiper-button-prev {
    left: 0;
}

.swiper-pagination-bullet {
    background-color: var(--grayk-color);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--grayk-color);
}

@media screen and (max-width: 768px) {
    .slide-content-buy {
        margin: 0 10px;
    }

    .swiper-navBtn {
        display: none;
    }
}

/* رنگ فلش‌ها */
.swiper-button-next::after,
.swiper-button-prev::after {
    color: var(--grayk-color); /* هر رنگی که می‌خوای */
    font-size: 10px; /* اختیاری */
}

/* اگر کلاس سفارشی swiper-navBtn داری */
.swiper-navBtn::after {
    color: var(--grayk-color);
}

.slide-container-buy .swiper-pagination-bullet {
    background-color: var(--grayk-color);
    opacity: 1;
}

.slide-container-buy .swiper-pagination-bullet-active {
    background-color: var(--grayk-color);
}

.slide-container-buy .swiper-button-next::after,
.slide-container-buy .swiper-button-prev::after {
    font-size: 25px;
    font-weight: bold;
}

@media (max-width: 768px) {

    .swiper-navBtn::after {
        color: var(--grayk-color);
    }

    .slide-content-buy {
        margin: 40px auto;
    }
}

