* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: #f5f7f6;
}

/* کانتینر عنوان و کارت‌ها */
.wrapper {
  max-width: 1200px;
  margin: 22px auto;
  padding: 0 16px;
  text-align:center;
}

/* ردیف کارت‌ها — نسخه 100٪ تک‌سطر با اسکرول */
.cards-row {
	text-align:center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;        /* مهم‌ترین خط */
  overflow-x: auto;         /* اسکرول افقی */
  overflow-y: hidden;
  gap: 16px;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cards-row::-webkit-scrollbar {
  //display: none;            /* حذف اسکرول‌بار */
}

/* هر کارت یک باکس ثابت — فقط اسکرول می‌شود */
.card {
  flex: 0 0 auto;           /* جلوگیری از بزرگ/کوچک شدن */
  width: 160px;             /* عرض کارت */
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  position: relative;
}

.card-inner {
  position: relative;
  padding: 90px 10px 20px;
  color: #fff;
  text-align: center;
}

.card .card-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  z-index: 0;
  pointer-events: none;
}

.card-sub {
  z-index: 2;
  position: relative;
  font-size: 12px;
}

/* فوتر */
.card-footer {
  position: relative;
  background: #fff;
  padding: 6px;
  text-align: center;
  z-index: 2;
}
/* خط یا فلش زیر کارت فعال */
.card.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: #a41818;
  border-radius: 3px;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}


.footer-text {
  margin: 0 0 4px 0;
  font-size: 11px;
  font-weight: bold;
}

.btn {
  background: #a41818;
  color: #fff;
  border: none;
  padding: 4px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

/* رنگ پس‌زمینه هر کارت */
.card-1 .card-inner { background: linear-gradient(180deg, #c8a05b, #b9893e); }
.card-2 .card-inner { background: linear-gradient(180deg, #9b6f4d, #8a5b3f); }
.card-3 .card-inner { background: linear-gradient(180deg, #8f8276, #7b6f64); }
.card-4 .card-inner { background: linear-gradient(180deg, #56b1b8, #3ea0a7); }
.card-5 .card-inner { background: linear-gradient(180deg, #8b7a70, #6f5f55); }

/*order package*/
.package-panel {
	width: 90%;
  display: none;
  background: #fff;
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.package-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: bold;
}

.items {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.items li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
}

.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.control label {
  font-size: 13px;
  margin-bottom: 4px;
  display: block;
}

.control input,
.control select {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}
.order-btn {
  display: inline-block;
  background: #a41818;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  width: auto; /* برای دسکتاپ به صورت محتوا باشد */
  cursor: pointer;
  transition: background 0.3s;
}
.order-btn:hover {
  background: #b00000;
}
.wrapper {
  position: relative;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

.scroll-btn:hover {
  background: rgba(0,0,0,0.6);
}
/* موبایل */
@media (max-width: 600px) {
  .controls {
    flex-direction: column;
  }

  .package-panel {
    font-size: 16px;
  }
  /* دکمه های + و - */
  .counter button {
    min-width: 56px;   /* عرض بیشتر برای لمس راحت */
    height: 50px;      /* ارتفاع کمی بیشتر */
    font-size: 24px;   /* بزرگتر */
  }

  /* دکمه سفارش */
  .order-btn {
    width: 100%;       /* کل عرض پنل */
    padding: 12px 0;   /* ارتفاع مناسب */
    font-size: 16px;   /* متن خواناتر */
    border-radius: 10px; /* گوشه های گرد */
  }  
}

.counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.counter button {
  min-width: 46px;
  height: 24px;
  border-radius: 5px;
  border: none;
  background: #a41818;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}
.counter button:hover {
  background: #b00000;
}
.counter span {
  min-width: 40px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}
