/* ---- RESET ---- */
*{
box-sizing:border-box;
}
html,body{
max-width:100%;

}
img{
max-width:100%;
height:auto;
}

body{
    margin:0;
    padding:0;
    direction:rtl;
    font-family:tahoma;
    background:#fffcf1;
    
overflow-x:hidden;

}
 .input{
      font-family:tahoma;
 }

/* ---- HEADER MAIN BOX ---- */
.headerup{
        background-color: #f3c112;
    height: 88px;
    width: 100%;
    margin-bottom: 60px;
}
.headerup{
position: sticky;
top: 0;
z-index: 9999;
box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.footerdn{
    background:#f2c200;
    height:183px;
    width:100%;
    margin-top:-163px;
}

.footerdn h4{
        justify-content: center;
}

.footerdn{
    background:#f2c200;
    height:183px;
    width:100%;
    display:flex;
    align-items:flex-end;   /* متن را می‌چسباند به پایین */
    justify-content:center; /* وسط چین افقی */
   padding-bottom: 4px;
    margin-top: -160px;
    
}

.footerdn p{
    margin:0;
    font-size:11px;
}
نتیجه:

.footerdn-reg{
    background:#f2c200;
    height:122px;
    width:100%;
    margin-top:-110px;
}

.header-box{
    width:95%;
    max-width:1200px;
    margin:auto;
    background:#fff;
    border-radius:14px;
    border-bottom:4px solid #f2f0eb;
    box-shadow:0 4px 12px rgba(0,0,0,0.10);
    position:relative;
    z-index:20;
     top: 10px;
}

/* ---- TOP SECTION ---- */


/* LOGO */
.header-right{
    display:flex;
    align-items:center;
    gap:15px;
}

.logoh{
    height:55px;
    width:auto;
}
.logof{
    height:130px;
    width:auto;
}

/* ---- SEARCH (بعد از لوگو) ---- */


.search-box{
    display:flex;
    background:#f3f3f3;
    border-radius:16px;
    overflow:hidden;
    width: fit-content;
}
.search-box form {
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 3px 15px 10px;
    direction: rtl;
    font-size: 24px;
    font-family: tahoma;
    background-color:#f3f3f3;
}


.search-boxhu{
    display:flex;
    background:#f3f3f3;
    border-radius:16px;
    overflow:hidden;
    width: fit-content;
}
.search-boxhu form {
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}
.search-boxhu input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 15px 10px;
    direction: rtl;
    font-size: 14px;
    font-family: tahoma;
    background-color:#f3f3f3;
}

.search-boxhd{
    display:none;
}

.search-boxhd form {
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}
.search-boxhd input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 15px 10px;
    direction: rtl;
    font-size: 14px;
    font-family: tahoma;
    background-color:#f3f3f3;
}




.search-btn {
    background: transparent;
    border: none;
       padding: 6px 15px 0px 0px;
    cursor: pointer;
}

.search-btn svg{
    width:18px;
    height:18px;
}


/* ---- LEFT BUTTONS ---- */
.header-left {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: flex-start; /* بچسبد به سمت چپ والد */
}



.login-btn:hover{
    background:#c21f32;
    color:white;
}

/* ---- MENU SECTION ---- */
.header-menu{
 
    justify-content:space-between;
   }
/* MENU LINKS */
.menu a{
    color:#444;
    font-size:14px;
    text-decoration:none;
    margin-left:22px;
}

.menu a:hover{
    color:#2aa65a;
}
/* LOCATION */
.location{
    display:flex;
    align-items:center;
    font-weight:bold;
    width: auto;
    margin-left:62px;
    font-size:14px;
    color:#666;

}
.hero{
padding:0px 0;
position:relative;
z-index:1;
background-color: #fffcf1;;
text-align: center;
}

.hero-welcom{
    padding:0px 0;
position:relative;
z-index:1;
background-color: #fff;
text-align: center;
border:1px solid #ece7e880;;
border-radius:10px;
width: fit-content;
box-shadow:inset 0 4px 12px rgba(0,0,0,0.10);
    margin: 0 auto;
    margin-top:80px;
}


.hero-inner{
    align-items:center;
    justify-content:center;
      margin-left:40px;
          margin-right: 110px;
        flex-wrap:wrap;
            font-family:tahoma;
    padding: 30px;         
    margin: 0 auto;

}
.hero-buttons {
    display: flex;      
    align-items: center; 
    gap: 130px;
    margin: 29px 10px 10px 10px;
        justify-content: center;
}
/* دکمه ها */

.hero-btn,
.hero-btn-outline{
    display:inline-block;
    padding:10px 24px;
    border-radius:8px;
    font-size:14px;
    text-decoration:none;
    transition:all 0.3s ease;
}

/* قرمز */

.hero-btn{
    background:#d32f2f;
    color:#fff;
    margin-left: 16px;
}

/* دکمه کادر قرمز: فروشندگان */
.hero-btn-outline{
    border:1px solid #d32f2f;
    color:#d32f2f;
    background:transparent;
}

/* Hover effects */
.hero-btn:hover{
    background:#b71c1c;
}

.hero-btn-outline:hover{
    background:#d32f2f;
    color:#fff;
}

/* TEXT */

.hero-text{
    flex:1;
        font-family:tahoma;

    
}

.hero-text h1{
    font-size:34px;
    line-height:55px;
    color:#222;
}


/* IMAGE */

.hero-img{
    flex:1;
    text-align:left;
}

.hero-img img{
    width:300px;
    max-width:100%;
        margin-left: 97px;

    
}





/* ---- MOBILE ---- */


@media (max-width:768px){

.search-box{
order:10;
width:100%;
margin-top:10px;
}

.login-btn {
    top: 17px;
    padding: 9px 20px;
}

.hero-welcom{
        margin: 80px 20px;
}


.search-box input{
    font-size: 14px !important;
    padding-top: 5px;
}

.search-boxhd {
    display:flex;
    background:#f3f3f3;
    border-radius:16px;
    overflow:hidden;
    width: fit-content;
}


.search-boxhu{
display:none
}






.header-box{
    margin-bottom:10px;
}

/* لوگو */
.header-right{
order:1;
}

/* دکمه ها */
.header-left{
order:2;
display:flex;
gap:10px;
}
.header-menu{
    padding:5px 10px;
}

.location{
    margin:0;
    text-align:center;
    padding:8px 5px;
    background:#f3f3f3;
    border-radius:8px;
    order:1;
    margin-right:auto;

}
/* جستجو */


/* کوچک شدن لوگو */
.logo{
height:60px;
}

/* کوچک شدن دکمه ها */
.seller-btn,
.login-btn{
font-size:13px;
padding:6px 10px;
}

}




   @media(max-width:768px){
    .hero-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0px 16px 0px 16px;
        padding: 0px;
        font-size: 11px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        margin-left: 10px;
        align-items: center;
     
    }

    .hero-btn,
    .hero-btn-outline {
        width: 180px;
        text-align: center;
        margin-bottom: 20px;
                margin-left: 0px;
    }

    .hero-img {
        text-align: center;
    }

    .hero-img img {
        width: 260px;
    }
}
/* ========================= */
/* HOME SEARCH SECTION */
/* ========================= */

.home-search-section{
    margin-right:40px;
        margin-left:40px;
margin-bottom:10px;
}

.home-search-section .container{
    max-width:1200px;
    margin:auto;
    width: fit-content;
    margin-top: 85px;
}

/* search box */

.home-search-box{
    background:#14b87a;
    border-radius:22px;
    padding:30px;
    color:#ffffff;
    width:100%;
}

/* title */

.home-search-title{
    font-size:20px;
    font-weight:bold;
    margin-bottom:20px;
    text-align:right;
    margin-left: 20px;
        font-family:tahoma;

}

/* row 1 */

.home-search-row1{
    display:flex;
    align-items:center;
    margin-left:12px;
    flex-wrap:wrap;
            font-family:tahoma;

}

/* inputs */

.home-search-row1 input,
.home-search-row1 select{
    height:42px;
    border-radius:25px;
    border:1px solid #ffffff;
    background:transparent;
    color:#ffffff;
    padding:0 15px;
    outline:none;
    font-size:14px;
     margin-left:20px;
      font-family:tahoma;
 }


.home-search-row1 input::placeholder{
}

/* button */

.home-search-btn{
    background:#d32f2f;
    border:none;
    color:#ffffff;
    height:42px;
    padding:0 38px;
    border-radius:25px;
    cursor:pointer;
    font-size:14px;
    margin-right: 42px;
}

/* divider */

.home-search-divider{
    height:1px;
    background:#ffffff;
    opacity:0.4;
    margin:20px 0;
}

/* row 2 */

.home-search-row2{
    display:flex;
    flex-wrap:wrap;
    margin-left:10px;
    margin: 0px 135px 0px 0px;
}

.home-search-row2 span{
    background:rgba(255,255,255,0.15);
    padding:8px 16px;
    border-radius:20px;
    font-size:13px;
     margin-left:10px;
}
.header-search-hline{
    height:1px;
    background:#2aa65a;
     margin-left:20px;
          margin-right:20px;

}
.home-search-vline{
    width:1px;
    height:40px;
    background:#ffffff;
     margin-left:20px;
}
/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width:768px){
 .hero-img {
        display:none;
    }
.home-search-row1{
    flex-direction:column;
    align-items:stretch;
}


.home-search-section {
    margin:  5px 20px;
}
    
.home-search-row1 input,
.home-search-row1 select,
.home-search-btn{
    width:100%;
            margin-bottom: 10px;
            
}
.home-search-btn{
            margin:0 auto;


}
.home-search-row2{
    justify-content:center;
    margin: 0 auto;
}
.home-search-vline {
height: 0px;}

.home-search-title {
justify-content: center;
margin: 0 auto;
   margin-bottom: 14px;
}
.home-search-row2 span{
        margin-bottom: 10px;}

}
 .car-brands-section {   
      background-color: #f8f3e0;
     
 }

.car-brands-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
        padding-top: 25px;
margin-top: 0px;
}

.brands-slider,
.model-slider {
    position: relative;
    display: flex;
    align-items: center;
}

.brands-arrow {
    background: #fff;
    border: 2px solid #D0B77F;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
}

.brands-arrow:hover {
    background: #f2e6bd;
}

.car-brands-row,
#models-row {
    display: flex;
     margin-left: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
    flex-grow: 1;
}

.car-brands-row::-webkit-scrollbar,
#models-row::-webkit-scrollbar {
    display: none;
}

/* آیتم برند خودروساز – مطابق عکس */
.car-brand-item {
    min-width: 140px;
    height: 120px;
    border: 2px solid #F1D87E;
    border-radius: 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    cursor: pointer;
    padding: 10px 5px;
    transition: 0.25s;
}
.car-brand-item .brand-icon img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}
.car-brand-item.active .brand-icon img {
     background:#e53935;
    color:#fff; /* سفید شدن لوگو مثل عکس */
}
.car-brand-item .brand-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}
.car-brand-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.car-brand-item span {
    font-size: 14px;
    margin-top: 8px;
}

/* حالت انتخاب شده */
.car-brand-item.active {
    background: #D93632;
    border-color: #D93632;
}
.car-brand-item.active .brand-name {
    color: #ffffff;
}
.car-brand-item.active span {
    color: #fff;
}

/* مدل‌های خودرو */
.car-model-item {
    min-width: 150px;
    height: 150px;
    background: #fff;
    border: 2px solid #F1D87E;
    border-radius: 20px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: 0.25s;
    margin-left:10px;
}
.car-model-item a{
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.car-model-item a:hover{
    text-decoration: none;
    color: inherit;
}


.car-model-item:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.car-model-item img {
    width: 100px;
    height: 80px;
}

.car-model-item span {
    margin-top: 10px;
    display: block;
}

/* قطعات پر مصرف */

.popular-parts-section{
       padding: 0px 10px 20px;
}

.popular-title{
    text-align:center;
    font-size:28px;
    font-weight:700;
    margin-bottom:35px;
    margin-top: 23px;
}
/* grid */

.popular-grid{
    display:grid;
    grid-template-columns:1fr 2fr 1fr;
    grid-template-rows:180px 180px;
     gap:20px;
}

/* کارت ها */

.popular-item{
    position:relative;
    border-radius:20px;
    padding:25px;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:20px;
    font-weight:600;
    overflow:hidden;
    transition:all .3s ease;
    cursor:pointer;
}

/* کارت وسط بزرگ */

.popular-item.big{
    grid-column:2;
    grid-row:1 / span 2;
    font-size:24px;
}

/* رنگ ها */

.popular-item.red{
    background:linear-gradient(135deg,#ff1e00,#b40000);
}

.popular-item.yellow{
    background:linear-gradient(135deg,#ffc107,#e68900);
}

.popular-item.green{
    background:linear-gradient(135deg,#00b894,#007f5f);
}

/* دایره بک گراند */

.popular-item::before{
    content:"";
    position:absolute;
    width:180px;
    height:180px;
    background:rgba(0,0,0,0.15);
    border-radius:50%;
    right:-40px;
    top:-40px;
}
.popular-item::after{
    content:"";
    position:absolute;
    width:160px;
    height:160px;
    border-radius:50%;
    background:rgba(0,0,0,0.15);
    right:-40px;
    top:-40px;
}

/* متن */

.popular-item span{
    position:relative;
    z-index:2;
    line-height:1.8;
}
/* hover */

.popular-item:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* =========================
   تبلت
========================= */

@media (max-width:992px){

.popular-grid{
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto;
}

.popular-item.big{
    grid-column:1 / span 2;
    grid-row:auto;
}

}


/* =========================
   موبایل
========================= */

@media (max-width:600px){

.popular-grid{
    grid-template-columns:1fr;
}

.popular-item{
    height:140px;
    font-size:18px;
}

.popular-item.big{
    grid-column:auto;
}

}

/* =====================
   BLOG
===================== */

.home-blog-section{
    padding:1px 0;
    background:#F6F1E3;
}


.blog-image img{
    width:100%;
    height:200px;
    object-fit:cover;
    border-radius:16px;
    margin-bottom: 22px;
}

.blog-content{
    text-align: right;
    font-size:15px;
    line-height:1.9;
    padding:14px 10px;
}


.blog-arrow{
 position: absolute;
    bottom: 2px;
    left: 3px;
    width: 58px;
    height: 58px;
    background: #c62020;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 44px;
    z-index: 2;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}


/* دکمه بیشتر */

.blog-more{
    text-align: center;
    margin-top: 50px;
    height: 50px;
}

.blog-more a{
    padding:12px 30px;
    border:2px solid #c41c1c;
    border-radius:16px;
    color:#c41c1c;
    text-decoration:none;
    font-weight:600;
}

.blog-more a:hover{
    background:#c41c1c;
    color:#fff;
}


/* ریسپانسیو */

@media(max-width:992px){

.blog-grid{
    grid-template-columns:1fr 1fr;
}

}

@media(max-width:600px){

.blog-grid{
    display:flex;
    overflow-x:auto;
    gap:15px;
    padding:10px 20px;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
}
.blog-grid::-webkit-scrollbar{
    display:none;
}
.blog-card{
    min-width:280px;
    flex-shrink:0;
    scroll-snap-align:start;
    margin:0;
}
.blog-image img{
    height:190px;
}
/* فلش ها */

.blog-slider{
    position:relative;
}

.blog-arrow-nav{
    position:absolute;
    top:45%;
    transform:translateY(-50%);
    width:36px;
    height:36px;
    background:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 10px rgba(0,0,0,0.15);
    cursor:pointer;
    z-index:5;
}

.blog-prev{
    right:5px;
}

.blog-next{
    left:5px;
}

}
/*footer*/
.site-footer{
    background:transparent;
    padding:0px 20px 0;
    position:relative;
}

.footer-card{
    background:#fff;
    border-radius:20px;
    padding:20px;
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
        margin-top:20px;
    
}
.footer-card-reg{
    background:#fff;
    border-radius:20px;
    padding:10px 40px;
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;

    
}
.footer-col-faq{
    width:340px;
    
}
.footer-col-faq ul{
    list-style:none;
    margin:0;
    padding:0;
}

.footer-col-faq li{
    margin:12px 0;
    color:#444;
    font-size: 18px;
}

.footer-col-faq h4{
    color:#b22;
    margin-bottom:15px;
}

.footer-divider{
    width:3px;
    height:195px;
    background:#1fbfae;
    margin-left: 10px;
}

.footer-logos{
    display:flex;
    gap:30px;
}

.logo-box{
   

    display:flex;
    align-items:center;
    justify-content:center;
    width: 120px;
}
@media (max-width:768px){

.footer-card{
    justify-content:center;
    padding:30px 20px;
}

/* ستون ها */

.footer-col-faq{
    width:40%;
    text-align:right;
}

/* divider ها */

.footer-divider{
    width:2px;
    height:150px;
}

/* لوگوها پایین */

.footer-logos{
    width:100%;
    display:flex;
    justify-content:center;
    gap:25px;
    margin-top:20px;
}

/* باکس لوگو */

.logo-box{
    width:90px;
    height:90px;
}

}


.category-page{
padding:16px 0;
background:#f7f7f7;
width:100%;
overflow-x:hidden;
}

.category-layout{
display:flex;
gap:20px;
align-items:flex-start;
width:100%;
margin-right:20px;
margin-top: 10px;
padding:0 10px;
box-sizing:border-box;
}


/* sidebar */



/* filter header */

.filter-top{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:0px;
}

.filter-title-main{
font-size:20px;
font-weight:700;
}

.filter-btn{
background:#c62828;
color:#fff;
border:none;
padding:7px 16px;
border-radius:10px;
cursor:pointer;
font-size:14px;
}

/* selected filters */

.selected-filters{
display:flex;
gap:8px;
flex-wrap:wrap;
border-bottom:2px solid #1f7a6c;
padding-bottom:10px;
margin-bottom:0px;
}

.selected-item{
background:#f1f1f1;
padding:4px 10px;
border-radius:6px;
font-size:13px;
display:flex;
align-items:center;
gap:6px;
border: 1px solid #ddd;
    margin: 5px 10px 0px 0px;

}

.selected-item i{
color:#c62828;
cursor:pointer;
font-style:normal;
}

/* filter block */


.filter-block-header{
font-weight:600;
margin-bottom:0px;
}

/* search */

.filter-search{
width:95%;
background:#f3f3f3;
border:none;
padding:8px 10px;
border-radius:8px;
margin-bottom:10px;
margin-right: 5px;
font-size:13px;
}

/* list */

.filter-list{
max-height:220px;
overflow:auto;
}

.filter-item{
display:flex;
align-items:center;
gap:8px;
margin-bottom:8px;
font-size:14px;
cursor:pointer;
color:#444;
}

.filter-item input{
accent-color:#1f7a6c;
}
/* پیشفرض: دسکتاپ مخفی */
.selected-filters-page{
display:none;
}

/* فقط موبایل */
@media (max-width:768px){

.selected-filters-page{
display:flex;
flex-wrap:wrap;
gap:6px;
margin:0px ;
}

}


/* products */

.category-products{
flex:1;
}

.products-grid{
display:grid;
grid-template-columns:repeat(4,minmax(0,1fr));
gap:20px;
width:100%;
padding-left: 40px;
}

.product-card{
    position: relative;
    background:#fff;
    border:2px solid #e3c96f;   /* همان رنگ blog-card */
    border-radius:22px;         /* همان مقدار blog-card */
    padding:14px;
    overflow:visible;
    text-align:center;
    width:100%;
}

.product-store-info{
    text-align: right ;
    color: #777;
    margin-bottom: 10px;
}


/* گوشه بریده (Copy دقیق از blog-card) */
.product-card::after{
   content: "";
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 84px;
    height: 43px;
    background: #f7f7f7;
    border-top: 2px solid #e3c96f;
    border-right: 2px solid #e3c96f;
    border-top-right-radius: 19px;
    z-index: 1;
}

.product-card:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* تصویر محصول */
.product-card img{
    width:100%;
    height:180px;
    object-fit:contain;
    background:#fff;
    border-radius:16px;
    margin-bottom:0px;
}

/* عنوان */
.product-title{
    font-size:17px;
    font-weight:700;
    margin:4px 0 6px;
    color:#222;
}


/* موجودی */
.product-info{
    font-size:14px;
    color:#666;
    margin-bottom:6px;
}




/* موقعیت */
.product-location{
    font-size:13px;
    color:#777;
    margin-bottom:31px;

}

/* دکمه، همان دایره فلش blog-card ولی به شکل کپسولی */
.product-btn{
    position:absolute;
       bottom: 0px;
    left: 0px;
    background: #c62020;
    border-radius: 14px;
    padding: 9px 8px;
    color:#fff;
    font-size:15px;
    font-weight:600;
    text-decoration:none;
    z-index:3;
    box-shadow:0 6px 14px rgba(0,0,0,0.25);
    display:flex;
    align-items:center;
    gap:7px;
}

.product-btn:hover{
background:#166457;
}

/* topbar */

.category-topbar{
margin-bottom:20px;
display: none;
}

.sort{
display:flex;
gap:15px;
align-items:center;
}

.sort a{
cursor:pointer;
color:#666;
}

.sort a.active{
color:#c62828;
font-weight:600;
}
.product-title,
.product-info,
.product-location{
    text-align:right;
}

.pagination{
display:flex;
justify-content:center;
align-items:center;
margin-top:40px;
}
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 20px 0;
}
.pagination-wrapper li {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.pagination-wrapper li a {
    text-decoration: none;
    color: #333;
}
.pagination-wrapper li.active {
    background: #e63946;
    color: white !important;
    border-color: #e63946;
    font-weight: bold;
}
.pagination-wrapper li.disabled {
    opacity: .4;
    cursor: not-allowed;
}
.pagination nav{
display:flex;
align-items:center;
gap:10px;
}

.pagination a,
.pagination span{
display:flex;
align-items:center;
justify-content:center;
width:40px;
height:40px;
border-radius:10px;
font-size:16px;
text-decoration:none;
color:#444;
}

.pagination a:hover{
background:#f3f3f3;
}

/* صفحه فعال */
.pagination .active span{
background:#d62d2d;
color:#fff;
}

/* دکمه قبلی */
.pagination a[rel="prev"]{
background:#d62d2d;
color:#fff;
}

/* دکمه بعدی */
.pagination a[rel="next"]{
border:2px solid #d62d2d;
color:#d62d2d;
background:#fff;
}

/* سه نقطه */
.pagination span[aria-disabled="true"]{
color:#999;
}
/* --- ریسپانسیو دسته‌بندی --- */




/* ----- نسخه مخصوص موبایل برای صفحه دسته‌بندی ----- */

/* ===== FIX MOBILE CATEGORY ===== */
/* ================= MOBILE ================= */

@media (max-width:768px){

/* صفحه */
.category-page{
padding: 0px 0px 16px 0px;
width:100%;
overflow-x:hidden;
box-sizing:border-box;
}

/* layout */
.category-layout{
display:flex;
align-items:flex-start;
gap:8px;
width:100%;
padding:0 10px;
box-sizing:border-box;
}



/* products */
.category-products{
flex:1;
min-width:0;
}

/* grid */
.products-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:12px;
width:100%;
}

/* card */
.product-card {
    background: #fff;
   
    border-radius: 18px;           /* دقیقاً حس کارت محصول */
    padding: 12px;
    transition: all 0.25s ease;
        background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);

}
.product-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.product-card img{
width:100%;
height:140px;
object-fit:cover;
}

/* texts */


.product-info,
.product-location{
font-size:13px;
}

/* button */
.product-btn{
padding:7px 10px;
font-size:13px;
}
}




/* حالت موبایل */
@media (max-width:768px){


/* گرید محصولات */
.products-grid{
grid-template-columns:repeat(2,1fr);
}

}


/* تکسچر آکاردئون */
.cardstyle {
    border: none;
    background: #f8f8f8;
}
.cardstyle2 {
    border: none;
    background: #f3f3f3;
}
.stylefilter {
    background: #eaeaea;
}
.stylefilter2 {
    background: #e3e3e3;
}

/* لیبل چک باکس */
.container-checkbox {
    position: relative;
    padding-right: 25px;
    cursor: pointer;
        display: block;
}
.container-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.checkmark {
    position: absolute;
    right: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border: 2px solid #555;
    border-radius: 3px;
}
.container-checkbox input:checked ~ .checkmark {
    background: #1b1b1b;
    border-color: #1b1b1b;
}
/* ------------------------------
   Mobile Sidebar (New)
------------------------------ */

.sidebar-mobile-panel {
    position: fixed;
    top: 0;
    right: -280px; /* مخفی */
    width: 260px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    transition: right 0.3s ease;
}

/* وقتی فعال شد از راست وارد شود */
.sidebar-mobile-panel.active {
    right: 0;
}



/* دکمه بستن */
.sidebar-close-btn {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
}


/* ===== Sidebar Desktop ===== */


/* ===== Sidebar Mobile ===== */
@media (max-width: 768px) {
  .category-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    border-radius: 0;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    margin-right: 0;
  }

 
}

/* ===== Sidebar Overlay ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}




/* ===== Accordion Filters ===== */
.filter-block {
  margin-bottom: 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee;
  margin-top: 10px;
  padding: 0px 10px 10px 10px;
}
.accordion-toggle {
  padding: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.accordion-toggle .arrow {
  transition: transform .25s;
  font-size: 12px;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-content.open {  /* فقط این کلاس را در JS استفاده می‌کنیم */
  max-height: 1000px;      /* عدد بزرگ، کافی */
  overflow: visible;
}
.accordion-content.active {
  display: block;
}
.accordion-toggle.active .arrow {
  transform: rotate(180deg);
}



/* ===== Filter List Vertical ===== */
.filter-list label.container-checkbox {
  display:block;
  margin-bottom:8px;
}
.mobile-category-buttons {
    display:none;}

/* =============== MOBILE FIX =============== */
@media (max-width: 768px) {

    /* فقط موبایل دکمه‌ها دیده شوند */
    .mobile-category-buttons {
        display: flex !important;
        gap: 10px;
        padding: 10px 10px 0px 10px;
    }
    .mobile-category-buttons button {
    flex: 1;
    padding: 12px;
    background: #fff;
    color: #c21f32;
    border-radius: 12px;
    border: 1px solid #c21f32;
    font-size: 14px;
    margin: 6px 36px 0px;
    }

    /* سایدبار موبایل */
     .category-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    border-radius: 0;
    padding: 20px 22px;
    margin-right: 0;
    box-shadow: -5px 0 15px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
  }
        .mobile-category-buttons {

       /* box-shadow: -5px 0 15px rgba(0,0,0,0.15);*/
        transition: right .35s ease;
    }
    .category-sidebar.active {
        right: 0;
    }

    /* پس‌زمینه تیره موبایل */
   .sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}
}
.tree-root {
list-style:none;
padding-right:10px;
margin:0;
}
.tree-root > li {
  margin-bottom: 4px;
}
.tree-child{
display:none;
border-right:1px solid #ddd;
margin-right:8px;
padding-right:12px;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 8px;
    cursor: pointer;
}

.tree-item:hover {
    background: #f5f5f5;
}
.tree-arrow {
    width: 16px;
    height: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease;
}
.tree-item.open > .tree-arrow {
    transform: rotate(90deg);
}

.tree-label {
    flex: 1;
}

.tree-child {
  display: none;
  border-right: 1px solid #ddd;
  margin-right: 8px;
  padding-right: 12px;
}
.tree-item-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 3px 0;
}
.tree-child.tree-open {
    display: block;
}
.tree-toggle-icon {
  margin-left: 6px;
  transition: transform 0.2s ease;
}
.tree-toggle-icon.open {
  transform: rotate(90deg);
}

.tree-link {
  color: #333;
  font-size: 13px;
  text-decoration: none;
}

.tree-link:hover {
  color: #007bff;
}
.sidebar-search-box {
  margin-bottom: 12px;
}

.sidebar-search-box input[type="text"] {
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
}

.sidebar-search-box .search-icon-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
}
.category-page-wrapper {
  display: flex;
  align-items: flex-start;
}




/* لمس بهتر برای موبایل */
@media (max-width: 768px) {
    .tree-item {
        padding: 10px 6px;
    }
      .category-page-wrapper {
    display: block;
  }

}

.tree-toggle{
cursor:pointer;
font-size:14px;
width:18px;
height:18px;
display:flex;
align-items:center;
justify-content:center;
background:#eee;
border-radius:3px;
}

.tree-open{
display:block;
}

@media (min-width: 992px) {

#carFilter .accordion-content .tree-filter > .tree-root {

max-height: 240px; /* حدوداً ارتفاع 5 آیتم؛ بسته به line-height شاید 220-260 بهتر باشد */

overflow-y: auto;

}

}
.pagination-hidden {
    display: none;
}
@media (min-width: 992px){

  .accordion-content{
    display:block !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }

}
.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.main-voice-page {
    text-align: center;
    padding-top: 10px;
        color: #2aa65a;
}
.main-voice-page h1{
    padding: 12px 0px;
}

.main-voice-page-header{
    text-align: center;
    color: #c21f32;
    border: 2px solid #c21f32;
    border-radius: 10px;
    padding: 8px 20px;
    font-size:14px;
    }
.main-voice-page-header h1{
        font-size: 14px;
            font-family: tahoma;
text-decoration:none;
color: #757575;
}
.main-voice-page-header:hover{
    background:#c21f32;
     color:white;
}
.main-voice-page-header h1:hover{
    color:white;
}
    
.hero-inner input {
    border: none;
    padding-bottom: 18px;
}



.voice-box button {
    font-size: 60px;
    border: none;
    background: #c21f32;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-top: 10px;
}
.product-page {
        width: 95%;
    margin: 0 auto;
    padding: 0px 20px;
    direction: rtl;
}

@media (max-width: 768px){
.product-page {
    padding: 0px 20px;
}
}
.product-container {
    display: grid;
    grid-template-columns: 350px 1fr 380px; /* right → center → left */
    gap: 25px;
    align-items: start;
    margin-top: 15px;
}

/* ---------------------- sellers ---------------------- */
.product-image,
.product-info,
.product-sellers {
    background: #fff;
    padding: 15px;
    border: 2px solid #ece7e880;
    border-radius: 16px;
}  
.product-image img {
    width: 45%;
border-radius: 13px;
        margin: auto;
        
}

.product-sellers {
    background: #fff;
    padding: 20px;
    border: 2px solid #ece7e880;
}


.title-underline {
    width: 100%;
    height: 3px;
    background: #2aa65a;
    margin-bottom: 20px;
}
.title-underline.left {
    width: 100%;
}



.seller-price {
    font-weight: bold;
    color: #333;
}
.seller-price.contact {
    color: #c00;
}

.seller-info {
    flex: 1;
    margin: 0 10px;
}
.seller-name {
    font-weight: bold;
}
.seller-brand {
    font-size: 12px;
    color: #777;
}



/* ---------------------- product info ---------------------- */

.product-info {
    background: #fff;
    padding: 20px;
    border: 2px solid #ece7e880;
}

.product-title {
    margin-bottom: 20px;
    font-size: 20px;
}

.meta-row {
    margin-bottom: 14px;
    font-size: 14px;
}
.meta-label {
    color: #444;
    font-weight: bold;
    margin-left: 5px;
}
.meta-value {
    color: #222;
}



/* ---------------------- image ---------------------- */

.product-image {
    background: #fff;
    padding: 10px;
    border-radius: 16px;
    margin-bottom: 0px;
     width: 100%;
}
.image-box img {
    width: 100%;
    border-radius: 10px;
}



.thumb-img{
width:70px;
height:70px;
object-fit:cover;
cursor:pointer;
border:1px solid #ddd;
padding:2px;
background:#fff;
}



/* ---------------------- responsive ---------------------- */

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 10px;
        display: flex;
            flex-direction: column;
        
    }
    .product-info , .product-image {
        padding: 7px 10px;
        border-radius: 10px;
        
        margin-bottom: 10px;
    } 
     .product-image {
         height: 179px;
         
     }
     
     
     .product-info{
         order: 3;
         width: 100%;
     }
     
     
     
 
     
     
     .product-image{
        order: 1; 
    width: 100%;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 0px;
        display: flex;
        flex-direction: row;
        gap:10px
     }   
     
     
     .product_thumb{
     display: flex;
    flex-direction: column;}
}
.meta-row {
    margin-bottom: 12px;
    font-size: 14px;
}
.meta-label {
    font-weight: bold;
    color: #444;
}
.meta-value {
    color: #222;
}

/* favorite button */
.fav-btn {
    background: #fff;
    color: #c21f32;
    padding: 10px;
    border-radius: 18px;
    margin-top: 0px;
    border: 2px solid #c21f32;
    font-family:tahoma;

    
}

/* sellers */
.seller-title, .product-title {
        margin-bottom: 20px;
    font-size: 20px;
    margin-top: 2px;
}
.seller-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #FFF; /* خیلی نزدیک به رنگ عکس */
    border: 1px solid #e9e9e9;

    padding: 12px 16px;

    border-radius: 14px;  /* دقیقاً حالت کپسولی-نیمه‌گرد */
    
    margin-bottom: 14px;

    position: relative;
}
a.seller-box{
text-decoration:none;
color:inherit;
}




.seller-price {
    font-weight: bold;
    color: #333;
    min-width: 120px;
    text-align: center;
}
.seller-price.contact {
    color: #d11b1b;
}
.seller-info {
    flex: 1;
    padding: 0 10px;
}
.seller-btn {
    background: #d11b1b;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
        font-size:14px;
}

.seller-action {
    background:#c21f32;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid ;
    color:#fff ;
    font-size: 18px;
    left: 20px;   /* نیم‌دایره بیرون می‌زند */
    padding: 10px;
    }
    .seller-action:hover{
color:#fff;
    background:#166457;
}
.seller-action i {
    font-size: 18px;
}


/* خط زیر عنوان محصول */
.product-info .title-underline {
    height: 3px;
    background: #2aa65a;
    margin-top: 6px;      /* فاصله دقیق */
    margin-bottom: 22px;  /* فاصله پایین */
}

/* خط زیر عنوان فروشنده‌ها */
.product-sellers .title-underline {
    height: 3px;
    background: #2aa65a;
    margin-top: 6px;      /* فقط همین مهم است */
    margin-bottom: 22px;
}
.comments-wrapper {
    border: 1px solid #15c2a4;
    border-radius: 12px;
    padding: 24px 20px 32px;
}

.comment-form-box {
    max-width: 700;
    margin: 0 auto 20px;
}

.comment-form-title {
    font-size: 20px;
    font-weight: 600;
}

.comment-textarea {
    border-radius: 12px;
    resize: vertical;
}

.comment-input {
    border-radius: 999px;
    padding: 0.6rem 1rem;
}

.comment-primary-btn {
    border-radius: 999px;
    padding: 0.45rem 1.8rem;
}

.comment-secondary-btn {
    border-radius: 999px;
    padding: 0.45rem 1.8rem;
    background-color: #fff;
    color: #d43131;
    border-color: #d43131;
}

.comments-separator {
    border-color: #15c2a4;
    margin: 20px 0 10px;
}

.comments-list-box {
    padding-top: 10px;
}

.comment-item {
    background-color: #f8fdfc;
    border-radius: 999px;
    padding: 10px 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #6b6b6b;
    font-size: 13px;
}

.comment-user {
    color: #e3b000; /* طلایی شبیه عکس */
    font-weight: 600;
}

.comment-body {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comment-form-side {
    
    text-align: right;
    border: 2px solid #cfd3d3;
    padding: 10px;
    border-radius: 20px;
}
/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .comment-item {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 16px;
    }

    .comment-body {
        margin-top: 5px;
        white-space: normal;
    }
    .comment-form-side{
          width: 100%;
    }
}
.comments-section {
    width: 100%;
    padding: 40px;
    display: flex;
    justify-content: flex-end;
    gap: 80px;
}

.comment-form-title {
    font-size: 22px;
margin: 0px 21px 20px;}

/* فرم */
.comment-form-side textarea,
.comment-form-side input {
    width: 100%;
    border: 2px solid #999;
    border-radius: 25px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 15px;
}
.row-inputs{
display:flex;
gap:10px;
}

.row-inputs input{
flex:1;
}
/* دکمه‌ها */
.btn-row{
display:flex;
justify-content: space-around;
}


.btn-send {
    background: #b30000;
    color: white;
    padding: 10px 22px;
    border-radius: 20px;
    border: none;
}

.btn-view {
    background: white;
    color: #b30000;
    border: 2px solid #b30000;
    padding: 10px 22px;
    border-radius: 20px;
}

/* لیست نظرات */
.comments-list {
    flex: 1;
}

.comment-card {
    background: #f8f8f8;
    padding: 18px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-text {
    font-size: 15px;
    line-height: 26px;
}
.product-tabs{
margin-top:30px;
border:2px solid #ece7e880;
border-radius:20px;
padding:20px;
    background: #fff;
    width: 50%;
}

.product-tabs-nav{
display:flex;
gap:10px;
margin-bottom:20px;
}

.product-tabs-nav li{
list-style:none;
padding:8px 18px;
border:1px solid #ccc;
border-radius:20px;
cursor:pointer;
}

.product-tabs-nav li.active-tab{
background:#c21f32;
color:#fff;
border-color:#c21f32;
}




.product-tabs-nav .nav-link.active{
background:#c21f32;
color:#fff;
border-color:#c21f32;
}


.product-spec{
padding:10px;
line-height:28px;

}
.product-description{
border: 2px solid #ece7e880;
    padding: 10px;
    border-radius: 20px;
}  
    
/* ساختار اصلی */
.seller-top{
    display:flex;
    gap:40px;
    align-items:flex-start;
    flex-direction:row-reverse; /* برای RTL */
}

/* ستون چپ */
.seller-left {
    width: 320px;
}

/* تصویر اصلی */
.seller-main-image{
    width:100%;
    height:260px;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.seller-main-image img{
    width:100%;
    height:100%;
    object-fit:contain;
}

/* ریزعکس‌ها */
.seller-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 10px;
}

.seller-thumbs img {
    height: 70px;
    width: 90px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
}

/* ستون راست */
.seller-right{
    flex:1;
    font-size:14px;
}




/* هر سطر فرم */
.info-row {
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.info-row span {
    color: #666;
}

.info-row b {
    color: #000;
}

/* نقشه */
.seller-map-box{
position:relative;
margin: 40px;
    margin: 0px 40px;
}

#mapSeller{
width:100%;
height:300px;
border-radius:20px;
}

/* دکمه شناور */
.route-btn{
position:absolute;
bottom:250px;
left:50%;
transform:translateX(-50%);
box-shadow:0 4px 10px rgba(0,0,0,0.2);

    margin-top: 10px;
    padding: 10px 20px;
    background: crimson;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family:tahoma;
}
/* ===== صفحه کلی ===== */
.seller-page{
   padding: 36px 74px;
    border: 2px solid #e3c96f;
    border-radius: 20px;
    margin: 90px 74px;
    background-color: #fff;
}

/* ===== بخش بالا (گالری + فرم) ===== */
.seller-top{
    display:flex;
    gap:40px;
    align-items:flex-start;
    flex-direction:row-reverse; /* برای RTL */
}

/* ===== ستون گالری ===== */
.seller-left{
    width:320px;
}

.seller-main-image{
    width:100%;
    height:260px;
    background:#fff ;
    border-radius:20px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.seller-main-image img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.seller-thumbs{
    display:flex;
    gap:10px;
    overflow-x:auto;
    margin-top:10px;
}

.seller-thumbs img{
    width:90px;
    height:70px;
    border-radius:10px;
    object-fit:cover;
    cursor:pointer;
}

/* ===== ستون فرم ===== */
.seller-right{
    flex:1;
    font-size:14px;
}

.seller-right .field1{
        display: flex;
    gap: 12px;
    flex-direction: column;
    margin-right: 5px;
    margin-bottom: 8px;
    
}


.seller-title{
    color:#b42020;
  font-size: 20px;
    margin-bottom: 23px;
}

/* ===== فرم ===== */
.form-row.full{
    margin-bottom:20px;
}

.form-row.full span,
.field span{
    display:block;
    margin:10px;
}

.form-row.three{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-bottom:0px;
}

.form-row.two{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.field p, .field1 p,
.form-row.full p{
    border:2px solid #ece7e880;
    padding:10px;
    border-radius:13px;
    color: black;
    width: fit-content;
}


/* ===== نقشه ===== */
.seller-map-box{
    position:relative;
    margin:0px 0;
}

#mapSeller{
    width:100%;
    height:320px;
    border-radius:20px;
}

/* ===== دکمه شناور ===== */
.route-btn{
    position:absolute;
    bottom:250px;
    left:50%;
    transform:translateX(-50%);
    padding:12px 24px;
    background:crimson;
    color:#fff;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-size:14px;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}
.field1 a
{
text-decoration:none;
}
/* ============================= */
/* ✅ موبایل */
/* ============================= */
@media (max-width:768px){

.product-tabs {
    width:100%;
}
.footer-col-faq li{
    font-size: 12px;
}

.seller-page{
   margin: 90px 18px;
    padding: 36px 17px; 
}


.field1 a
{
border:none;}

    .form-row.three{
margin: 10px 18px;
    text-align: center;       
    }

.seller-title {
    text-align: center;
    margin-bottom: 10px;
}
.product-sellers {    
    order: 2;
    padding-top: 8px;
    width:100%
    
    
    
}



    .form-row.two{
        grid-template-columns:1fr;
        gap:15px;
    }

    #mapSeller{
        height:250px;
    }

    .route-btn{
        bottom:170px;
        padding:14px 26px;
        font-size:15px;
        border-radius:12px;
    }


    .seller-top{
        flex-direction:column;
        gap:7px;
    }

    .seller-left{
        width:100%;
        display:flex;
        gap:10px;
        border: 2px solid #ece7e880;
    padding: 10px;
    border-radius: 15px;
    }


    /* عکس اصلی */
    .seller-main-image{
        flex:1;
        height:220px;
    }
 
    /* ستون عکس های کوچک */
    .seller-thumbs{
        flex-direction:column;
        overflow-y:auto;
        overflow-x:hidden;
        margin-top:0;
        width:80px;
    }

    .seller-thumbs img{
        width:80px;
        height:60px;
    }

}


.field a:hover{
color:crimson;
}پ/* استایل کلی لینک تماس */
.phone-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2d3436; /* رنگ متن تیره */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 8px;
color: black;
    
}

/* تغییر رنگ هنگام نگه داشتن موس */
.phone-contact-btn:hover {
    color: #0984e3; /* آبی روشن */
    background-color: #f1f2f6;
}

.phone-contact-btn svg {
    color: crimson; /* سبز آیکون تلفن */
}

/* بهینه سازی برای موبایل */
@media (max-width: 768px) {
    .phone-contact-btn {
        display: flex;
        background: #1fbfae; /* پس‌زمینه ملایم */
        border: 1px solid #e1e4e8;
        padding: 12px;
        justify-content: center;
        width: 100%; /* در موبایل تمام عرض شود تا راحت کلیک شود */
        margin-top: 5px;
        border-radius:10px;
        color: black;
    }
    
    .field p {
        width: 100%;
    }
    
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:tahoma;
    text-decoration: none;
}



/* کادر اصلی */
.register-box{
margin: 15px 40px 23px 40px;
background:#10b475;
    border-radius:20px;
    overflow:hidden;
    padding:34px;
    width: fit-content;
 
}
.register-wrapper{
    display:flex;
    align-items:center;
    justify-content:center;
}


/* بخش تصویر */
.register-image{
    width:40%;
    display:flex;
    align-items:center;
    justify-content:center;
     
}



/* بخش فرم */
.register-form{
    color:white;
    flex:1;
        text-align:center;

}
.register-form button{
margin: 10px 10% 0px;
    
}

.register-form h2{
    font-size:28px;
    margin-bottom:20px;
    text-align: right;
    display: inline-block;
}

/* ردیف ها */
.form-row {
    display: flex;
    margin-bottom:7px;
    gap:2%;
    flex-direction: column;
}


.form-group{
    
    display:flex;
    flex-direction:column;
    padding: 5px;
    width: fit-content;
}

.form-group label{
    margin-bottom:8px;
    font-size:15px;
}
.otpbox input,
.form-group input,
.form-group select{
    height:40px;
    border-radius:8px;
    border:1px solid #9be3c7;
    background:transparent;
    padding:0 10px;
    color:white;
}

/* رادیو */
.radio-group{
    display:flex;
    gap:20px;
    margin-top:10px;
}

.radio-group label{
    display:flex;
    align-items:center;
    gap:5px;
}

/* دکمه ها */
.btn{
    background:#c62828;
    color:white;
    border:none;
    padding:12px 30px;
    border-radius:10px;
    cursor:pointer;
    font-size:16px;
}

.btn1{
    background:white;
    color:#c62828;
border:1px solid #c62828;
padding:12px 30px;
    border-radius:10px;
    cursor:pointer;
    font-size:16px;
}

.btn:hover{
    background:#a81f1f;
}

/* خط جدا کننده */
.divider{
    border-top:1px solid rgba(255,255,255,0.4);
    margin:25px 0;
}

/* دکمه ورود بالا */
.login-btn{
    position:absolute;
    top:20px;
    left:20px;
    background:#fff;
    border-radius:10px;
    padding:8px 20px;
    color:#c21f32;
    border:2px solid #c21f32;
    text-decoration:none;
    transition:0.2s;
    font-size:14px;
}
    


.formcontainer{
        display: grid;
    grid-template-columns: 350px 1fr ;
    gap: 25px;
}

.register-image img {
 height: auto; 
    max-width: 100%;
     display: none;
}


@media (max-width: 768px) {
    .register-box {
        
    }
    .form-row {
    display: inline-block;
        
    }
    .btn1 {
            padding: 6px 11px;
    }
    .register-form h2 {
    font-size: 18px;
        margin-bottom: 10px;
    }
    .register-form button {
    
    font-size: 18px;
    }
    
    .divider {
    margin: 9px 0;
    }
    .formcontainer {
    grid-template-columns: 157px 1fr;
    }
    .register-image {
    width: 100%;
    }
    
    }
    
    
    
    /* Blog page wrapper */
.blog-page {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

/* Header section */
.blog-page .blog-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    text-align: center;
}

.blog-page .blog-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

/* Search box */
.blog-page .blog-search {
    width: 100%;
    max-width: 28rem;
    position: relative;
}

.blog-page .blog-search input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.7rem 3rem 0.7rem 1rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
    background: #fff;
}

.blog-page .blog-search input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.blog-page .blog-search .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* Grid */
.blog-page .blog-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .blog-page .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .blog-page .blog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Card link */
.blog-page .blog-card-link {
    display: block;
    text-decoration: none;
}

/* Card */
.blog-page .blog-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.blog-page .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: #fca5a5;
}

/* Card image */
.blog-page .blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Card content */
.blog-page .blog-card-body {
    padding: 1rem;
}

.blog-page .blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: black;
    
    
}

.blog-page .blog-card-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.7;
}

/* Optional hover title */
.blog-page .blog-card-link:hover {
    color: #ef4444;
}
/* ------------------------------
     Global Containers
--------------------------------*/


.blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    margin-top: 90px;
}

.blog-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 29px;
        margin-top: 25px;
}

/* ------------------------------
     Grid System
--------------------------------*/
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin: 0px 70px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
        .blog-section {
        padding: 18px 0;
    }

    .blog-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 0px 30px;

    }
}

/* ------------------------------
     Blog Card
--------------------------------*/
.blog-card {
    background: #FFF;
    border: 1px solid #EFE2BB;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: 0.25s;
       text-decoration: none;
    color: inherit;
}
.blog-crd{
        border-radius: 16px;
    border: 1px solid #f7d55f;
 box-shadow: 0 0 10px rgba(0,0,0,0.15);
 background-color: #fff;
    
    
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Image */
.blog-card-img-wrapper {
    width: 100%;
    overflow: hidden;
    background: #fff;
        padding: 20px 76px;
        border-radius: 16px;
}

.blog-card-img {
    width: 230px;
    height: 230px;
    object-fit: cover;
    display: block;
        border-radius: 16px;
border: 1px solid #eae6d9;
 box-shadow: 0 0 10px rgba(0,0,0,0.15);
    
}

/* Card Content */
.blog-card-content {
    padding: 0px 18px 18px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.9;   
    text-decoration:none;
color:black;
}

.blog-card-title a {
    color: #333;
    transition: 0.2s;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #d32f2f;
}

.blog-card-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.9;
}

/* Red Button */
.blog-card-btn {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-btn:hover {
    background: #d62828;
    transform: scale(1.07);
}

.blog-card-btn-icon {
    width: 22px;
    height: 22px;
    stroke: #fff;
}
@media (max-width: 640px) {

    .blog-card-img {
        height: 170px;
        margin: 0 auto;
    }

    .blog-card-content {
        padding: 16px 16px 16px;
    }

    .blog-card-title {
        font-size: 16px;
        line-height: 1.8;
    }

    .blog-card-desc {
        font-size: 13px;
    }

    .blog-card-btn {
        width: 42px;
        height: 42px;
        left: 14px;
        bottom: 14px;
    }

}




/* --- BLOG DETAIL PAGE --- */

.blog-detail-section {
    padding: 40px 0;
    background: #faf9f6;
}

.blog-detail-container {
    max-width: 760px;
    margin: auto;
    padding: 0 16px;
}

/* TITLE */
.blog-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: #8b0000;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* META ROW */
.blog-detail-meta {
    display: flex;
    justify-content: center;
    gap: 18px;
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
}

/* MAIN IMAGE */
.blog-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
}

/* CONTENT */
.blog-detail-content {
    background: #fff8e8;
    padding: 30px;
    line-height: 2.4;
    font-size: 15px;
    border-radius: 12px;
    color: #333;
}

/* HEADERS INSIDE CONTENT */
.blog-detail-content h2,
.blog-detail-content h3 {
    color: #8b0000;
    margin-top: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

/* PARAGRAPHS */
.blog-detail-content p {
    margin-bottom: 18px;
}

/* LISTS */
.blog-detail-content ul {
    padding-right: 20px;
    margin-bottom: 20px;
}

.blog-detail-content ul li {
    margin-bottom: 10px;
    line-height: 2.2;
}

/* VIDEOS */
.blog-detail-content iframe,
.blog-detail-content video {
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .blog-detail-title {
        font-size: 22px;
    }
    .blog-detail-content {
        padding: 20px;
    }
}
/* PAGE BACKGROUND */
.blog-detail-wrapper {
    background: ##fffcf1;
    padding: 40px 0;
}

/* DEFAULT WIDTH */
.blog-detail-wrapper {
    max-width: 950px;
    margin: auto;
    padding: 0 20px;
}

/* HEADER SECTION = TITLE + IMAGE */
.blog-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 8px;
}

/* LEFT IMAGE */
.blog-header-image img {
    width: 380px;
    border-radius: 14px;
    object-fit: cover;
}

/* TITLE */
.blog-main-title {
    font-size: 30px;
    font-weight: 800;
    color: #b31400;
    line-height: 1.5;
    margin-bottom: 18px;
}

/* META ROW */
.blog-meta {
    display: flex;
    gap: 20px;
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
    background-color: #fef3ce;
        padding: 10px;
    border-radius: 12px;
    width: fit-content;
}

/* SUMMARY PARAGRAPH */
.blog-main-summary {
    line-height: 2;
    color: #444;
}

/* MAIN CONTENT */
.blog-content {
    background: #fffcf1;
    padding: 35px;
    border-radius: 14px;
    line-height: 2.3;
    color: #444;
    margin-bottom: 15px;
}

/* TITLES INSIDE CONTENT */
.blog-content h2,
.blog-content h3 {
    color: #b31400;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 12px;
}

/* CONTENT IMAGES (SMALL LEFT IMAGE — NOT FULL WIDTH) */
.blog-content img {
    width: 45%;
    float: left;
    margin: 5px 25px 20px 25px;
    border-radius: 14px;
}

/* VIDEOS */
.blog-content iframe,
.blog-content video {
    width: 75%;
    display: block;
    margin: 30px auto;
    border-radius: 14px;
}

/* FOOTER SHARE SECTION */
.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff8de;
    padding: 20px 30px;
    border-radius: 14px;
}

.footer-like,
.footer-comments {
    margin-left: 16px;
    color: #008f4a;
    font-weight: 600;
}

.blog-footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-share-title {
    color: #b31400;
    font-weight: 700;
}

.footer-icons img {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

    .blog-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog-header-image img {
        width: 100%;
    }

    .blog-content img {
        width: 100%;
        float: none;
        margin: 20px 0;
    }

    .blog-content iframe,
    .blog-content video {
        width: 100%;
    }

    .blog-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
/* کل صفحه RTL باشد */
.blog-detail-wrapper,
.blog-detail-container,
.blog-content,
.blog-header {
    direction: rtl;
    text-align: right;
}

/* عکس‌های داخل محتوا: همیشه سمت چپ باشند */
.blog-content img {
    width: 45%;
    float: left !important;
    margin: 5px 25px 20px 0;
    border-radius: 14px;
}

/* متن کاملاً راست‌چین */
.blog-content p,
.blog-content h2,
.blog-content h3,
.blog-content ul,
.blog-content li {
    text-align: right;
}

/* هدر اصلی: عکس چپ – متن راست */
.blog-header {
    direction: rtl;
    text-align: right;
}

.blog-header-image {
    order: 2; /* تصویر برود چپ */
}

.blog-header-text {
    order: 1; /* متن برود راست */
}

/* تصویر هدر */
.blog-header-image img {
    width: 380px;
    border-radius: 14px;
    object-fit: cover;
    float: left !important;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .blog-content img {
        width: 100%;
        float: none !important;
        margin: 15px 0;
    }

    .blog-header {
        flex-direction: column;
    }

    .blog-header-image,
    .blog-header-text {
        order: unset;
        text-align: center;
    }
}
.blog-hline{
    height:1px;
    background:#2aa65a;
     margin-left:20px;
          margin-right:20px;
    
}
          
      .weblog-tabs{
margin-top:30px;
border:2px solid #ece7e880;
border-radius:20px;
padding:20px;
    background: #fff;
}    
.weblog-tab-box{
 width:50%;   
}
.weblog-logo{
 display:flex;   
}          

.blog-comments-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #fffcf1;
    padding: 28px 40px;
    border-radius: 16px;
    gap: 40px;
      flex-direction: row-reverse
}

/* IMAGE LEFT */
.comments-illustration img {
    width: 380px;
    max-width: 100%;
    border-radius: 10px;
}

/* FORM RIGHT */
.comments-form-container {
    width: 100%;
    max-width: 600px;
    direction: rtl;
    text-align: right;
}

.comment-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
}

/* TEXTAREA */
.comment-textarea {
    width: 100%;
    height: 150px;
    border: 1px solid #ccc;
    border-radius: 16px;
    padding: 18px;
    font-size: 15px;
    outline: none;
    margin-bottom: 20px;
}

/* TWO INPUTS */
.comment-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.comment-row input {
    flex: 1;
    height: 48px;
    border: 1px solid #ccc;
    border-radius: 16px;
    padding: 0 15px;
    font-size: 15px;
}

/* BUTTONS */
.comment-buttons {
    display: flex;
    gap: 15px;
}

.btn-red {
    background: #c62828;
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    border: 2px solid #c62828;
    color: #c62828;
    padding: 10px 35px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

/* MOBILE */
@media (max-width: 768px) {
    .blog-comments-wrapper {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .comments-illustration img {
        width: 100%;
    }

    .comment-row {
        flex-direction: column;
    }
    .comment-row input {
padding: 8px 15px;
width: fit-content;
}

}

.header-user {
    position: relative;
    display: flex;
    align-items: center;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ff3b3b;
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.login-link i {
    font-size: 16px;
}


/* USER DROPDOWN */




.user-trigger .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.user-trigger .user-name {
    font-size: 14px;
    font-weight: 600;
}
.user-name{
   color: #757575; 
}


.user-trigger i {
    font-size: 14px;
    color: #666;
}


/* DROPDOWN MENU */

.user-menu li {
    width: 100%;
}

.user-menu li a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
}

.user-menu li a.logout {
    color: #d30000;
}

.user-menu li a:hover {
    background: #fafafa;
}

.user-dropdown{
position:relative;
display:inline-block;
}

.user-trigger{
display:flex;
align-items:center;
gap:6px;
background:#fff;
padding:9px 12px;
border-radius:10px;
border: 2px solid #c21f32;
font-size:14px;
cursor:pointer;
}

.user-menu{
position:absolute;
top:100%;
right:0;
margin-top:5px;
background:#fff;
border:1px solid #ddd;
border-radius:10px;
list-style:none;
padding:8px 0;
width:160px;
box-shadow:0 10px 20px rgba(0,0,0,0.08);

opacity:0;
visibility:hidden;
transform:translateY(5px);
transition:0.2s;
}

.user-dropdown:hover .user-menu{
opacity:1;
visibility:visible;
transform:translateY(0);
width: auto;
    pointer-events: auto;

}

.user-menu li a{
display:block;
padding:10px 14px;
font-size:14px;
color:#333;
}

.user-menu li a:hover{
background:#f5f5f5;
}

.user-menu .logout{
color:#d00000;
}



.header-right{
margin-left:20px;
}



.header-left{
display:flex;
align-items:center;
margin-right:auto;   /* باعث می‌شود همیشه به سمت چپ برود */
}

         .headerup{
position:sticky;
top:0;
z-index:9999;
background:#fff;
box-shadow:0 2px 8px rgba(0,0,0,0.05);
}



.header-right{
display:flex;
align-items:center;
}



.header-left{
margin-right:auto;
display:flex;
align-items:center;
gap:15px;
}

 .headerup{
position:sticky;
top:0;
z-index:9999;
background:#fff;
}

.header-top{
display:flex;
align-items:center;
gap:20px;
    padding:10px 20px;
}


.header-left{
margin-right:auto;
}

.header-menu{
display:flex;
align-items:center;
margin:15px;
}
.menu{
display:flex;
}


@media (max-width:768px){

.header-top{
flex-wrap:wrap;
gap:9px;
}

.header-search{
order:3;
width:100%;
margin-top:10px;
}


.header-menu{
display:flex;
align-items:center;
flex-wrap:wrap;
gap:10px;
margin: 7px 15px;
}
.menu{
    display:none;
width:100%;
overflow-x:auto;
gap:15px;
}



.voice-assistant{
display:flex;
align-items:center;
justify-content:center;
width:40px;
height:40px;
border-radius:50%;
background:#f3f3f3;
cursor:pointer;
font-size:18px;
}

.voice-assistant:hover{
background:#e9e9e9;
}
}
/* در دسکتاپ باکس دوم مخفی */
@media (min-width: 768px) {
    .search-boxhd { display: none; }
    .search-boxhu { display: block; }
}
/* در موبایل باکس اول مخفی */
@media (max-width: 767px) {
    .search-boxhu { display: none; }
    .search-boxhd { display: block; }
    
    .product-title{
font-size: 15px;
        width: fit-content;
        margin: 0 auto;
}
}
.search-boxhu{
position:relative;
}

.search-suggestions{
position:absolute;
top:45px;
right:0;
width:100%;
background:white;
border:1px solid #eee;
border-radius:10px;
box-shadow:0 10px 20px rgba(0,0,0,0.08);
display:none;
z-index:999;
}

.search-item{
padding:10px 15px;
cursor:pointer;
border-bottom:1px solid #f1f1f1;
}

.search-item:hover{
background:#f8f8f8;
}
.product-btn , .product-card::after{
    display:none;}
          
          
          
          


.image-box {
    width: 100%;
    max-height: 420px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 245px;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
  .product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumb-img {
    width: 70px;
    height: 70px;
    min-width: 70px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    padding: 3px;
}
   
   
   @media (max-width: 768px) {
   

    .image-box {
        flex: 1;
        max-height: none;
        min-width: 0;
        height: 100%;
    }



    .thumb-img {
        width: 65px;
        height: 65px;
        min-width: 65px;
    }
}
.product-image .image-box img#mainProductImage {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .product-image {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
        direction: rtl;
        width: 100%;
  
    }
    
    .blog-container {
        margin-top: 0px;
    }
    
    

    .image-box {
        flex: 1;
        min-width: 0;
        height: 100%;
        overflow: hidden;
        border-radius: 14px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .image-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .product-thumbs {
        width: 65px;
        min-width: 65px;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 0;
        flex-wrap: nowrap;
        overflow-y: auto;
        overflow-x: hidden;
        padding-left: 3px;
    }

    .thumb-img {
        width: 65px;
        height: 65px;
        min-width: 65px;
        min-height: 65px;
        flex: 0 0 65px;
        object-fit: cover;
        border-radius: 8px;
    }
}


.location-wrapper{
    position: relative;
    display: inline-block;
}

.location-trigger{
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    transition: .2s;
}

.location-trigger:hover{
    background: #f8f8f8;
}

.location-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.modal-content {
    background: #fff;
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 10px;
}

.location-dropdown-menu{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    padding: 10px;
    display: none;
    z-index: 1000;
}

.location-dropdown-menu.show{
    display: block;
}

.location-select{
    width: 100%;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 10px;
    margin-bottom: 8px;
    outline: none;
    background: #fff;
}

.save-location-btn{
    width: 100%;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #c21f32;
    color: #fff;
    cursor: pointer;
}

.location-all{
    width: 100%;
    height: 38px;
    border: 2px solid #c21f32;
    border-radius: 8px;
    background: #fff;
    color: #c21f32;
    cursor: pointer;
}

.save-location-btn:hover,
.location-all:hover{
    opacity: .92;
}

#searchSuggestions .suggest-item:hover {
    background: #f5f5f5;
}

.home-part-autocomplete,
.home-car-autocomplete {
    position: relative;
    width: fit-content;
}

.search-suggestions,
.home-car-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1100;
    display: none;
}

.suggest-item,
.car-suggest-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    transition: background .2s ease;
}

.suggest-item:last-child,
.car-suggest-item:last-child {
    border-bottom: none;
}

.suggest-item:hover,
.car-suggest-item:hover,
.suggest-item.active,
.car-suggest-item.active {
    background: #f8fafc;
}

.suggest-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.suggest-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}
.search-result-title{
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    
    .home-part-autocomplete,
.home-car-autocomplete {
    width: 100%;
}
    
    
}




.help-float-box {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    padding: 18px 14px 14px;
    z-index: 99999;
    direction: rtl;
    text-align: right;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.help-float-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.help-float-close {
    position: absolute;
    top: 8px;
    left: 10px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.help-float-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    padding-left: 18px;
}

.help-float-text {
    font-size: 13px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 12px;
}

.help-float-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-float-input {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
}

.help-float-input:focus {
    border-color: #c21f32;
}

.help-float-submit {
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #c21f32;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.help-float-submit:hover {
    background: #a71b2b;
}

@media (max-width: 768px) {
    .help-float-box {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: 50%;
    }
    .help-float-input {
    width: fit-content;
}
.help-float-submit {
    width: 91%;
}
}



.home-search-row2 a.quick-cat {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
    background-color: #37cf98;
        margin: 10px;
    padding: 10px;
    border-radius: 16px;
}

.home-search-row2 a.quick-cat:hover {
    color: red; /* یا هر رنگی که برای تم سایت مناسب است */
}



/* DEBUG: پیدا کردن المانی که از عرض صفحه بیرون زده */
@media (max-width: 768px) {


  html, body { overflow-x: hidden; }

  body > * {
    max-width: 100%;
  }

  img, video, iframe {
    max-width: 100%;
  }
}
