/* ==========================================================
   میوه‌جو — New arrivals (new.html)
   ========================================================== */
.page-new .btn-blue {
  --bs-btn-color: #fff;
  --bs-btn-bg: #2f6fe4;
  --bs-btn-border-color: #2f6fe4;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #255fcb;
  --bs-btn-hover-border-color: #255fcb;
  --bs-btn-active-bg: #1f52b3;
  --bs-btn-active-border-color: #1f52b3;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: #9db9ef;
  --bs-btn-disabled-border-color: #9db9ef;
  font-weight: 700;
}

.nw-page { padding: 8px 0 28px; }

/* کانال سفارش باید چسبیده به جستجو بماند؛ فاصله ی sh-block آن را پایین هل می‌دهد. */
.page-new .sh-channels.sh-block { margin-top: 0; }
.page-new .sh-tools { margin-bottom: 12px; }

/* ---------- Mobile top bar ---------- */
.nw-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 58px;
  padding: 0 8px;
  background: #fff;
  border-bottom: 1px solid #f3f3ef;
  /* Photo order is physical: back+bell on the left, cart on the right. */
  direction: ltr;
}
.nw-topbar h1 {
  flex: 1;
  margin: 0;
  direction: rtl;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nw-topbar .icon-btn { width: 40px; height: 40px; font-size: 22px; }
.nw-topbar-side { display: flex; align-items: center; }

.nw-note-badge {
  position: absolute;
  top: 2px;
  right: 0;
  left: auto;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.nw-notes {
  width: 270px;
  direction: rtl;
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 8px;
}
.nw-notes h6 { font-size: 13px; font-weight: 800; margin: 4px 8px 8px; }
.nw-note {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 0;
  background: none;
  border-radius: 12px;
  padding: 8px;
  text-align: start;
  font: inherit;
}
.nw-note:hover { background: #f4f7f1; }
.nw-note i { color: var(--brand); font-size: 18px; margin-top: 2px; }
.nw-note span { display: flex; flex-direction: column; font-size: 12px; color: #6a6c64; }
.nw-note b { font-size: 13px; color: var(--ink); }

.nw-desk-title { align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.nw-desk-title h1 { margin: 0; font-size: 28px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.nw-desk-title p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Search + tools ---------- */
.nw-search { position: relative; margin-bottom: 12px; }
.nw-search i {
  position: absolute;
  left: 14px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  color: #8d8d86;
  pointer-events: none;
}
.nw-search input {
  width: 100%;
  height: 46px;
  border: 1px solid #eeeae4;
  border-radius: 14px;
  background: #f7f7f5;
  padding: 0 14px 0 42px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.nw-search input:focus { background: #fff; border-color: #cfe0c9; box-shadow: 0 0 0 4px rgba(43, 106, 37, .08); }

.nw-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.nw-loc { flex: 1; min-width: 0; }
.nw-loc-btn, .nw-tool {
  height: 40px;
  border: 1px solid #eeeae4;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  white-space: nowrap;
}
.nw-loc-btn { width: 100%; color: var(--ink); }
.nw-loc-btn .bi-geo-alt-fill { color: var(--brand); }
.nw-loc-btn b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: start; font-size: 13px; }
.nw-loc-btn .bi-chevron-down { color: var(--muted); font-size: 11px; }
.nw-loc-menu, .nw-sort-menu { border: 0; border-radius: 14px; box-shadow: var(--shadow-card); padding: 6px; min-width: 180px; }
.nw-loc-menu .dropdown-item, .nw-sort-menu .dropdown-item { border-radius: 10px; font-size: 13px; font-weight: 700; }
.nw-loc-menu .dropdown-item.active,
.nw-sort-menu .dropdown-item.active,
.nw-loc-menu .dropdown-item:active,
.nw-sort-menu .dropdown-item:active { background: var(--brand-soft); color: var(--brand); }
.nw-tool { position: relative; }
.nw-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  position: absolute; top: 6px; inset-inline-end: 6px;
}

/* ---------- Featured ---------- */
.nw-feature:not(.sh-hero) {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 8px;
  align-items: center;
  background: linear-gradient(180deg, #f3f8ee, #fbfcf8);
  border: 1px solid #e5eedf;
  border-radius: 22px;
  padding: 16px 16px 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.page-best .nw-feature.sh-hero { margin-bottom: 14px; }
.nw-kicker { display: inline-block; color: var(--brand); font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.nw-kicker--end { position: absolute; top: 0; inset-inline-start: 4px; }
.nw-feature:not(.sh-hero) h2 { font-size: 20px; font-weight: 900; margin: 0 0 4px; line-height: 1.45; }
.nw-feature:not(.sh-hero) h2 span { font-size: 16px; }
.nw-feature-copy p { margin: 0 0 10px; font-size: 12px; color: #66705f; }
.nw-stats { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.nw-stats li {
  background: #fff;
  border-radius: 12px;
  padding: 6px 8px;
  min-width: 74px;
  box-shadow: 0 4px 12px rgba(40, 70, 30, .05);
}
.nw-stats b { display: block; font-size: 14px; font-weight: 900; color: var(--brand); line-height: 1.2; }
.nw-stats span { font-size: 10px; color: #7a7e74; font-weight: 700; }
.nw-feature-btn {
  height: 40px;
  border-radius: 20px;
  padding: 0 16px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nw-feature-media { position: relative; min-height: 168px; display: flex; align-items: center; justify-content: center; }
.nw-grape { width: 92%; max-height: 180px; object-fit: contain; }
.nw-kiwi {
  position: absolute;
  width: 48%;
  max-height: 110px;
  object-fit: contain;
  inset-inline-start: 0;
  bottom: 0;
  filter: drop-shadow(0 8px 10px rgba(40, 60, 20, .15));
}

/* ---------- Channels ---------- */
.nw-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.nw-ch {
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.nw-ch--call { background: #eef6ea; }
.nw-ch--sms { background: #eef3ff; }
.nw-ch h2 { font-size: 13px; font-weight: 900; margin: 0 0 2px; }
.nw-ch p { font-size: 11px; color: #6d7268; margin: 0 0 8px; }
.nw-ch .btn { height: 32px; border-radius: 7px; padding: 0 10px; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.nw-ch-ico {
  flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 12px; background: #fff; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.nw-ch-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.nw-ch-actions span { font-size: 11px; font-weight: 800; color: var(--brand); display: inline-flex; align-items: center; gap: 3px; }
.nw-phone {
  flex: 0 0 auto;
  width: 46px; height: 68px; margin-top: 4px;
  border: 3px solid #2c3647; border-radius: 10px; background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 8px;
  position: relative;
}
.nw-phone i {
  position: absolute; top: -8px; inset-inline-start: -10px;
  width: 22px; height: 22px; border-radius: 7px; background: #2f9a4a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.nw-phone span { display: block; width: 70%; height: 5px; border-radius: 3px; background: #dde6fb; }
.nw-phone .is-short { width: 45%; align-self: flex-end; margin-inline-end: 15%; background: #d7efd4; }

/* ---------- Alert strip ---------- */
.nw-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff4d8;
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.nw-alert-btn {
  flex: 0 0 auto;
  border: 0;
  background: #f5b423;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 14px rgba(200, 140, 20, .25);
}
.nw-alert-btn.is-on { background: var(--brand); }
.nw-alert p { flex: 1; margin: 0; font-size: 12px; font-weight: 700; color: #6d5a32; line-height: 1.7; }
.nw-alert-leaf { flex: 0 0 auto; }

/* ---------- Sections + cards ---------- */
.nw-sec { margin-bottom: 18px; }
.nw-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.nw-sec-head h2 { margin: 0; font-size: 16px; font-weight: 900; }
.nw-sec-head button {
  border: 0; background: none; color: var(--brand);
  font: inherit; font-size: 12px; font-weight: 800;
}
.nw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.nw-card {
  background: #fff;
  border: 1px solid #f0f0ea;
  border-radius: 16px;
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 4px 14px rgba(30, 40, 20, .04);
}
.nw-card.is-flash { animation: nwFlash 1.4s ease; }
@keyframes nwFlash { 0%, 55% { box-shadow: 0 0 0 2px var(--brand); } }
.nw-card-media { position: relative; height: 92px; margin-bottom: 6px; }
.nw-card-media .p-img { display: flex; align-items: center; justify-content: center; height: 100%; }
.nw-card-media img { max-width: 100%; max-height: 88px; object-fit: contain; }
.nw-card-media .is-photo img { width: 100%; height: 88px; object-fit: cover; border-radius: 12px; }
.nw-new {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  background: #e23d4a;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .3px;
  border-radius: 7px;
  padding: 1px 5px;
  line-height: 15px;
}
.nw-card .wish-btn {
  opacity: 1;
  top: 0;
  right: auto;
  left: 0;
  width: 26px;
  height: 26px;
  font-size: 14px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
.nw-card .p-name { font-size: 12px; font-weight: 900; margin: 0 0 4px; line-height: 1.45; min-height: 2.9em; }
.nw-tags { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; margin-bottom: 4px; min-height: 18px; }
.nw-tags span {
  background: #f6f6f3;
  color: #6c6e66;
  border-radius: 8px;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
}
.nw-tags b { margin-inline-start: auto; font-size: 10px; color: #8a8a84; font-weight: 800; }
.nw-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 2px; }
.nw-rate { font-size: 10px; font-weight: 800; color: var(--ink-2); display: inline-flex; align-items: center; gap: 2px; }
.nw-rate i { color: #f5b301; font-size: 11px; }
.nw-rate small { color: var(--muted); font-weight: 600; }
.nw-price { color: #2f9a45; font-size: 13px; font-weight: 900; white-space: nowrap; }
.nw-price small { font-size: 9px; font-weight: 700; }
.nw-ship { color: #2f9a45; font-size: 10px; font-weight: 800; display: flex; align-items: center; gap: 3px; margin-bottom: 6px; }
.nw-buy { display: flex; align-items: center; gap: 4px; margin-top: auto; }
.nw-qty {
  display: inline-flex; align-items: center;
  border: 1px solid #eeeae4; border-radius: 10px; height: 30px; padding: 0 2px; flex: 0 0 auto;
}
.nw-qty button {
  width: 22px; height: 22px; border: 0; background: none; border-radius: 6px;
  font-size: 14px; line-height: 1; color: var(--ink);
}
.nw-qty button:hover { background: #f3f6ef; color: var(--brand); }
.nw-qty output { min-width: 14px; text-align: center; font-size: 12px; font-weight: 900; }
.nw-add {
  flex: 1; min-width: 0;
  height: 30px; border: 0; border-radius: 7px;
  background: var(--brand); color: #fff;
  font: inherit; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 6px;
}
.nw-add i { font-size: 13px; }
.nw-add.added { background: #3c8a33; }

/* ---------- Trust ---------- */
.nw-trust {
  list-style: none; padding: 12px 4px 0; margin: 4px 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  border-top: 1px solid #f3f3ef;
}
.nw-trust li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.nw-trust i, .nw-trust img { height: 28px; width: auto; object-fit: contain; color: var(--brand); font-size: 24px; }
.nw-trust b { font-size: 11px; font-weight: 900; }
.nw-trust span { font-size: 9px; color: var(--muted); line-height: 1.4; }

/* ---------- Filter sheet ---------- */
.nw-filters { width: min(360px, 100%) !important; }
.nw-filters .offcanvas-title { font-weight: 900; display: flex; align-items: center; gap: 8px; }
.nw-filters h6 { font-weight: 800; font-size: 14px; margin: 16px 0 8px; }
.nw-filters h6:first-child { margin-top: 0; }
.nw-range { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.nw-range b { color: var(--brand); }
.nw-filters .form-check { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 0; }
.nw-filters .form-check-input { float: none; margin: 0; width: 2.4em; height: 1.3em; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.nw-filters-foot { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.nw-filters-foot .btn { height: 46px; border-radius: 7px; font-weight: 800; }
.form-range::-webkit-slider-thumb { background: var(--brand); }
.form-range::-moz-range-thumb { background: var(--brand); }

/* ---------- SMS modal ---------- */
.nw-sms-lead { font-size: 14px; line-height: 1.9; margin-bottom: 12px; }
.nw-sms-box { background: #f4f7fe; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.nw-sms-box-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: #5c6a8a; }
.nw-sms-box-head button { border: 0; background: none; color: var(--red); font: inherit; font-size: 12px; }
.nw-sms-box pre { margin: 4px 0; font-family: Vazirmatn, monospace; font-weight: 900; font-size: 16px; color: #1f3d80; min-height: 8px; }
.nw-sms-hint { margin: 0; font-size: 12px; color: var(--muted); }
.nw-sms-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nw-code {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid #efefe9; background: #fff; border-radius: 10px;
  padding: 6px 8px; font: inherit; font-size: 12px; font-weight: 700; text-align: start;
}
.nw-code b { direction: ltr; background: #e8efff; color: #2f6fe4; border-radius: 6px; padding: 0 4px; }
.nw-code:hover { border-color: #b7cdf6; }
#nwSms .modal-footer .btn { height: 46px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- Responsive ---------- */
@media (min-width: 576px) {
  .nw-card-media { height: 120px; }
  .nw-card-media img, .nw-card-media .is-photo img { max-height: 112px; height: auto; }
  .nw-card-media .is-photo img { height: 112px; width: 100%; }
  .nw-card .p-name { font-size: 14px; }
  .nw-price { font-size: 16px; }
  .nw-add { height: 36px; font-size: 13px; border-radius: 7px; }
  .nw-qty { height: 36px; }
  .nw-grid { gap: 12px; }
  .nw-feature:not(.sh-hero) h2 { font-size: 26px; }
  .nw-ch h2 { font-size: 16px; }
  .nw-ch p { font-size: 13px; }
  .nw-sec-head h2 { font-size: 20px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .nw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .nw-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nw-feature:not(.sh-hero) { padding: 22px 28px; min-height: 240px; }
  .nw-feature-media { min-height: 220px; }
  .nw-grape { max-height: 230px; }
  .nw-kiwi { max-height: 140px; }
  .nw-stats li { min-width: 110px; padding: 8px 12px; }
  .nw-stats b { font-size: 18px; }
  .nw-stats span { font-size: 12px; }
  .nw-card-media { height: 180px; }
  .nw-card-media img { max-height: 170px; }
  .nw-card-media .is-photo img { height: 170px; }
  .nw-card { padding: 12px 14px 14px; border-radius: 20px; }
  .nw-card .p-name { font-size: 16px; }
  .nw-tags span { font-size: 12px; line-height: 22px; }
  .nw-price { font-size: 20px; }
  .nw-price small { font-size: 12px; }
  .nw-ship { font-size: 13px; }
  .nw-trust b { font-size: 14px; }
  .nw-trust span { font-size: 12px; }
  .nw-trust i, .nw-trust img { height: 36px; font-size: 30px; }
  .nw-alert p { font-size: 14px; }
  .nw-channels { gap: 16px; }
  .nw-ch { padding: 18px 20px; align-items: center; }
  .nw-phone { width: 58px; height: 86px; }
}

@media (max-width: 991.98px) {
  .page-new .toast-container { bottom: 86px !important; }
}

.nw-feature:not(.sh-hero) h2 a,
.nw-feature-media,
.nw-feature-media a,
.nw-note,
.nw-loc-btn { color: inherit; text-decoration: none; }
.nw-feature-media > a { display: flex; align-items: center; justify-content: center; width: 100%; }
.nw-hero-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.nw-hero-price strong { color: #2f9a45; font-size: 20px; }
.nw-hero-price small, .nw-hero-price del { color: #9a9a94; font-size: 13px; font-weight: 700; }
.nw-hero-price span { color: var(--brand); font-size: 12px; font-weight: 800; }
.nw-hero-medal {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe08a, #e0a322);
  color: #7a4b00;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nw-medal {
  position: absolute;
  top: 0;
  right: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6d36b, #e0a322);
  color: #7a4b00;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nw-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.nw-price del { color: #9a9a94; font-size: 10px; font-weight: 700; }
.nw-buy .miveh-cart { width: auto; flex: 1; margin: 0; min-width: 0; }
.nw-buy .miveh-deal-card-add {
  width: 100%;
  margin: 0;
  height: 30px;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 11px;
  background: var(--brand);
}
.nw-buy .miveh-cart.is-in .miveh-cart-step {
  height: 36px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  padding: 3px 4px;
  box-sizing: border-box;
}
.nw-buy .miveh-cart.is-in .miveh-cart-step button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: transparent;
  color: var(--brand);
  font-size: 16px;
}
.nw-buy .miveh-cart.is-in .miveh-cart-step strong { color: var(--brand); font-size: 15px; }
.page-best .nw-new { display: none; }
.page-best .nw-topbar h1 .bi-trophy-fill,
.page-best .nw-desk-title h1 .bi-trophy-fill { color: #e0a322; }
.page-sale .nw-topbar h1 .bi-fire,
.page-sale .nw-desk-title h1 .bi-fire { color: #e23b2f; }
.nw-off {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: 2;
  background: #fff;
  color: #d23b3b;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
.nw-save { color: var(--brand); font-size: 11px; font-weight: 800; margin: 0 0 4px; }

@media (max-width: 420px) {
  .sh-fruit { min-width: 68px; }
  .sh-fruit-img { width: 52px; height: 52px; }
  .nw-add { font-size: 10px; gap: 2px; padding: 0 3px; }
  .nw-add i { font-size: 11px; }
  .nw-qty { padding: 0; }
  .nw-qty button { width: 18px; }
  .nw-ch h2 { font-size: 12px; }
}
