.custom-slider {
  position: relative;
  width: 100%;
  height: auto;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}
.blog-box{
  padding-bottom: 0;
}
.slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 10;
  border-radius: 0;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.pagination {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.pagination span {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: rgba(255,255,255,0.6);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination span.active {
  background-color: white;
}
/*end slider*/

.top-banners img{
  width: 100%;
  height: auto;
  border-radius: var(--main-radius);
  box-shadow: 0 0 6px rgb(0 0 0 / 21%);
}
.wc-td-countdown{
  position: relative;
  margin: 0 auto;
  margin-bottom: -151px;
  top: 17px;
  left: 4%;
  text-align: center;
  float: left;
  font-size: 13px;
  background: rgb(252 86 86 / 20%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  width: 45%;
  z-index: 9;
}
.top-banners{
  margin-top: 35px;
  margin-bottom: 35px;
}
.reason-box{
  width: 100%;
  margin:0 ;
  margin-top: 30px!important;
}
.reason{
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.reason-items .item-box{
  border-radius: var(--main-radius);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  padding: 0px 10px;
  background-color: #fff;
}
.wc-td-time span{
  /*background-color: rgba(255, 255, 255, .4);*/
  /*border-radius: var(--main-radius);*/
  /*border: 1px solid #fff;*/
  /*-webkit-backdrop-filter: blur(1.5px);*/
  /*backdrop-filter: blur(1.5px);*/
  /*padding: 5px;*/
  font-family: "vazirfd";
  font-weight: 900;
  color: red;
  margin-bottom: 5px;
}
.reason-items{
  padding: 5px;
}
.reason-items i{
  font-size: 2.5rem;
  color: #767676;
  position: relative;
  top: 9px;
}
.reason-items h3{
  font-size: 1.1rem;
  font-weight: 800;
  display: inline-block;
}
.reason-items p{
  font-size: 0.8rem;
  margin-top: 10px;
  color: #707072;
  text-align: justify;
}
.products-title-row{
  width: 100%;
  /*max-width: 1440px;*/
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 23px;
  align-items: center;

}
.products-title-row h3{
  font-size: 1.2rem;
  font-weight: 900;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 10px;
}
.product-items-select{
  /*width: 12%;*/
  /*display: inline-flex;*/
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  overflow: auto;
  padding-bottom: 4px;
}
.title-line {
  /*display: inline-block;*/
  /*width: 50%;*/
  /*position: relative;*/
  /*top: -3px;*/
  /*border: 1px solid #b2b2b2;*/
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 0.5px;
  background-color: #d0d0d0;
}
.see-all-btn{

  margin-left: 15px;
  background-color: var(--main-color);
  color: #fafeff;
  padding: 8px;
  border-radius: var(--main-radius);
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--main-color);
  padding: 6px 14px;
  cursor: pointer;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}
.see-all-btn:hover{

  font-size: 0.8rem;
  box-shadow: 0 0 4px #5b5b5b;
  border: 1px solid #fff;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active{
  background-color: unset!important;
  border: unset;
  border-bottom: 1px solid gray;
  color: gray;
}

.nav-tabs{
  border-bottom: unset!important;
}
.nav-tabs .nav-link{
  padding: 0!important;
}

.nav-tabs { border-bottom-color: transparent; } /* تا خط خودت دیده بشه */

.nav-tabs .nav-link {
  position: relative;
  background: transparent;
  border: none;
  color: gray;
}

.nav-tabs .nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -1px;
  height: 2px;
  background: gray;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .25s ease;
  z-index: 2;
}

.nav-tabs .nav-link:hover::after,
.nav-tabs .nav-link:focus::after {
  transform: scaleX(1);
}

.nav-tabs .nav-link.active::after {
  transform: scaleX(1);
}

.banners-box img{
  width: 100%;
  height: auto;
  border-radius: var(--main-radius);
}
.banners-box{
  margin-top: 50px;
}
.banners-box .center-banner{
  width: 95%;
  margin: 0px auto;
  display: block;
  margin-bottom: 15px;
}
.banners-box .col-4:first-child {
  padding-left: 0;
}
.banners-box .col-4:nth-child(2)  {
  padding: 0;
}
.banners-box .col-4:last-child {
  padding-right: 0;
}
.banners-box .col-4:nth-child(2) img {
  width: 92.6%;
}
#blog .products-card{
  padding-bottom: 0;
}
#blog h3{
  margin-bottom: 0;
  padding-bottom: 5px;
}

.products-card img {
  display: block;
  transition: transform 0.4s ease;
}

.products-card img::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
}

.products-card:hover img {
  transform: scale(1.05);
}

.products-card:hover::before {
  animation: shine 0.9s;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}


.produc-card .products-card {
  position: relative;
  overflow: hidden;
}
.produc-card .products-card img {
  width: 100%;
  display: block;
  transition: opacity 0.4s ease;
}
.produc-card .products-card .back {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
}
.produc-card .products-card:hover .front { opacity: 0; }
.produc-card .products-card:hover .back { opacity: 1; }








/* غیرفعال کردن رفتار wrap در موبایل و فعال کردن اسکرول افقی */
.top-banners {
  display: flex !important;
  flex-wrap: nowrap !important; /* بدون خط جدید */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
}

/* عرض هر آیتم در موبایل */
.top-banners > div {
  flex: 0 0 50%; /* 2 ستون */
  max-width: 50%; /* 2 ستون */
  box-sizing: border-box;
  padding: 0 10px;
}

/* در دسکتاپ رفتار عادی بوت‌استرپ */
@media (min-width: 768px) {
  .top-banners {
    flex-wrap: wrap !important; /* اجازه خط جدید */
    overflow-x: visible;
  }

  .top-banners > div {
    flex: 0 0 16.66%; /* 6 ستون */
    max-width: 16.66%;
  }
}

@media only screen and (max-width: 450px) {
  .hide-m{
    display: none!important;
  }
  .banners-box {
    margin-top: 25px;
  }
  .banners-box img {
    width: 94%;
    margin: 0 auto;
    display: block;
  }

  .reason-items h3 {
    font-size: 0.8rem;
  }
  .reason-box{
    width: 96%;
    margin: 0 auto !important;
    margin-top: 30px !important;
  }
  .slides{
    height: auto;
  }
  .products-title-row h3{
    font-size: 1rem;
  }
  .center-banner{
    margin-top: 15px!important;
  }
  .center-banner.first {
    margin-right: 6%;
  }
  .center-banner.last {
margin-left: 6%;
  }
  .see-all-btn{
    display: none;
  }
  .card-price {
    min-height: 52px;
  }
  .produc-card h3{
    text-align: right;
  }
}