/* 
Theme Name: Hello Child
Theme URI: https://elementor-site.ir/
Description: 
Author: Elementor Site
Author URI: https://sitox.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
*/

/* ==============================
   رنگ‌های سراسری سایت با CSS variables
============================== */
:root {
    --site-bg: #f9fafb;             /* پس‌زمینه کل سایت */
    --site-bg-alt: #ffffff;         /* باکس‌ها */
    --site-text: #111827;           /* متن اصلی */
    --site-text-light: #6b7280;     /* متن کم‌رنگ */
    --site-primary: #ff0000;        /* رنگ اصلی سایت */
    --site-accent: #22c55e;         /* رنگ تاکید */
    --button-bg: var(--site-primary);
    --button-text: #ffffff;
    --button-hover: #dc2626;
}

/* بدنه سایت */
body {
    background-color: var(--site-bg);
    color: var(--site-text);
    font-family: 'Vazir', sans-serif;
    line-height: 1.8;
}

/* باکس‌ها */
.site-content, .woocommerce ul.products li.product, .dashboard-section {
    background-color: var(--site-bg-alt);
}

/* لینک‌ها */
a {
    color: var(--site-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--site-accent);
}

/* دکمه‌ها */
button,
input[type="submit"],
input[type="button"],
.hc-cta-store,
.hc-mobile-cta,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button {
    background-color: var(--button-bg) !important;
    color: var(--button-text) !important;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

button:hover,
.hc-cta-store:hover,
.hc-mobile-cta:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--button-hover) !important;
    opacity: 0.9;
}


/* ==============================
   فونت‌ها
============================== */
@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 {
    font-family: 'Vazir', sans-serif !important;
    background-color: var(--site-bg);
    color: var(--site-text);
    line-height: 1.8;
}

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





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 {
  margin: 40px auto;
  padding: 20px;
  max-width: 100%;
}

.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-best {
  background: var(--best-color);
}

/* تخفیفی */
.afs-sale {
  background: var(--sale-color);
}

/* جدیدترین */
.afs-latest {
  background: var(--latest-color);
}



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

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








.sitox-slider {
    position: relative;
    width: 100%;
    height: 400px; /* ارتفاع دسکتاپ */
    overflow: hidden;
}

.sitox-slide {
    position: relative; /* absolute نباشه */
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sitox-slide.active {
    opacity: 1;
}

/* تصویر داخل اسلاید */
.sitox-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تصویر تمام فضا رو پر می‌کنه بدون بریدگی */
    display: block;
    object-position: center center;
}

/* لینک کل اسلاید */
.sitox-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* دکمه‌ها روی تصویر */
.sitox-slider-prev,
.sitox-slider-next {
    position: absolute;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    bottom: 20px; /* روی تصویر */
}

.sitox-slider-prev { right: 70px; }
.sitox-slider-next { right: 20px; }

/* موبایل */
@media (max-width: 768px) {
    .sitox-slider {
       
         height: auto;
        min-height: 220px;
    }
    .sitox-slider-prev,
    .sitox-slider-next {
        width: 23px;
        height: 23px;
        font-size: 1.2rem;
        bottom: 3px;
    }
    .sitox-slider-prev { right: 55px; }
    .sitox-slider-next { right: 15px; }
    
    
    .sitox-slide-img {
      object-fit: contain;
        width: 100%;
        height: 100%;
        background: #000;
}

}





/* ایستاگرام */
.story-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
}

.story-item {
    width: 90px;
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
}

.story-thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ff0066;
}

.story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-title {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* مودال */
.story-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    z-index: 9999;
}

.story-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.story-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: black;
}

.story-actions {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.buy-btn,
.details-btn {
    padding: 10px 18px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
}

.buy-btn {
    background: #ef394e;
    color: #fff;
}

.details-btn {
    background: #fff;
}

.close-story {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}
.story-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.story-content {
    position: relative;
    width: 100%;
    height: 100%;
}

#storyVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: auto;
}

.close-story {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #fff;
    z-index: 100000;
    cursor: pointer;
}

.story-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.story-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#storyVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* دکمه‌ها */
.story-actions {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.story-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* بستن */
.close-story {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  z-index: 3;
}
.story-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* قاب ریلز */
.story-wrapper {
  position: relative;
  width: 300px;
  max-width: 92vw;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}

/* ویدئو */
#storyVideo {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 👈 مهم */
  background: #000;
  z-index: 1;
}

/* دکمه‌ها */
.story-actions {
  position: absolute;
  bottom: 60px; /* بالاتر از کنترل ویدئو */
  left: 12px;
  right: 12px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.story-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* ضربدر */
.close-story {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  z-index: 6;
}

/* کنترل ویدئو همیشه دیده بشه */
video::-webkit-media-controls {
  z-index: 4;
}


/* حذف دکمه فول‌اسکرین */
video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

video::-webkit-media-controls-play-button {
  z-index: 3;
}

/* حذف منوی سه نقطه */
video::-webkit-media-controls-overflow-button {
  display: none !important;
}

video::-webkit-media-controls-download-button {
  display: none !important;
}

video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
}






.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; }
}































































/* بخش فرم افزودن محصول و  ایستاگرام جدول */
.ig-dashboard-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.ig-add-product,
.ig-products-list {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.ig-add-product h3,
.ig-products-list h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.ig-add-product label {
    display: block;
    margin: 10px 0 5px;
}

.ig-add-product input,
.ig-add-product select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
}

.dashboard-btn-blue {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.dashboard-btn-small {
    background: #f0f0f0;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.dashboard-btn-red {
    background: #d63638;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.ig-products-list table {
    width: 100%;
    border-collapse: collapse;
}

.ig-products-list th,
.ig-products-list td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}




































/* === فوتر کامل === */
.animated-wave-footer {
    position: relative;
    overflow: hidden;
    background-color: <?php echo esc_attr($footer_bg); ?> !important;
    color: <?php echo esc_attr($footer_text); ?> !important;
    padding-top: 60px;
    padding-bottom: 40px;
    font-family: 'Vazirmatn', sans-serif;
}

/* محتوای داخلی فوتر */
.animated-wave-footer .footer-content {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    color: <?php echo esc_attr($footer_text); ?> !important;
    background: transparent !important; /* اجازه بده رنگ والد دیده بشه */
}

/* درباره ما */
.animated-wave-footer .footer-content > p {
    flex: 0 0 30%;
    line-height: 1.9;
    margin: 0;
}

/* شبکه‌های اجتماعی */
.animated-wave-footer .social-links {
    flex: 0 0 20%;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.animated-wave-footer .social-links a {
    color: <?php echo esc_attr($footer_link); ?> !important;
    text-decoration: none;
    font-size: 14px;
}

.animated-wave-footer .social-links a:hover {
    opacity: 0.8;
}

/* ستون‌ها (لینک‌ها + نمادها) */
.animated-wave-footer .footer-col {
    flex: 0 0 20%;
}

.animated-wave-footer .footer-col h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: <?php echo esc_attr($footer_text); ?> !important;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.animated-wave-footer .footer-links li {
    margin-bottom: 8px;
}

.animated-wave-footer .footer-links a {
    color: <?php echo esc_attr($footer_link); ?> !important;
    text-decoration: none;
    font-size: 14px;
}

.animated-wave-footer .footer-links a:hover {
    opacity: 0.8;
}

/* نمادها */
.animated-wave-footer .cert-logos img {
    height: 65px;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 10px;
}

/* پایین فوتر */
.animated-wave-footer .footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: <?php echo esc_attr($footer_text); ?> !important;
      position: relative;
  z-index: 20;
}

/* موج‌ها */
.animated-wave-footer .wave,
.animated-wave-footer .wave-wrapper {
    background-color: <?php echo esc_attr($footer_bg); ?> !important;
}

/* موبایل */
@media (max-width: 768px) {
  .animated-wave-footer .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .animated-wave-footer .footer-content > p,
  .animated-wave-footer .social-links,
  .animated-wave-footer .footer-col {
    width: 100%;
    max-width: 100%;
  }

  .animated-wave-footer .social-links li {
    display: inline-block;
    margin: 6px 10px;
  }

  .animated-wave-footer .footer-links li {
    margin-bottom: 10px;
  }
}


/* --- انیمیشن موج --- */
.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;
  }
}



/*تماس با ما */

.contact-landing {
    max-width: 720px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: inherit;
    line-height: 1.8;
}

.contact-landing h1 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-description {
    margin-bottom: 30px;
    color: #444;
    font-size: 15px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #eee;
}

.contact-info li {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #222;
}

.contact-info strong {
    display: inline-block;
    min-width: 90px;
    color: #000;
    font-weight: 500;
}

/*قوانین و مقررات */


.rules-landing {
    padding: 60px 20px;
    background: #fafafa;
}

.rules-container {
    max-width: 800px;
    margin: 0 auto;
}

.rules-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.rules-list {
    list-style: none;
    padding: 0;
    counter-reset: rule;
}

.rules-list li {
    position: relative;
    background: #fff;
    margin-bottom: 12px;
    padding: 14px 56px 14px 18px; /* 👈 فاصله امن برای عدد */
    border-radius: 12px;
    line-height: 1.8;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

/* دایره مشکی عدد */
.rules-list li::before {
    counter-increment: rule;
    content: counter(rule);
    position: absolute;
    right: 16px;
    top: 14px;
    width: 28px;
    height: 28px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-empty {
    text-align: center;
    color: #777;
}






/* 🔹 دو بنر کنار هم */
/* 🔹 اسلایدر */
.home-slider {
    margin-bottom: 30px;
}

/* 🔹 کانتینر بنرها */
.home-banners-wrapper {
    padding: 0 15px; /* فاصله از چپ و راست */
    margin-bottom: 30px;
}

.home-banners {
    display: flex;
    gap: 20px; /* فاصله بین بنرها */
    flex-wrap: wrap;
    justify-content: space-between;
}

.home-banner-card {
    flex: 1 1 calc(50% - 10px); /* دو بنر کنار هم با فاصله */
    max-height: 250px;
    overflow: hidden;
    border-radius: 12px;
}

.home-banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* 🔹 موبایل */
@media (max-width:768px){
    .home-banners {
        flex-direction: column;
        gap: 15px;
    }
    .home-banner-card {
        flex: 1 1 100%;
        max-height: 200px;
    }
}

.home-slider {
    font-size: 0; /* متن خام صفر میشه */
}
.home-slider img, 
.home-slider .slider-item {
    font-size: initial; /* عناصر واقعی اندازه درستشون */
}








/***صفحه بلاگ****/

.custom-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 20px 0;
}

.blog-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-card-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 15px;
}

.blog-card-title {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: #333;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.blog-card-btn {
  display: inline-block;
  padding: 8px 15px;
  background: #3498db;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.blog-card-btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

/* Pagination */
.custom-pagination {
  margin: 30px 0;
  text-align: center;
}

.custom-pagination ul {
  display: inline-flex;
  list-style: none;
  padding: 0;
}

.custom-pagination ul li {
  margin: 0 5px;
}

.custom-pagination ul li a,
.custom-pagination ul li span {
  display: block;
  padding: 8px 12px;
  color: #3498db;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.custom-pagination ul li a:hover {
  background: #3498db;
  color: #fff;
}

.custom-pagination ul li .current {
  background: #3498db;
  color: #fff;
  border-color: #3498db;
}

/* موبایل */
@media (max-width: 768px) {
  .custom-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
.custom-pagination ul li.disabled span {
  color: #bbb;
  border-color: #ddd;
  cursor: not-allowed;
  background: #f5f5f5;
}

/* سینگل مطالب */


.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;
}













/* ---  ویژگی های ارسال سریع و ایکون --- */
.home-features {
  
  padding: 40px 20px;
}

.home-features-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.feature-item img {
  width: 70px;
  height: auto;
  margin-bottom: 15px;
}

.feature-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #020617;
}

.feature-item p {
  font-size: 14px;
  color: #475569;
  margin: 0;
}

/* موبایل */
@media (max-width: 768px) {
  .home-features-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}



/* === hover animation for home features === */
.home-features {
  transition: background-color 0.3s ease;
}

.home-features .feature-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-features .feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.home-features .feature-item img {
  transition: transform 0.35s ease;
}

.home-features .feature-item:hover img {
  transform: scale(1.08);
}




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

.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;
}

/* گالری محصول */
.product-gallery-thumbs{
    display:flex;
    gap:10px;
    margin-top:12px;
    overflow-x:auto;
}

.product-gallery-thumbs img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:6px;
    cursor:pointer;
    border:2px solid transparent;
}

.product-gallery-thumbs img:hover{
    border-color:#0073aa;
}


/* تعداد انبار موجودی */
.stock-status{
    font-size:14px;
    font-weight:bold;
}

.stock-status.in{
    color:#2e7d32;
}

.stock-status.out{
    color:#c62828;
}

.disabled-buy{
    width:100%;
    background:#ccc;
    cursor:not-allowed;
}

/* مشخصات فنی و نحوه مصرف */

/* فاصله کلی تب‌ها از بالا */
.product-tabs,
.tabs-nav {
  margin-top: 30px;
}

/* نوار تب‌ها */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

/* تب غیرفعال */
.tabs-nav li {
  flex: 1 1 auto;
  min-width: 140px;
  text-align: center;
  padding: 12px 16px;
  background: #fafafa;              /* همرنگ بدنه اما مشخص */
  border: 1px solid #dcdcdc;        /* خط دور تب */
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #444;
  transition: all 0.2s ease;
  user-select: none;
}

/* hover برای فهمیدن اینکه کلیکه */
.tabs-nav li:hover {
  border-color: #0073aa;
  color: #0073aa;
  background: #f3f9fd;
}

/* تب فعال */
.tabs-nav li.active {
  background: linear-gradient(135deg, #0073aa, #0096dd);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 15px rgba(0,115,170,0.25);
}

/* محتوای تب */
.tabs-content {
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}

/* نمایش محتوا */
.tab-content {
  display: none;
}

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

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

  .tabs-nav {
    gap: 8px;
  }

  .tabs-nav li {
    flex: 1 1 100%;   /* هر تب یک ردیف */
    font-size: 14px;
    padding: 14px;
  }

}

/* فاصله امن تب‌ها از فوتر */
.product-tabs,
.tabs-content {
  margin-bottom: 60px;
}

/* موبایل کمی نفس بیشتر */
@media (max-width: 768px) {
  .product-tabs,
  .tabs-content {
    margin-bottom: 80px;
  }
}



/* کانتینر کل نظرات */
.tab-content#tab-faq {
    padding: 20px;
    background: #fefefe;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* هر نظر */
.tab-content#tab-faq .comment {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* افکت hover */
.tab-content#tab-faq .comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* نام نویسنده و تاریخ */
.tab-content#tab-faq .comment .comment-author {
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.tab-content#tab-faq .comment .comment-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* متن نظر */
.tab-content#tab-faq .comment .comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* دکمه پاسخ (اختیاری، اگر بخوای بعدا اضافه کنی) */
.tab-content#tab-faq .comment .reply {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 12px;
    background: linear-gradient(90deg, #0073aa, #00aaff);
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}

.tab-content#tab-faq .comment .reply:hover {
    background: linear-gradient(90deg, #005f8d, #0088cc);
}

/* فرم افزودن نظر */
#respond {
    margin-top: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

#respond textarea {
    width: 100%;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: vertical;
}

#respond input[type="submit"] {
    margin-top: 10px;
    background: linear-gradient(90deg, #0073aa, #00aaff);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

#respond input[type="submit"]:hover {
    background: linear-gradient(90deg, #005f8d, #0088cc);
}
