@import url("base.css");
/* @import url('layout.css'); */
/* @import url('components.css'); */
/* @import url('pages/home.css'); */
/* @import url('pages/products.css'); */
/* @import url('pages/product-details.css'); */

:root {
    --phoneBar: #000;
    --darkBlueHeader: #314860;
    --darkBlueFooter: #2a4158;
    --goldMenuColor: #e1b31c;
    --goldMenuColorHover: #ffdc6a;
    --goldBtn: #f1c40f;
    --goldBtnHOver: #d4ac0d;
    --goldBtnPromotion: #d2a83f;
    --goldBtnPromotionHover: #c2932d;
    --sliderArrows: #634c01;
    --grayPhone: #949494;
    --homeTxt: #2c2c2c;
    --homeTxtL: #333;
    --offerRed: #720404;
    --bgBestSeller: #f9f9f9;
    --bgDealer: #fefefe;
    /* --bgOffer:  #d4c2a3; */
    --bgOffer: #d5c3a3;
    --bgOffer2: #ebdbc1;
    --filterAG: #f3f1f1;

    --txtWhite: #fff;
    --txtBlack: #000;
    --txtFooterLight: #ddd;
    --txtGray: #444;

    --font-shabnam: "Shabnam", sans-serif;
    --font-bkoodak: "B Koodak", sans-serif;
    --font-vazirmatn: "Vazirmatn", sans-serif;
    --font-vazirmatnB: "Vazirmatn B", sans-serif;
}

@font-face {
    font-family: "Shabnam";
    src: url("../fonts/Shabnam.ttf");
}

@font-face {
    font-family: "B Koodak";
    src: url("../fonts/BKoodakBold.ttf") format("truetype");
}
@font-face {
    font-family: "Vazirmatn B";
    src: url("../fonts/Vazirmatn-Bold.ttf") format("truetype");
}
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Medium.ttf") format("truetype");
}

/* --- General Styles --- */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-vazirmatn);
}
body {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.btnSite {
    display: inline-block;
    background-color: var(--goldBtnPromotion);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;

    /* width: 100%; */
    text-align: center;
}
.btnSite:hover {
    background-color: var(--goldBtnPromotionHover);
}

.btnFilter-D {
    display: inline-block;
    width: 100%;
    background: var(--goldBtn);
    color: var(--txtBlack);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

/*--- HEADER ---*/
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/*--- HEADER| PHONEBAR ---*/
header .phoneBar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px;
    color: var(--txtWhite);
    background-color: var(--phoneBar);
    font-family: var(--font-bkoodak);
}

header .phoneBar img {
    width: 25px;
}

/*--- HEADER| MAIN NAV ---*/
header .main-nav {
    background-color: var(--darkBlueHeader);
}

header .main-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    flex-wrap: wrap;
}

header .main-nav .nav-container .logo img {
    height: 70px;
}

/* حالت دسکتاپ */
.logo .logo-icon {
    display: none;
}
.logo .logo-full {
    display: block;
}

/* حالت موبایل */
@media (max-width: 768px) {
    .logo .logo-icon {
        display: block;
    }

    .logo .logo-full {
        display: none;
    }

    .logo img {
        height: 70px; /* یا اندازه‌ای متناسب با موبایل */
    }
}

header .main-nav .nav-container .menu-toggle {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--goldMenuColor);
    display: none;
    cursor: pointer;
}

/*--- HEADER| MAIN NAV| NAV LINKS ---*/
header .main-nav .nav-container .nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

header .main-nav .nav-container .nav-links li a {
    text-decoration: none;
    font-size: 16px;
    color: var(--goldMenuColor);
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

header .main-nav .nav-container .nav-links li a:hover {
    color: var(--goldMenuColorHover);
    border-bottom-color: var(--goldMenuColorHover);
}

/*--- HEADER|--> MOBILE ---*/
@media (max-width: 768px) {
    header .main-nav .nav-container .menu-toggle {
        display: block;
    }

    header .main-nav .nav-container .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        background-color: var(--darkBlueHeader);
        display: none;
        margin-top: 10px;
        padding: 10px 0;
    }

    header .main-nav .nav-container .nav-links.active {
        display: flex;
    }

    header .main-nav .nav-container .nav-links li {
        width: 100%;
        padding: 10px 20px;
    }

    header .main-nav .nav-container .nav-links li a {
        display: block;
        width: 100%;
    }
}

/* --- MAIN --- */
main {
    padding-top: 0px;
    /* border: 2px solid blue; */
}

/* --- HOME| SLIDER --- */
.hero-slider {
    position: relative;
}
.swiper-slide {
    position: relative;
}
.swiper-slide img {
    width: 100%;
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--sliderArrows);
}

.swiper-pagination-bullet {
    background: var(--grayPhone);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--sliderArrows);
}

.swiper .swiper-pagination {
    bottom: 15px !important;
}

/* --- HOME| SLIDER|--> MOBILE --- */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px !important;
        height: 30px !important;
        transform: none !important;
    }

    .swiper-button-prev {
        right: 10px !important;
        right: auto !important;
    }

    .swiper-button-next {
        left: 10px !important;
        left: auto !important;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 14px !important;
    }
}

/* --- HOME| BESTSELLERS --- */
.bestsellers-section {
    padding: 60px 0;
    background: var(--bgBestSeller);
}

.bestsellers-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap-reverse;
    /* gap: 0px; */
    align-items: center;
    /* border: 1px solid green; */
}

/* --- HOME| BESTSELLERS|--> BIGER THAN MOBILE --- */
/* @media (min-width: 768px) {
    .bestsellers-content {
        align-items: center;
    }
} */

.bestsellers-text {
    max-width: 250px;
    direction: rtl;
    /* margin-inline-start: 50px; */
    display: flex;
    flex-direction: column;
    /* border: 1px solid red; */
}

.bestsellers-text h2 {
    /* font-family: var(--font-vazirmatn); */
    /* font-size: 32px; */
    color: var(--offerRed);
    font-size: 1.594rem;
    margin-bottom: 10px;
}

.bestsellers-text .divider {
    height: 3px;
    background: var(--offerRed);
    margin: 10px 0;
}

.bestsellers-text h4 {
    font-size: 1.188rem;
    color: var(--homeTxt);
    margin-bottom: 10px;
}

.bestsellers-text p {
    font-size: 0.9375rem;
    color: var(--txtGray);
    line-height: 1.8;
    text-align: justify;
}

/* --- HOME| BESTSELLERS| PRODUCTS DIV --- */
.bestsellers-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    flex-grow: 1;
    /* border: 1px solid red; */
}

/* --- HOME| BESTSELLERS| PRODUCTS DIV| PRODUCT CARD --- */
.product-card2 {
    /* background: #f8f8f8; */
    background: var(--txtWhite);
    padding: 16px;
    text-align: center;
    /* border: 1px solid #eee; */
    border-radius: 10px;
    width: calc(
        25% - 18px
    ); /* 4 تا در هر ردیف - 24px gap تقسیم بر 4 = 6px برای هر طرف */
    box-sizing: border-box;

    width: 180px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.product-card2:hover {
    transform: translateY(-3px);
}

.product-card2 img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* --- HOME| BESTSELLERS| PRODUCTS DIV| PRODUCT CARD| PRODUCT IMAGE --- */
.product-img {
    height: 195px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 30px;
    /* transition: transform 0.3s ease; */
    transition: opacity 0.3s ease-in-out;
}

.product-img:hover {
    transform: scale(1.05);
}

/*  */
.img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* border: 1px solid blue; */
}

.img-wrapper .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-wrapper:hover .img-hover {
    opacity: 1;
    z-index: 1;
}

.img-wrapper:hover .img-default {
    opacity: 0;
    z-index: 2;
}
/*  */

.product-model {
    width: 100%;
    height: auto;
    padding: 10px 0;
}

.product-model-p {
    width: 100%;
    height: auto;
    padding: 10px 0;
    font-family: "algerian";
}

/* --- HOME| BESTSELLERS| PRODUCTS DIV| PRODUCT CARD| BUTTON --- */
.product-btn {
    display: inline-block;
    width: 100%;
    background: var(--goldBtn);
    color: var(--txtBlack);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.product-btn:hover {
    background: var(--goldBtnHOver);
}

/* Desktop */
@media (max-width: 992px) {
    .bestsellers-text {
        margin-inline-start: 15px;
    }
}

@media (min-width: 992px) {
    .product-card2 {
        width: 180px;
    }

    .bestsellers-content {
        justify-content: space-between;
        gap: 10px;
    }

    .bestsellers-text {
        margin-inline-start: 50px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .bestsellers-section {
        /* background: #634c01; */
        /* border: 3px solid #634c01; */
    }

    .bestsellers-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* flex-wrap: wrap; */

        /* display: flex; */
        gap: 10px;
        /* border: 1PX solid RED; */
    }

    .product-card2 {
        /* width: calc(50% - 20px); */
    }
    .bestsellers-section {
        padding: 20px 0;
    }

    .bestsellers-text {
        margin-bottom: 15px;
        gap: 0px;
        max-width: 85%;
        order: -1;
    }
    .bestsellers-text h2 {
        font-size: 20px;
    }

    .bestsellers-text h4 {
        font-size: 18px;
        margin-bottom: 0;
    }

    .bestsellers-text p {
        font-size: 14px;
    }

    .bestsellers-text .bestsellers-text__title {
        text-align: center;
    }

    .bestsellers-text .bestsellers-text__text {
        text-align: center;
    }
}

/* Mobil */
@media (max-width: 500px) {
    .bestsellers-section {
        padding: 40px 40px;
    }

    .bestsellers-text {
        /* margin-top: 0; */
        /* background-color: red; */
    }

    .bestsellers-text h4 {
        font-size: 16px;
        /* display: none; */
    }

    .bestsellers-text p {
        font-size: 14px;
        /* display: none; */
    }

    .bestsellers-text h2 {
        font-size: 22px;
    }

    .bestsellers-text__text {
        font-size: 5px;
        margin-top: 0px;
        /* background-color: #4ea31c; */
    }

    .bestsellers-products {
        justify-content: center;
        gap: 20px;
        flex-grow: 1;
        /* border: 1px solid red; */
    }

    .product-card2 {
        padding: 16px;
        text-align: center;
        /* border: 1px solid #eee; */
        /* border-radius: 10px; */
        width: calc(
            100% - 20px
        ); /* 4 تا در هر ردیف - 24px gap تقسیم بر 4 = 6px برای هر طرف */
        box-sizing: border-box;

        /* width: 180px; */
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
        transition: transform 0.3s ease;
    }

    .product-card2 p {
        margin-bottom: 10px;
    }
}

/* --- HOME| PROMOTION OFFER --- */
.custom-safe-section {
    background-image: url("../images/img_offer/Offer1.png");
    background-size: cover; /* یا cover، بسته به نتیجه دلخواه */
    background-repeat: no-repeat;
    background-position: left center;
    background-color: var(--bgDealer);
    padding: 100px 50px;
    position: relative;
    text-align: right;
    direction: rtl;
}

.overlay-content {
    max-width: 500px;
    /* background: rgba(255, 255, 255, 0.8);  */
    padding: 20px 30px;
    border-radius: 10px;
}

.overlay-content h2 {
    font-family: "Vazirmatn";
    font-size: 22px;
    color: var(--offerTxt);
    margin-bottom: 15px;
}

.overlay-content h2 span {
    font-family: "Vazirmatn B";
    font-size: 30px;
    color: var(--offerRed);
}

.overlay-content p {
    font-size: 16px;
    color: var(--txtGray);
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    background-color: var(--goldBtnPromotion);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-btn:hover {
    background-color: var(--goldBtnPromotionHover);
}

@media (max-width: 887px) {
    .custom-safe-section {
        background-size: cover;
        background-position-x: -50px;
        padding: 80px 30px;
        /* border: 3px solid blue; */
    }
}

@media (max-width: 778px) {
    .custom-safe-section {
        background-position-x: -55px;
        padding: 60px 9px;
        /* border: 3px solid green; */
    }
}

@media (max-width: 700px) {
    .custom-safe-section {
        display: flex;
        justify-content: center;
        padding: 60px 50px;

        background-color: var(--bgOffer);
        background-image: none;
        /* border: 3px solid red; */
    }

    .overlay-content h2 {
        font-size: 18px;
    }

    .overlay-content h2 span {
        font-size: 25px;
    }

    .overlay-content p {
        font-size: 14px;
    }

    .cta-btn {
        font-weight: normal;
    }
}

/* --- HOME| DEALERS --- */
.dealers-section {
    padding: 60px 50px;
    background-color: var(--bgDealer);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap-reverse; /* برای اینکه متن بالاتر از تصویر باشه در موبایل */
    align-items: center;
    gap: 20px;
    /* border: 1px solid red; */
}

.dealers-content {
    max-width: 270px;
    flex: 1;
    /* border: 1px solid red; */
}

.dealers-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--homeTxt);
}

.dealers-content a {
    width: fit-content;
    display: inline-block;
    width: 100%;
}

.dealers-gallery {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    /* border: 1px solid orange; */
}

.dealers-gallery img {
    /* width: 700px; */
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s;
    /* border: 1px solid pink; */
}

.dealers-gallery img:hover {
    transform: scale(1.01);
}

@media (max-width: 768px) {
    .dealers-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 20px;
    }

    .dealers-content h3 {
        font-size: 18px;
        margin-bottom: 0px;
    }

    .dealers-content a {
        font-size: 14px;
        margin-top: 10px;
    }

    .dealers-gallery {
        order: -1;
        margin-top: 20px;
        width: 100%;
    }

    .dealers-gallery img {
        width: 90%;
        max-width: 400px;
    }
}
/*--- FOOTER ---*/
.site-footer {
    background-color: var(--darkBlueFooter);
    color: var(--txtFooterLight);
    padding: 40px 20px 20px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid var(--sliderArrows);
    padding-bottom: 20px;
}

.footer-about,
.footer-contact {
    width: 100%;
    max-width: 45%;
    margin-bottom: 20px;
    /* border: 1px solid blue; */
}

.footer-contact {
    /* width: 80%; */
    /* padding-left: 10px; */
}

.footer-about h3 {
    color: var(--goldMenuColor);
    margin-bottom: 10px;
}

.footer-contact .f-address i {
    align-self: flex-start;
    margin-top: 3px;
}

.footer-contact div {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-left: 8px;
    color: var(--goldMenuColor);
    font-size: 16px;
}

.footer-bottom {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: var(--grayPhone);
}

@media (max-width: 500px) {
    .footer-top {
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        /* border: 1px solid red; */
    }
    .footer-about,
    .footer-contact {
        width: 100%;
        max-width: 100%;
        /* border: 1px solid red; */
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}

/* --- PRODUCTS --- */
.products-page {
    padding: 0px;
    /* border: 5px solid red; */
    /* background-color: #2a4158; */
}

.top-img-filter {
    height: 310px;
    display: flex;
    justify-content: space-evenly;
    padding: 30px 50px;
    gap: 20px;
    width: 100%;
    /* background-color: lightyellow; */
    background-color: var(--bgOffer);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

/* --- IMAGES FILTERS --- */
/* --- IMAGES FILTERS| GAVSANDOGH --- */
.top-img-filter .gs-filter {
    flex-basis: 250px;
    height: 100%;
}

/* --- IMAGES FILTERS| CHAIR --- */
.top-img-filter .ch-filter {
    flex-basis: 200px;
    height: 100%;
}

/* --- IMAGES FILTERS| SAFEBOX --- */
.top-img-filter .sf-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
    text-align: center;
    border-radius: 10px;
    flex-basis: 550px;
    height: 100%;
}

/* --- IMAGES FILTERS| GAVSANDOGH & CHAIR --- */
.top-img-filter .gs-filter,
.top-img-filter .ch-filter {
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    background-color: #eaeaea;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* --- IMAGES FILTERS| SAFEBOX| EF & PM --- */
.top-img-filter .sf-filter .ef-filter,
.top-img-filter .sf-filter .pm-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 120px;
    border-radius: 10px;
    height: 120px;
    gap: 20px;
    padding: 15px;
    background-color: #eaeaea;
}

/* --- IMAGES FILTERS| ....| IMAGE --- */
.top-img-filter .gs-filter img,
.top-img-filter .ch-filter img {
    width: auto;
    height: 70%;
}

.top-img-filter .sf-filter .ef-filter .f-img,
.top-img-filter .sf-filter .pm-filter .f-img {
    height: 100%;
}

.top-img-filter .sf-filter .ef-filter .model-btn,
.top-img-filter .sf-filter .pm-filter .model-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* height: 20px; */
    /* border: 1px solid red; */
}

.top-img-filter .sf-filter .ef-filter .model-btn img,
.top-img-filter .sf-filter .pm-filter .model-btn img {
    width: 100px;
}

.top-img-filter .sf-filter .ef-filter .model-btn a,
.top-img-filter .sf-filter .pm-filter .model-btn a {
    width: 100%;
    height: fit-content;
    padding: 5px;
    /* border: 1px solid blue; */
}

/* --- IMAGES FILTERS| ....| BTN --- */
.top-img-filter .gs-filter .product-btn,
.top-img-filter .ch-filter .product-btn {
    width: 150px;
}

@media (max-width: 750px) {
    .top-img-filter {
        height: 250px;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        padding: 30px 15px;
    }

    .top-img-filter > div {
        box-sizing: border-box;
    }

    /* --- IMAGES FILTERS| GAVSANDOGH --- */
    .top-img-filter .gs-filter {
        flex-basis: 200px;
    }

    /* --- IMAGES FILTERS| CHAIR --- */
    .top-img-filter .ch-filter {
        flex-basis: 150px;
    }

    /* --- IMAGES FILTERS| SAFEBOX --- */
    .top-img-filter .sf-filter {
        padding: 0px;
        background-color: transparent;
    }
    /*  */

    .top-img-filter .sf-filter .ef-filter,
    .top-img-filter .sf-filter .pm-filter {
        padding: 10px 10px;
        height: 90px;
        gap: 2px;
    }
    .top-img-filter .sf-filter .ef-filter .f-img,
    .top-img-filter .sf-filter .pm-filter .f-img {
        width: 120px;
        height: auto;
    }

    .top-img-filter .sf-filter .ef-filter .model-btn,
    .top-img-filter .sf-filter .pm-filter .model-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .top-img-filter .sf-filter .ef-filter .model-btn img,
    .top-img-filter .sf-filter .pm-filter .model-btn img {
        width: 55px;
    }

    .top-img-filter .btnFilter-D {
        padding: 2px;
        /* border: 1px solid green; */
    }

    .top-img-filter .sf-filter .ef-filter .model-btn a,
    .top-img-filter .sf-filter .pm-filter .model-btn a {
        width: 100%;
        padding: 2px;
    }
}

.top-img-filter .gs-filter:hover,
.top-img-filter .ch-filter:hover,
.top-img-filter .sf-filter .ef-filter:hover,
.top-img-filter .sf-filter .pm-filter:hover {
    /* border: 2px solid var(--bgOffer); */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.top-img-filter .gs-filter .btnFilter-D:hover,
.top-img-filter .ch-filter .btnFilter-D:hover,
.top-img-filter .sf-filter .ef-filter .btnFilter-D:hover,
.top-img-filter .sf-filter .pm-filter .btnFilter-D:hover {
    background-color: var(--goldBtnHOver);
}

@media (max-width: 500px) {
    .top-img-filter {
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 10px;
        height: 250px;
    }

    .top-img-filter > div {
        flex: 1 1 30%;
        max-width: 32%;
        height: auto;
        padding: 10px;
        box-sizing: border-box;
    }

    .top-img-filter .gs-filter,
    .top-img-filter .ch-filter,
    .top-img-filter .sf-filter {
        flex-basis: 30%;
        max-width: 30%;
        min-width: 0;
        padding: 5px;
        height: auto;
    }

    .top-img-filter .gs-filter,
    .top-img-filter .ch-filter {
        padding-top: 30px;
        padding-bottom: 11px;
    }

    .top-img-filter .ch-filter {
        max-width: 25%;
    }

    .top-img-filter .sf-filter {
        max-width: 45%;
        justify-content: space-between;
        padding: 0;
        background-color: transparent;
    }

    /* --- IMAGES FILTERS| SAFEBOX| EF & PM --- */
    .top-img-filter .sf-filter .ef-filter,
    .top-img-filter .sf-filter .pm-filter {
        justify-content: space-between;
        flex-direction: column;
        width: 100%;
        height: 110px;
        border-radius: 10px;
        /* padding: 5px; */
        background-color: #eaeaea;
        /* border: 2px solid greenyellow; */
    }

    .top-img-filter .gs-filter img,
    .top-img-filter .ch-filter img {
        width: auto;
        height: 130px;
        justify-content: center;
        align-items: center;
        /* border: 1px solid orange; */
    }

    .top-img-filter .sf-filter .ef-filter .f-img,
    .top-img-filter .sf-filter .pm-filter .f-img {
        width: 60%;
        height: auto;
        /* margin-bottom: 3px; */
        /* border: 1px solid red; */
    }

    .top-img-filter .sf-filter .ef-filter .model-btn,
    .top-img-filter .sf-filter .pm-filter .model-btn {
        flex-direction: column;
        justify-content: flex-start;
        margin: 0;
        padding: 0;
        gap: 5px;
        /* border: 1px solid green; */
    }

    .top-img-filter .sf-filter .ef-filter .model-btn img,
    .top-img-filter .sf-filter .pm-filter .model-btn img {
        width: 40%;
        align-self: center;
        display: none;
        /* border: 1px solid red; */
    }

    .top-img-filter .sf-filter .pm-filter .f-img {
        order: -1;
    }

    .top-img-filter .sf-filter .ef-filter .model-btn a,
    .top-img-filter .sf-filter .pm-filter .model-btn a {
        width: 100%;
        /* width: 93px; */
        padding: 2px 10px;
    }
}
/* ********************************************** */

.products-filters {
    display: flex;
    flex-direction: column;
    gap: 10%;
    width: 240px;
    padding: 20px;
    font-size: 14px;
    /* border: 1px solid blue; */
}

.products-filters .filterL {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* border: 1px solid red; */
}

.no-products {
    background: #f8f8f8;
    padding: 90px 20px;
    text-align: center;
    border-radius: 10px;
    width: calc(25% - 18px);
    box-sizing: border-box;
    color: var(--homeTxtL);
    width: 100%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.products-section {
    padding: 3% 5%;
    text-align: center;
    direction: rtl;
    display: flex;
    justify-content: center;
    /* background-color: var(--background-color); */
    /* border: 1px solid red; */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    padding: 3%;
    max-width: 1200px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    /* background-color: var(--txtWhite); */
    background-color: #f8f8f8;
    /* border: 1px solid red; */
}

/* کارت محصول */
.product-card {
    /* background: #f8f8f8; */
    background: var(--txtWhite);
    padding: 16px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

/* تصاویر داخل کارت */
.product-card img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* دکمه و عنوان */
.product-model {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.details-btn,
.product-btn {
    background-color: #f2b600;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.details-btn:hover,
.product-btn:hover {
    background-color: #d49f00;
}

/* ریسپانسیو – برای موبایل‌ها */
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
        padding: 5%;
    }

    /* one product */
    /* .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 5%;
    } */
}

/* --- PRODUCTS-DEAILS --- */
.breadcrumbs {
    direction: rtl;
    font-size: 0.9rem;
    color: #777;
    padding: 15px 20px;
    background-color: #f9f6eb;
    margin-bottom: 50px;
}

.breadcrumbs a {
    color: #444;
    /* color: #626161; ME*/
    text-decoration: none;
    margin: 0 5px;
}

/* ------- Product details content ------- */
.product-details-page {
    width: 85%;
    max-width: 1200px;
    margin: 40px auto;
    /* border: 1px solid red; */
}

.product-detail-content {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 12px;
    /* box-shadow: 0 0 10px #ddd; */
    gap: 40px;
    /* border: 1px solid green; */
}

.product-info,
.product-gallery {
    flex: 1 1;
    /* flex-basis: 55%; */
}

.product-detail-content .product-info {
    direction: rtl;
    /* flex: 1 1 400px; */
    /* flex-basis: 450px; */
    padding: 50px 60px 80px 60px;
    border-radius: 12px;
    color: #3b3a3a;
    background-color: #f8f8f8;
    box-shadow: 0 0 10px #b4b2b2;
    /* border: 1px solid red; */
}

.product-detail-content .product-info .general-info {
    margin-bottom: 90px;
    /* border: 1px solid red; */
}

.product-detail-content .product-info .series-info h3 {
    /* border: 1px solid red; */
}

.product-detail-content .product-info h2,
.product-detail-content .product-info h3 {
    font-family: "Vazirmatn";
    font-size: 20px;
    /* border-bottom: 2px solid #ccc; */
    border-bottom: 3px solid var(--goldBtnPromotion);
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    margin-top: 1rem;
    font-size: 15px;
    border: none;
    /* border: 1px solid rebeccapurple; */
}
.product-table td {
    border: none;
    padding: 8px 12px;
    vertical-align: top;
    color: #3b3a3a;
}
.product-table .label {
    color: #626161;
    font-weight: bold;
    --background-color: #f8f8f8;
    white-space: nowrap;
    width: 120px;
}

.product-detail-content .product-info .series-info .features-list {
    list-style: none;
    padding-right: 0;
    margin-top: 20px;
}

.product-detail-content .product-info .series-info .features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
}

.product-detail-content .product-info .series-info .features-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 6px;
    background-color: #626161;
    border-radius: 50%;
    flex-shrink: 0;
}

.product-image {
    /* flex: 1 1 300px;
    text-align: center; */

    flex: 1 1 250px; /* اولویت با 350px ولی اجازه رشد و جمع‌شدن داره */
    min-width: 250px; /* حداقل عرض دلخواه در دسکتاپ */
    max-width: 400px;
    text-align: center;

    /* border: 1px solid red; */
}

.product-image .big-product {
    border-radius: 8px;
    /*padding: 20px;
    border-radius: 12px;
    background-color: #f8f8f8;
    box-shadow: 0 0 10px #ddd; */

    position: relative;
    width: 100%;
    padding-top: 2%; /* نسبت 4:3 */
    background-color: #f8f8f8;
    overflow: hidden;
    /* border: 1px solid blue; */
}

.product-image .big-product img {
    /* max-height: 400px; */

    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 940px) {
    .product-detail-content {
        /* flex-direction: column; */
        /* border: 1px solid red; */
        /* border: 3px solid #634c01; */
    }

    .product-detail-content .product-info .series-info h3 {
        font-size: 18px;
    }
}

/* موبایل */
@media (max-width: 770px) {
    .product-detail-content {
        flex-direction: column;
        /* border: 3px solid #720404; */
    }

    .product-gallery {
        order: -1;
        width: 100%;
    }

    .product-info {
        width: 100%;
    }

    .main-image {
        box-shadow: 0 0 5px #b4b2b2;
    }
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* order: -1; */
}

.main-image {
    width: 100%;
    max-height: 350px; /* کمتر از مقدار قبلی */
    aspect-ratio: 1 / 1; /* نسبت 4 به 3 */
    /* background-color: #f5f5f5; */
    background-color: var(--txtWhite);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 0 5px #b4b2b2; */

    /* border: 1px solid red; */
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    /* border: 1px solid red; */
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    box-shadow: 0 1px 3px #c2c0c0;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border: 2px solid var(--goldBtnHOver);
    box-shadow: 0 0 10px #ddd;
}

.product-series {
    width: 100%;
    height: auto;
    margin-top: 50px;
    border-radius: 12px;
    background-color: #3b3a3a;
    display: flex;
    justify-content: center;
    /* box-shadow: 0 0 5px #b4b2b2; */
    /* border: 3px solid red; */
}

.product-series img {
    width: 70%;
}

.moreInfo {
    width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: 12px;
    background-color: #c9c9c9;
    color: var(--txtWhite);
    padding: 10px 5px;
    direction: rtl;
    text-align: center;
    display: flex;
    justify-content: center;
    /* box-shadow: 0 0 5px #b4b2b2; */
}

/* ---UNDER CONSTRUCTION ----- */
@media (max-width: 767.98px) {
    .img-under-construction {
        width: 90% !important;
        max-width: none !important;
    }
}

/* ******************** */
.agencies-section {
    /* padding: 30px 20px; */
    padding: 0;
    background-color: #fff;
    /* border: 1px solid orangered; */
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #333;
    /* border: 1px solid red; */
}

.top-img-agents {
    /* height: 310px; */
    display: flex;
    justify-content: space-evenly;
    padding: 30px 50px;
    width: 100%;
    height: auto;
    /* margin-bottom: 6%; */
    background-color: var(--bgOffer);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    /* border: 1px solid red; */
}

.top-img-agents img {
    max-width: 800px;
    height: auto;
    width: 100%;
    /* border: 1px solid red; */
}

.filter-agents {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding: 20px 50px;
    width: 100%;
    height: 400px;
    /* margin-bottom: 4%; */
    /* background-color: var(--filterAG); */
    background-color: var(--filterAG);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.filter-agents .filter-img {
    max-width: 100%;
    overflow: hidden;
    /* border: 1px solid red; */
}
.filter-agents .filter-img svg {
    width: 100%;
    height: auto;
    display: block;
}

.filter-agents .filter-list {
    width: 50%;
    height: auto;
    direction: rtl;
    padding: 2% 5%;
    border: 1px solid rgb(199, 199, 199);
    /* background-color: #f8f8f8; */
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.filter-agents .filter-list form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* .list-ag{
    border: 1px solid blue  !important;
} */

/* ************** */
.form-select {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #43474b;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (prefers-reduced-motion: reduce) {
    .form-select {
        transition: none;
    }
}

.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select[multiple],
.form-select[size]:not([size="1"]) {
    padding-right: 0.75rem;
    background-image: none;
}

.form-select:disabled {
    background-color: #e9ecef;
}

.form-select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #212529;
}

.form-select-sm {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.form-select-lg {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}
/* ************** */

.agencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    padding: 5%;
    /* border: 1px solid red; */
}

.agency-card {
    background-color: #e7e6e6;
    padding: 5px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    border: 1px solid #d6d6d6;
    /* max-width: 280px;; */

    /* transition: box-shadow 0.3s ease; */
    /* border: 1px solid red; */
}

.agency-card:hover {
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.4);
}

.agency-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* border-radius: 10px; */

    height: 180px;
    border-radius: 10px;
    background-color: #fff;
    /* border: 1px solid blue; */
}

.agency-wrapper img {
    width: 100%;
    height: 180px;
    min-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    background-color: #fff;
    margin-bottom: 12px;

    position: absolute;
    top: 0;
    left: 0;
    /* height: 100%; */
    /* object-fit: contain; */
    transition: opacity 0.4s ease-in-out;
}

.agency-wrapper .main-img {
    z-index: 1;
    opacity: 1;
}

.agency-wrapper .address-img {
    z-index: 2;
    opacity: 0;
}

.agency-wrapper:hover .main-img {
    opacity: 0;
}

.agency-wrapper:hover .address-img {
    opacity: 1;
}

.agency-info {
    padding: 0 10px 10px 10px;
    text-align: right;
    /* border: 1px solid red; */
}

.agency-name {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 5px;
}

.agency-location {
    /* font-weight: bold; */
    margin-top: 25px;
    color: #555;
    text-align: left;
}

.agency-contact,
.agency-address {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .agencies-grid {
        /* background-color: pink; */
    }

    .section-title {
        font-size: 20px;
    }

    .agencies-grid {
        padding: 10%;
        /* border: 1px solid red; */
    }

    .filter-agents {
        flex-direction: column;
        height: 655px;
        /* border: 1px solid red; */
    }

    .filter-agents .filter-img {
        width: 80%;
        /* padding: 2%; */
        /* border: 1px solid red; */
    }

    .filter-agents .filter-img svg {
        width: 100%;
        height: auto;
        /* border: 1px solid burlywood; */
    }

    .filter-agents .filter-list {
        width: 100%;
    }
}

@media (max-width: 603px) {
    .agencies-grid {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* background-color: orange; */
    }

    .agency-card {
        width: 85%;
        /* border: 1px solid blue; */
    }

    .agency-wrapper img {
        height: 205px;
    }

    .filter-agents {
        height: 500px;
        /* border: 1px solid red; */
    }
}

svg path {
    fill: var(--goldBtnPromotionHover);
    transition: fill 0.3s ease;
}

svg path:hover {
    fill: var(--goldBtn);
}
