/* پایه: موبایل-اول، برای همه‌ی عرض‌ها اعمال می‌شود */
.header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  font-family: "Poppins";
  color: #00643C;
  width: 100%;
  max-width: 480px; /* هم‌راستا با قاب اپ در main.css */
  box-sizing: border-box;
  box-shadow: 0 2px 16px rgba(18, 38, 28, 0.06);

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;

  background-color: #ffffff;
  border-bottom: 1px solid #eef1ee;
  z-index: 1000;
}

.header-left {
  flex: 0;
}

.icon-back {
  background: #f3f6f4;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-back img {
  width: 16px;
  height: 16px;
}

.header-center {
  flex: 1;
  text-align: left;
  min-width: 0;
  font-family: "Poppins";
}

.header-center h1 {
  margin: 0;
  font-family: pops, "Poppins";
  font-size: 15px;
  font-weight: 700;
  color: #16281f;
}

.header-center p {
  margin: 2px 0 0;
  font-family: popr, "Poppins";
  font-size: 11px;
  color: #8a938c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-store,
.icon-clock,
.icon-cart {
  background: #f3f6f4;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.icon-store img {
  width: 17px;
  height: 17px;
}

/* Wrapper برای قرارگیری badge روی آیکون */
.cart-wrapper {
  position: relative;
  width: 18px;
  height: 18px;
}

.cart-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Badge دقیقاً روی گوشه بالا-راست آیکون */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #00643c;
  color: #ffffff;
  border: 1.5px solid #ffffff;

  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;

  pointer-events: none; /* قابل کلیک نباشد */
}

/* اسکرول داخلی فقط برای محصولات */
.order-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 120px;
}
