@font-face{
    font-family: "Vazirani Light";
    src: url("../fonts/ttf/Vazirmatn-Light.ttf") format("truetype"),
        url("../fonts/webfonts/Vazirmatn-Light.woff2") format("woff2");
}
@font-face{
    font-family: "Vazirani Bold";
    src: url("../fonts/ttf/Vazirmatn-Bold.ttf") format("truetype"),
        url("../fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
}

/* پایه */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: 'Yekan', 'Vazirani Light', 'Tahoma', sans-serif;
    background: #EEEEEE;
    color: #333;
    line-height: 1.5;
    direction: rtl;
    scroll-behavior: smooth;
    font-weight: 50;

}

/* --- هدر کلی (یک دیو برای همه) --- */
.site-header {
  font-family: 'Vazirani Light', 'Tahoma', sans-serif !important;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 20px;

}

/* --- ردیف هدر (همه داخل یک ردیف) --- */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

/* سمت راست: نام کاربری + ایکون آدمک */
.top-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-left .user-section {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.top-left .user-link {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  transition: color 0.3s;
}

.top-left .user-link:hover {
  color: #ff6600;
}

.top-left .user-icon {
  font-size: 16px;
  color: #ff6600;
}

/* وسط: لوگو */
.top-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-center .logo img {
  height: 50px;
  transition: transform 0.3s;
}

.top-center .logo img:hover {
  transform: scale(1.05);
}

/* سمت چپ: بلاگ */
.top-right {
  display: flex;
  align-items: center;
}

.top-right .blog-link img {
  height: 28px;
  transition: all 0.3s;
}

.top-right .blog-link img:hover {
  transform: scale(1.1);
}

/* --- بخش پایین (سرچ + منو + سبد خرید) --- */
.header-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 5px;
}

/* سرچ */
.search-box {
  display: flex;
  align-items: center;
  background: #f1f1f1;
  border-radius: 25px;
  padding: 4px 12px;
  flex: 1;
  max-width: 250px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  padding: 6px;
  flex: 1;
}

.search-box button {
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  color: #ff6600;
}
/* استایل دسکتاپ برای نام کاربری / ورود + آیکون */
.desktop-user .user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;               /* فاصله بین متن و آیکون */
  font-size: 18px;         /* اندازه متن بزرگتر */
  font-weight: 600;        /* ضخیم‌تر کردن متن */
  color: #212121;          /* رنگ متن */
  text-decoration: none;   /* بدون خط زیرین */
  padding: 6px 12px;       /* فاصله داخلی برای کلیک راحت‌تر */
  border-radius: 8px;      /* گوشه‌های کمی گرد */
  transition: all 0.2s ease;
}

.desktop-user .user-link i {
  font-size: 22px;         /* اندازه آیکون بزرگ‌تر */
  color: var(--main-color); /* رنگ آیکون */
}

/* افکت هاور */
.desktop-user .user-link:hover {
  background-color: rgba(0,0,0,0.05);
}

/* منو */
.main-nav {
  flex: 2;
  text-align: center;
}

.main-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 20px;
}
.total-price{
   max-width: 250px;
}
.main-menu li a {
  color: #333;
  font-weight: 200;
  text-decoration: none;
  transition: color 0.3s;
}

.main-menu li a:hover {
  color: #ff6600;
}

/* استایل مگامنو */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px); /* وسط و کمی بالاتر */
  width: 900px;         /* قابل تغییر */
  height: 400px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  padding: 15px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.12);

  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

/* وقتی روی منو رفت */
.menu-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* میاد پایین */
}


.mega-left ul {
  list-style: none;
}

.mega-left ul li {
  margin-bottom: 8px;
}

.mega-left ul li a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  transition: color 0.3s;
}

.mega-left ul li a:hover {
  color: #ff6600;
}

/* تمام تصاویر داخل منو */
.mega-menu img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-top: 55px;
  margin-bottom: 15px;
  margin-left: 55px;
  margin-right: 55px;
}


/* سبد خرید */
.cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f1f1;
  border-radius: 25px;
  padding: 4px 10px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  position: relative;
  transition: all 0.3s;
}

.cart-link:hover {
  background: #eaeaea;
}

.cart-icon {
  font-size: 18px;
  margin-left: 5px;
}

.cart-info {
  margin-left: 6px;
  font-weight: bold;
  font-size: 13px;
}

.item-count {
  position: absolute;
  top: -7px;
  right: 17px;
  background: red;
  color: #fff;
  border-radius: 50%;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: bold;
}
.cart-dropdown {
  position: relative;
  display: inline-block;
  width: 350px;
  max-width: 250px;
  max-height: 100px;
  text-align: center;

}

.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #EEEEEE;
  padding: 8px 15px;
  border-radius: 30px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}

.cart-link:hover {
  background: #ffe6d5;
}

.cart-icon {
  font-size: 20px;
}

.item-count {
  background: #F9A825;
  color: #424242;
  padding: .5px 3px;
  border-radius: 50%;
  font-size: 10px;
  margin-right: 59px;
  margin-top: 10px;
}

/* ---------- Mini Cart Dropdown ---------- */
.cart-menu {
  position: absolute;
  top: 110%;
  left: 0;
  width: 250px;
  background: #fff;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s ease;
  z-index: 999;
}

/* حالت فعال (نمایش با انیمیشن) */
.cart-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* آیتم‌ها */
.cart-items {
  list-style: none;
  max-height: 250px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.product-model {
  font-size: 12px;
  color: #777;
}

.product-price {
  font-size: 13px;
  color: #ff6600;
  font-weight: bold;
}

/* استایل بسیار جذاب برای دکمه حذف آیتم از سبد خرید */
.remove-item {
  /* موقعیت‌یابی: حتماً والد آن (.cart-item) باید 'position: relative;' داشته باشد */
  position: absolute; /* برای قرارگیری دقیق در گوشه آیتم سبد خرید */
  top: 48px; /* فاصله از بالای آیتم */
  left: 8px; /* فاصله از سمت چپ (برای زبان فارسی که RTL است) */
  /* اگر می‌خواهید سمت راست باشد، از 'right: 8px;' و 'left: auto;' استفاده کنید */

  width: 24px; /* عرض دکمه (کوچکتر شده) */
  height: 24px; /* ارتفاع دکمه (برای دایره‌ای شدن، باید برابر با عرض باشد - کوچکتر شده) */

  border-radius: 50%; /* دایره‌ای کردن کامل دکمه */
  border: none; /* بدون حاشیه */
  background-color: #f0f0f0; /* پس‌زمینه اولیه ملایم */
  color: #888; /* رنگ پیش‌فرض آیکون */
  font-size: 1em; /* اندازه کوچکتر برای آیکون (متناسب با دکمه کوچکتر) */
  cursor: pointer; /* تغییر نشانگر ماوس به دست */
  display: flex; /* برای مرکز قرار دادن آیکون داخل دکمه */
  align-items: center; /* مرکز عمودی آیکون */
  justify-content: center; /* مرکز افقی آیکون */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* سایه ملایم برای ایجاد عمق */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* انیمیشن نرم و جذاب برای تمامی تغییرات */
  z-index: 10; /* مطمئن شوید که روی بقیه محتوا قرار می‌گیرد */
  outline: none; /* حذف خط آبی دور دکمه پس از کلیک (فوکوس) */
}

/* افکت هنگام قرار گرفتن ماوس روی دکمه (هاور) */
.remove-item:hover {
  background-color: #ff4d4d; /* رنگ قرمز جذاب هنگام هاور */
  color: white; /* رنگ سفید آیکون هنگام هاور */
  transform: scale(1.1) rotate(5deg); /* کمی بزرگنمایی و چرخش برای جلوه بیشتر */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); /* سایه بیشتر و عمیق‌تر */
}

/* افکت هنگام کلیک روی دکمه (اکتیو) */
.remove-item:active {
  transform: scale(0.95) rotate(-5deg); /* کمی کوچک شدن و چرخش معکوس هنگام کلیک */
  background-color: #cc0000; /* رنگ قرمز تیره‌تر هنگام کلیک */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}


/* خلاصه سبد خرید */
.cart-summary {
  margin-top: 15px;
  text-align: center;
}

.cart-summary p {
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

.cart-btn {
  display: inline-block;
  background: #ff6600;
  color: #fff;
  padding: 5px 55px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.cart-btn:hover {
  background: #e65500;
}

.empty-cart {
  text-align: center;
  font-size: 14px;
  color: #999;
}
.1 {
  background-color: #ffffff;      /* رنگ پس‌زمینه سفید */
  border-radius: 12px;            /* گوشه‌های گرد */
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);  /* سایه نرم برای عمق */
  padding: 25px;                  /* فاصله داخل کادر */
  max-width: 200px;              /* حداکثر عرض */
  margin: 30px auto;              /* فاصله از بالا و وسط صفحه */
  display: flex;
  flex-direction: row;            /* چیدمان افقی محتوا */
  gap: 30px;                       /* فاصله بین بخش تصویر و جزئیات */
}

.product-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  direction: rtl;
}

/* سمت راست : گالری */
.product-gallery {
  flex: 0 0 45%;
}
.main-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.gallery-thumbnails {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gallery-thumbnails img,
.gallery-thumbnails video {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: transform .3s;
}
.gallery-thumbnails img:hover,
.gallery-thumbnails video:hover {
  transform: scale(1.1);
}

/* سمت چپ : اطلاعات */
.product-info {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product-title {
  font-size: 32px;
  font-weight: bold;
  color: #222;
}
.manufacturer {
  font-size: 16px;
  color: #444;
}
.meta {
  display: flex;
  gap: 25px;
  font-size: 15px;
  color: #555;
}
.description h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #007bff;
}
.description p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

/* کارت قیمت */
.price-card {
  background: #f8f9fa;
  border: 2px dashed #007bff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 16px;
}
.new-price {
  color: #e63946;
  font-weight: bold;
  font-size: 20px;
  margin: 10px 0;
}
.price-card button {
  background: #007bff;
  border: none;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all .3s;
}
.price-card button:hover {
  background: #0056b3;
}

/* دکمه‌ها */
.actions {
  display: flex;
  gap: 15px;
}
.actions button {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .3s;
}
.like-button {
  background: #ff6b6b;
  color: white;
}
.save-button {
  background: #20c997;
  color: white;
}
.like-button:hover { background: #d62828; }
.save-button:hover { background: #0b9e7d; }

.product-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;               /* فاصله منطقی بین بلوک‌ها */
  flex-wrap: wrap;          /* روی موبایل ستون‌ها زیر هم قرار بگیرند */
  background: #fff;
  padding: 20px;
  margin: 50px auto;
  max-width: 1200px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  direction: rtl;           /* اگر متن راست‌چین است */
}


/* گالری تصاویر */
.product-gallery {
  flex: 1;
  min-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* محتوا چپ چین */
  justify-content: flex-start;
  width: 100%;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
/* ===== گالری اصلی ===== */
.main-media {
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff; /* یکی با پس‌زمینه */
  overflow: hidden;
}

.main-media img,
.main-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== تصاویر کوچک ===== */
.thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.thumbnails .thumb {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
}

.thumbnails .thumb:hover {
  transform: scale(1.08);
}

.thumb.active {
  border-color: #007bff;
}

/* ===== مودال (کادر نمایش بزرگ) ===== */
.media-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.modal-content img,
.modal-content video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

/* مودال نمایش رسانه */
.media-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  animation: fadeIn .3s ease;
}

/* محتوای داخل مودال */
.media-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  max-width: 80%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* تصویر یا ویدیو */
.media-modal-content img,
.media-modal-content video {
  width: 600px;
  height: 400px;
  object-fit: cover; /* یا contain برای حالت داخل قاب */
  border-radius: 10px;
  background: #f2f2f2;
}

/* نام محصول زیر تصویر */
.media-title {
  margin-top: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

/* دکمه بستن */
.close-modal {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #fff;
  color: #000;
  font-size: 22px;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  transition: all .3s;
}

.close-modal:hover {
  background: #f00;
  color: #fff;
}

/* انیمیشن */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* جزئیات محصول */
.post {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* محتوا چپ چین */
  justify-content: flex-start;
  width: 100%;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.product-details {
  display: flex;
  flex-direction: column; /* همه عناصر زیر هم */
  align-items: flex-start; /* محتوا از سمت چپ */
  justify-content: flex-start;
  width: 100%;
  gap: 12px;              /* فاصله بین عناصر */
  padding: 0;
  margin: 0;
}
.product-details .manufacturer a {
  color: #64B5F6;           /* رنگ جذاب برای لینک */
  text-decoration: none;    /* حذف خط زیر لینک */
  font-weight: bold;        /* کمی پررنگ برای جلوه بهتر */
  transition: color 0.3s;   /* افکت تغییر رنگ هنگام هاور */
}

.product-details .manufacturer a:hover {
  color: #e63e00;           /* رنگ متفاوت هنگام هاور */
}
.product-details .category a {
  color: #64B5F6;           /* رنگ جذاب برای لینک */
  text-decoration: none;    /* حذف خط زیر لینک */
  font-weight: bold;        /* کمی پررنگ برای جلوه بهتر */
  transition: color 0.3s;   /* افکت تغییر رنگ هنگام هاور */
}

.product-details .category a:hover {
  color: #e63e00;           /* رنگ متفاوت هنگام هاور */
}
.product-description-3 {
  display:
  flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.product-description-3 h4 {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  margin: 0;
  white-space: normal; /* مطمئن شو متن بشکنه */
}

/* قیمت اصلی خط خورده و چشمک زن */
.original-price {
  text-decoration: line-through; /* خط خوردن */
  color: red;                     /* رنگ قرمز */
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: bold;
  animation: blink 1s infinite;   /* افکت چشمک زدن */
}

/* تعریف انیمیشن چشمک زن */
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

#add-cart {
  background: linear-gradient(135deg, #ff4b2b, #ff416c);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 14px 58px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 65, 108, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

#add-cart:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255, 65, 108, 0.5);
}

#add-cart:active {
  transform: scale(0.97);
}

/* ✨ انیمیشن موج نور هنگام hover */
#add-cart::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
}

#add-cart:hover::before {
  left: 125%;
}

.like-percentage {
  display: flex;
  flex-direction: column; /* زیر هم قرار گرفتن محتوا */
  align-items: center;    /* وسط چین افقی */
  justify-content: center; /* وسط چین عمودی */
  gap: 5px;               /* فاصله بین آیتم‌ها */
  width: 20%;             /* اندازه دلخواه */
  max-width: 2200px;      /* حداکثر عرض */
  margin: 0 auto 15px auto; /* وسط صفحه و فاصله پایین */
  font-size: 14px;
  color: #555;
  text-align: center;     /* متن وسط چین */
}

.like-percentage i {
  font-size: 15px;
  color: #ff4d4d;
}

/* تصویر داخل like-percentage */
.like-percentage .like-image {
  margin-top: 85px;
  width: 220px;    /* اندازه دلخواه */
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.sms {
  width: 100%;
  max-width: 1000px;
  max-height: 36px;
  margin: 5px auto 0 auto; /* فاصله خیلی کم از بالا */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px; /* فاصله خیلی کم بین پیام‌ها */
  position: relative;
  z-index: 10;
}

/* پیام‌ها جمع و جورتر */
.save-message,
.like-message {
  width: 100%;
  padding: 6px 10px; /* کمتر از قبل */
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  line-height: 1.4;
}

/* نمایش پیام */
.save-message.show,
.like-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* ذخیره موفق */
.save-message {
  background: #26C6DA;
  color: #212121;
  border: 1px solid #b7e0bb;
}

/* حذف ذخیره */
.save-message.remove {
  background: #26C6DA;
  color: #212121;
  border-color: #f5c6cb;
}

/* پیام لایک */
.like-message {
  background: #4FC3F7;
  color: #a61e4d;
  border: 1px solid #f5c2cb;
}

/* حذف لایک */
.like-message.remove {
  background: #81D4FA;
  color: #c62828;
  border-color: #f5b5b5;
}


/* انیمیشن سبک ظاهر شدن */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* نوار آیکون‌ها */
.icon-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

/* دکمه‌ها به‌صورت دایره */
.icon-bar button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #ffffff;          /* پیش‌فرض سفید */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* آیکون‌ها */
.icon-bar i {
  font-size: 22px;
  color: #555;
  transition: color 0.3s ease;
}
/* ✅ کادر اصلی */
.similar-products-container {
  width: 1200px;
  height: 270px;
  background: #fff;
  border-radius: 16px;
  margin: 40px auto;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.similar-products-container h2 {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  border-right: 4px solid #ff4d4d;
  padding-right: 8px;
  align-self: flex-start;
}

/* ✅ ردیف محصولات */
.similar-products {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* ✅ کارت محصول */
.product-card {
  width: 160px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ✅ تصویر محصول */
.product-image {
  width: 100%;
  height: 125px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* ✅ اطلاعات زیر تصویر */
.product-info {
  padding: 6px 4px 0;
}

/* ✅ نام محصول */
.product-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin: 4px 0;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card a {
  text-decoration: none;
}

.product-price {
  display: flex;
  flex-direction: column;
  align-items: center;   /* وسط کارت افقی */
  justify-content: flex-end; /* پایین کارت */
  height: 100%;           /* کل ارتفاع والد */
  margin-top: auto;       /* فضای بالا را پر می‌کند */
  gap: 2px;
  font-size: 10px;
  line-height: 1.3;
}

.product-price .new-price {
  background: #64B5F6;
  color: #2e7d32;
  padding: 1px 6px;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid #a5d6a7;
  display: inline-block;
  font-size: 15px;

  text-align: center;
}
/* ✅ حالت تخفیف */
.product-price.discounted {
  gap: 1px; /* فاصله کمتر بین دو قیمت */
}
.product-price.discounted .old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 12px;
  line-height: 1;

}
.product-price.discounted .new-price {
  background: #FF9800;
  color: #FAFAFA;
  font-weight: 600;
  border: 1px solid #f5c6cb;
  padding: 1px 6px;
  border-radius: 14px;
  font-size: 15px;
  width: 140px; /* عرض ثابت برای همه کپسول‌ها */

}
/* والد قیمت */
.product-price-1 {
  display: flex;
  flex-direction: column;     /* قرارگیری عمودی محتوا */
  align-items: center;        /* وسط چین افقی */
  justify-content: flex-end;  /* پایین کارت */
  height: 100%;               /* کل ارتفاع والد */
  margin-top: 24px;           /* فضای خالی بالای قیمت */
  gap: 2px;
  font-size: 12px;            /* اندازه متن والد */
  line-height: 1.3;
}

.product-price-1 .new-price-1 {
  background: #4CAF50;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid #4CAF50;
  display: inline-block;
  font-size: 14px;
  text-align: center;
  width: 140px; /* عرض ثابت برای همه کپسول‌ها */
  box-sizing: border-box; /* اطمینان از محاسبه padding داخل عرض */
  transition: all 0.3s ease;
}


/* اختیاری: وقتی موس روی قیمت می‌رود */
.product-price-1 .new-price-1:hover {
  background: #4CAF50;
  color: #ffffff;
  transform: translateY(-2px); /* کمی بالاتر می‌رود */
}

:root {
  --main-color: #FF5722;
  --gradient: linear-gradient(135deg, #CFD8DC, #CFD8DC);
  --radius: 14px;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.product-tabs {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fadeIn 0.8s ease;
}

/* دکمه‌ها */
.tab-buttons {
  display: flex;
  justify-content: space-around;
  background: var(--gradient);
  padding: 8px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #A1887F;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  font-size: 15px;
}

.tab-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: #fff;
  color: var(--main-color);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* محتوا */
.tab-content {
  display: none;
  padding: 25px;
  animation: fadeIn 0.6s ease;
}

.tab-content.active {
  display: block;
}
.answer {
  background: #e3f2fd;
  border-radius: 8px;
  padding: 10px;
  margin-top: 6px;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* 🌟 استایل معرفی محصول */
#intro {
  background: #fdfdfd;
  padding: 40px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.05);
  animation: fadeInIntro 0.6s ease;
}

/* کانتینر کلی محتوا */
#intro .product-contents {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: stretch;
}

/* فقط تصاویر و ویدیوها کادر بگیرند */
#intro img,
#intro video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.35s ease;
  background: #fff;
}

/* افکت هاور روی رسانه‌ها */
#intro img:hover,
#intro video:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}

/* ویدیو */
#intro video {
  background: #000;
}

/* متن‌ها بدون کادر */
#intro p {
  color: #333;
  font-size: 16px;
  line-height: 1.9;
  text-align: justify;
  margin: 0;
}

/* عنوان */
#intro h1,
#intro h2 {
  color: var(--main-color);
  font-weight: 700;
  font-size: 22px;
  border-right: 4px solid var(--main-color);
  padding-right: 12px;
  margin-bottom: 25px;
  text-align: right;
}

/* انیمیشن */
@keyframes fadeInIntro {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* عنوان بخش مشخصات */
.features-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 20px;
  border-right: 4px solid var(--main-color);
  padding-right: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* شبکه ویژگی‌ها */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

/* هر ویژگی (کارت) */
.feature-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 87, 34, 0.1);
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 87, 34, 0.15);
  border-color: rgba(255, 87, 34, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

/* آیکون کنار ویژگی */
.feature-icon {
  font-size: 22px;
  margin-left: 10px;
  color: var(--main-color);
  flex-shrink: 0;
}

/* بخش متن ویژگی */
.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-name {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.feature-value {
  color: #666;
  font-size: 14px;
  margin-top: 2px;
}
.comments-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-card {
  background: #EEEEEE;
  border-radius: 14px;
  padding: 15px 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #444;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.comment-author {
  color: #212121;
}

.comment-date {
  color: #777;
  font-size: 13px;
}

.comment-body {
  font-size: 15px;
  color: #333;
  line-height: 1.8;
  background: #f9f9f9;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #eee;
}

.no-comments {
  text-align: center;
  color: #999;
  font-style: italic;
  margin-top: 20px;
}

/* ✅ فرم ثبت نظر */
.add-comment form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 25px;
}

.add-comment textarea {
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 12px 14px;
  font-size: 14px;
  resize: none;
  background: #fafafa;
  transition: all 0.3s ease;
}

.add-comment textarea:focus {
  outline: none;
  border-color: #212121;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,87,34,0.2);
}

.add-comment button {
  background: var(--main-color);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.add-comment button:hover {
  background: #e64a19;
  transform: translateY(-1px);
}
.comment-button, .question-button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 22px;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
}

/* رنگ معمولی آیکون‌ها */
.comment-button i {
  color: #FFEB3B; /* زرد */
}

.question-button i {
  color: #FF5722; /* نارنجی اصلی */
}

/* وقتی موس روی دکمه رفت */
.comment-button:hover, .question-button:hover {
  background: rgba(0,0,0,0.08);
  transform: scale(1.1);
}

/* تغییر رنگ آیکون در هاور */
.comment-button:hover i {
  color: #FFC107; /* طلایی‌تر */
}

.question-button:hover i {
  color: #FF7043; /* نارنجی روشن‌تر */
}
.login-reminder {
  background: linear-gradient(135deg, #fff9c4, #fffde7);
  border: 1px solid #ffecb3;
  color: #4e342e;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  font-size: 15px;
  text-align: center;
  margin: 20px auto;
  max-width: 600px;
  animation: fadeIn 0.5s ease-in-out;
}

.login-reminder::before {
  content: "🔒 ";
  font-size: 18px;
}

.login-reminder a {
  color: #ff7043;
  font-weight: 600;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.login-reminder a:hover {
  background-color: #ffe0b2;
  color: #d84315;
  text-decoration: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.no-comments {
  background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
  border: 1px solid #d1c4e9;
  color: #4a148c;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  font-size: 15.5px;
  font-weight: 500;
  text-align: center;
  margin: 25px auto;
  max-width: 600px;
  position: relative;
  animation: pulseGlow 2s infinite ease-in-out;
}

.no-comments::before {
  content: "💬 ";
  font-size: 18px;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(103, 58, 183, 0.3); }
  50% { box-shadow: 0 0 20px rgba(156, 39, 176, 0.4); }
  100% { box-shadow: 0 0 10px rgba(103, 58, 183, 0.3); }
}
.qa-section {
  background: #fafafa;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  margin-top: 20px;
  transition: all 0.3s ease;
}

.qa-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qa-item {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qa-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.qa-user {
  color: #212121;
  font-weight: 600;
}

.qa-question {
  font-size: 15.5px;
  color: #333;
  margin-bottom: 8px;
}

.qa-text {
  margin-top: 6px;
  font-weight: 500;
  color: #424242;
}

.qa-answer {
  background: #E0E0E0;
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 10px;
  color: #212121;
  font-size: 14.5px;
}

.qa-pending {
  display: inline-block;
  color: #f57c00;
  font-style: normal;
  font-weight: 500;
  margin-top: 6px;
}

.no-questions {
  background: linear-gradient(135deg, #e3f2fd, #ede7f6);
  color: #4527a0;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.qa-form {
  margin-top: 25px;
  background: #fff;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.qa-form textarea,
.qa-form input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
  font-family: inherit;
  resize: vertical;
}

.qa-submit {
  display: block;
  width: 100%;
    background: var(--main-color);
  color: #fff;
  border: none;
  padding: 14px 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(123, 31, 162, 0.2);
}

.qa-submit:hover {
  background: #e64a19;  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 31, 162, 0.3);
}

.qa-submit:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(123, 31, 162, 0.2);
}


.qa-login {
  margin-top: 20px;
  background: #fff3e0;
  color: #e65100;
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #ffe0b2;
  font-weight: 500;
}

.qa-login a {
  color: #d84315;
  text-decoration: none;
  font-weight: bold;
}

.qa-login a:hover {
  text-decoration: underline;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.25s ease;
  border: 1px solid #ddd;
  background: #fff;
}

.pagination a:hover {
  background: #FF7043;
  color: #fff;
  border-color: #6c63ff;
  transform: translateY(-2px);
}

.pagination .current-page {
  background: linear-gradient(90deg, #F9A825, #D84315);
  color: white;
  border: none;
  font-weight: bold;
  transform: scale(1.1);
}


/* === پرفروش‌ترین‌ها در بخش صفخه اصلی === */
