html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: #f1f6ef;
  color: #00622c;
  direction: rtl;
}
@font-face {
  font-family: ms-madi;
  src: url(../font/MsMadi-Regular.ttf);
}
.title {
  font-family: ms-madi;
  margin-bottom: -15px;

  font-size: 70px;
}

/* ===== Slider ===== */
.slider {
  position: relative;
  height: 320px; /* ارتفاع بیشتر */
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    to top,
    rgba(36, 62, 35, 0.75),
    rgba(40, 62, 35, 0.1)
  ); */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 1px;
}

.category-menu {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f0f6ef;
  display: flex;
  overflow-x: auto;
  padding: 10px 0;
  gap: 10px;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-menu::-webkit-scrollbar {
  display: none;
}

.category-menu a {
  flex: 0 0 auto;
  padding: 8px 18px;
  background: #fff;
  border-radius: 25px;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.category-menu a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: #d3e0d4;
}

.category-menu a.active {
  background: #00622c;
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.category-menu a {
  text-decoration: none;
  color: #00622c;
  font-weight: bold;
  font-size: 14px;
}

.category-menu a:hover {
  color: #ffffff;
}

/* ===== Container ===== */
.container {
  max-width: 600px;
  margin: auto;
  padding: 16px;
}

.section {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.section h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
  border-bottom: 2px solid #e0d7d3;
  padding-bottom: 6px;
}

.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e0d7d3;
}

.item img {
  width: 100px;
  height: 100px;
  max-width: 30vw; /* حداکثر 30٪ عرض صفحه */
  max-height: 30vw;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}

.item-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.item-name {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 5px;
}

.item-desc {
  font-size: 13px;
  color: #668d63;
  line-height: 1.5;
  white-space: normal; /* اجازه چند خط */
}

.price {
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

footer {
  text-align: center;
  font-size: 12px;
  padding: 20px;
  color: #657a66;
}
@media (max-width: 480px) {
  .item img {
    width: 70px;
    height: 70px;
  }

  .item-info {
    gap: 8px;
  }

  .item-desc {
    font-size: 12px;
  }
}
.item {
  overflow: hidden;
}
