/* 
Theme Name: Hello Child
Theme URI: https://elementor-site.ir/
Description: 
Author: Elementor Site
Author URI: https://elementor-site.ir/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

 
 
 
@font-face {
  font-family: 'Vazir';
  src: url('fonts/Vazir-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Vazir';
  src: url('fonts/Vazir-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Vazir';
  src: url('fonts/Vazir-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}


body, h1, h2, h3, h4, h5, h6, p, span, a, li, input, button {
  font-family: 'Vazir', sans-serif !important;
}

html, body {
  overflow-x: hidden !important;
}

* {
  box-sizing: border-box;
}


body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Vazir', sans-serif !important;
  background: #f7f9fc;
  direction: rtl;
  line-height: 1.8;
  
}

a {
  text-decoration: none;
  color: inherit;
}

main.afs-landing {
  padding-bottom: 3rem;
  width: 100%;
}

.site-logo-img img {
    transition: all 0.2s linear;
    border-radius: 5px !important;
}


/* فاصله چپ و راست در دسکتاپ برای تمام بخش‌ها */
.container {
  max-width: 1280px; /* عرض محتوای استاندارد */
  margin: 0 auto;    /* وسط‌چین کردن در صفحه */
  padding-left: 20px;
  padding-right: 20px;
}

/* در تبلت فاصله کمی بیشتر */
@media (max-width: 992px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* در موبایل فول‌عرض با فاصله‌ی امن */
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}



/* بنر اصلی */
.afs-section {
    
  padding: 4rem 1rem;
  max-width: 100%;
  margin: 0 auto;
}
.afs-section {
  background:
    linear-gradient(120deg, #020617 0%, #020617 60%, #1e293b 100%);
  position: relative;
}

.afs-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59,130,246,0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(236,72,153,0.12), transparent 40%);
  pointer-events: none;
}

.afs-row {
 
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 2rem;
}

.afs-row.reverse {
  flex-direction: row-reverse;
}

.afs-mediaa {
  flex: 1 1 45%;
  text-align: center;
}

.afs-mediaa img,
.afs-mediaa video {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.afs-textt {
    
  flex: 1 1 47%;
  text-align: right;
  max-width: 47%;
}

.afs-textt h2 {
    
  font-size: 1.5rem;
  margin-bottom: 1rem;
    color: #f8fafc;

}

.afs-textt p {
  font-size: 1rem;
  line-height: 1.9;
    color: #cbd5f5 !important;
     

}

@media (max-width: 768px) {
  .afs-row, .afs-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .afs-textt {
    text-align: center;
    max-width: 100%;
  }

  .afs-media img,
  .afs-media video {
    max-width: 100%;
  }
}

.afs-btn {
  display: inline-block;
  background: #00BCD4;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  transition: background 0.3s;
}

.afs-btn:hover {
  background: #00a3bb;
}

.afs-banner-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ویدیو ریسپانسیو */
.video-wrapper video {
  width: 100%;
  max-width: 640px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: block;
  margin: auto;
}


.afs-counter-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 50px 20px;
  background: #f9fbfd;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.afs-counter-box {
  background: #fff;
  padding: 30px 15px;
  border-radius: 14px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.afs-counter-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.afs-counter-box .icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.afs-counter {
  font-size: 32px;
  font-weight: 800;
  color: #1c3d8a;
  display: block;
  margin-bottom: 8px;
  font-family: inherit;
}

.afs-counter-box p {
  margin: 0;
  font-weight: 500;
  color: #444;
  font-size: 15px;
}

/* موبایل: ۲ ستون */
@media (max-width: 768px) {
  .afs-counter-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 40px 10px;
  }
  .afs-counter {
    font-size: 26px;
  }
  .afs-counter-box .icon {
    font-size: 36px;
  }
}



/* ✅ بخش‌بندی کلی */
.afs-section {
  margin: 40px auto;
  padding: 20px;
  max-width: 100%;
  border-radius: 10px;
   

}

.afs-sectionn {
  margin: 40px auto;
  padding: 20px;
  max-width: 100%;
 
 
   
 

  background: #f9fbfd;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);


   

}
.afs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  
}

.afs-header h2 {
  font-size: 1.5rem;
  color: #333;
}

.afs-more {
  font-size: 0.9rem;
  color: #0073e6;
  text-decoration: none;
}

.afs-more:hover {
  text-decoration: underline;
}






/* 🔥 اسلایدر اصلی محصولات و دوره‌ها */

.afs-carousel-wrapper {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.afs-carousel-wrapper.afs-loaded {
  opacity: 1;
  visibility: visible;
}



.afs-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 15px;
  padding-bottom: 10px;
  -ms-overflow-style: none;  /* حذف در IE و Edge */
  scrollbar-width: none;      /* حذف در فایرفاکس */
}
.afs-carousel::-webkit-scrollbar {
  display: none; /* حذف کامل خط اسکرول در کروم و سافاری */
}

/* ✅ کارت‌ها */
.afs-card {
  flex: 0 0 calc(22%); /* دسکتاپ: حدود 4.5 محصول */
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  padding: 15px;
  text-align: center;
  scroll-snap-align: start;
  transition: all 0.3s ease;
}

.afs-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.afs-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}



.afs-price {
  color: #28a745;
  font-weight: 700;
  margin-bottom: 10px;
}

.afs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0073e6;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.afs-btn i {
  font-size: 1rem;
}

.afs-btn:hover {
  background: #005bb5;
}

/* 🔹 واکنشگرایی موبایل */
@media(max-width: 768px){
  .afs-card {
    flex: 0 0 70%; /* 1.5 محصول نمایش داده شود */
  }
}

@media(max-width:480px){
  .afs-card {
    flex: 0 0 85%; /* 1 محصول تقریبا کامل */
  }
  .afs-card img {
    height: 140px;
  }
}

/* 🔹 جهت نما کوچک شبیه دیجی کالا */
.afs-carousel-wrapper {
  position: relative;
}

.afs-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;  /* کوچکتر شد */
  height: 28px; /* کوچکتر شد */
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 14px; /* کوچک‌تر برای شبیه دیجی کالا */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.afs-nav-btn:hover {
  background: rgba(0,0,0,0.7);
}

.afs-nav-prev {
  left: 5px;
}

.afs-nav-next {
  right: 5px;
}

/* مخفی کردن جهت نما در موبایل */
@media(max-width:768px){
  .afs-nav-btn {
    display: none;
  }
}

/* 🔹 اسلایدر محصولات مرتبط */
.related-products-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.related-products-carousel::-webkit-scrollbar {
  display: none;
}

.related-product-item {
  flex: 0 0 calc(22%);
  min-width: 220px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  scroll-snap-align: start;
  transition: 0.3s;
}

.related-product-item img {
  width: 100%;
  border-radius: 12px 12px 0 0;
}

.related-product-item h3 {
  font-size: 15px;
  margin: 10px;
  color: #333;
}

.related-product-item .related-price {
  color: #28a745;
  font-weight: bold;
  margin: 0 10px 15px;
}

/* 🔹 واکنشگرایی محصولات مرتبط */
@media(max-width: 768px){
  .related-product-item {
    flex: 0 0 70%;
  }
}
@media(max-width:480px){
  .related-product-item {
    flex: 0 0 85%;
  }
}







.afs-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  direction: rtl;
}

.afs-carousel-articles {
  display: flex;
  gap: 20px;
  width: max-content;
  cursor: grab;
  user-select: none;
  will-change: transform;
  scroll-behavior: smooth;
}

.afs-card {
  flex: 0 0 250px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.afs-card:hover {
  transform: translateY(-5px);
}
.afs-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}


.afs-card h3 {
  font-size: 15px;
  margin: 10px 0 6px;
  padding: 0 5px;
  line-height: 1.6;
  color: #333;
  text-align: center;

  display: -webkit-box;
  -webkit-line-clamp: 2;   /* 👈 نمایش حداکثر دو خط */
  -webkit-box-orient: vertical;
  overflow: hidden;        /* 👈 جلوگیری از بیرون زدن متن */
  text-overflow: ellipsis; /* 👈 افزودن سه‌نقطه در انتهای خط */
  min-height: 48px;        /* 👈 تضمین ارتفاع ثابت بین کارت‌ها */
}


@media (max-width: 768px) {
  .afs-card { flex: 0 0 180px; }
}






/* فونت فارسی */




.custom-wrapper {
  padding: 40px 20px;
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  background: #fff;
}

.custom-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.custom-main {
  width: 70% !important;
  max-width: 70% !important;
}

.custom-sidebar {
    width: 30% !important;
  max-width: 30% !important;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
}

.custom-sidebar h3 {
  font-size: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.custom-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.custom-sidebar li {
  margin-bottom: 8px;
}

.custom-sidebar a {
  text-decoration: none;
  color: #0073aa;
}

.custom-main h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.thumb img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
}

.content {
  font-size: 16px;
  line-height: 2;
}

.content h3 {
  font-size: 20px;
  margin-top: 30px;
  color: #1a73e8;
}

.content h4 {
  font-size: 18px;
  margin-top: 25px;
  color: #333;
}

.tags {
  margin-top: 30px;
  font-size: 14px;
}






/* واکنش‌گرا برای موبایل */
@media (max-width: 992px) {
  .custom-main,
  .custom-sidebar {
       width: 100% !important;
    max-width: 100% !important;
  }

  .custom-sidebar {
    order: 2;
    margin-top: 30px;
  }

  .custom-main {
    order: 1;
  }
  
.custom-container {
    display: flex
;
    gap: 30px;
    max-width: 100% !important;
    margin: 0 auto;
   justify-content:center;
   text-align: justify;
    
}  
  
  
  
  
  
}



@media (min-width: 922px) {
    .ast-narrow-container .site-content > .ast-container {
        max-width: 100%;
    }
.custom-container {
    display: flex
;
    gap: 30px;
    max-width: 85% !important;
    margin: 0 auto;
    flex-wrap: inherit !important;
    text-align: justify;
}
    
    
    
    
    
}










.toc-box {
  background: #f1f1f1;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  font-size: 15px;
}

.toc-box h3 {
  margin-bottom: 10px;
  font-size: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

#toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#toc-list li {
  margin-bottom: 8px;
}

#toc-list li.h4 {
  padding-right: 15px;
  font-size: 14px;
  color: #555;
}

#toc-list li a {
  text-decoration: none;
  color: #0073aa;
  transition: all 0.2s ease-in-out;
}

#toc-list li a:hover {
  color: #1a73e8;
}















/* 🔹 نوار بالایی باریک */
.header-top-bar {
  height: 20px;
  background: #1f1f1f;
}

/* 🔹 موج انیمیشنی (استفاده از همون کلاس‌های فوتر) */
.top-wave {
  transform: rotate(180deg);
  position: relative;
  z-index: 2;
}

/* 🔹 کل هدر */
.custom-header {
  background: #1f1f1f;
  color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 20px;
  max-width: 1200px;
  margin: auto;
  font-family: 'Vazirmatn', sans-serif;
}

.logo-area img {
  height: 50px;
}

.category-button {
  display: flex;
  align-items: center;
  background: #00bcd4;
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  gap: 8px;
  font-size: 14px;
}

.search-box {
  flex-grow: 1;
  margin: 0 20px;
  max-width: 400px;
}

.search-box form {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
}

.search-box button {
  background: #00bcd4;
  border: none;
  color: #fff;
  padding: 0 15px;
  font-size: 16px;
  cursor: pointer;
}

.cart-icon {
  position: relative;
}

.cart-icon a {
  color: #fff;
  font-size: 18px;
  position: relative;
}

.cart-icon .cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

.login-register a {
  background: transparent;
  color: #00bcd4;
  border: 1px solid #00bcd4;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s ease;
}

.login-register a:hover {
  background: #00bcd4;
  color: #fff;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .search-box {
    margin: 0;
    width: 100%;
  }
}


/* مخفی کردن نسخه موبایل در دسکتاپ */
.mobile-header {
  display: none;
}

/* نسخه دسکتاپ پیش‌فرض نمایش داده می‌شود */
.desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  gap: 10px;
}

/* نسخه موبایل */
@media (max-width: 768px) {
  .desktop-header {
    display: none;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    position: relative;
  }

  .mobile-menu-toggle {
    order: 1;
    color: #fff;
    font-size: 20px;
  }

  .mobile-logo {
    order: 2;
    flex: 1;
    text-align: center;
  }

  .mobile-login {
    order: 3;
    color: #fff;
    font-size: 20px;
  }

  .mobile-logo img {
    height: 40px;
  }

  .mobile-login a,
  .mobile-menu-toggle i {
    color: #fff;
  }
}






















.animated-wave-footer {
  position: relative;
  
  color: #eee;
  font-family: 'Vazirmatn', sans-serif;
  overflow: hidden;
  padding-top: 60px;
}


.animated-wave-footer {
  background:
    linear-gradient(120deg, #020617 0%, #020617 60%, #1e293b 100%);
  position: relative;
}

.animated-wave-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59,130,246,0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(236,72,153,0.12), transparent 40%);
  pointer-events: none;
}


.footer-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1 1 30%;
  min-width: 250px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #ccc;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-links li {
  margin-bottom: 10px;
}

.social-links a {
  text-decoration: none;
  color: #ccc;
  font-size: 15px;
  transition: color 0.3s ease;
}

.social-links a i {
  margin-left: 8px;
  color: #00bcd4;
}

.social-links a:hover {
  color: #00bcd4;
}

.cert-logos img {
  height: 70px;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  font-size: 14px;
  border-top: 1px solid #444;
  margin-top: 30px;
  position: relative;
  z-index: 10;
}

/* --- انیمیشن موج --- */
.wave-wrapper {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  left: 0;
  z-index: 5;
}

.wave {
  position: absolute;
  width: 200%;
  height: 100px;
  background-repeat: repeat-x;
  background-position: 0 bottom;
  opacity: 0.4;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.wave1 {
  background-image: url('data:image/svg+xml;utf8,<svg width="1440" height="100" xmlns="http://www.w3.org/2000/svg"><path fill="%2300bcd4" fill-opacity="0.3" d="M0 50 Q360 100 720 50 T1440 50 V100 H0z"/></svg>');
  bottom: 0;
  animation-name: waveAnim1;
  animation-duration: 12s;
}

.wave2 {
  background-image: url('data:image/svg+xml;utf8,<svg width="1440" height="100" xmlns="http://www.w3.org/2000/svg"><path fill="%2300bcd4" fill-opacity="0.5" d="M0 40 Q360 90 720 40 T1440 40 V100 H0z"/></svg>');
  bottom: 10px;
  animation-name: waveAnim2;
  animation-duration: 18s;
  opacity: 0.5;
}

@keyframes waveAnim1 {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 1440px;
  }
}

@keyframes waveAnim2 {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: -1440px;
  }
}

/* ریسپانسیو */

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .social-links li {
    display: inline-block;
    margin: 5px 10px;
  }

  .cert-logos {
    justify-content: center;
  }
}




/*صفحه محصولات وردپرس */

.custom-product-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: Tahoma, sans-serif;
    direction: rtl;
}

/* Breadcrumb */
.custom-breadcrumb {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* عنوان محصول */
.custom-product-title {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
}

/* بخش تصویر و باکس کنار هم */
.product-top-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* تصویر شاخص */
.product-image-box {
    order: 1;
    flex: 2;
    min-width: 300px;
}

.product-image-box img {
    width: 100%;
    border-radius: 8px;
}

/* باکس اطلاعات کوچک */
.product-info-box {
    order: 2;
    flex: 1;
    min-width: 250px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* لیست ویژگی‌ها */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-features li {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 15px;
    color: #333;
}

.product-features .checkmark {
    display: inline-block;
    color: #28a745 !important; /* سبز */
    font-weight: bold;
    margin-left: 10px;
    font-size: 18px;
}

/* ✅ فقط رنگ تیک سبز، نه متن */
.product-features li {
    color: #333; /* رنگ متن اصلی */
    background: #f8f8f8;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

/* فقط خود تیک سبز */
.product-features .checkmark {
    color: #28a745 !important;
    font-weight: bold;
    font-size: 18px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* حالت hover برای زیبایی */
.product-features li:hover {
    background: #eefaf0;
    transition: 0.2s;
}


/* قیمت محصول */
.custom-product-price {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-regular {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.price-sale {
    color: #e53935;
    font-weight: bold;
    font-size: 20px;
}

/* دکمه خرید */
.add-to-cart-wrapper .button {
    width: 100%;
    padding: 10px 0;
    background: #0073aa;
    color: #fff !important;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

.add-to-cart-wrapper .button:hover {
    background: #005f8d;
}

/* متن پایین باکس */
.ticket-response {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

/* تب‌ها */
.product-tabs {
    margin-top: 40px;
    clear: both; /* مهم برای جلوگیری از کنار هم بودن */
}

.tabs-nav {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.tabs-nav li {
    cursor: pointer;
    padding: 10px 20px;
    background: #f1f1f1;
    border-radius: 6px 6px 0 0;
    font-weight: bold;
    transition: 0.3s;
}

.tabs-nav li.active {
    background: #0073aa;
    color: #fff;
}

.tabs-nav li:hover {
    background: #0073aa;
    color: #fff;
}

.tabs-content {
    border: 1px solid #ddd;
    border-radius: 0 6px 6px 6px;
    padding: 20px;
    background: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}











/* =============================
   🎠 کروسل محصولات مرتبط
   ============================= */

.related-products-container {
    margin-top: 80px;
    padding: 20px;
    background: #fff;
    position: relative;
}

.related-products-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.related-products-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.related-products-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none; /* برای حذف خط اسکرول در فایرفاکس */
}
.related-products-carousel::-webkit-scrollbar {
    display: none; /* حذف کامل خط اسکرول در کروم */
}

.related-product-item {
    flex: 0 0 calc(22%); /* حدود 4.5 محصول در دسکتاپ */
    min-width: 220px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    scroll-snap-align: start;
    transition: 0.3s;
}

.related-product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.related-product-item img {
    width: 100%;
    border-radius: 12px 12px 0 0;
}

.related-product-item h3 {
    font-size: 15px;
    margin: 10px;
    color: #333;
}

.related-product-item .related-price {
    color: #28a745;
    font-weight: bold;
    margin: 0 10px 15px;
}

/* ناوبری */
.nav-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #555;
    font-size: 26px;
    font-weight: bold;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 2;
}
.nav-btn:hover {
    background: #28a745;
    color: #fff;
}
.prev-btn {
    position: absolute;
    left: -10px;
}
.next-btn {
    position: absolute;
    right: -10px;
}

/* 📱 واکنش‌گرا */
@media (max-width: 1024px) {
    .related-product-item {
        flex: 0 0 calc(30%);
    }
}
@media (max-width: 768px) {
    .related-product-item {
        flex: 0 0 calc(50%);
    }
    .nav-btn {
        display: none; /* مخفی در موبایل */
    }
}
@media (max-width: 480px) {
    .related-product-item {
        flex: 0 0 80%;
    }
}












/* ساختار دو ستونه کنار هم */
.afs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin: 60px 0;
}

/* ستون اسلاید گیفی */
.afs-media {
  width: 50%;
  height: 350px;
  overflow: hidden;
  position: relative;
  border-radius: 18px;
}

/* حرکت روان عمودی */
.scroll-wrapper {
  display: flex;
  flex-direction: column;
  animation: scrollUp 40s linear infinite;
}

/* تصاویر بدون فاصله، فول عرض */
.scroll-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ستون متن */
.afs-text {
  width: 50%;
  box-shadow:0 10px 40px rgba(0,0,0,.6);
  border-radius:10px;
  
  
}

.afs-text h2 {
  font-size: 26px;
  margin-bottom: 15px;
  
}

.afs-text p {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
}

/* انیمیشن */
@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ریسپانسیو موبایل */
@media (max-width: 767px) {
  .afs-row {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .afs-media {
    width: 100%;
    height: 250px; /* ارتفاع کمتر، اسکرول کوتاه‌تر */
  }

  .afs-text {
    width: 100%;
  }
}







/* بخش اسلایدر بدون توقف */
.afs-infinite-slider {
  display: flex;
  align-items: center; /* متن کنار، دقیقاً وسط اسلایدر می‌نشیند */
  justify-content: center;
  gap: 60px;
  padding: 60px 20px;
  border-radius: 22px;

  /* بکگراند سایه روشن لوکس */
  background: linear-gradient(135deg, #ffffff 0%, #f3f3f3 40%, #e8e8e8 100%);
  box-shadow: 0 0 50px rgba(0,0,0,0.06);
}

.afs-slider {
  width: 100%;
  max-width: 420px; /* حداکثر عرض اسلایدر */
  height: 400px;
  overflow: hidden;
  position: relative;
  margin: 0 auto; /* وسط چین شدن اسلایدر */
}

.afs-track {
  display: flex;
  flex-direction: column;
 animation: scrollUp 12s linear infinite;
}

.afs-track div {
  width: 100%;
}

.afs-track img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}


/* متن کنار اسلایدر */
.afs-text {
flex: 1;
  min-width: 260px;
  max-width: 480px;
  color: #222;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
  margin: 0 auto;
  padding: 15px;
}

/* تیتر و متن */
.afs-text h2 {
  font-size: 28px;
  margin-bottom: 14px;
  font-weight: 700;
}
.afs-text p {
  font-size: 17px;
  line-height: 1.9;
  color: #444;
}


/* انیمیشن */
@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
  .afs-infinite-slider {
    flex-direction: column;
    gap: 25px;
    padding: 40px 15px;
  }
  
    .afs-track {
    animation-duration: 20s; /* فقط سرعت را اینجا override می‌کنیم */
  }
  .afs-slider {
    max-width: 80%;
    height: 280px;
  }
 
   .afs-text {
    text-align: center;
    max-width: 90%;
  }

  .afs-text h2 {
    font-size: 22px;
  }
  .afs-text p {
    font-size: 15px;
  }


  }



/* بخش اسلایدر نمونه قالب ها */


    .c5-section{
      max-width:1000px;
      margin:40px auto;
      padding:24px;
      
      border-radius:16px;
      box-shadow:0 10px 40px rgba(0,0,0,.6);
    }
    
    .c5-section {
  background:
    linear-gradient(120deg, #020617 0%, #020617 60%, #1e293b 100%);
  position: relative;
}

.c5-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59,130,246,0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(236,72,153,0.12), transparent 40%);
  pointer-events: none;
}

    .c5-title{
      text-align:center;
      font-size:28px;
      font-weight:bold;
      margin-bottom:10px;
      color: #f8fafc;
    }
    .c5-desc{
      text-align:center;
      color: #cbd5f5 !important;
      margin-bottom:30px;
      line-height:1.9;
    }

    /* slider */
    .slider{
      position:relative;
      overflow:hidden;
      border-radius:18px;
    }
    .slides{
      display:flex;
      transition:transform .6s ease;
    }
    .slide{
      min-width:100%;
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:20px;
      gap:24px;
    }
    .slide img{
      width:32%;
      max-height:100%;
      object-fit:cover;
      border-radius:14px;
      box-shadow:0 8px 30px rgba(0,0,0,.5);
    }
    .slide-content{
      width:55%;
    }
    .slide-content h3{
      font-size:20px;
      margin-bottom:8px;
      color: #cbd5f5 !important;
    }
    .slide-content p{
      color:#bbb;
      line-height:1.8;
      font-size:14px;
    }

    /* nav */
    .nav{
      position:absolute;
      top:50%;
      transform:translateY(-50%);
      background:rgba(0,0,0,.6);
      border:none;
      color:#fff;
      font-size:24px;
      width:44px;
      height:44px;
      border-radius:50%;
      cursor:pointer;
    }
    .nav.prev{right:15px}
    .nav.next{left:15px}

    /* dots */
    .dots{
      display:flex;
      justify-content:center;
      margin-top:15px;
      gap:8px;
    }
    .dot{
      width:10px;
      height:10px;
      background:#555;
      border-radius:50%;
      cursor:pointer;
    }
    .dot.active{background:#ff0055}

    @media(max-width:900px){
      .slide{flex-direction:column}
      .slide img,.slide-content{width:100%}
    }
    
    @media(max-width:900px){
.c5-section{
margin:20px 14px; /* فاصله از کناره‌های موبایل */
padding:18px;
border-radius:14px;
}

    .slide img{
      width:60%;
      max-height:100%;
      object-fit:cover;
      border-radius:10px;
      box-shadow:0 8px 30px rgba(0,0,0,.5);
    }
  }
  
  
  
  
  
  
  /* ===== بخش چرا ساخت سایت با سایتوکس ===== */
.afs-why {
  padding: 60px 20px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
}
.afs-why__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* header */
.afs-why__head {
  text-align: center;
  margin-bottom: 28px;
}
.afs-why__head h2 {
  margin: 0;
  font-size: 28px;
  color: #14213d;
  letter-spacing: .2px;
}
.afs-why__head p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 15px;
}

/* grid */
.afs-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* دسکتاپ: 3 ستون */
  gap: 20px;
  align-items: stretch;
}

/* card */
.afs-feature-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px 18px;
  box-shadow: 0 8px 26px rgba(20,33,61,0.06);
  text-align: center;
  transition: transform .36s cubic-bezier(.2,.9,.2,1), box-shadow .36s;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(18px) scale(.995);
  will-change: transform, opacity;
}

/* visible after scroll (added by JS) */
.afs-feature-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* hover / focus */
.afs-feature-card:hover,
.afs-feature-card:focus {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 48px rgba(20,33,61,0.12);
  outline: none;
}

/* icon circle */
.afs-feature-card .icon {
  font-size: 30px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(11,92,255,0.12), rgba(11,92,255,0.06));
  color: #0b5cff;
  box-shadow: 0 6px 18px rgba(11,92,255,0.06);
}

/* title & description */
.afs-feature-card h3 {
  margin: 0;
  font-size: 18px;
  color: #0f1724;
}
.afs-feature-card p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
  max-width: 320px;
}

/* responsiveness */
/* تبلت و موبایل: 2 ستون، حداکثر خوانایی */
@media (max-width: 992px) {
  .afs-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* موبایل: دو تا دو تا نمایش (همان حالت بالا-پایین) */
@media (max-width: 520px) {
  .afs-why__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .afs-feature-card {
    padding: 18px 12px;
  }
  .afs-feature-card .icon {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
  .afs-feature-card h3 { font-size: 16px; }
  .afs-feature-card p { font-size: 13px; max-width: 260px; }
}

/* RTL friendliness (if page is rtl this works fine) */
:root { --dir: rtl; }
.afs-why, .afs-feature-card { direction: var(--dir); }

/* small accessibility tweak for keyboard users */
.afs-feature-card:focus { box-shadow: 0 20px 50px rgba(11,92,255,0.12); }

