@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanr.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-feature-settings: "ss02";
    font-display: swap;

}

@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanb.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-feature-settings: "ss02";
    font-display: swap;

}

@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap !important;
    src: url('../webfonts/fa-solid-900.woff2') format('woff2');
}

body {

    font-family: 'iranyekan' !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    direction: rtl;
    /* برای فارسی‌سازی */
    text-align: right;

}
.ss02 {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
.woocommerce,
.woocommerce * {
    font-family: 'iranyekan' !important;
}
body {

    font-family: 'iranyekan' !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    direction: rtl;
background: #111127 !important ;
}

/* General Body Styles */


.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2px;
    background-color: #fff !important;
}

/*********** دسته بندی دایره ای ***************/
.category-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
    padding: 20px 0;
    text-decoration: none;
}

.cat-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.cat-item:hover .cat-circle {
    transform: scale(1.1);
}

.cat-item p {
    text-align: center;
    color: white;
    font-size: 12px;
    margin: 0;
}

.cat-circle {
    width: 98px;
    height: 90px;
    border-radius: 50%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 12px;
    position: relative;
    box-shadow: 0 0 18px 5px rgba(255, 0, 0, 0.25);
    transition: transform 0.2s ease;
    border: 3px solid #747272;
   overflow: hidden; 
}

.cat-circle img {
    width: 100%;
    height:100%;
    object-fit: contain;
}
@media (max-width: 768px) {
    .category-container {
        display: grid;
        grid-template-columns: repeat(4, 2fr);
        gap: 20px 10px;
        padding: 15px;
    }

    .cat-circle {
        width: 70px;
        height: 70px;
    }

    .cat-item p {
        font-size: 11px;
    }
}

/* اسلایدر ها */
 .slider-container {
    position: relative;
    max-width: 1264px;
    width: 100%;
    margin: 2px auto 57px;
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    width: 200%;  
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 50%;   
    height: 100%;
    flex-shrink: 0;
    background: #000;
}

.slide img {
   width: 100%;
    height: auto; 
    object-fit: cover !important; 
    object-position: center top;  
    display: block;
}  


.nav-arrow {
    position: absolute;
    top: 50%;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    transform: translateY(-50%);
}

.prev { left: 15px; }
.next { right: 15px; }

.nav-arrow:hover { background: rgba(0,0,0,0.9); }

/* حفظ اسلایدر */
@media (max-width: 768px) {
    .slider, .slick-slider, .owl-carousel {
        overflow: visible !important;
    }
    
    .slick-track, .owl-stage {
        overflow: visible !important;
    }
 .slider-container {
    margin: 25px auto 15px;
}
}

/* Special Offer Section */

/* پیشنهاد ویژه */

.backgroundoffer {
     background: linear-gradient(135deg, #2a1a3e 0%, #1e1e2f 100%);
  padding: 60px 20px;
  border-radius:50px;
}


.offer-home-product {
   max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;
}
p.title-offer {
    color: #fff;
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.button-offer-all {
  display: inline-block;
  background: linear-gradient(45deg, #ae0000, #ae0000);
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(255,107,53,0.4);
}
.button-offer-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255,107,53,0.6);
}
.product-offer ul.products {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.product-offer ul.products li.product {
  
    scroll-snap-align: start;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    min-width: 250px; 
    max-width: 270px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin: 0 6px!important;
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
    height: auto; 
}


.product-offer ul.products li.product img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover;
    margin: 0 auto 1em !important;
    flex-shrink: 0;
}

.product-offer .woocommerce-loop-product__title {
    font-size: 14px;
    line-height: 1.4;
    color: #111;
    margin: 0 0 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 32px;
    max-height: 32px;
    padding: 0 8px;
    overflow: hidden;
}

.product-offer .price {
    color: #0808a6 !important;
    font-weight: 600 !important;
    margin: 0 0 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 24px;
}

.product-offer .add_to_cart_button,
.product-offer .button.product_type_simple,
.product-offer .button.product_type_variable {
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 20px !important;
    width: 80%;
    background: linear-gradient(45deg, #ae0000, #ae0000)!important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
    padding: 0;
    margin: 0 auto !important;
    flex-shrink: 0;
}
.product-offer .woocommerce ul.products {
  display: flex !important; 
  list-style: none;
  padding: 0;
  margin: 0;
  width: fit-content; 
}
/***********  شگفت انگیز اسکرول ها ************/
.product-offer ul.products::-webkit-scrollbar {
    height: 6px;
}

.product-offer ul.products::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 10px;
}

.product-offer ul.products {
    scrollbar-width: none;
}

.product-offer ul.products::-webkit-scrollbar {
    display: none;
}

.product-offer ul.products {
    scroll-snap-type: x mandatory;
}

.product-offer ul.products li.product {
    scroll-snap-align: start;
}
.product-offer li.product {
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffcc00;
    color: #000;
    font-size: 13px;
    font-weight: bold;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.offer-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block; /* مهم */
}

.offer-dots span.active {
    background: #fff;
    opacity: 1;
}

.product-offer {
    overflow-y: hidden;
}
.product-offer ul.products {
    -webkit-overflow-scrolling: touch;
}
/* ----------------------  ریسپانسیو موبایل  ---------------------- */

@media (max-width: 768px) {

  .backgroundoffer {
    padding: 30px 15px;
    border-radius: 30px;
  }

  .offer-home-product {
    grid-template-columns: 1fr; /* ستون‌ها زیر هم */
    text-align: center;
    gap: 30px;
  }

  p.title-offer {
    font-size: 1.8em;
    line-height: 1.3;
  }

  .button-offer-all {
    padding: 12px 25px;
    font-size: 14px;
  }

  /* محصولات */
  .product-offer ul.products {
    gap: 10px;
    padding-bottom: 10px;
  }

  .product-offer ul.products li.product {
    min-width: 200px;
    max-width: 220px;
    height: auto;
    padding: 10px;
  }

  .product-offer ul.products li.product img {
    height: 150px !important;
  }

  .product-offer .woocommerce-loop-product__title {
    font-size: 13px;
    min-height: 30px;
    max-height: 30px;
  }

  .product-offer .price {
    font-size: 14px;
    min-height: 22px;
  }

  .product-offer .add_to_cart_button,
  .product-offer .button.product_type_simple,
  .product-offer .button.product_type_variable {
    height: 28px !important;
    font-size: 13px;
    width: 80%;
  }

  /* دکمه درصد تخفیف */
  .discount-badge {
    width: 40px;
    height: 40px;
    font-size: 11px;
  }

  /* دایره‌های اسلایدر */
  .offer-dots {
    margin-top: 10px;
    gap: 7px;
  }

  .offer-dots span {
    width: 8px;
    height: 8px;
  }

}

/********************* تازه ترین محصولات *****************/
.latest-products p{
    font-size: 30px;
     line-height: 1.5;
    color: #fff;
    margin: 45px 0;
     font-weight: bold;
    text-align:center;
}
.latest-products {
    direction: rtl;
    padding: 20px;
}

.latest-products h2 {
    text-align: right;

}

.products-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}

.products-slider::-webkit-scrollbar {
    display: none;
}
.product-card {
    min-width: 260px;
    max-width: 260px;
    scroll-snap-align: start;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    text-align: center;
    position: relative;
   min-height:360px!important;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.product-card img {
    max-width: 100%;
    max-height: 200px;
    height: auto;
    display: block;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px; /* فاصله کمتر */
    min-height: 44px;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-wrapper {
    text-align: center;
}

.price-wrapper {
    font-size: 19px !important;
    font-weight: bold !important;
    margin-bottom: 20px !important;
}


.price-wrapper ins,
.price-wrapper .woocommerce-Price-amount {
    font-size: 19px !important;
    font-weight: bold !important;
}

.price-wrapper del {
    color: #999 !important;
    font-size: 16px !important;
}


.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0b57d0;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dots .dot.active {
    background: #000;
}
/********************* تازه ترین محصولات *****************/

/*************** companies ***********/

/* نمایندگی ها */
.header {
  background: linear-gradient(135deg, #0f0f23 0%, #babac0 88%);
  padding: 60px 20px;
  text-align: center;
}
.header p {
  font-size: 30px;
  color: #fff;
  margin:0 auto 30px;
  font-weight: bold;
}
.companies {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.company-item img {
  width: 120px;
  height: 100px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0) invert(100%);
  transition: all 0.3s;
  border-radius: 15px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
}
.company-item:hover img {
  filter: grayscale(0%) brightness(1) invert(0%);
  transform: scale(1.05);
}
@media (max-width: 750px) {
 .company-item img {
    width: 99px;
    height: 70px;

   }
.header p {
  font-size: 20px;
  
}
}

/*********** باکس نمایندگی ها */
.boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 350px);
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
 }
        
 .box {
   width: 350px;
   height: 320px;
   background: linear-gradient(360deg, #ffffff 37%, #babac0 88%);
   border-radius: 15px;
   box-shadow: 0 10px 30px rgba(0,0,0,0.1);
   overflow: hidden;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 20px;
   box-sizing: border-box;
 }
        
  .box:hover {
   transform: translateY(-10px);
   box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
        
.image-container {
  width: 200px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
        
.box-image {
   width: 57%;
   height:auto;
   object-fit: cover;
    display: block;
}
        
 .box-content {
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
        
 .box-title {
   font-size: 20px;
   font-weight: bold;
   margin:0 ;
   color: #333;
}
        
 .box-text {
   font-size: 14px;
   color: #666;
   line-height: 1.6;
 }
 /* ----------------------  ریسپانسیو گرید باکس‌ها  ---------------------- */

/* تبلت (بین موبایل و دسکتاپ) */
@media (max-width: 1024px) {
  .boxes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .box {
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .box-image {
    width: 60%;
  }
}

/* موبایل */
@media (max-width: 768px) {

  .boxes-grid {
    grid-template-columns: 1fr; /* تک ستونه */
    gap: 20px;
    justify-content: center;
    padding: 15px 25px; 
  }

  .box {
    width: 100%;
    height: auto;
    padding: 15px;
    border-radius: 12px;
  }

  .image-container {
    width: 160px;
    height: 100px;
  }

  .box-image {
    width: 50%;
  }

  .box-title {
    font-size: 18px;
  }

  .box-text {
    font-size: 13px;
    line-height: 1.5;
  }
/* حذف افکت هاور دسکتاپ در موبایل */
  .box:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  /* افکت زوم مخصوص موبایل */
  .box:hover,
  .box.touch-zoom {
    transform: scale(1.05) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
}


/* ************************************درباره ما */
.curve-wrapper {
  position: relative;
  height: 100px;
margin-top:120px;

}

.curve-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.curve-icon {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 34px;
  color: white;
}


.amazing-box {
  position: relative;
  background: #fff;
  color: #000;
  overflow: hidden;
  margin: 0 ;
  width: 100%;
  text-align: center;
}


/* محتوا داخل باکس */
.box-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
}

.box-right, .box-left {
  width: 30%;
}
.box-right p {
text-align:justify;
}

.box-center {
  width: 30%;

}

.center-logo {
  width:100%;
  opacity: 0.9;
}

.stat {
  margin: 8px 0;
  font-size: 18px;
}
.stats-box {
    direction: rtl;
    font-family: sans-serif;
}

.stat-row {
    position: relative;
    margin: 15px 0;
}

.stat-label {
    font-size: 16px;
    margin-bottom: 12px;
}

/* خط خاکستری */
.stat-line {
    width:90%;
    height: 2px;
    background: #e6e6e6;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

/* بخش پر شده با درصد */
.stat-fill {
    height: 100%;
    background: #000;
    border-radius: 20px;
    transition: width .4s;
}

/* دایره درصد */
.stat-value {
    position: absolute;
    top: 35px;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 13px;
    white-space: nowrap;
}

/* ---------------------- ریسپانسیو موبایل ---------------------- */
@media (max-width: 768px) {

  /* منحنی بالای بخش */
  .curve-wrapper {
    height: 34px;
    margin-top: 60px;
  }

  .curve-icon {
    top: -10px;
    font-size: 24px;
  }

  .curve-svg circle {
    r: 70;
  }

  /* باکس اصلی */
  .box-inner {
    flex-direction: column;      /* ستون‌های زیر هم */
    padding: 25px 20px;
    text-align: center;
   
  }

  .box-right,
  .box-center,
  .box-left {
    width: 100%;     /* تمام‌عرض شدن */
  }

  /* متن معرفی */
  .box-right h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .box-right p {
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
  }

  /* لوگو وسط */
  .center-logo {
    width: 60%;
    max-width: 220px;
    margin: 0 auto;
  }

  /* بخش آمار */
  .stat-label {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .stat-line {
    width:90%;
  }

  .stat-value {
    top: 30px;
    font-size: 11px;
    padding: 2px 8px;
  }

  .stat-row {
    margin: 18px 0;
  }
.box-left {
  padding-right:15px;
  }
}

/* *******************باکس های خدمات *****************/

.services {
    text-align: center;
    padding: 27px 20px;
    direction: rtl;
    background: #fff; /* بک گراند سفید کل سکشن */
    margin:90px;
   border-radius:6px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-box {
    background: #fff;  /* بک گراند سفید باکس */
    padding: 25px 20px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* سایه ملایم */
    transition: 0.3s ease;
}

/* افکت هاور (اختیاری ولی شیک) */
.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.services h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-box img {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
    opacity: .85;
}

.service-box p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 240px;
}
/* ---------------------- ریسپانسیو موبایل - بخش خدمات ---------------------- */
@media (max-width: 768px) {

  .services {
    padding: 20px 15px; 
    margin: 40px 15px;  
  }

  .services h2 {
    font-size: 26px;    
    margin-bottom: 30px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;             
  }

  .service-box {
    padding: 20px 15px; 
    border-radius: 10px; 
  }

  .service-box img {
    width: 80px;        
    margin-bottom: 10px;
  }

  .service-box p {
    font-size: 16px;   
    max-width: 220px;  
  }

 
}

/********************* باکس های صفحه *****************/
/* ********************* افتخار همکاری با شرکت های************* */
.customers{
 position: relative;
  background: #fff;
  color: #000;
  overflow: hidden;
  margin: 0 ;
  width: 100%;
  text-align: center;
}
.titl-customers{
text-align:center;
font-size:25px;
  font-weight:600;
}
.logo-slider-container {
    display: flex;
    justify-content: center;
    padding: 20px 0 70px;
    overflow: hidden;
   background-color:#fff;
}

.logo-slider {
    display: flex;
    gap: 25px;
    transition: 0.3s ease;
}

.logo-item {
    width: 100%;
    height: auto;
    object-fit: cover;
   transition: transform 0.3s ease, filter 0.3s ease;
}
.logo-item:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.container {
    overflow-x: hidden;
}
html,
body,
div,
span,
p,
a,
li,
ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
button,
label {
    font-family: 'iranyekan' !important;
}

/* ============================= */
/* ======= MOBILE (768↓) ====== */
/* ============================= */

@media (max-width: 768px) {
.product-card img{
    height: 220px;
    width: 100% !important;
    object-fit: cover;

}
    /* فاصله کلی */
    .latest-products,
    .category-section {
        padding: 15px;
        margin: 30px 10px;
    }

    /* پیشنهاد ویژه */
    .offer-home-product {
        border-radius: 20px;
        padding: 30px 15px;
    }
 .offer-home-product {
        flex-direction: column;
        align-items: stretch;
    }
    .offer-button {
        flex: unset;
        width: 100%;
        margin-bottom: 20px;
    }

    .product-offer {
        width: 100%;
    }

    h6.title-offer {
        font-size: 20px;
    }

    a.button-offer-all {
        font-size: 14px;
        padding: 10px 20px;
    }

    .product-offer ul.products li.product {
        min-width: 220px;
        max-width: 220px;
    }

    /* اسلایدر جدیدترین */
    .product-card {
        min-width: 220px;
        max-width: 220px;
        padding: 15px;
    }

    .product-card h3 {
        font-size: 13px;
    }

    .sale-price,
    .normal-price {
        font-size: 16px;
    }

    /* هایک ویژن */
    .products-grid {
        grid-template-columns: 1fr;
    }

    
    /* شرکت‌ها */
    .companies {
        gap: 15px;
    }

    .company-item {
        min-width: 120px;
    }

    .company-item img {
        max-height: 90px;
    }

    .companies2 {
        grid-template-columns: repeat(2, 1fr);
    }

    

}

@media (max-width: 480px) {

    .product-card {
        min-width: 200px;
        max-width: 200px;
    }

    .product-offer ul.products li.product {
        min-width: 200px;
        max-width: 200px;
    }

    h6.title-offer {
        font-size: 18px;
    }

    .bg-content h3 {
        font-size: 18px;
    }
.container {
    overflow-x: hidden;
}
}
