/* === کادر اصلی === */
.top-selling-section {
  width: 1300px;
  height: 270px;
  margin: 40px auto;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* هدر */
.top-selling-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.top-selling-header h5 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.view-all-link {
  font-size: 0.9rem;
  color: #FF5722;
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* لیست کارت‌ها */
.top-selling-list {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: flex-start;
}

/* کارت محصول */
.top-product-card {
  width: 160px;
  height: 210px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.top-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* تصویر محصول */
.top-product-image {
  width: 100%;
  height: 110px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.top-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* اطلاعات محصول */
.top-product-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 4px 0;
  height: 90px;
}

/* اسم محصول */
.top-product-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  text-decoration: none; /* خط زیر حذف شد */
}

/* حذف کامل خط از قیمت قبلی */
.top-product-old {
  font-size: 12px;
  color: #999;
  width: 100%;
  height: 16px;
  text-align: center;
  line-height: 16px;
  text-decoration: none; /* حذف خط */
  display: block;
}

/* کپسول قیمت */
.top-product-price {
  width: 155px;
  height: 27px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 27px;
  display: inline-block;
  text-decoration: none; /* حذف خط */
  margin-top: 4px;
}

/* قیمت اصلی (خاکستری) */
.top-product-price.original {
  background: #e0e0e0;
  color: #333;
}

/* قیمت تخفیف خورده (نارنجی) */
.top-product-price.discount {
  background: #FF9800;
  color: #fff;
  border: 1px solid #f5c6cb;
}

/* خط روی قیمت تخفیف (روی خودش، نه زیرش) */
.top-product-price.discount .strike-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: translateY(-50%);
}




/* === کپسول‌های کوچک بالای صفحه === */
/* === کپسول‌های کوچک بالای صفحه – نسخه مینیمال و مدرن === */
.top-capsules-container {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  display: flex;
  justify-content: center; /* وسط صفحه */
  gap: 12px;
  padding: 0 10px;
  box-sizing: border-box;
}

.top-capsule {
  display: inline-block;
  padding: 7px 18px;
  background-color: #e8e8e8; /* کمی روشن‌تر از پس‌زمینه اصلی */
  color: #333;
  border-radius: 50px; /* کپسولی */
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* افکت هاور */
.top-capsule:hover {
  background-color: #f0f0f0; /* کمی روشن‌تر از حالت عادی */
  border-color: #999;          /* حاشیه خاکستری هنگام هاور */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  color: #222;                 /* کمی پررنگ‌تر برای متن */
}

.home-categories {
  display: grid;
  grid-template-areas:
    "left-top right1"
    "left-bottom right2"
    "left-bottom right3";
  grid-template-columns: 640px 640px;
  grid-template-rows: 100px 180px 180px; /* افزایش ارتفاع */
  gap: 12px 12px;
  justify-content: center;
  width: 1290px;
  height: 500px; /* ارتفاع کلی جدید */
  margin: 40px auto;
}

/* جای‌گذاری کارت‌ها */
.home-categories .category-card:nth-child(1) {
  grid-area: left-top;
}
.home-categories .category-card:nth-child(2) {
  grid-area: left-bottom;
}
.home-categories .category-card:nth-child(3) {
  grid-area: right1;
}
.home-categories .category-card:nth-child(4) {
  grid-area: right2;
}
.home-categories .category-card:nth-child(5) {
  grid-area: right3;
}

/* استایل کارت‌ها */
.category-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* تصویر */
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* متن روی تصویر */
.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 8px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
  background: rgba(0,0,0,0.7);
}
/* ====== بخش اصلی ====== */
.home-feature-boxes {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin: 40px auto;
  width: 1300px;
}

/* ====== دو ستون (چپ و راست) ====== */
.feature-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ====== هر کارت ====== */
.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  text-align: center;
}

.feature-overlay h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.feature-overlay p {
  font-size: 12px;
  margin-top: 3px;
}

/* ====== اندازه‌ها ====== */

/* ستون چپ — کوچک بالا، بزرگ پایین */
.feature-column:nth-child(1) .feature-card:nth-child(1) {
  width: 640px;
  height: 100px;
}

.feature-column:nth-child(1) .feature-card:nth-child(2) {
  width: 640px;
  height: 250px;
}

/* ستون راست — بزرگ بالا، کوچک پایین */
.feature-column:nth-child(2) .feature-card:nth-child(1) {
  width: 640px;
  height: 250px;
}

.feature-column:nth-child(2) .feature-card:nth-child(2) {
  width: 640px;
  height: 100px;
}
/* بحش بزودی ها */

/* === بخش بزودی‌ها === */
.coming-soon-section {
  width: 1300px;
  height: 270px;
  margin: 40px auto;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* هدر */
.coming-soon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.coming-soon-header h5 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.view-all-link {
  font-size: 0.9rem;
  color: #2196F3;
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* لیست کارت‌ها */
.coming-soon-list {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: flex-start;
}

/* کارت محصول */
.soon-product-card {
  width: 160px;
  height: 210px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

.soon-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* تصویر */
.soon-product-image {
  width: 100%;
  height: 110px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.soon-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* اطلاعات محصول */
.soon-product-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 4px 0;
  height: 90px;
}

/* نام محصول */
.soon-product-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  text-decoration: none; /* حذف خط زیر */
}

/* کپسول قیمت */
.soon-product-price {
  background: #E3F2FD;
  color: #1976D2;
  border-radius: 14px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  width: 130px;
  height: 27px;
  line-height: 19px;
  text-decoration: none; /* حذف خط زیر */
}

/* دکمه پیش‌خرید — هم‌اندازه قیمت */
.preorder-btn {
  background: #64B5F6;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  width: 130px;
  height: 27px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.preorder-btn:hover {
  background: #42A5F5;
  transform: translateY(-2px);
}

/* حذف خطوط زیر لینک کلی */
.soon-product-card a {
  text-decoration: none !important;
}
/* === بخش جدیدترین‌ها === */
.newest-products-section {
  width: 1300px;
  height: 270px;
  margin: 40px auto;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* هدر */
.newest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.newest-header h5 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.view-all-link {
  font-size: 0.9rem;
  color: #009688;
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* لیست کارت‌ها */
.newest-list {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: flex-start;
}

/* کارت محصول */
.newest-card {
  width: 160px;
  height: 210px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

.newest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* تصویر محصول */
.newest-image {
  width: 100%;
  height: 110px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.newest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* اطلاعات محصول */
.newest-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 4px 0;
  height: 90px;
}

/* اسم محصول */
.newest-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  text-decoration: none; /* حذف خط زیر */
}

/* کپسول قیمت */
.newest-price {
  border-radius: 14px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  width: 130px;
  height: 27px;
  background: #E0F2F1;
  color: #00796B;
  text-decoration: none; /* حذف خط زیر */
  line-height: 19px;
}

/* حذف خط زیر لینک کلی */
.newest-card a {
  text-decoration: none !important;
}
:root {
  --orange: #ff7a00;
  --gray: #777;
  --bg: #fff;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.discount-sliders-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px 0;
  direction: rtl;
  font-family: "Vazir", sans-serif;
}

/* 🔸 عنوان بالا */
.discount-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10%;
  margin-bottom: 15px;
}

.discount-header h3 {
  font-size: 22px;
  color: #222;
  font-weight: bold;
}

.discount-header .view-all {
  color: var(--orange);
  text-decoration: none;
  font-weight: bold;
}

/* 🔹 کادر تک محصولی */
.main-product-swiper {
  width: 600px;
  height: 250px;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.main-product-slide {
  display: flex;
  height: 100%;
}

.main-left img {
  width: 45%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px 0 0 12px;
}

.main-right {
  width: 55%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.discount-label {
  color: var(--orange);
  font-weight: bold;
  font-size: 14px;
  background: rgba(255,122,0,0.15);
  padding: 3px 8px;
  border-radius: 8px;
  width: fit-content;
}

.main-right h4 {
  margin: 8px 0;
  font-size: 18px;
  color: #222;
}

.price-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.old-price {
  text-decoration: line-through;
  color: var(--gray);
  font-size: 14px;
}

.new-price {
  font-size: 15px;
  color: #222;
  background: var(--orange);
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  width: fit-content;
}

/* 🔹 کادر چهارمحصولی */
.side-product-swiper {
  width: 680px;
  height: 250px;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.side-item {
  width: 160px;
  height: 240px;
  background: #fafafa;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.side-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

.side-item h5 {
  margin: 6px 0;
  font-size: 13px;
  color: #222;
  height: 32px;
  overflow: hidden;
}

.side-item .old-price {
  text-decoration: line-through;
  font-size: 12px;
  color: var(--gray);
}

.side-item .new-price {
  background: var(--orange);
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 4px;
}

/* دکمه‌های اسلایدر */
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background: rgba(0,0,0,0.4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--orange);
}
