body{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
@font-face {
    font-family: "Dana-light";
    src: url("../fonts/dana-light.ttf") format("truetype");
}
header{
    height: 80px;
}
.navigatebr{
    background-color: none;
    background-image: linear-gradient(to right, #155A2E , #143a24,#134B28);
    height: 440px;
    background-size: 400% 100%;
   animation: pdbg 12s infinite ease;
   /* overflow: visible; */
       margin-top: 0px;
/* opacity: 0; */
transition: all 500ms ;

   }
   .naviproduct {

  animation: fadeIn 1s forwards !important;
}

   @keyframes pdbg {
       0%{
background-position: 0% 50%;

    }
    50%{
        background-position: 100% 50%;

    }
    100%{
background-position: 0% 50%;

    }
   }
   #products{
    background: none;
    height: auto;
    margin-top: 18px;
   }
   #wrappers{
    gap: 10px;
   }

   .navigatebr.visible{
    opacity: 1;
   }
   .navititle-icon{
    color: rgba(255, 255, 255, 1);
   }
 .scroll-container {
     height:100%;
    display: flex;
    align-items:center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    cursor: grab;
    scroll-behavior: smooth;
    user-select: none;
    border-radius: 10px;
    padding: 65px 15px;
    
    width: 1800px;
    
    /* اینا باعث می‌شه center بشه حتی با overflow */
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    }
#scrollContainer{
    justify-content: right !important;
}
  .scroll-container::-webkit-scrollbar {
    display: none;
  }
  scrollCContainer{
      justify-content:center ;
  }
.imgholder{
    padding: 0;
 }
 .site-banner{
    width:100%;
    height:39vw;
}
.site-banner img{
    width:100%;
    height:100%;
    object-fit: cover;
}
.imgholder img{
        width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: all 320ms ease 160ms;
      padding: 0;
      display: block;
      margin: 0;

 }
.naviproduct:hover .imgholder img{
    transform: scale(1.32);
    border-radius: 10px 10px 0 0;

}
.scroll-container .naviproduct .imgholder img{
    
}
.scroll-container .naviproduct
 {
      
       margin-top:38px;
    z-index: 1;
    background: white;

    /* padding: 10px ; */
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    /* opacity: 0; */
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
    width: 400px;
    flex: 0 0 13%; /* کارت‌ها اندازه خودشان را حفظ کنند */
    white-space: nowrap; /* متن در یک خط بماند */
/* max-height: 400px; */
box-shadow: none;
border: none;
  }
 /* .scroll-container .naviproduct:nth-child(8){
    opacity: 1;
    transform: scale(1);
  } */
  .naviproduct h4{
    font-size: 14px;
}
.product-bottomsection{
    padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 12px;
        margin-top: 8px;

}
.product-bottomsection h4{
    color: rgb(99, 99, 99);
    line-height: 1.1;
    
}
  .naviproduct.show {
    opacity: 1;
    transform: scale(1);
  }
   .naviproduct{
 
     
   }
     .naviproduct.show {
    opacity: 1;
    transform: scale(1);
  }
   .navibrholder{
    position: relative;
   }

   .rabia-bg{
    position: absolute;
    left: 22px;
    top: 60px;
    color: rgba(0,0,0,0.05);
    font-size: 120px;
    z-index: 0;
    transform: translateX(-5%) translateY(-30%);
    user-select: pointer;
    
   }
   .rabia-bg h2{
    user-select: none;
   }
   .navi-title{
    position: absolute;
top:5px;
margin: 12px auto;
color: #fff;
font-size: 28px;
display: flex;
align-items: center;
gap: 8px;
font-weight: 100;
font-family: "Dana-light";
color:#fff;

   }
   .navi-title h4{
    display: inline;
   }
   .navi-title h3{
    position: relative;
   }
   .navi-title h3::after{
    content: "";
    height: 1px;
    background-color: rgba(255,255,255,0.3);
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;

      }
   .navi-title svg{
    width: 32px;
    height: 32px;
    display: inline;
   }
   .on-ser{
    width: 100wv;
    height: 300px;


   }
.img-onser{
    width: 100%;
    height: 1200px;
    overflow: hidden;


}

.img-onser img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: all 200ms ease;
    
}

.category-header{
    display: none;
}
.main-category-holder{
    width: 100%;
    height: auto;
    display: flex;

}
.maincategories{
    width: 100%;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items:center ;
    flex-direction: column;
    background-color: #ffffff;
    transition:all 300ms ease 50ms;
    direction: ltr;
    position: relative;

}
.maincategories::after{
    content: "";
    background-color: rgba(0,0,0,0.30);
    width: 1px;
    height: 60%;
    border-radius: 50px;
    position: absolute;
left: 0;
margin: auto 0 ;

}
.maincategories:last-child::after{
    display: none;
}
.maincategories img{
    width: 34px;
    height: 34px;
}
.maincategories svg{
    width: 34px;
    height: 34px;
    margin-bottom: 8PX;
    color: #39916cff;
}
.maincategories:hover{
    cursor: pointer;
    background-color: rgb(65, 119, 97,0.15);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}
.maincategories h3{
    color: rgb(57, 88, 77);
    font-weight: 400;
    font-size: 14px;
    word-spacing: -1px;

}
.mains-linkimg{
    width: 100%;
    padding: 70px 12%;

display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(2,minmax(80px,10vw));
grid-auto-rows:minmax(80px,10vw);
gap:2vw;

}
.img-holder{
    width:100%;
    height:auto;
   display:flex;
   justify-content:center;
   flex-wrap:wrap;
    gap: 20px;

}
.img-holder img:hover{
    cursor: pointer;
}
.img-holder:first-child{
    margin-bottom: 20px;
}
.mainimgs-holder {

    overflow: hidden;
    border-radius: 55px;
    box-shadow: 0px 0px 30px rgba(52, 99, 46, 0.518);
    position: relative;
background: var(--main);
background:var(--main);

        border:1px solid #fff;

}
.mainimgs-holder:hover{
    cursor:pointer;
}
.mainimgs-text{
display:flex;
height:100%;
align-items:center;
justify-content:center;
   font-size:28px;
   color:#FFF;
   user-select:none;
   transition: all 200ms ease-out;

}
.scroll-container .naviproduct .imgholder{
    width: 100%;
    height: 185px;
}
.mainimgs-holder img{
transition: all 200ms;
}
.mainimgs-holder:hover .mainimgs-text{
    transform: scale(1.5);
}

.mainimgs {
    width: 100%;
    height: 100%;
    object-fit: cover; /* یا contain بسته به نیاز */
    display: block;
    transition: all 200ms;
}
.mid-section {
    max-width: calc(90vw);
    overflow: hidden;
    margin: 0 auto;               /* وسط صفحه */
    padding: 25px;
    border-radius: 35px;
    border: 1px solid rgba(64, 126, 83, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
                      /* چسبیدن به چپ */
}

/* ظرف تصویر */
.mid-img-holder {
    overflow: hidden;              /* جلوگیری از بیرون زدن تصویر */
    display: block;    
            border-radius: 20px;
            /* بهتر است block باشد */
}

/* تصویر داخل بخش */
.mid-section img {
    width: 100%;                   /* پر کردن کل عرض والد */
    max-height: 350px;
    display: block;                 /* حذف فاصله inline */
    object-fit: cover;
    border-radius: 20px;
    transition: transform 300ms, border-radius 300ms;  /* انیمیشن نرم */
}

/* هاور روی تصویر */
.mid-section img:hover {
    transform: scale(1.1);
        border-radius: 20px;

}
#spec-mid img:hover{
    transform: scale(1);
    user-select: none;
}



        .load-more-section {
            display: flex;
            justify-content: center;
            margin: 40px 0;
        }

        .load-more-btn {
            background: var(--main);
            color: white;
            border: none;
            padding: 12px 40px;
            font-size: 16px;
            border-radius: 28px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: bold;
         font-family: "Dana";
     
        }
/* .container{
    margin-top: 30px;
} */
 .productwrapper {
width: 95vw;
    margin-left: auto !important;
    margin-right: auto !important;

}

.container {

    margin: 0 auto !important;
    margin-top: 30px !important;
    width: 100% !important;

}

        .load-more-btn:hover {
            background: #248a63;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(48, 178, 127, 0.3);
        }

        .load-more-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 20px;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 3px solid #30b27f;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .loading-text {
            color: #30b27f;
            font-weight: bold;
        }

        .info-text {
            text-align: center;
            color: #666;
            margin: 20px 0;
            font-size: 14px;
        }

        @media (max-width: 768px) {
            .productwrapper {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 15px;
            }
        }
























   @media screen  and (max-width:1420px){
                #scrollCContainer{
    justify-content: start !important;
  }

    .img-onser{
    width: 100%;
    height: auto;
    overflow: hidden;


}
    #scrollContainer{
        justify-content: right;
    }
    .navigatebr{
        overflow: hidden;
    }
    .rabia-bg{
        transform: translateX(5%) translateY(-20%);

}
.scroll-container .naviproduct
 {    flex: 0 0 18%; /* کارت‌ها اندازه خودشان را حفظ کنند */
}
   }
     @media screen  and (max-width:1200px){

.scroll-container .naviproduct
 {    flex: 0 0 22%; /* کارت‌ها اندازه خودشان را حفظ کنند */
}
   }
     @media screen  and (max-width:1150px){
                       .mainimgs-text{

   font-size:20px;

}

#wrappers{
    gap: 18px;
}

   }
   @media screen and (max-width:900px) {
       .mains-linkimg{
    width: 100%;
    padding: 40px;


}


.navi-title{
    font-size: 23px;
}
    .scroll-container .naviproduct
 {    flex: 0 0 28%; /* کارت‌ها اندازه خودشان را حفظ کنند */
}
   }
   @media screen  and (max-width:768px){

       .mainimgs-text{

   font-size:15px;
}

    .scroll-container .naviproduct
 {    flex: 0 0 65%; /* کارت‌ها اندازه خودشان را حفظ کنند */
}
    .navigatebr{
        margin-bottom: 10px !important;
    }
    .product-bottomsection{
    padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 2px;
        margin-top: 8px;

}
    #wrappers{
    gap: 8px;
}

    .mid-section {
    width: 95vw;
    border-radius: 16px;

                      /* چسبیدن به چپ */
}
      /* .naviproduct:nth-child(9){
    opacity: 0;
    transform: scale(0.8);
  } */
    .naviproduct:nth-child(9).show {
    opacity: 1;
    transform: scale(1);
  }
    .mid-img-holder {
    overflow: hidden;              /* جلوگیری از بیرون زدن تصویر */
    display: block;    
            border-radius: 10px;
            /* بهتر است block باشد */
}

/* تصویر داخل بخش */
.mid-section img {
    width: 100%;                   /* پر کردن کل عرض والد */
    max-height: 350px;
    display: block;                 /* حذف فاصله inline */
    object-fit: cover;
    border-radius: 10px;
    transition: transform 300ms, border-radius 300ms;  /* انیمیشن نرم */
}

/* هاور روی تصویر */
.mid-section img:hover {
    transform: scale(1.1);
        border-radius: 10px;

}

    .mid-section img{

    }
    .mid-section{
        margin-top: 15px;
        margin-bottom: 15px;
        padding: 15px;
        border-radius: 24px;
    }
    .navigatebr{


    
    margin-bottom: initial;
}
.navigatebr:first-child{
    margin-top: 00px;
}
    .maincategories h3{
        font-size:11px;
        font-weight: 600;
    }
    .mains-linkimg{

    position: relative;
}
    .img-holder:first-child{
    margin-bottom: 10px;
}


    .mains-linkimg{
        padding: 15px;
    }


    .naviproduct{
    margin-top:0px;
   }
   .navigatebr{
    /* background:none; */
    overflow: hidden;
position: relative;
    border-radius: 0;
    opacity: 1;
    margin-top: 0;
   }

.navi-title{
    /* display: none; */
}
.rabia-bg{
    display: none;

}
.naviproduct{
    /* margin-top: 35px; */
    
}
.naviproduct:first-child,
.naviproduct:nth-child(2){

    display: block;
}

   }
@media screen  and (max-width:600px){

           .mainimgs-text{

   font-size:12px;

}



}
@media screen  and (max-width:397px){

           .mainimgs-text{

   font-size:9px;

}



}



