body {
      background-color: #f8f9fa;
      font-family: tahoma;
    }

/* نوار بالا */
.navbar {
    background-color: hwb(204 0% 50%) !important;
}

.navbar .nav-link {
    color: white;
    font-weight: bold;
}

.navbar .nav-link:hover {
    color: #ffd700;
}

/* تصویر هدر */
.header {
    background-image: url('../images/header.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    border-radius: 10px;
    margin: 20px 0;
}

/* فاصله بین سکشن‌ها */
section {
    margin-top: 40px;
}
.category-box {
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

/* کارت‌ها */
.card {
  transition: transform 0.3s ease-in-out;
  height: 140px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

}

.card:hover {
    transform: translateY(-5px);
}

/* فوتر */
footer {
    background: linear-gradient(to right, #004c80, #004c80);
    color: white;
    padding: 30px 0 10px;
    margin-top: 40px;
}

.footer-bottom {
    background-color: #b7e1ff;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}


.horizontal-scroll {
  width: 100%;         /* اندازه عرض بخش */
  overflow-x: auto;    /* اجازه به اسکرول افقی */
  white-space: nowrap; /* جلوگیری از شکستن متن یا المان‌ها */
}

.custom-card {
    display: inline-block;
    max-width: 500px;
    max-height: 350px;     
    background-color: #ffffff; 
}

.products-section {
    background-color: #84c9f7;
    box-shadow: 0px 2px 2px 2px #98dbff;
    border: 1px solid #98dbff;
    border-radius: 20px;
}


/* کانتینر کارت‌ها */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  justify-items: center;
  margin-top: 10px;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

body {
  font-family: tahoma, sans-serif;
  background-color: #f9f9f9;
}

.products-section {
  padding: 20px;
}

.btn-all {
  padding: 6px 12px;
  background: #004c80;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-all:hover {
  background: #4a7baf;
}
.details-btn {
  padding: 2px 6px !important;
  font-size: 12px !important;
}


/* کارت محصول */
.custom-card {
  min-width: 200px;  /* هر کارت حداقل 200px */
  margin: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  flex-shrink: 0; /* نذاره کارت جمع بشه */
  cursor: pointer;
  transition: transform 0.3s;
}

.custom-card:hover {
  transform: scale(1.05); /* وقتی موس رفت روش کمی بزرگ شه */
}

/* عکس محصول */
.custom-card img {
  width: 120px;
  height: 120px;
  object-fit: contain; /* تصویر درست جا میشه */
  margin-bottom: 10px;
}

/* عنوان محصول */
.custom-card .card-title {
  font-size: 14px;
  margin: 10px 0;
  color: #333;
}

/* قیمت */
.custom-card p {
  margin: 5px 0;
}

/* دکمه جزئیات */
.details-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #007bff;
  color: #007bff;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s;
}

.details-btn:hover {
  background: #007bff;
  color: #fff;
}
.indicators {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 5px;
}

.new-next,
.new-prev {
  color: #000 !important; /* اگر روی پس‌زمینه روشن هستند */
  display: block; /* مطمئن شو display: none نیست */
}

.discount-next,
.discount-prev {
  color: #000 !important; /* اگر روی پس‌زمینه روشن هستند */
  display: block; /* مطمئن شو display: none نیست */
}
.details-btn {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 6px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.9rem;
}
.details-btn:hover {
  background: #0056b3;
}
.see-more-container {
  text-align: left; /* برای قرار گرفتن سمت چپ */
  margin-top: 20px;
  margin-bottom: 30px;
  position: relative;
  top: -10p;
}

.see-more-btn {
  background-color: #0056b3;
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0, 184, 148, 0.3);
}

.see-more-btn:hover {
  background-color: #0056b3;
  box-shadow: 0 6px 16px rgba(0, 184, 148, 0.45);
  transform: translateY(-2px);
}
/* --- کارت محصولات --- */
.custom-card {
  background: white;
  border-radius: 16px;
  height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.custom-card img {
  height: 180px;
  width: auto;
  object-fit: contain;
}

.custom-card .card-body {
  width: 100%;
}

/* --- عنوان محصول --- */
.product-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  height: 40px; /* حداکثر دو خط */
}

/* --- فلش‌های ناوبری --- */
.swiper-button-next,
.swiper-button-prev {
  width: 28px !important;
  height: 28px !important;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  color: #333 !important;
  transition: background 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.25);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 14px !important;
  font-weight: bold;
}

/* --- ریسپانسیو (موبایل و تبلت) --- */
@media (max-width: 1024px) {
  .custom-card {
    height: 310px;
  }
}

@media (max-width: 768px) {
  .custom-card {
    height: auto;
    padding: 10px;
  }

  .custom-card img {
    height: 150px;
  }

  .product-title {
    font-size: 13px;
    height: auto;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 24px !important;
    height: 24px !important;
  }
}

@media (max-width: 480px) {
  .custom-card {
    width: 90%;
    margin: 0 auto;
  }

  .product-title {
    font-size: 12px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none; /* مخفی کردن فلش‌ها در موبایل */
  }
}