/* ==========================================================
   میوه‌جو — Homepage styles
   ========================================================== */
:root {
  --brand: #2b6a25;
  --brand-dark: #1f5a1c;
  --brand-hover: #235a1e;
  --brand-soft: #e8eee3;
  --ink: #1e1f1c;
  --ink-2: #3b3d38;
  --muted: #8b8b86;
  --line: #eeeeea;
  --red: #c4302b;
  --red-dark: #a8231f;
  --cream: #fcf5ea;
  --hero-bg: #f5f5ea;
  --beige: #faefe0;
  --radius-lg: 20px;
  --btn-radius: 7px;
  --shadow-soft: 0 6px 24px rgba(30, 40, 20, .06);
  --shadow-card: 0 12px 32px rgba(40, 30, 10, .10);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: 20px; }

body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1240px; }

.scroll-x { scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ---------- Buttons ---------- */
.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-hover);
  --bs-btn-hover-border-color: var(--brand-hover);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-active-color: #fff;
  font-weight: 600;
}
.btn-brand i { font-size: 1.05em; vertical-align: -2px; }

.btn {
  --bs-btn-border-radius: var(--btn-radius);
  border-radius: var(--btn-radius);
}

.btn-xs {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: var(--btn-radius);
}

/* ---------- Header ---------- */
.site-header {
  --hdr: .48s cubic-bezier(.22, 1, .36, 1);
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  padding: 0;
  transition: background var(--hdr), padding var(--hdr);
}
.site-header .container {
  background: transparent;
  border-radius: 0;
  padding-inline: 0;
  max-width: 1240px;
  box-shadow: 0 0 0 0 rgba(28, 36, 18, 0);
  transition: background var(--hdr), box-shadow var(--hdr), border-radius var(--hdr), padding var(--hdr), max-width var(--hdr);
}

.header-top {
  display: flex;
  align-items: center;
  height: 84px;
  gap: 16px;
  transition: height var(--hdr), gap var(--hdr), padding var(--hdr);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.brand-mark { width: 34px; height: 34px; transition: width var(--hdr), height var(--hdr); }
.brand-name {
  font-size: 28px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -.5px;
  line-height: 1;
  transition: font-size var(--hdr);
}

.search-box {
  position: relative;
  flex: 0 1 610px;
  margin-inline-start: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  border-radius: var(--btn-radius);
  background: #f1f1f0;
  padding-inline: 18px 20px;
  color: var(--ink);
  transition: margin var(--hdr), width var(--hdr), height var(--hdr), border-radius var(--hdr), background .2s;
}
.search-box:hover { background: #e8e8e6; }
.search-box i {
  position: static;
  flex-shrink: 0;
  font-size: 19px;
  line-height: 1;
  color: var(--ink);
  pointer-events: none;
}
.search-box i::before { display: block; line-height: 1; }
.search-box-hint {
  color: #8f8f8a;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-box-open {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.site-header .quick-search {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  inset-inline: 0;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 10px;
}
.site-header .quick-search[hidden] { display: none !important; }
.search-box.quick-search-in-header {
  overflow: visible;
}
.search-box.quick-search-in-header .search-box-hint { display: none; }
.search-box.quick-search-in-header .search-box-open {
  flex: 0 0 auto;
  width: auto;
}
.search-box.quick-search-in-header .quick-search {
  position: static;
  top: auto;
  inset: auto;
  z-index: auto;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.search-box.quick-search-in-header .quick-search-bar {
  background: transparent;
  padding: 0;
  min-width: 0;
}
.search-box.quick-search-in-header .quick-search-list {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  margin-top: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 8px;
  z-index: 41;
}
.search-box.quick-search-in-header .quick-search-list:empty { display: none; }
.site-header .quick-search-bar {
  background: #f1f1f0;
  border-radius: var(--btn-radius);
  padding: 4px 6px 4px 12px;
}
.site-header .quick-search-bar input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.site-header .quick-search-bar input:focus { outline: none; box-shadow: none; }
.site-header .quick-search-advanced {
  flex: 0 0 auto;
  white-space: nowrap;
  background: var(--brand);
  border: 0;
  color: #fff;
  border-radius: var(--btn-radius);
  font-weight: 700;
}
.site-header .quick-search-advanced:hover { background: var(--brand-hover); color: #fff; }
.site-header .quick-hit {
  color: inherit;
  text-decoration: none;
  padding: 8px;
  border-radius: 12px;
}
.site-header .quick-hit:hover { background: #f4f7f1; color: inherit; }
.site-header .quick-hit img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  background: #f7f7f3;
  border-radius: 10px;
}
.site-header .quick-hit b { display: block; font-size: 14px; }
.site-header .quick-hit em {
  font-style: normal;
  font-weight: 800;
  color: var(--red);
  font-size: 13px;
}
.site-header .quick-search-list { margin-top: 8px; max-height: 360px; overflow: auto; }
.site-header .quick-search-empty { margin: 8px 0 4px; text-align: center; color: var(--muted); font-size: 13px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-start: auto;
  padding-inline-end: 6px;
  transition: gap var(--hdr);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  border-radius: 50%;
  font-size: 22px;
  color: var(--ink);
  transition: background var(--hdr), color .2s, width var(--hdr), height var(--hdr);
}
.icon-btn i,
.icon-btn svg {
  font-size: 22px;
  line-height: 1;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: #f4f6f2; color: var(--brand); }
.icon-btn.is-active { color: var(--red); }

.count-badge {
  position: absolute;
  top: 2px;
  right: 0;
  left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid #fff;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
}
.count-badge.is-on { display: inline-flex; }
.header-actions .miveh-cart-count,
.bottom-nav .miveh-cart-count { left: auto; }
.count-badge--red { background: var(--red); }
.count-badge.bump { animation: bump .45s ease; }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.main-nav {
  position: relative;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 12px;
  height: 58px;
  border-top: 1px solid #f1f1ee;
  padding: 0 4px;
  overflow: visible;
  transition: height var(--hdr), opacity var(--hdr), border-color var(--hdr), padding var(--hdr);
}
.nav-rest {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-rest::-webkit-scrollbar { display: none; }
.nav-rest > a {
  flex: 0 0 auto;
  white-space: nowrap;
}
.main-nav a,
.main-nav .nav-cats {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.main-nav .nav-cats {
  border: 0;
  background: transparent;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: var(--brand); }
.main-nav a.active::after { transform: scaleX(1); }
.main-nav .nav-cats { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.main-nav .nav-cats i { font-size: 24px; line-height: 1; }
.main-nav .nav-cats::after { display: none; }
.nav-drop { position: relative; flex: 0 0 auto; z-index: 45; }
.main-nav .nav-drop.is-open > .nav-cats {
  color: var(--brand);
  box-shadow: inset 0 -2px 0 var(--brand);
}
@media (min-width: 992px) {
  body:has(.main-nav .nav-drop.is-open)::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 19;
    pointer-events: auto;
  }
  .main-nav .nav-drop { position: static; }
  .main-nav .menu-browse {
    display: none;
    position: absolute;
    z-index: 40;
    top: 100%;
    inset-inline: 0;
    width: 100%;
    height: min(70vh, 540px);
    max-height: min(70vh, 540px);
    margin: 0;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  }
  .main-nav .nav-drop.is-open .menu-browse { display: flex; }
  .main-nav .nav-cats {
    height: 100%;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
  }
  .site-header:not(.is-compact) .main-nav {
    flex-wrap: nowrap;
    height: 58px;
  }
  .site-header:not(.is-compact) .nav-rest {
    flex: 1 1 auto;
    min-width: 0;
    height: 58px;
  }
  .site-header:not(.is-compact) .nav-drop { height: 58px; }
  .site-header:not(.is-compact) .nav-rest > a {
    padding-inline: 12px;
    font-size: 13px;
    font-weight: 400;
    color: #62666d;
    line-height: 1.2;
  }
  .main-nav .menu-stage {
    padding: 0;
    overflow-y: auto;
  }
  .main-nav .tab-pane { padding: 0; }
  .main-nav .menu-stage a::after { display: none; }
  .main-nav .menu-all {
    width: 100%;
    padding: 16px 24px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
  }
  .main-nav .menu-all::after {
    display: inline-block;
    content: "\F284";
    position: static;
    height: auto;
    background: none;
    transform: none;
    margin-inline-start: auto;
    color: var(--brand);
  }
  .main-nav .menu-rail {
    flex: 0 0 184px;
    width: 184px;
    background: #f6f6f7;
    overflow-y: auto;
  }
  .main-nav .menu-rail-btn.nav-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    min-height: 52px;
    padding: 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #3f4064;
    font-size: 12px;
    font-weight: 500;
    text-align: start;
  }
  .main-nav .menu-rail-btn.nav-link:hover {
    background: #fff;
    color: var(--brand);
  }
  .main-nav .menu-rail-btn.nav-link.active {
    background: #fff;
    color: var(--brand);
    font-weight: 700;
  }
  .main-nav .menu-rail-btn img,
  .main-nav .menu-rail-btn i { width: 24px; height: 24px; font-size: 18px; flex-shrink: 0; }
  .main-nav .menu-stage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 28px;
    padding: 4px 24px 28px;
  }
  .main-nav .menu-row {
    position: relative;
    display: flex;
    width: auto;
    flex: none;
    align-items: center;
    gap: 8px;
    border-bottom: 0;
    border-inline-start: 0;
    padding: 8px;
    padding-inline-start: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
  }
  .main-nav .menu-row::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 2px;
    height: 12px;
    margin-top: -6px;
    border-radius: 1px;
    background: var(--brand);
  }
  .main-nav .menu-row:hover {
    background: transparent;
    color: var(--brand);
  }
  .main-nav .menu-row::after {
    display: inline-block;
    content: "\F285";
    font-family: "bootstrap-icons";
    position: static;
    height: auto;
    background: none;
    transform: none;
    margin-inline-start: auto;
    color: #a1a3a8;
    font-size: 11px;
    font-weight: 400;
  }
  .site-header.is-compact .container { overflow: visible; }
}
.nav-tree {
  display: none;
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  width: 276px;
  max-height: min(70vh, 460px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cdd9c6 transparent;
  background: #fff;
  border: 1px solid #e6eee1;
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(28, 36, 18, .11), 0 4px 12px rgba(28, 36, 18, .05);
  padding: 10px;
}
.nav-drop.is-open > div > .nav-tree,
.nav-drop.is-open > .nav-tree {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-tree a::after { display: none; }
.nav-leaf {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  text-align: start;
  transition: background .15s ease, color .15s ease;
}
.nav-leaf:hover,
.nav-branch-btn:hover { background: rgba(43, 106, 37, .09); color: var(--brand); }
.nav-leaf.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  border-inline-start: 3px solid var(--brand);
  padding-inline-start: 9px;
}
.nav-branch { border-radius: 12px; }
.nav-branch-head { display: flex; align-items: center; gap: 4px; }
.nav-branch-head > .nav-leaf { flex: 1 1 auto; width: auto; }
.nav-branch-head > .nav-leaf.active { border-inline-start: 0; padding-inline-start: 12px; }
.nav-branch-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.nav-branch-btn i {
  display: inline-block;
  font-size: 13px;
  transition: transform .22s ease;
}
.nav-branch.is-open > .nav-branch-head .nav-branch-btn {
  background: rgba(43, 106, 37, .08);
  color: var(--brand);
}
.nav-sub {
  display: none;
  margin-top: 2px;
  margin-inline: 8px 4px;
  padding: 4px 0 6px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid #e4ebe0;
}
.nav-sub .nav-leaf {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-2);
}
.nav-sub .nav-leaf.active {
  font-weight: 700;
  padding-inline-start: 7px;
}
.nav-branch.is-open > .nav-sub { display: block; }
.nav-branch.is-open > .nav-branch-head .nav-branch-btn i { transform: rotate(180deg); }
.nav-tree-empty {
  margin: 0;
  padding: 12px 10px;
  color: var(--ink-2);
  font-size: 13px;
  text-align: center;
}
.nav-sale { color: var(--red) !important; font-weight: 700 !important; }

/* با اسکرول، هدر جمع می‌شود و مثل جزیره با سایه می‌ماند. بالای صفحه همان نوار پهن است. */
.site-header.is-compact {
  background: transparent;
  padding: 8px 12px 0;
}
.site-header.is-compact .container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(28, 36, 18, .16), 0 1px 0 rgba(255, 255, 255, .65) inset;
  padding-inline: 16px;
  max-width: 1100px;
  pointer-events: auto;
}
.site-header.is-compact .header-top { height: 58px; }
.site-header.is-compact .brand-name { font-size: 22px; }
.site-header.is-compact .brand-mark { width: 28px; height: 28px; }
.site-header.is-compact .search-box { margin-inline-start: 28px; height: 40px; }
.site-header.is-compact .header-actions { /*gap: 10px;*/ }
.site-header.is-compact .icon-btn {
  width: 40px;
  height: 40px;
}
.site-header.is-compact .main-nav {
  height: 0;
  padding: 0;
  opacity: 0;
  border-top-color: transparent;
  pointer-events: none;
}
@media (min-width: 992px) {
  /* آیلند دسکتاپ باریک است؛ منو جمع نمی‌شود و دسته با اسکرول افقی دیده می‌شود. */
  .site-header.is-compact .main-nav {
    height: 48px;
    padding: 6px 0 10px;
    opacity: 1;
    border-top-color: rgba(43, 106, 37, .1);
    pointer-events: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }
  .site-header.is-compact .nav-rest {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    touch-action: pan-x;
  }
  .site-header.is-compact .nav-rest.is-dragging {
    cursor: grabbing;
    user-select: none;
  }
  .site-header.is-compact .nav-rest::-webkit-scrollbar { display: none; }
  .site-header.is-compact .main-nav a {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
    line-height: 1.2;
    cursor: pointer;
    pointer-events: auto;
  }
  .site-header.is-compact .main-nav a::after { display: none; }
  .site-header.is-compact .main-nav a:hover { background: #f1f4ee; }
  .site-header.is-compact .main-nav a.active {
    background: var(--brand);
    color: #fff;
  }
  .site-header.is-compact .main-nav a.active:hover {
    background: var(--brand-hover);
    color: #fff;
  }
  .site-header.is-compact .main-nav .nav-cats {
      border-radius: 999px;
    padding-inline: 10px;
    background: #f4f6f2;
  }
  .site-header.is-compact .main-nav .nav-cats i { font-size: 18px; }
  .site-header.is-compact .main-nav .nav-quick {
    color: var(--brand);
  }
  .site-header.is-compact .main-nav .nav-sale {
    background: #fceeee;
  }
  .site-header.is-compact .main-nav .nav-sale.active,
  .site-header.is-compact .main-nav .nav-sale.active:hover {
    background: var(--red);
    color: #fff !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .container,
  .site-header .header-top,
  .site-header .main-nav,
  .site-header .icon-btn,
  .site-header .brand-name,
  .site-header .brand-mark,
  .site-header .search-box,
  .site-header .header-actions { transition: none; }
}

/* Mobile menu: دو ستون مثل دیجی‌کالا؛ ریل سمت راست خود صفحه است. */
.mobile-menu { width: 100% !important; max-width: 100%; }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--line); padding: 12px 16px; }
.mobile-menu .offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
}
.mobile-nav-pages a {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  text-decoration: none;
}
.mobile-nav-pages a i { font-size: 15px; color: var(--brand); }
.mobile-nav-pages a.nav-sale i { color: var(--red); }
.mobile-nav-pages a:hover { color: var(--brand); background: transparent; }
.mobile-nav-pages a.active {
  color: var(--brand);
  background: transparent;
}
.mobile-nav-pages a.active::after {
  content: "";
  position: absolute;
  inset-inline: 8px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.mobile-nav .nav-cats {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 15px;
  padding: 10px 12px;
  margin: 8px 12px 0;
  border: 1px solid #d7e3d2;
  border-radius: 12px;
  box-shadow: 0 1px 0 #fff inset;
}
.mobile-nav .nav-cats > i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.menu-browse {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 8px;
  background: #f6f6f6;
  flex-direction: row;
}
.menu-rail {
  flex: 0 0 92px;
  width: 92px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f4f4f4;
  padding: 0;
  gap: 0;
}
.menu-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 76px;
  padding: 10px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.menu-rail-btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  object-position: center;
}
.menu-rail-btn i { font-size: 20px; color: var(--brand); }
.menu-rail-btn.active {
  background: #fff;
  color: var(--brand);
  font-weight: 800;
}
.menu-stage {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  background: #fff;
}
.menu-all {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: right;
  gap: 6px;
  width: 100%;
  padding: 14px 16px 10px;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}
.menu-all.active { font-weight: 800; }
.menu-all::after {
  content: "\F284";
  font-family: "bootstrap-icons";
  margin-inline-start: auto;
  font-size: 12px;
  font-weight: 400;
}
.menu-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f1f1;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}
.menu-row::after {
  content: "\F284";
  font-family: "bootstrap-icons";
  margin-inline-start: auto;
  color: #b0b0b0;
  font-size: 12px;
}
.menu-row.active { color: var(--brand); }
.menu-stage-grid { display: flex; flex-direction: column; }
.mobile-nav-pages {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 8px;
  border: 0;
  background: #fff;
}

/* ---------- Hero ---------- */
.hero-wrap { margin-top: 2px; }

.hero {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #f3f4e6 0%, #f8f8f0 45%, #f4f5e7 100%);
  overflow: hidden;
}

/* نسبت ۲۱/۹ با ارتفاع ثابت عرض اسلاید را از کارت کوتاه می‌کند و سمت چپ خالی می‌ماند. */
.hero-slide {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 418px;
  max-height: 418px;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(15, 18, 12, .82) 0%, rgba(15, 18, 12, .48) 38%, rgba(15, 18, 12, .12) 62%, transparent 82%);
}

.hero-text {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding-inline-end: 64px;
  padding-inline-start: 46%;
  padding-bottom: 6px;
}
.hero-text h1 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.55;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: -.5px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}
.hero-text p {
  font-size: 17px;
  line-height: 2.05;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
  margin: 0 0 30px;
  font-weight: 500;
}
.btn-hero {
  height: 44px;
  padding: 0 16px;
  border-radius: var(--btn-radius);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(43, 106, 37, .22);
}
.btn-hero i { font-size: 14px; transition: transform .2s; }
.btn-hero i::before { content: "\F284"; }
.btn-hero:hover i { transform: translateX(-4px); }

.carousel-item .hero-text > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.carousel-item.active .hero-text > * { opacity: 1; transform: none; }
.carousel-item.active .hero-text > *:nth-child(2) { transition-delay: .1s; }
.carousel-item.active .hero-text > *:nth-child(3) { transition-delay: .2s; }

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  margin: 0;
  justify-content: center;
  gap: 10px;
  transform: none;
}
.hero-dots [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  margin: 0;
  background: #d8d9d0;
  opacity: 1;
  transition: background .3s, transform .3s;
}
.hero-dots .active { background: var(--brand); transform: scale(1.1); }

.hero { cursor: grab; touch-action: pan-y; }
.hero.is-dragging { cursor: grabbing; user-select: none; }
.hero a,
.hero button { cursor: pointer; }


/* ردیف دسته همان شکل فروشگاه است تا خانه بدون shop.css هم یکسان بماند. */
.sh-fruits {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  justify-content: flex-start;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  cursor: grab;
  touch-action: pan-x pan-y;
}
.sh-fruits::-webkit-scrollbar { display: none; }
.sh-fruits.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
.sh-fruits .sh-fruit { cursor: pointer; }
.sh-fruits--ltr { direction: ltr; }
.sh-fruit {
  flex: 0 0 auto;
  width: auto;
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color .2s, background .2s, color .2s;
}
.sh-fruit-name {
  display: block;
  white-space: nowrap;
  line-height: 1.3;
  text-align: center;
}
.sh-fruit-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f6f7f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .25s;
}
.sh-fruit-img img { width: 58px; height: 58px; object-fit: contain; }
.sh-fruit-img img.is-photo { width: 100%; height: 100%; object-fit: cover; }
.sh-fruit-img i { font-size: 26px; color: var(--ink); }
.sh-fruit:hover .sh-fruit-img { transform: translateY(-3px); }
.sh-fruit:hover { color: var(--brand); }
.sh-fruit.active { border-color: #9cbf92; background: #f3f8ef; color: var(--brand); }
.sh-fruit.active .sh-fruit-img { background: #fff; }
.sh-fruit.active .sh-fruit-img i { color: var(--brand); }
.sh-fruit[data-fruit="all"] .sh-fruit-img,
.sh-fruit[data-cat="all"] .sh-fruit-img {
  border-radius: 50%;
}
#categories { margin-top: 22px; }
#categories .sh-fruits { padding: 10px 2px; margin-bottom: 0; }
@media (min-width: 992px) {
  #categories .sh-fruits {
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    overscroll-behavior-x: contain;
  }
  .sh-fruit { min-width: 96px; }
  .sh-fruit-img { width: 80px; height: 80px; }
  .sh-fruit-img img { width: 64px; height: 64px; }
  /* زیر اسلایدر، فاصله ی بین دایره‌ها در دسکتاپ بازتر باشد. */
  #categories .cats {
    justify-content: space-between;
    gap: 40px;
  }
}

/* ---------- Categories ---------- */
.cats {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 12px;
  padding: 26px 18px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-width: 104px;
}
.cat-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #f7f6f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.cat-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-more i { font-size: 34px; color: var(--ink); }
.cat-name { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cat:hover .cat-circle { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(40, 60, 20, .12); }
.cat:hover .cat-name { color: var(--brand); }

/* ---------- Features ---------- */
.features {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid #f0f0ec;
  border-radius: 18px;
  padding: 26px 0;
}
.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  position: relative;
}
.feature + .feature::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #eeeee9;
}
.feature div { display: flex; flex-direction: column; gap: 6px; }
.feature strong { font-size: 16px; font-weight: 700; }
.feature span { font-size: 13px; color: var(--muted); }
.feature i { font-size: 36px; color: var(--brand); line-height: 1; }
.feature .feat-svg { width: 36px; height: 36px; color: var(--brand); flex: 0 0 auto; }

/* ---------- Offers ---------- */
#offers { margin-top: 26px; }

.offers {
  position: relative;
  background: var(--cream);
  border-radius: 22px;
  padding: 14px 30px 14px 24px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 18px;
  overflow: hidden;
}

.deco { position: absolute; pointer-events: none; }
.deco-leaf-bottom { width: 34px; left: 6px; bottom: 14px; transform: rotate(-70deg); z-index: 3; }
.deco-orange, .deco-leaf-top { display: none; }
.offers-info {
  padding: 26px 6px 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}
.offers-info h2 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 8px;
  white-space: nowrap;
}
.offers-info h2 br,
.offers-info p br { display: none !important; }
.offers-info .fire { font-size: 21px; }
/* تیتر، توضیح و یادداشت در همه ی عرض‌ها یک‌خطی‌اند؛ اندازه‌ها طوری است که در ستون ۲۴۰ پیکسلی هم جا شوند. */
.offers-info p {
  font-size: 13px;
  color: #6f6f69;
  line-height: 2;
  margin: 0 0 18px;
  white-space: nowrap;
}

.countdown {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  align-self: center;
}
/* راست‌چین، واحد اول سمت راست است. ثانیه جای ساعت می‌نشیند و دقیقه وسط می‌ماند. */
.countdown .cd-unit:has([data-cd="s"]) { order: -1; }
.countdown .cd-unit:has([data-cd="h"]) { order: 1; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cd-box {
  width: 56px;
  height: 46px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 14px rgba(196, 48, 43, .25);
}
.cd-unit small { color: var(--red); font-size: 13px; font-weight: 600; }
.cd-sep { color: var(--red-dark); font-size: 24px; font-weight: 800; line-height: 46px; }

.offers-note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4ebde;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--ink-2);
  white-space: nowrap;
  margin-bottom: 22px;
}
.offers-note i { font-size: 20px; color: #eda21a; }

.btn-pill-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  width: auto;
  border-radius: var(--btn-radius);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border: 0;
  box-shadow: 0 6px 18px rgba(70, 50, 20, .08);
  transition: box-shadow .2s, transform .2s;
}
.btn-pill-white:hover { color: var(--brand); box-shadow: 0 10px 24px rgba(70, 50, 20, .14); transform: translateY(-1px); }

.offers-main {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.filter-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs .tab {
  flex: 0 0 auto;
  border: 0;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  background: #f2ebe1;
  color: #6b6b64;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.filter-tabs .tab:hover { color: var(--brand); }
.filter-tabs .tab.active { background: var(--brand); color: #fff; font-weight: 700; }
.filter-tabs--plain .tab { background: #f1f1ef; }

#offerTabs {
  position: static;
  z-index: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
  align-items: center;
  min-height: 34px;
  margin: 0 0 12px;
  gap: 6px;
}
#offerTabs .tab { font-weight: 600; }
#offerTabs .tab.active { font-weight: 600; }

.offers-track-wrap { position: relative; flex: 1 1 auto; min-width: 0; }

.offers-track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 6px 0;
  min-height: 450px;
}
.offers-track::-webkit-scrollbar { display: none; }

.track-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
  transform: translateY(-50%);
  transition: opacity .2s, transform .2s, color .2s;
}
.track-arrow:hover { color: var(--brand); transform: translateY(-50%) scale(1.06); }
.track-arrow.is-hidden { opacity: 0; pointer-events: none; }
.track-next { left: -12px; }
.track-prev { right: -12px; }

/* Offer card */
.offer-card {
  position: relative;
  flex: 0 0 140px;
  background: #fff;
  border-radius: 14px;
  padding: 46px 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: flex-basis .35s ease, box-shadow .3s, padding .35s;
  box-shadow: 0 2px 10px rgba(80, 60, 20, .03);
}
.offer-card:hover { box-shadow: 0 10px 24px rgba(80, 60, 20, .08); }
.offer-card .p-img,
.best-card .p-img,
.shelf-card .p-img,
.pack-card .p-img,
.season-item .p-img,
.sh-card .p-img,
.qb-item .p-img {
  position: relative;
}
.offer-card .p-img {
  height: 100px;
  flex: 0 0 100px;
  display: block;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 12px;
}
.p-img > .wish-btn { top: 6px; right: 6px; }
.offer-card .p-img img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  object-position: center;
}
.offer-card .wish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}
.offer-card .wish-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
}
.offer-card .wish-btn i::before {
  display: block;
  line-height: 1;
}
.offer-card .p-name { font-size: 14px; font-weight: 700; margin-bottom: 8px; transition: font-size .3s; }
.offer-card .p-old { font-size: 12px; margin-bottom: 6px; }
.offer-card .p-price { font-size: 17px; }
.offer-card .disc-badge { top: 14px; left: 12px; }
.offer-card .btn-add { margin-top: 12px; }
.p-old { display: block; font-size: 13px; color: #b0b0aa; text-decoration: line-through; margin-bottom: 8px; }
.p-price { font-size: 18px; font-weight: 800; }
.p-price small { font-size: 13px; font-weight: 500; color: #6f6f69; margin-inline-start: 2px; }

.disc-badge {
  position: absolute;
  top: 18px;
  left: 16px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 30px;
  margin-top: 20px;
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  transition: background .2s, transform .15s, width .3s;
}
.btn-add:hover { filter: brightness(0.94); }
.btn-add:active { transform: scale(.94); }
.btn-add.added { background: #3c8a33; }
.btn-add .lbl { display: none; }

.wish-btn {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #9a9a94;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s, color .2s, transform .2s;
  z-index: 2;
}
.offer-card:hover .wish-btn,
.best-card:hover .wish-btn,
.wish-btn.on { opacity: 1; }
.wish-btn:hover { color: var(--red); }
.wish-btn.on, .wish-btn.is-on { opacity: 1; color: var(--red); }
.offer-card .wish-btn,
.best-card .wish-btn,
.shelf-card .wish-btn,
.pack-card .wish-btn,
.season-item .wish-btn { opacity: 1; }
.wish-btn.pop { animation: bump .4s ease; }

/* highlighted card */
.offer-card.is-active {
  flex-basis: 212px;
  padding: 56px 18px 16px;
  box-shadow: var(--shadow-card);
}
.offer-card.is-active .p-img { height: 132px; flex-basis: 132px; margin-bottom: 14px; }
.offer-card.is-active .p-name { font-size: 16px; }
.offer-card.is-active .p-old { font-size: 13px; }
.offer-card.is-active .p-price { color: var(--red); font-size: 24px; }
.offer-card.is-active .p-price small { color: var(--red); font-size: 15px; font-weight: 700; }
.offer-card.is-active .disc-badge { top: 14px; }
.offer-card.is-active .btn-add {
  width: 100%;
  height: 46px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  margin-top: 12px;
}
.offer-card.is-active .btn-add .plus { display: none; }
.offer-card.is-active .btn-add .lbl { display: inline-flex; align-items: center; gap: 14px; }
.offer-card.is-active .btn-add .lbl i { font-size: 22px; }

/* ---------- Section head ---------- */
#bestsellers { margin-top: 52px; }

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding: 0 6px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
}
.section-title a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.section-sub { color: var(--muted); font-size: 15px; margin: 0; }
.section-head-end { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 0; }
.see-all { color: var(--brand); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; padding-top: 6px; }
.see-all i { font-size: 14px; transition: transform .2s; }
.see-all:hover i { transform: translateX(-3px); }

/* ---------- Best sellers ---------- */
.best-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.best-card {
  position: relative;
  background: #fff;
  border: 1px solid #f1f1ed;
  border-radius: 14px;
  padding: 40px 14px 18px;
  text-align: center;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.best-card:hover { box-shadow: 0 12px 28px rgba(30, 40, 20, .08); border-color: transparent; transform: translateY(-3px); }
.best-card .p-img {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.best-card .p-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.best-card .p-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.rating { font-size: 14px; color: #6f6f69; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.rating i { color: #f5b301; font-size: 15px; }
.best-card .p-price { font-size: 17px; display: block; }
.best-card .btn-add { margin-top: 12px; height: 28px; width: 44px; font-size: 16px; }

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 6px;
}
.tag--fresh { background: #e8f1e1; color: #3f7a32; }
.tag--premium { background: #f3ece2; color: #7a5a35; }
.tag--hot { background: #fde9b6; color: #8a5a00; }

.empty-state {
  text-align: center;
  padding: 40px 16px;
  border: 1px dashed #dcdcd5;
  border-radius: 16px;
  color: var(--muted);
}
.empty-state i { font-size: 42px; color: #c4c4bc; }
.empty-state p { margin: 10px 0 16px; }

/* ---------- Promos ---------- */
.promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 34px;
  margin-bottom: 48px;
}
.promo {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 162px;
  border-radius: 18px;
  padding: 0 28px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.promo--beige { background: var(--beige); }
.promo--green { background: var(--brand-soft); }
.promo-img { height: 138px; width: 200px; object-fit: contain; flex: 0 0 auto; }
.promo-text h3 { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.promo-text p { font-size: 13px; color: #6a6a63; line-height: 1.9; margin: 0 0 10px; }
.promo-icon { margin-inline-start: auto; flex: 0 0 auto; }
.promo-icon--new { width: 76px; height: 76px; }
.promo-icon--circle {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-icon--circle img { width: 68px; }

/* ---------- Toast & fly ---------- */
.app-toast { background: var(--ink); color: #fff; border-radius: 12px; }
.app-toast .toast-body { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.app-toast .toast-body i { color: #7fd36b; font-size: 18px; }
.fly-img {
  position: fixed;
  z-index: 2000;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1199.98px) {
  .search-box { margin-inline-start: 36px; }
  .hero-slide { height: 380px; }
  .hero-text h1 { font-size: 36px; }
  .hero-text { padding-inline-end: 40px; }
  .offers { grid-template-columns: 240px 1fr; padding-inline: 20px; }
  .offers-info h2 { font-size: 20px; }
  .best-grid { grid-template-columns: repeat(5, minmax(170px, 1fr)); overflow-x: auto; display: grid; }
  .promo { gap: 16px; padding: 0 20px; }
  .promo-img { width: 150px; }
  .promo-icon--circle { width: 90px; height: 90px; }
  .promo-icon--circle img { width: 54px; }
  .promo-icon--new { width: 62px; height: 62px; }
}

@media (max-width: 991.98px) {
  .header-top {
    flex-wrap: nowrap;
    align-items: center;
    height: 52px;
    padding: 0 8px;
    gap: 0;
  }
  .site-header .brand {
    order: 1;
    flex: 0 0 auto;
    min-width: 0;
    align-items: center;
    gap: 6px;
    margin-inline-start: 12px;
  }
  .site-header .brand-mark { width: 24px; height: 24px; }
  .site-header .brand-name { font-size: 18px; line-height: 1; }
  .menu-toggle {
    order: 0;
    flex: 0 0 auto;
    margin: 0;
    width: 40px;
    height: 40px;
  }
  .search-box {
    order: 2;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    margin: 0;
    margin-inline-start: auto;
    padding: 0;
    background: none;
    border-radius: 50%;
    gap: 0;
    /*justify-content: center;*/
  }
  .search-box-hint { display: none; }
  .search-box-open { justify-content: center; }
  .search-box i {
    position: static;
    inset: auto;
    transform: none;
    top: auto;
    pointer-events: none;
  }
  .header-actions { order: 3; flex: 0 0 auto; align-items: center; gap: 2px; padding: 0; margin-inline-start: 0; }
  /* علاقه‌مندی و حساب روی گوشی در نوار پایین است. */
  .header-top .header-actions > a:not([data-cart-fly]),
  .header-top .header-actions > .header-account { display: none; }
  .header-top .icon-btn,
  .search-box {
    width: 36px;
    height: 36px;
    background: none;
    color: var(--ink);
  }
  .header-top .menu-toggle {
    width: 40px;
    height: 40px;
  }
  .header-top .icon-btn:hover,
  .menu-toggle:hover,
  .search-box:hover {
    background: none;
    color: var(--brand);
  }
  .header-top .icon-btn i,
  .header-top .icon-btn svg,
  .menu-toggle i,
  .search-box i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    font-size: 20px;
    line-height: 1;
  }
  .header-top .icon-btn i::before,
  .menu-toggle i::before,
  .search-box i::before {
    display: block;
    line-height: 1;
    text-align: center;
  }
  .header-top .menu-toggle .bi-list { font-size: 26px; }
  .header-top .search-box .bi-search { font-size: 20px; }
  .header-top .icon-btn .bi-cart3,
  .header-top .icon-btn .bi-heart,
  .header-top .icon-btn .bi-person { font-size: 20px; }
  .header-top .count-badge { top: 0; min-width: 15px; height: 15px; font-size: 9px; }
  .site-header .container {
    margin-inline: 0;
    width: 100%;
    max-width: none;
    transition: background var(--hdr), box-shadow var(--hdr), border-radius var(--hdr), padding var(--hdr), margin var(--hdr), width var(--hdr);
  }
  .site-header.is-compact { padding: 10px 0 0; }
  .site-header.is-compact .container {
    margin: 0 10px 0;
    width: auto;
    border-radius: 18px;
    padding-inline: 8px;
    box-shadow: 0 10px 28px rgba(28, 36, 18, .16);
  }
  .site-header.is-compact .header-top { height: 48px; padding: 0 8px; }
  .site-header.is-compact .search-box { margin-inline-start: auto; height: 36px; }
  .site-header.is-compact .brand-name { font-size: 18px; }
  .site-header.is-compact .brand-mark { width: 24px; height: 24px; }

  /* گوشی: فیلد جستجو جای لوگو را در خود نوار می‌گیرد، نه جعبه ی زیر هدر. */
  .header-top:has(.search-box.quick-search-in-header) .brand { display: none; }
  .header-top .search-box.quick-search-in-header {
    position: relative;
    z-index: 40;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 40px;
    margin-inline: 8px;
    padding: 0 4px;
    background: #f1f1f0;
    border-radius: 20px;
    overflow: visible;
  }
  .header-top .search-box.quick-search-in-header:hover {
    background: #f1f1f0;
    color: var(--ink);
  }
  .header-top .search-box.quick-search-in-header .search-box-open {
    flex: 0 0 32px;
    width: 32px;
  }
  .header-top .search-box.quick-search-in-header .quick-search-bar {
    height: 40px;
    min-width: 0;
    background: transparent;
    padding: 0;
  }
  .header-top .search-box.quick-search-in-header .quick-search-bar input {
    height: 32px;
    min-height: 0;
    padding-block: 0;
    font-size: 14px;
  }
  .header-top .search-box.quick-search-in-header .quick-search-advanced {
    font-size: 11px;
    line-height: 1.2;
    padding: 4px 8px;
  }
  .header-top .search-box.quick-search-in-header .quick-search-list {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 0;
    margin-top: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 8px;
    z-index: 41;
    max-height: min(360px, 60vh);
  }
  .header-top .search-box.quick-search-in-header .quick-search-list:empty { display: none; }

  .hero-slide {
    height: 300px;
  }
  .hero-media::after {
    background: linear-gradient(to top, rgba(15, 18, 12, .88) 0%, rgba(15, 18, 12, .42) 48%, transparent 78%);
  }
  .hero-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 40px 16px 36px;
    align-items: flex-start;
    text-align: right;
    justify-content: flex-end;
  }
  .hero-text h1 {
    font-size: 30px;
    margin-bottom: 8px;
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
  }
  .hero-text p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
  }
  .hero-dots { left: 0; right: 0; bottom: 12px; z-index: 2; transform: none; }

  .cats { justify-content: flex-start; overflow-x: auto; gap: 18px; padding-inline: 4px; scroll-snap-type: x mandatory; }
  .cat { scroll-snap-align: start; min-width: 92px; }
  .cat-circle { width: 92px; height: 92px; }

  .features {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .feature {
    flex: 0 0 auto;
    min-width: 168px;
    padding: 2px 10px;
    gap: 8px;
    justify-content: flex-start;
    flex-direction: row-reverse;
    scroll-snap-align: start;
  }
  .feature + .feature::before { display: none; }
  .feature i { font-size: 22px; }
  .feature strong { font-size: 11px; }
  .feature span { font-size: 11px; }
  .feature div { gap: 2px; }
  /* دو آیتم و نصف، تا بقیه با اسکرول دیده شود. */
  .features.scroll-x { gap: 4px; }
  .features.scroll-x .feature {
    flex: 0 0 calc((100% - 8px) / 2.5);
    min-width: 0;
    padding-inline: 4px;
    gap: 6px;
  }
  .features.features--icon-first.scroll-x .feature div { min-width: 0; }
  .features.features--icon-first.scroll-x .feature span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .offers {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title timer" "tabs tabs" "all all" "track track";
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
    padding: 16px 14px 18px;
  }
  /* تیتر راست، تایمر بالا چپ خود عکس، مشاهده همه زیر چیپ‌ها. */
  .offers > .deco { grid-area: 1 / 1; }
  .offers-info,
  .offers-main { display: contents; }
  .offers-info h2 { grid-area: title; margin: 0; }
  .offers-info p,
  .offers-note { display: none; }
  .countdown { grid-area: timer; margin: 0; gap: 4px; justify-self: left; align-self: center; }
  .countdown .cd-box { width: 28px; height: 26px; font-size: 13px; border-radius: 6px; box-shadow: none; }
  .countdown .cd-unit { gap: 2px; }
  .countdown .cd-unit small { font-size: 9px; }
  .countdown .cd-sep { font-size: 13px; line-height: 26px; }
  .btn-pill-white {
    grid-area: all;
    justify-self: left;
    width: auto;
    max-width: 100%;
    height: 28px;
    padding: 0 10px;
    gap: 4px;
    font-size: 11px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(70, 50, 20, .08);
  }
  #offerTabs { grid-area: tabs; position: static; max-width: none; justify-content: flex-end; margin: 4px 0 6px; }
  .offers-track-wrap { grid-area: track; }
  .offers-track { min-height: 360px; align-items: flex-start; gap: 10px; padding: 4px 4px 12px; scroll-snap-type: x proximity; }
  .offer-card .miveh-cart { width: 100%; margin-top: auto; display: flex; justify-content: center; }
  .offer-card { flex: 0 0 140px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; padding: 28px 9px 8px; border-radius: 16px; }
  .offer-card .p-name { width: 100%; margin-bottom: 0; font-size: 13px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .offer-card .p-old { width: 100%; margin-bottom: 0; font-size: 11px; line-height: 1.5; }
  .offer-card.is-active .p-old { font-size: 12px; }
  .offer-card .p-img { width: 100%; height: 104px; flex: 0 0 104px; margin-bottom: 5px; border-radius: 12px; background: #f8f7f2; }
  .offer-card.is-active { flex-basis: 170px; padding: 28px 10px 10px; }
  .offer-card.is-active .p-img { height: 120px; flex-basis: 120px; margin-bottom: 5px; }
  .offer-card.is-active .p-name { font-size: 14px; }
  .offer-card.is-active .p-price { font-size: 18px; margin-bottom: 2px; }
  .offer-card.is-active .btn-add { width: 100%; height: 36px; margin-top: 4px; border-radius: 7px; font-size: 11px; gap: 6px; }
  .offer-card .btn-add { width: 42px; height: 30px; margin-top: 4px; border-radius: var(--btn-radius); font-size: 16px; }
  .offer-card .p-price { width: 100%; margin-bottom: 2px; font-size: 15px; line-height: 1.5; white-space: nowrap; }
  .offer-card .disc-badge,
  .offer-card.is-active .disc-badge { top: 6px; left: 8px; padding: 2px 8px; font-size: 10px; line-height: 1.6; border-radius: 6px; }
  .offer-card .p-img img { width: 100%; height: 100%; object-fit: fill; padding: 0; }
  .offer-card .wish-btn { top: 5px; right: 5px; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; line-height: 0; font-size: 13px; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(30, 30, 20, .1); }
  .offer-card .wish-btn i { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; font-size: 13px; line-height: 1; }
  .offer-card.is-active .btn-add .lbl { gap: 6px; }
  .offer-card.is-active .btn-add .lbl i { font-size: 15px; }
  .track-next { left: -6px; }
  .track-prev { right: -6px; }

  .section-head { flex-wrap: wrap; }
  .best-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 190px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .best-card { scroll-snap-align: start; }
  .wish-btn { opacity: 1; }

  .promos { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 575.98px) {
  body { font-size: 14px; }
  .brand-name { font-size: 24px; }
  .brand-mark { width: 30px; height: 30px; }

  .hero { border-radius: 16px; }
  .hero-slide { height: 280px; }
  .hero-text h1 { font-size: 24px; }

  .cats { gap: 12px; padding-top: 20px; }
  .cat { min-width: 76px; gap: 10px; }
  .cat-circle { width: 76px; height: 76px; }
  .cat-name { font-size: 13px; }

  .offers { border-radius: 18px; padding: 14px 12px 16px; }
  .offers-info h2 { font-size: 18px; }
  .offer-card { flex-basis: 136px; padding-inline: 8px; }
  .offer-card.is-active { flex-basis: 164px; padding-inline: 10px; }
  .offer-card.is-active .p-price { font-size: 17px; }
  .offer-card.is-active .btn-add { height: 34px; }
  .track-arrow { width: 40px; height: 40px; font-size: 17px; }

  .section-title { font-size: 19px; }
  .section-sub { font-size: 13px; }
  .section-head-end { width: 100%; flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .section-head-end .filter-tabs { justify-content: flex-start; }
  .see-all { padding: 0; font-size: 14px; flex: 0 0 auto; }
  .best-grid { grid-auto-columns: 160px; gap: 14px; }
  .best-card { padding-inline: 10px; }

  .promo { height: auto; min-height: 140px; padding: 16px; gap: 12px; }
  .promo-img { width: 104px; height: 100px; }
  .promo-text h3 { font-size: 16px; }
  .promo-text p { font-size: 12px; }
  .promo-text br { display: none; }
  .promo-icon--new { width: 50px; height: 50px; }
  .promo-icon--circle { width: 64px; height: 64px; }
  .promo-icon--circle img { width: 40px; }

}

@media (max-width: 767.98px) {
  .hero-slide {
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 280px;
    max-height: 560px;
  }
  /* دکمه و نقطه ی اسلایدر روی گوشی کوچکتر از دسکتاپ می‌مانند. */
  .btn-hero {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
    gap: 6px;
  }
  .btn-hero i { font-size: 12px; }
  .hero-dots {
    bottom: 10px;
    gap: 6px;
  }
  .hero-dots [data-bs-target] {
    width: 6px;
    height: 6px;
  }
  .hero-dots .active { transform: none; }
  /* سه مورد کامل روی گوشی؛ فاصله و قلم کوچکتر تا متن سوم بریده نشود. */
  .features.scroll-x {
    gap: 2px;
    padding: 8px 2px;
  }
  .features.scroll-x .feature {
    flex: 0 0 calc((100% - 4px) / 3);
    min-width: 0;
    padding-inline: 2px;
    gap: 4px;
  }
  .features.scroll-x .feature i { font-size: 16px; }
  .features.scroll-x .feature strong,
  .features.scroll-x .feature span {
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .features.scroll-x .feature div { min-width: 0; gap: 0; overflow: visible; }
}

/* ==========================================================
   Homepage — seasonal, shelves, packs, recipe, health, farm, soon
   ========================================================== */
.text-brand { color: var(--brand) !important; }
.section-gap { margin-top: 34px; }
.promos { margin-bottom: 0; }

.btn-pill {
  height: 44px;
  padding: 0 22px;
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.btn-pill i { font-size: 13px; }

.block-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.section-head--row { align-items: center; margin-bottom: 16px; }
.section-head--row .section-title { margin: 0; }

/* Kalabarg */
.kala {
  display: flex;
  align-items: stretch;
  min-height: 370px;
  border-radius: 22px;
  overflow: hidden;
  background: #f7f8f4;
  border: 1px solid #f0f1ec;
}
.kala-media {
  flex: 0 0 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8f4;
}
.kala-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.kala-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.kala-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 36px;
}
.kala-text h2 { font-size: 38px; font-weight: 900; line-height: 1.6; margin: 0 0 14px; }
.kala-text p { font-size: 18px; line-height: 2; color: var(--ink-2); margin: 0 0 26px; }
.btn-kala {
  height: 50px; padding: 0 30px; border-radius: var(--btn-radius);
  display: inline-flex; align-items: center; gap: 22px; font-size: 16px;
  align-self: center;
  box-shadow: 0 8px 18px rgba(43, 106, 37, .22);
}

/* Seasonal */
.season { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: stretch; }
.season-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.season-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 6px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background .2s;
}
.season-item:hover { background: #f6f8f3; }
.season-item .p-img { width: 92px; height: 75px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.season-item .p-img img { width: 100%; height: 100%; border-radius: 15px; max-width: none; max-height: none; object-fit: fill; object-position: center center; }
.si-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.si-text .p-name { display: block; font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.si-text span { font-size: 14px; color: var(--muted); }
.si-kinds { display: block; white-space: nowrap; }
.si-add {
  width: 36px; height: 36px; border-radius: 10px; background: #e7f3e4;
  color: var(--brand); font-size: 20px; display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.season-item:hover .si-add { background: var(--brand); color: #fff; }

.season-banner {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  background: #fbfbf8;
  border: 1px solid #eff0ea;
  min-height: 360px;
}
.sb-text { flex: 1; padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.sb-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6a6c64; margin-bottom: 14px; }
.sb-text h3 { font-size: 30px; font-weight: 900; line-height: 1.6; margin: 0 0 12px; }
.sb-text p { font-size: 15px; color: #6a6c64; line-height: 2; margin: 0 0 22px; }
.sb-text .btn-pill { align-self: flex-start; }
.sb-img {
  flex: 0 0 56%;
  width: 56%;
  min-height: 0;
  align-self: stretch;
  display: flex;
}
.sb-img picture {
  display: block;
  width: 100%;
  height: 100%;
}
.sb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shelves (juices, dried) */
.shelf {
  display: flex;
  align-items: stretch;
  gap: 18px;
  background: #fafaf9;
  border: 1px solid #f0f0ec;
  border-radius: 20px;
  padding: 16px;
}
.shelf-track-wrap { position: relative; flex: 1; min-width: 0; overflow: visible; }
.shelf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 14px) / 5);
  column-gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  height: 100%;
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-card {
  position: relative;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #f0f0ec;
  border-radius: 14px;
  padding: 16px 10px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .25s, transform .25s;
}
.shelf-card:hover { box-shadow: 0 10px 24px rgba(30, 40, 20, .08); transform: translateY(-2px); }
.shelf-card .p-name { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.p-unit { font-size: 13px; color: var(--muted); }
.shelf-card .p-img { height: 138px; display: flex; align-items: center; justify-content: center; margin: 10px 0 12px; }
.shelf-card .p-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.shelf-card .p-price { font-size: 16px; margin-bottom: 12px; }
.shelf-card--dried .p-img { height: 112px; margin: 2px 0 12px; }
.shelf-card--dried .p-name { margin-bottom: 6px; }
.shelf-card--dried .p-unit { margin-bottom: 6px; }

/* کارت آبمیوه: نشان چپ، قلب و اطلاعات راست. جابه‌جایی با درگ است و نوار اسکرول ندارد. */
#juices .shelf-track {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: none;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x pan-y;
}
#juices .shelf-track::-webkit-scrollbar { display: none; height: 0; }
#juices .shelf-track.is-dragging { cursor: grabbing; user-select: none; }
#juices .shelf-track a,
#juices .shelf-track button { cursor: pointer; }
#dried .shelf-track,
#bestsellers .shelf-track,
#packs .shelf-track,
#gift-packs .shelf-track,
#offersTrack {
  cursor: grab;
  touch-action: pan-x pan-y;
  scroll-snap-type: none;
}
#dried .shelf-track.is-dragging,
#bestsellers .shelf-track.is-dragging,
#packs .shelf-track.is-dragging,
#gift-packs .shelf-track.is-dragging,
#offersTrack.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}
#dried .shelf-track a,
#dried .shelf-track button,
#bestsellers .shelf-track a,
#bestsellers .shelf-track button,
#packs .shelf-track a,
#packs .shelf-track button,
#gift-packs .shelf-track a,
#gift-packs .shelf-track button,
#offersTrack a,
#offersTrack button { cursor: pointer; }
#juices .mj-plus-card,
#bestsellers .mj-plus-card { min-width: 0; height: auto; }

/* دسکتاپ همه کارت‌ها یک‌اندازه می‌مانند؛ ارتفاع ثابت فقط برای رشد موبایل است.
   overflow سایه را می‌بُرد؛ پدینگ ریل و حاشیه ی کارت جا برای سایه می‌گذارند. */
#offersTrack,
#juices .shelf-track,
#dried .shelf-track,
#bestsellers .shelf-track,
#packs .shelf-track,
#gift-packs .shelf-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 12px 28px;
}

#offersTrack > .mj-plus-card,
#juices .shelf-track > .mj-plus-card,
#dried .shelf-track > .mj-plus-card,
#bestsellers .shelf-track > .mj-plus-card,
#packs .shelf-track > .mj-plus-card,
#gift-packs .shelf-track > .mj-plus-card {
  margin: 4px 4px 8px;
  height: auto;
  align-self: stretch;
}

.shelf-card.shelf-card--juice {
  align-items: stretch;
  text-align: right;
  padding: 10px;
  border: 1px solid #f3f1ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(40, 36, 20, .06);
}
.shelf-card.shelf-card--juice:hover { transform: none; box-shadow: 0 10px 26px rgba(40, 36, 20, .1); }
.juice-card-shot {
  position: relative;
  height: 168px;
  border-radius: 14px;
  background: #f6f1ea;
  overflow: hidden;
}
.shelf-card--juice .p-img { height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.shelf-card--juice .p-img img { max-height: 100%; max-width: 100%; object-fit: contain; object-position: center; }
.juice-card-off {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e31c24;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.juice-card-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.shelf-card--juice .wish-btn,
.juice-card-info {
  position: static;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  opacity: 1;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #4a4744;
  box-shadow: 0 2px 8px rgba(40, 36, 20, .08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.shelf-card--juice .wish-btn svg,
.juice-card-info svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shelf-card--juice .wish-btn.on,
.shelf-card--juice .wish-btn.is-on { color: #e23b3b; }
.shelf-card--juice .wish-btn.on svg,
.shelf-card--juice .wish-btn.is-on svg { fill: currentColor; }
.juice-card-info:hover,
.juice-card-info[aria-expanded="true"],
.shelf-card--juice .wish-btn:hover { color: var(--brand); }
.juice-card-pay {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* راست‌چین: پایان محور عرضی همان سمت چپ کارت است. */
  gap: 2px;
  margin: 8px 4px 10px;
  min-height: 46px;
}
.juice-card-pay del,
.juice-card-pay strong {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.juice-card-pay del {
  min-height: 18px;
  color: #a3a39c;
  font-size: 13px;
  font-weight: 500;
  text-decoration: line-through;
  line-height: 1.2;
}
.juice-card-pay del.is-empty { visibility: hidden; }
.juice-card-pay strong { color: #e31c24; font-size: 20px; font-weight: 800; line-height: 1.15; }
.juice-card-pay strong small { font-size: 13px; font-weight: 700; }
.shelf-card--juice .juice-card-cart { width: 100%; margin: 0; }
.shelf-card--juice .juice-card-add {
  direction: ltr;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  border-radius: 12px;
  background: #c4302b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.shelf-card--juice .juice-card-add:hover { background: #a82824; }
.shelf-card--juice .juice-card-add .bi { font-size: 18px; }
.shelf-card--juice .juice-card-cart[data-cart-busy] .juice-card-add,
.shelf-card--juice .juice-card-cart[data-cart-busy] .juice-card-add:hover {
  direction: ltr;
  justify-content: center;
  gap: 10px;
  background: #8f9d88;
  color: transparent;
  font-size: 0;
}
.shelf-card--juice .juice-card-cart[data-cart-busy] .juice-card-add .bi { display: none; }
.shelf-card--juice .juice-card-cart[data-cart-busy] .juice-card-add::before {
  content: "در حال افزودن...";
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.shelf-card--juice .juice-card-cart[data-cart-busy] .juice-card-add::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: juice-add-spin .7s linear infinite;
}
@keyframes juice-add-spin { to { transform: rotate(-360deg); } }
.shelf-card--juice .juice-card-cart.is-in .miveh-cart-step {
  direction: ltr;
  height: 46px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: var(--btn-radius);
  border: 1px solid #ecece8;
  background: #fff;
  color: #1c1c1a;
}
.shelf-card--juice .juice-card-cart.is-in .miveh-cart-step .bi { display: none; }
.shelf-card--juice .juice-card-cart.is-in .miveh-cart-step button,
.shelf-card--juice .juice-card-cart.is-in .miveh-cart-step strong {
  flex: 1 1 0;
  width: auto;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shelf-card--juice .juice-card-cart.is-in .miveh-cart-step [data-cart-down] { background: #f3f3f1; }
.shelf-card--juice .juice-card-cart.is-in .miveh-cart-step [data-cart-down]::before {
  content: "";
  width: 14px;
  height: 2.5px;
  border-radius: 1px;
  background: #5a5a56;
}
.shelf-card--juice .juice-card-cart.is-in .miveh-cart-step [data-cart-down]:has(.bi-trash3)::before { content: none; }
.shelf-card--juice .juice-card-cart.is-in .miveh-cart-step [data-cart-down] .bi-trash3 {
  display: block;
  color: #c4302b;
}
.shelf-card--juice .juice-card-cart.is-in .miveh-cart-step [data-cart-up] { background: #e5f7e2; }
.shelf-card--juice .juice-card-cart.is-in .miveh-cart-step [data-cart-up]::before {
  content: "";
  width: 16px;
  height: 16px;
  background:
    linear-gradient(#43a84c, #43a84c) center / 16px 2.5px no-repeat,
    linear-gradient(#43a84c, #43a84c) center / 2.5px 16px no-repeat;
}
.shelf-card--juice .juice-card-cart.is-in .miveh-cart-step strong {
  color: #1c1c1a;
  font-size: 20px;
  font-weight: 800;
}

/* کارت میوه خشک: تخفیف و جزئیات روی خود کارت‌اند و زمینه از سبز به سفید محو می‌شود. */
#dried .dried-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  text-align: left;
  direction: ltr;
  padding: 10px 10px 12px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #c5ffb3 0%, #e7ffd4 56px, #fff 112px);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(30, 40, 20, .08);
}
#dried .dried-card:hover { transform: none; box-shadow: 0 10px 24px rgba(30, 40, 20, .12); }
#dried .dried-card-sale {
  grid-column: 1;
  grid-row: 1;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
#dried .dried-card > .dried-card-detail {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  height: 26px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
#dried .dried-card > .dried-card-detail:hover,
#dried .dried-card > .dried-card-detail[aria-expanded="true"] { background: #222; color: #fff; }
#dried .dried-card-shot {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  height: 176px;
  margin: 8px 0 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f6f7f4;
}
#dried .dried-card .p-img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}
#dried .dried-card .p-img img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  object-position: center;
}
#dried .dried-card .wish-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  opacity: 1;
  box-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55));
}
#dried .dried-card .wish-btn svg { width: 18px; height: 18px; }
#dried .dried-card .wish-btn.on,
#dried .dried-card .wish-btn.is-on { color: #ff3b3b; }
#dried .dried-card .wish-btn.on svg,
#dried .dried-card .wish-btn.is-on svg { fill: currentColor; }
#dried .dried-card-body {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  direction: ltr;
  min-width: 0;
  padding: 8px 2px 0;
}
#dried .dried-card-badge {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px 0 6px;
  border-radius: 999px;
  background: #e8ffe2;
  color: #1f9a10;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
#dried .dried-card-badge img { width: 13px; height: 13px; display: block; }
#dried .dried-card .p-name {
  width: 100%;
  margin: 8px 0 0;
  color: #111;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}
#dried .dried-card-buy {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #dcdcdc;
}
#dried .dried-card-pay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
#dried .dried-card-pay del,
#dried .dried-card-pay strong {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  direction: rtl;
}
#dried .dried-card-pay del {
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 500;
  text-decoration: line-through;
  line-height: 1.2;
}
#dried .dried-card-pay strong { color: #c4302b; font-size: 18px; font-weight: 800; line-height: 1.15; }
#dried .dried-card-pay strong small { color: #c4302b; }
#dried .dried-card-pay small { font-size: 11px; font-weight: 700; }
#dried .dried-card .dried-card-cart {
  width: auto;
  margin: 0 0 0 auto;
  flex: 0 0 auto;
}
#dried .dried-card .dried-card-add {
  direction: ltr;
  gap: 8px;
  width: auto;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: #c4302b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
#dried .dried-card .dried-card-add:hover { background: #a8231f; }
#dried .dried-card .dried-card-add .bi { font-size: 13px; }
#dried .dried-card .dried-card-cart[data-cart-busy] .dried-card-add { opacity: .65; }
#dried .dried-card .dried-card-cart.is-in .miveh-cart-step {
  direction: ltr;
  width: auto;
  min-width: 96px;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: #c4302b;
  color: #fff;
}
#dried .dried-card .dried-card-cart.is-in .miveh-cart-step button,
#dried .dried-card .dried-card-cart.is-in .miveh-cart-step strong {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.btn-round-add {
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: auto;
  transition: background .2s, transform .15s;
}
.btn-round-add:hover { background: var(--brand-hover); transform: scale(1.08); }
.btn-round-add.added { background: #3c8a33; }

.shelf-intro {
  flex: 0 0 260px;
  width: 260px;
  max-width: 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 18px;
}
.shelf-intro .block-title { font-size: 22px; }
.shelf-intro p { font-size: 15px; color: #66685f; line-height: 2; margin: 0 0 22px; }
.shelf-intro .btn-pill { align-self: flex-start; }
.shelf-intro .filter-tabs {
  justify-content: flex-start;
  margin-bottom: 14px;
  width: 100%;
  min-width: 0;
  cursor: grab;
  touch-action: pan-y;
}
.shelf-intro .filter-tabs.is-dragging { cursor: grabbing; user-select: none; }
.shelf-intro .filter-tabs .tab { cursor: pointer; }
.shelf-empty { margin: 0 0 12px; color: #6d7268; font-size: 14px; }

.shelf-arrow { width: 38px; height: 38px; font-size: 15px; }
.shelf-arrow.track-prev { right: -10px; }
.shelf-arrow.track-next { left: -10px; }

/* Packs */
.packs-wrap { position: relative; }
.packs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.packs::-webkit-scrollbar { display: none; }
.pack-card {
    position: relative;
    border-radius: 18px;
    padding: 10px;
    text-align: right;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform .25s, box-shadow .25s;
    border: 1px solid #eeeae3;
}
.pack-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(40, 30, 20, .08); }
.pack--kids { background: linear-gradient(180deg, #f4f4f1, #eef0ea); }
.pack--guest { background: linear-gradient(180deg, #fdf0ee, #f9e6e4); }
.pack--health { background: linear-gradient(180deg, #f4f4f3, #ededeb); }
.pack--family { background: linear-gradient(180deg, #fdefee, #f9e3e1); }
.pack-card .p-name { font-size: 16px; font-weight: 800; margin: 0; text-align: right; }
.pack-card p { font-size: 13px; color: #6a6c64; margin: 0; text-align: right; }
.pack-card .p-img {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  border-radius: 14px;
}
.pack-card .p-img img {
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.pack-card-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}
.pack-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}
.pack-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 70%;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.pack-view:hover { color: #fff; background: var(--brand-hover); }
.pack-stock {
  position: absolute; bottom: 14px; left: 14px;
  background: #fff; border-radius: 14px; padding: 4px 12px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.pack-stock i { color: var(--brand); }
.pack-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
}
.pack-add {
  position: static;
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transform: none; margin-inline-start: auto;
}
.pack-card:hover .pack-add, .pack-add:focus-visible, .pack-add.added { opacity: 1; transform: none; }

/* Recipe */
.recipe {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "body media";
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(90deg, #fff9f0 0%, #fef7ec 55%, #fdf3e6 100%);
  border: 1px solid #f6eee1;
  min-height: 500px;
}
.recipe-media {
  grid-area: media;
  position: relative;
  min-height: 100%;
}
.recipe-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to left, #000 80%, transparent 100%);
          mask-image: linear-gradient(to left, #000 80%, transparent 100%);
}
.recipe-body {
  grid-area: body; padding: 34px 54px 26px 30px;
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
}
.recipe-kicker { display: block; color: var(--brand); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.recipe-body h2 { font-size: 36px; font-weight: 900; margin: 0 0 12px; color: #4a1d0c; display: flex; align-items: center; gap: 10px; }
.recipe-title-icon { width: 44px; height: auto; }
.c-mango { color: #eaa421; }
.recipe-body h3 { font-size: 18px; font-weight: 800; margin: 0 0 12px; }
.recipe-body h3.recipe-lead { font-size: 19px; margin: 0 0 10px; color: #3c1a0b; line-height: 1.9; }
.recipe-body p { font-size: 15px; color: #66685f; line-height: 2; margin: 0; max-width: 470px; }
.recipe-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.r-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #eee7da; border-radius: 12px;
  padding: 10px 18px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
}
button.r-chip { cursor: pointer; transition: border-color .2s, color .2s; }
button.r-chip:hover { border-color: var(--brand); color: var(--brand); }
.r-chip i { font-size: 18px; color: #6a6c64; }
.ingredients {
  list-style: none; margin: 0; padding: 12px 18px;
  display: flex; gap: 10px; justify-content: space-between;
  background: #fff; border: 1px solid #eee7da; border-radius: 14px;
  max-width: 480px;
}
.ingredients li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.ingredients img { height: 30px; width: auto; }
.ingredients.pulse { animation: pulseRing 1s ease 2; }
@keyframes pulseRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(43, 106, 37, 0); } 50% { box-shadow: 0 0 0 6px rgba(43, 106, 37, .2); } }

/* چیپ‌ها و مواد پایین ستون متن می‌مانند تا همیشه بالای دکمه‌ها بنشینند. */
.recipe-foot {
  margin-top: auto;
  padding-top: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.recipe-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
.btn-soft {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 26px; border-radius: 7px;
  background: #fff; border: 1px solid #ebe5da; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 700;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.btn-soft:hover { color: var(--brand); border-color: #cfe0c9; box-shadow: 0 6px 16px rgba(0, 0, 0, .05); }
.btn-soft i.bi-cart3 { font-size: 22px; color: var(--brand); }
.btn-soft.added { border-color: var(--brand); color: var(--brand); }
.btn-soft--end { margin-inline-start: auto; border-radius: 7px; }
.btn-recipe { height: 46px; padding: 0 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; flex: 0 0 auto; }
.btn-recipe-buy { height: 46px; padding: 0 18px; gap: 10px; flex: 0 0 auto; }
.btn-recipe-buy i { font-size: 19px; }
.btn-recipe-buy.added { border-color: var(--brand); color: var(--brand); }
.btn-recipe-buy:disabled { cursor: progress; opacity: .85; }

/* Recipe slider — همان کارت ثابت، حالا یک اسلاید از اسموتی‌های صفحه ی اول */
.recipe-slider { position: relative; }
.recipe-swiper { border-radius: 22px; }
.recipe-swiper .swiper-slide { height: auto; display: flex; }
.recipe-swiper .swiper-slide .recipe { height: 100%; width: 100%; }
.recipe-body h2 span { overflow-wrap: anywhere; }
.recipe-body h2 .recipe-title-icon { width: auto; font-size: 38px; line-height: 1; color: #eaa421; }
.recipe-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.recipe-media-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fdf4e4 0%, #f7efe2 100%);
  color: #e3d5bd; font-size: 78px;
}
.recipe-body, .recipe-foot { min-width: 0; }
.ingredients {
  max-width: none;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-x;
}
.ingredients::-webkit-scrollbar { display: none; }
.ingredients li { flex: 0 0 auto; white-space: nowrap; }
.ingredients.is-dragging { cursor: grabbing; user-select: none; }
.ingredients-more {
  color: var(--brand); font-weight: 800;
  background: #f2f8ee; border-radius: 10px; padding: 1px 10px;
}
.recipe-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-top: 18px;
}
.recipe-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 32px; height: 32px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(246, 238, 225, .9); border-radius: 50%;
  background: rgba(255, 255, 255, .96); color: black; font-size: 17px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(74, 29, 12, .16);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
/* دکمه‌ها داخل لبه ی کارت می‌نشینند تا در عرض‌های کوچک از صفحه بیرون نزنند،
   و ستون متن از سمت راست جای کافی برای دکمه ی بعدی دارد. */
.recipe-nav--prev { inset-inline-start: 14px; }
.recipe-nav--next { inset-inline-end: 14px; }
.recipe-nav:hover, .recipe-nav:focus-visible {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 10px 22px rgba(43, 106, 37, .3); outline: none;
  transform: translateY(-50%) scale(1.06);
}
.recipe-nav.swiper-button-disabled { opacity: .38; cursor: default; pointer-events: none; }
.recipe-nav.swiper-button-lock,
.recipe-dots.swiper-pagination-lock { display: none; }
/* شمارنده وسطِ پایینِ اسلایدر می‌نشیند، نه روی خود کارت. */
.recipe-dots {
  position: absolute; width: auto; z-index: 4;
  margin: 16px 0 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.recipe-dots .swiper-pagination-bullet {
  width: 9px; height: 9px; margin: 0 !important;
  background: #d8d2c5; opacity: 1;
  transition: width .25s ease, background .25s ease;
}
.recipe-dots .swiper-pagination-bullet-active { width: 28px; border-radius: 999px; background: var(--brand); }

/* کارت دستور صفحه ی اصلی */
#recipe .recipe {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  min-height: 0;
  padding: 16px;
  gap: 28px;
  background: linear-gradient(135deg, #fffaf2, #fff4df);
  border-color: #f0e4ce;
  border-radius: 26px;
}
#recipe .recipe-media { min-height: 360px; border-radius: 18px; overflow: hidden; }
#recipe .recipe-media img { object-position: center; -webkit-mask-image: none; mask-image: none; }
#recipe .recipe-body { padding: 18px 12px; max-width: none; text-align: right; }
#recipe .recipe-kicker {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  color: #6b782d; background: #f0efda; border-radius: 30px;
  padding: 6px 12px; font-size: 12px; margin-bottom: 14px;
}
#recipe .recipe-body h2 { justify-content: flex-start; line-height: 1.4; font-size: clamp(25px, 2.6vw, 36px); margin-bottom: 10px; }
#recipe .recipe-body h3.recipe-lead { font-size: 17px; line-height: 1.85; text-align: right; }
#recipe .recipe-body p { line-height: 1.9; text-align: right; }
#recipe .recipe-foot { padding-top: 20px; gap: 12px; }
#recipe .recipe-chips { gap: 8px; }
#recipe .recipe-chips .r-chip { flex: 0 1 auto; min-height: 40px; padding: 7px 12px; font-size: 13px; border-radius: 10px; }
#recipe .ingredients {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 0; border: 0; background: transparent; overflow: visible; cursor: auto; touch-action: auto;
}
#recipe .ingredients li {
  min-width: 0; min-height: 46px; padding: 8px 10px; gap: 8px;
  white-space: normal; font-size: 13px; line-height: 1.6;
  background: #fffaf3; border: 1px solid #eee4d4; border-radius: 12px;
}
#recipe .ingredients li span { overflow-wrap: anywhere; }
#recipe .ingredients img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
#recipe .ingredients-more { grid-column: 1 / -1; justify-content: center; }
#recipe .recipe-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
#recipe .recipe-actions > * { width: 100%; min-width: 0; height: auto; min-height: 48px; padding: 10px 12px; font-size: 14px; line-height: 1.6; }
#recipe .recipe-actions > :only-child { grid-column: 1 / -1; }
#recipe .recipe-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
#recipe .recipe-nav { position: static; display: flex; transform: none; width: 44px; height: 44px; box-shadow: none; }
#recipe .recipe-nav:hover, #recipe .recipe-nav:focus-visible { transform: none; }
#recipe .recipe-dots { position: static; width: auto; margin: 0; transform: none; }
#recipe :is(button, a):focus-visible { outline: 3px solid #78964c; outline-offset: 3px; }
@media (min-width: 768px) and (max-width: 991.98px) {
  #recipe .recipe { grid-template-areas: "body media"; gap: 18px; }
  #recipe .recipe-media { aspect-ratio: auto; max-height: none; min-height: 100%; }
  #recipe .recipe-body { padding: 8px 4px; }
}
@media (max-width: 767.98px) {
  #recipe .recipe { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "body"; padding: 10px; gap: 0; border-radius: 22px; }
  #recipe .recipe-media { min-height: 0; aspect-ratio: 16 / 10; max-height: 280px; border-radius: 15px; }
  #recipe .recipe-body { padding: 18px 6px 8px; }
  #recipe .recipe-body h2 { font-size: 26px; }
  #recipe .recipe-body h3.recipe-lead { font-size: 15px; }
  #recipe .recipe-body p { font-size: 13px; }
  #recipe .recipe-kicker { margin-bottom: 10px; }
  #recipe .recipe-foot { padding-top: 16px; }
  #recipe .ingredients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #recipe .recipe-actions > * { font-size: 13px; padding-inline: 6px; gap: 6px; }
}
@media (max-width: 340px) {
  #recipe .recipe-actions { grid-template-columns: minmax(0, 1fr); }
}


/* Health */
.health { border: 1px solid #f0f0ec; border-radius: 22px; padding: 26px 26px 22px; background: #fff; }
.health-head h2 { font-size: 28px; font-weight: 900; margin: 0 0 6px; }
.health-head p { font-size: 15px; font-weight: 600; margin: 0 0 18px; color: var(--ink-2); }
.health-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.health-tabs::-webkit-scrollbar { display: none; }
.h-tab {
  position: relative;
  border: 1.5px solid #efefeb;
  background: #fff;
  border-radius: 16px;
  padding: 18px 8px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 15px; color: var(--ink);
  transition: border-color .2s, background .2s, transform .2s;
}
.h-tab img { height: 50px; width: auto; transition: transform .25s; }
.h-tab:hover img { transform: scale(1.08); }
.h-tab.active { border-color: #7f9c78; background: #f6f9f3; }
.h-tab.active::after {
  content: "";
  position: absolute; bottom: -15px; left: 50%;
  border: 9px solid transparent; border-top: 9px solid #2f6b2a;
  transform: translateX(-50%);
}
.health-panel {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: center;
  background: #f8f8f6;
  border-radius: 18px;
  padding: 18px 20px;
}
.hp-items { position: relative; min-width: 0; }
.hp-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 210px;
  column-gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px 30px;
}
.hp-track::-webkit-scrollbar { display: none; }
.hp-track [data-health] { min-width: 0; scroll-snap-align: start; }
.hp-track .mj-plus-card { min-width: 0; }
.hp-items { overflow: visible; }
#healthItems[data-grow-rail] {
  display: flex;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: none;
  cursor: grab;
  touch-action: pan-x pan-y;
}
#healthItems[data-grow-rail].is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}
#healthItems[data-grow-rail] a,
#healthItems[data-grow-rail] button { cursor: pointer; }
#healthItems[data-grow-rail] [data-health] {
  flex: 0 0 210px;
  min-width: 0;
  scroll-snap-align: none;
  transition: flex-basis .35s ease;
}
#healthItems[data-grow-rail] [data-health]:has(.is-active) { flex-basis: 280px; }
#healthItems[data-grow-rail] .mj-plus-card { width: 100%; height: 100%; }
.h-item {
  position: relative;
  scroll-snap-align: start;
  background: #fff; border-radius: 14px;
  padding: 14px 10px 12px; text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}
.h-item .p-img { height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.h-item .p-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.h-item .p-name { font-size: 15px; font-weight: 700; margin: 0; }
.h-add {
  position: absolute; top: 8px; left: 8px;
  width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: #eef4ea; color: var(--brand); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.h-add:hover, .h-add.added { background: var(--brand); color: #fff; }
.hp-arrow { width: 34px; height: 34px; font-size: 14px; }
.hp-arrow.track-prev { right: -4px; }
.hp-arrow.track-next { left: -4px; }
.hp-text p { font-size: 15px; font-weight: 600; line-height: 2.1; margin: 0 0 16px; color: var(--ink-2); }
.hp-text .btn-soft { height: 46px; border-radius: 7px; font-size: 14px; }

/* Farm story */
.farm {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  border: 1px solid #f0f0ec;
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  align-items: center;
}
.farm-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9.4;
  background: #1c2b17;
}
.farm-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.farm-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(to top, rgba(10, 20, 8, .92) 0%, rgba(10, 20, 8, .55) 45%, transparent 100%);
}
.play-btn {
  position: absolute; top: 40%; left: 50%; z-index: 2;
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid #fff; background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: #fff; font-size: 44px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  transition: transform .25s, background .25s;
}
.play-btn i { margin-left: 5px; }
.play-btn:hover { transform: translate(-50%, -50%) scale(1.08); background: rgba(255, 255, 255, .3); }
.play-btn::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5); animation: ripple 2s ease-out infinite;
}
@keyframes ripple { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

.farm-steps {
  position: absolute; z-index: 2; inset: auto 18px 14px 18px;
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between;
}
.farm-steps::before {
  content: ""; position: absolute; top: 24px; left: 30px; right: 30px; height: 4px;
  background: linear-gradient(90deg, #f4a62a, #6bbf47); border-radius: 2px;
}
.farm-steps li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; font-weight: 700; font-size: 15px; width: 80px; text-align: center;
}
.farm-steps li span {
  width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.farm-text h2 { font-size: 30px; font-weight: 900; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.farm-text h3 { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.farm-text p { font-size: 15px; line-height: 2.1; color: #66685f; margin: 0 0 20px; }
.farm-badges { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.farm-badges li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: center; }
.farm-badges i { font-size: 26px; color: var(--brand); }
.btn-farm { height: 52px; border-radius: 7px; display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 16px; width: 100%; }

/* Story modal */
.mj-modal { border: 0; border-radius: 20px; overflow: hidden; }
.mj-modal .modal-header { border-bottom: 1px solid #f0f0ec; }
.mj-modal .modal-title { font-weight: 800; display: flex; align-items: center; gap: 8px; font-size: 18px; }
.mj-modal .modal-footer { border-top: 0; }
.story-video { border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.story-video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.story-progress { height: 4px; background: #eef0ea; border-radius: 2px; margin: 14px 0; overflow: hidden; }
.story-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f4a62a, var(--brand)); transition: width .25s linear; }
.story-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; direction: ltr; }
.story-steps li {
  direction: rtl; text-align: center; cursor: pointer;
  border: 1px solid #efefeb; border-radius: 14px; padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: border-color .2s, background .2s, opacity .2s;
  opacity: .65;
}
.story-steps li i { font-size: 22px; color: var(--brand); }
.story-steps li b { font-size: 14px; }
.story-steps li small { font-size: 11px; color: var(--muted); line-height: 1.6; }
.story-steps li.is-done { opacity: 1; }
.story-steps li.is-current { opacity: 1; border-color: var(--brand); background: #f3f8ef; }
.farm-steps li.is-current span { background: var(--brand); color: #fff; }

/* Recipe modal */
.recipe-modal-img { width: 100%; height: 190px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }
.recipe-meta { display: flex; gap: 16px; color: #66685f; font-size: 14px; margin-bottom: 16px; }
.recipe-meta i { color: var(--brand); }
.mj-modal h6 { font-weight: 800; margin: 14px 0 10px; }
.recipe-ing { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recipe-ing li { display: flex; align-items: center; gap: 8px; background: #faf7f1; border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.recipe-ing li img { height: 24px; }
.recipe-ing li b { margin-inline-start: auto; font-weight: 700; color: var(--brand); }
.recipe-steps { padding-inline-start: 20px; margin: 0; display: grid; gap: 8px; font-size: 14px; line-height: 2; }
.mj-input { height: 46px; border-radius: 12px; text-align: left; }
.mj-input:focus { border-color: #9fc496; box-shadow: 0 0 0 4px rgba(43, 106, 37, .1); }

/* سفارش تلفنی و پیامکی */
.sh-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sh-ch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 20px 24px;
  border-radius: 20px;
  overflow: hidden;
}
.sh-ch--sms { background: linear-gradient(135deg, #eef3ff, #f7f9ff); }
.sh-ch--call { background: linear-gradient(135deg, #eff6eb, #f8fbf6); }
.sh-ch-body { flex: 1; min-width: 0; }
.sh-ch h2 { font-size: 19px; font-weight: 900; margin: 0 0 6px; }
.sh-ch p { font-size: 13px; color: #6a6c64; margin: 0 0 14px; }
.sh-ch .btn {
  height: 42px;
  padding: 0 22px;
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.sh-ch-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.sh-ch-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--brand); }
.sh-ch-icon {
  align-self: flex-start;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  box-shadow: 0 8px 20px rgba(30, 60, 120, .08);
}
.sh-ch--sms .sh-ch-icon { color: #2f6fe4; }
.sh-ch--call .sh-ch-icon { color: var(--brand); }
.sh-phone {
  position: relative;
  flex: 0 0 auto;
  width: 78px;
  height: 120px;
  margin-inline-end: 6px;
  border: 4px solid #2c3647;
  border-radius: 18px;
  background: #fff;
  padding: 26px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transform: rotate(-8deg);
  box-shadow: 0 14px 26px rgba(30, 50, 100, .16);
}
.sh-phone-line { display: block; height: 7px; border-radius: 4px; background: #dde6fb; }
.sh-phone-line--short { width: 60%; background: #cfe0c9; }
.sh-phone--call .sh-phone-line { background: #d7ead0; }
.sh-phone--call .sh-phone-line--short { background: #b7d9ae; }
.sh-phone-dot { position: absolute; top: 6px; left: 50%; width: 18px; height: 4px; border-radius: 2px; background: #2c3647; transform: translateX(-50%); }
.sh-phone-bubble {
  position: absolute;
  top: 14px;
  inset-inline-start: -22px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2f9a4a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transform: rotate(8deg);
  box-shadow: 0 8px 18px rgba(30, 120, 60, .3);
  animation: shFloat 3s ease-in-out infinite;
}
@keyframes shFloat { 50% { transform: rotate(8deg) translateY(-5px); } }
@media (max-width: 991.98px) {
  .sh-channels { gap: 12px; }
  .sh-ch { padding: 16px; gap: 12px; min-height: 0; }
  .sh-phone { display: none; }
}
@media (max-width: 767.98px) {
  .sh-channels { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sh-ch {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    min-height: 0;
  }
  .sh-ch-body { display: contents; }
  .sh-ch-icon {
    grid-column: 1;
    grid-row: 1;
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 10px;
    align-self: center;
  }
  .sh-ch h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
  }
  .sh-ch p,
  .sh-ch-note { display: none; }
  .sh-ch-actions,
  .sh-ch .btn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
  .sh-ch-actions { display: block; }
  .sh-ch .btn {
    justify-content: center;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }
}
@media (max-width: 575.98px) {
  .sh-channels { gap: 8px; }
  .sh-ch { padding: 8px; border-radius: 14px; }
}

/* Coming soon */
.soon-head { align-items: center; }
.soon-head > * { min-width: 0; max-width: 100%; }
.soon-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.soon-tabs::-webkit-scrollbar { display: none; }
.soon-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px;
  border: 1px solid #ecece7; background: #fff;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2);
  transition: border-color .2s, color .2s, background .2s;
}
.soon-chip i { font-size: 16px; }
.soon-chip:hover { color: var(--brand); }
.soon-chip.active { border-color: #9cbf92; color: var(--brand); background: #f3f8ef; }
.soon-wrap { position: relative; overflow: visible; }
.soon-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 18px) / 4);
  column-gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: none;
  scrollbar-width: none;
  padding: 12px 12px 28px;
  cursor: grab;
  touch-action: pan-y;
}
.soon-track::-webkit-scrollbar { display: none; }
.soon-track.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}
.soon-track .mj-plus-card { min-width: 0; margin: 4px 4px 8px; }
.soon-card {
  scroll-snap-align: start;
  background: #fff; border: 1px solid #f0f0ec; border-radius: 16px;
  padding: 10px 10px 16px; text-align: center;
  transition: box-shadow .25s;
}
.soon-card:hover { box-shadow: 0 12px 26px rgba(30, 40, 20, .08); }
.soon-img { height: 150px; border-radius: 12px; overflow: hidden; margin-bottom: 14px; background: #f6f7f2; }
.soon-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.soon-img--cut img { object-fit: contain; padding: 12px; }
.soon-card:hover .soon-img img { transform: scale(1.05); }
.soon-card .p-name { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.soon-status { font-size: 14px; font-weight: 700; margin: 0 0 8px; color: var(--ink-2); }
.soon-days { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.btn-notify {
  border: 0; background: transparent; color: var(--brand);
  font: inherit; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--btn-radius);
  transition: background .2s;
}
.btn-notify i { font-size: 20px; }
.btn-notify:hover { background: #f4f4f2; }
.btn-notify.on { background: #fde8ea; color: #c4302b; }
.soon-arrow.track-prev { right: -20px; }
.soon-arrow.track-next { left: -20px; }

/* Features variant (icon on the right) */
.features--icon-first .feature { gap: 16px; }
.features--icon-first .feature i { font-size: 34px; }

/* ==========================================================
   Footer (green)
   ========================================================== */
.site-footer { padding: 40px 0 24px; }
.footer-card {
  background: #14321e;
  color: #e6efe6;
  border-radius: 22px;
  padding: 34px 40px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.45fr;
}
.f-col { padding: 0 34px; }
.f-col + .f-col { border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.f-col:first-child { padding-inline-start: 0; }
.f-col:last-child { padding-inline-end: 0; }
.footer-card h4 { color: #fff; font-size: 18px; font-weight: 800; margin: 0 0 10px; text-align: center; }
.footer-card p { font-size: 14px; color: #c5d3c6; text-align: center; margin: 0 0 18px; }
.f-links h4 { text-align: right; }
.socials { display: grid; grid-template-columns: repeat(4, 50px); gap: 14px; justify-content: center; }
.socials a {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .45);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 21px;
  transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover { background: #fff; color: #14321e; border-color: #fff; }
.f-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.f-links a { color: #e6efe6; font-size: 15px; display: inline-flex; align-items: center; gap: 12px; transition: color .2s, transform .2s; }
.f-links a i { font-size: 12px; }
.f-links a:hover { color: #a9e39a; transform: translateX(-3px); }
.store-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px;
  padding: 7px 10px; color: #fff;
  transition: background .2s;
}
.store-badge:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.store-badge > i { font-size: 24px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.25; font-weight: 800; font-size: 16px; }
.store-badge small { font-size: 10px; font-weight: 500; opacity: .85; }
.sb-ico { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; color: #fff; }
.sb-ico--myket { background: #1e88e5; border-radius: 50%; }
.sb-ico--bazaar { background: #3fb34f; }
.f-qr { display: flex; align-items: center; gap: 14px; justify-content: center; }
.f-qr img { width: 72px; height: 72px; background: #fff; border-radius: 8px; padding: 4px; }
.f-qr span { font-size: 14px; line-height: 1.9; color: #e6efe6; }
.footer-bottom {
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #dfe9df;
}
.fb-brand { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================
   Mobile bottom navigation
   ========================================================== */
.bottom-nav {
  position: fixed;
  z-index: 1030;
  left: 8px; right: 8px; bottom: 8px;
  height: 68px;
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-radius: var(--btn-radius);
  box-shadow: 0 -2px 24px rgba(20, 30, 10, .12);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
}
.bn-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #6f716a; font-size: 12px; font-weight: 500;
  position: relative;
  transition: color .2s;
  border: 0;
  background: transparent;
}
.bn-item + .bn-item::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 18px; bottom: 18px; width: 1px; background: #f0f0ec;
}
.bn-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bn-item > i, .bn-icon > i, .bn-icon > svg {
  font-size: 22px;
  line-height: 1;
  width: 22px;
  height: 22px;
  display: block;
  text-align: center;
}
.bn-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  left: auto;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid #fff;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
}
.bn-badge.is-on { display: inline-flex; }
.bn-badge--red { background: var(--red); }
.bn-badge.bump { animation: bump .45s ease; }
.bn-item.active, .bn-item:hover { color: var(--brand); }
.bn-item.active span:last-child { font-weight: 800; }
.bn-quick i { color: var(--brand); }
.bottom-nav > .bn-account {
  flex: 1;
  display: flex;
  position: relative;
}
.bottom-nav > .bn-account > .bn-item {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
}
.bottom-nav > .bn-item + .bn-account::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: #f0f0ec;
}
.bottom-nav .header-account-menu {
  z-index: 1040;
}
.bn-item.is-active > .bn-icon > i, .bn-item.is-active { color: var(--red); }

/* ==========================================================
   Responsive — new sections
   ========================================================== */
@media (max-width: 1199.98px) {
  .kala-text h2 { font-size: 32px; }
  .season { grid-template-columns: 1fr; }
  .shelf-track { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
  .recipe-body h2 { font-size: 34px; }
  .farm { grid-template-columns: 1.3fr 1fr; }
  .farm-steps li { font-size: 13px; width: 64px; }
  .farm-steps li span { width: 42px; height: 42px; font-size: 19px; }
  .farm-steps::before { top: 20px; }
  .f-col { padding: 0 20px; }
}

@media (max-width: 991.98px) {
  /* اسکرول روی خود صفحه می‌ماند تا نوار بالای کروم با جزیره شدن هدر پنهان نشود. */
  html:has(.miveh-scroll),
  html:has(.miveh-scroll) body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
  }
  body { padding-bottom: 90px; }
  html:has(.miveh-scroll) body { padding-bottom: 0; }
  .miveh-scroll {
    height: 100%;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
  }
  .miveh-scroll::after {
    content: "";
    display: block;
    height: 90px;
  }
  .miveh-scroll:has(.offcanvas.show),
  .miveh-scroll:has(.offcanvas.showing),
  body.modal-open .miveh-scroll,
  body.rc-pick-open .miveh-scroll,
  body.rc-sheet-open .miveh-scroll,
  body:has(.offcanvas.show) .miveh-scroll,
  body:has(.offcanvas.showing) .miveh-scroll {
    overflow: hidden !important;
  }
  /* پس‌زمینه ی منو داخل همین اسکرول است؛ لمس آن نباید صفحه را ببرد. */
  body:has(#mobileMenu.show),
  body:has(#mobileMenu.showing) {
    touch-action: none;
  }
  #mobileMenu .offcanvas-body {
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
  .toast-container { bottom: 80px !important; }
  .section-gap { margin-top: 26px; }

  .kala { flex-direction: column; min-height: 0; }
  .kala-media { order: -1; flex: 0 0 auto; width: 100%; aspect-ratio: 405 / 216; }
  .kala-text { padding: 6px 22px 26px; }
  .btn-kala { align-self: center; margin: 0; }

  .shelf { flex-direction: column-reverse; padding: 16px 12px; }
  .shelf-intro { flex: 0 0 auto; width: auto; max-width: none; padding: 4px 6px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
  .shelf-intro .block-title { margin: 0; }
  .shelf-intro p { order: 3; flex: 1 1 100%; margin: 0; line-height: 1.8; font-size: 14px; }
  .shelf-intro p br { display: none; }
  .shelf-intro .btn-pill { height: 38px; padding: 0 16px; font-size: 13px; }
  .shelf-track { grid-auto-columns: 168px; }

  .packs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 240px; scroll-snap-type: x proximity; }
  .pack-card { scroll-snap-align: start; }
  .pack-add { opacity: 1; transform: none; }

  .recipe { grid-template-columns: 1fr; grid-template-areas: "media" "body"; min-height: 0; }
  /* عکس موبایل درشت‌تر و بدون محو‌شدگی، داخل کارت با گوشه ی گرد. */
  .recipe-media {
    min-height: 0;
    aspect-ratio: 1 / 1;
    max-height: min(400px, 62vh);
    overflow: hidden;
  }
  .recipe-media img { -webkit-mask-image: none; mask-image: none; }
  .recipe-body { padding: 16px 18px 20px; max-width: 640px; width: 100%; min-width: 0; margin-inline: auto; }
  .recipe-body p { max-width: none; }
  /* متن‌ها سقف خط دارند تا کارت با کوتاه و بلند شدن توضیح، قد عوض نکند. */
  .recipe-body .recipe-lead, .recipe-body .recipe-desc { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .recipe-body .recipe-lead { -webkit-line-clamp: 2; }
  .recipe-body .recipe-desc { -webkit-line-clamp: 2; }
  /* مواد لازم یک خط می‌ماند و به‌جای شکستن، افقی اسکرول می‌شود. */
  .ingredients { padding: 10px 12px; }
  .recipe-foot { padding-top: 16px; }
  .recipe-chips { gap: 8px; }
  .recipe-chips .r-chip { flex: 1 1 auto; justify-content: center; padding-inline: 10px; white-space: nowrap; }
  .recipe-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; min-width: 0; }
  .recipe-actions > * { width: 100%; }
  .recipe-actions .btn-recipe-buy, .recipe-actions .btn-recipe { padding-inline: 12px; }
  .recipe-chips { min-width: 0; }
  .recipe-chips .r-chip { min-width: 0; }
  .btn-soft--end { margin: 0; flex-basis: 100%; }
  .recipe-bar { margin-top: 14px; gap: 14px; }
  /* روی موبایل کشیدن و نقطه‌ها کافی است؛ فلش‌ها روی متن می‌افتادند. */
  .recipe-nav { display: none; }

  .health { padding: 20px 14px 16px; }
  .health-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; }
  .health-panel { grid-template-columns: 1fr; padding: 14px 10px; }
  .hp-track { grid-auto-columns: 180px; padding: 2px 4px; }
  .hp-arrow { display: none; }
  .hp-text { text-align: center; }

  .farm { grid-template-columns: 1fr; padding: 12px; gap: 18px; }
  .farm-text { padding: 0 8px 8px; }

  .soon-head { flex-direction: column; align-items: stretch; }
  .soon-track { grid-auto-columns: 210px; }
  .soon-arrow { display: none; }
  .features--icon-first { margin-top: 0; }
  .features--icon-first .feature { flex-direction: row; }

  .site-footer { padding-bottom: 8px; }
}

/* تبلت: سه ستون فشرده تا چپ و راست فوتر خالی نماند. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .footer-card { padding: 28px 22px 0; }
  .footer-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0;
  }
  .f-col { padding: 0 12px; }
  .f-col:first-child { padding-inline-start: 0; }
  .f-col:last-child { padding-inline-end: 0; }
  .footer-card h4 { font-size: 16px; }
  .socials {
    grid-template-columns: repeat(3, 42px);
    gap: 10px;
  }
  .socials a { width: 42px; height: 42px; font-size: 18px; }
  .f-links ul { gap: 10px; }
  .f-qr { gap: 10px; }
  .f-qr img { width: 64px; height: 64px; }
  .footer-bottom { font-size: 13px; }
}

@media (max-width: 767.98px) {
  .footer-card { padding: 26px 20px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .f-col { padding: 0; }
  .f-col + .f-col { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; }
  .f-links h4 { text-align: center; }
  .f-links ul { grid-template-columns: 1fr 1fr; gap: 12px 18px; }
  .f-qr { justify-content: center; }
  .footer-bottom { flex-direction: column-reverse; text-align: center; }
}

@media (max-width: 575.98px) {
  /* کروسل‌های صفحه ی اول: تیتر سمت راست و «مشاهده همه» سمت چپ در یک ردیف، بدون توضیح زیر تیتر. */
  .page-home .section-head:not(.section-head--row) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title all" "tabs tabs";
    align-items: center;
    gap: 10px 12px;
    min-width: 0;
    width: 100%;
  }
  .page-home .section-head:not(.section-head--row) > div:first-child { grid-area: title; min-width: 0; }
  .page-home .section-head-end { display: contents; }
  .page-home .section-head-end .see-all { grid-area: all; }
  .page-home .section-head-end .filter-tabs {
    grid-area: tabs;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
  }
  .page-home .section-head:not(.section-head--row) .section-title { font-size: 17px; margin: 0; }
  .page-home .section-head .section-sub { display: none; }

  .page-home .shelf-intro .block-title { font-size: 20px; }
  .page-home .shelf-intro > p:not(.shelf-empty) { display: none; }
  .page-home .shelf-intro { column-gap: 8px; }
  .page-home .shelf-intro .btn-pill { order: 1; height: 34px; padding: 0 12px; gap: 6px; font-size: 12px; }
  .page-home .shelf-intro .filter-tabs { order: 2; flex: 1 1 100%; margin-bottom: 0; }
  .page-home .shelf-intro .shelf-empty { order: 3; flex: 1 1 100%; }

  .kala-text h2 { font-size: 26px; }
  .kala-text p { font-size: 15px; margin-bottom: 18px; }

  .season-grid { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .season-item { gap: 8px; padding: 8px 2px; }
  .season-item .p-img { width: 58px; height: 54px; }
  .si-text .p-name { font-size: 15px; }
  .si-text span { font-size: 12px; }
  .si-add { width: 30px; height: 30px; font-size: 18px; }
  .season-banner { flex-direction: column-reverse; min-height: 0; }
  .sb-img { width: 100%; flex: 0 0 auto; aspect-ratio: 230 / 150; }
  .sb-text { padding: 20px 20px 22px; }
  .sb-text h3 { font-size: 24px; }

  .shelf-track { grid-auto-columns: 148px; column-gap: 10px; }
  .shelf-card .p-img { height: 120px; }
  #juices .shelf-track { display: flex; }
  .shelf-card--juice .wish-btn,
  .juice-card-info { width: 36px; height: 36px; }
  .shelf-card--juice .wish-btn svg,
  .juice-card-info svg { width: 18px; height: 18px; }
  .juice-card-shot { height: 148px; }
  .shelf-card--juice .p-img { height: 100%; margin: 0; }
  .shelf-card--juice .juice-card-add { height: 42px; font-size: 13px; }
  .shelf-card--juice .juice-card-cart.is-in .miveh-cart-step { height: 42px; }
  .shelf-arrow { display: none; }

  .recipe-body h2 { font-size: 30px; }
  .recipe-title-icon { width: 34px; }
  .recipe-body h2 .recipe-title-icon { font-size: 28px; }
  .recipe-body h3 { font-size: 17px; }
  .recipe-lead, .recipe-desc { text-align: center; }
  .recipe-body p { font-size: 14px; }
  .r-chip { padding: 8px 12px; font-size: 13px; }
  .ingredients { padding: 10px 12px; }
  .ingredients li { font-size: 13px; gap: 4px; }
  .ingredients img { height: 24px; }
  .btn-soft, .btn-recipe { height: 48px; padding: 0 16px; font-size: 14px; }
  .btn-recipe { gap: 12px; }
  .recipe-bar { margin-top: 12px; gap: 12px; }
  .recipe-nav { width: 36px; height: 36px; font-size: 15px; }
  .recipe-dots .swiper-pagination-bullet { width: 8px; height: 8px; }
  .recipe-dots .swiper-pagination-bullet-active { width: 22px; }

  .health-head h2 { font-size: 22px; }
  .health-tabs { grid-auto-columns: 96px; gap: 10px; }
  .h-tab { padding: 14px 4px 10px; font-size: 13px; }
  .h-tab img { height: 40px; }

  .farm-media { aspect-ratio: 4 / 3.3; }
  .farm-media > img { object-position: 60% 30%; }
  .play-btn { width: 66px; height: 66px; font-size: 34px; top: 36%; }
  .farm-steps { inset: auto 8px 10px 8px; }
  .farm-steps li { font-size: 11px; width: 48px; gap: 6px; }
  .farm-steps li span { width: 34px; height: 34px; font-size: 15px; }
  .farm-steps::before { top: 16px; left: 20px; right: 20px; height: 3px; }
  .farm-text h2 { font-size: 24px; }
  .farm-badges li { font-size: 11px; }

  .story-steps { grid-template-columns: repeat(3, 1fr); }

  .soon-track { grid-auto-columns: 176px; column-gap: 12px; }
  .soon-img { height: 120px; }
  .soon-status { font-size: 13px; }

  .features--icon-first .feature { flex-direction: row; justify-content: flex-start; }
  .socials { grid-template-columns: repeat(4, 46px); }
  .socials a { width: 46px; height: 46px; font-size: 19px; }
}

/* Product links on cards */
a.p-img { display: block; }
.p-name a { color: inherit; }
.p-name a:hover { color: var(--brand); }

/* نوار سبد سریع، همان نوار فروشگاه، روی همه ی صفحه‌ها */
body:has(.miveh-auth) .sh-cartbar { display: none !important; }
body:has(.miveh-auth).has-cartbar { padding-bottom: 0; }
.sh-cartbar {
  position: fixed;
  z-index: 1025;
  left: 0;
  right: 0;
  bottom: 16px;
  pointer-events: none;
  display: none;
  transform: translateY(140%);
  transition: transform .35s ease;
}
.sh-cartbar.is-visible {
  display: block;
  transform: none;
}
.sh-cartbar-inner {
  pointer-events: auto;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 18px;
  background: #fff;
  border: 1px solid #eeeee8;
  border-radius: var(--btn-radius);
  box-shadow: 0 10px 34px rgba(20, 30, 10, .16);
}
.sh-cartbar-img { position: relative; width: 52px; height: 46px; flex: 0 0 auto; }
.sh-cartbar-img img { width: 100%; height: 100%; /*object-fit: contain;*/ border-radius: 5px; }
.sh-cartbar-img b {
  position: absolute;
  top: -6px;
  inset-inline-start: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  padding: 0 4px;
}
.sh-cartbar-img b.bump { animation: bump .45s ease; }
.sh-cartbar-btn {
  order: 1;
  margin-inline-start: auto;
  height: 44px;
  border-radius: var(--btn-radius);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  flex: 0 0 auto;
}
.sh-cartbar-btn i { font-size: 20px; line-height: 1; }
.sh-cartbar-label-short { display: none; }
.sh-cartbar-total { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sh-cartbar-total b { font-size: 19px; font-weight: 800; color: var(--ink); }
.sh-cartbar-count { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.sh-cartbar-count b { font-weight: 900; }
.sh-cartbar-more {
  margin-inline-start: auto;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
body.has-cartbar { padding-bottom: 96px; }
body.has-cartbar .toast-container { bottom: 76px !important; }
.sh-cart.offcanvas-bottom { height: auto; max-height: 82vh; border-radius: 22px 22px 0 0; }
.sh-cart.offcanvas-end { width: 420px; }
/* دسکتاپ: حتی اگر کلاس پایین مانده باشد، ورق از چپ باز می‌شود. */
@media (min-width: 992px) {
  .offcanvas.sh-cart.offcanvas-bottom {
    top: 0;
    right: auto;
    left: 0;
    width: 420px;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border-top: 0;
    border-right: var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);
    transform: translateX(-100%);
  }
  .offcanvas.sh-cart.offcanvas-bottom.showing,
  .offcanvas.sh-cart.offcanvas-bottom.show:not(.hiding) {
    transform: none;
  }
}
.sh-cart .offcanvas-header { border-bottom: 1px solid var(--line); }
.sh-cart .offcanvas-title { font-weight: 900; display: flex; align-items: center; gap: 8px; }
.sh-cart .offcanvas-header small { color: var(--muted); }
.sh-cart-list { display: grid; gap: 10px; }
.sh-line {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid #efefe9;
  border-radius: 14px;
}
.sh-line img { width: 58px; height: 58px; border-radius: 10px; object-fit: contain; background: #f7f7f3; }
.sh-line h6 { font-size: 14px; font-weight: 800; margin: 0 0 2px; }
.sh-line small { font-size: 12px; color: var(--muted); display: block; }
.sh-line .sh-line-price { font-size: 14px; font-weight: 800; color: var(--ink); }
.sh-qty { display: inline-flex; align-items: center; height: 38px; padding: 0 3px; border: 1px solid #ecece6; border-radius: 12px; background: #fff; }
.sh-qty button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); }
.sh-qty output { min-width: 22px; text-align: center; font-weight: 800; }
.sh-cart-empty { text-align: center; color: var(--muted); padding: 20px 0; margin: 0; }
.sh-cart-empty i { display: block; font-size: 40px; color: #c4c4bc; margin-bottom: 6px; }
.sh-cart-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.sh-cart-sum { margin: 0 0 12px; display: grid; gap: 6px; font-size: 14px; }
.sh-cart-sum div { display: flex; justify-content: space-between; }
.sh-cart-sum dt { font-weight: 500; color: #6f6f69; }
.sh-cart-sum dd { margin: 0; font-weight: 700; }
.sh-cart-sum .is-save dd { color: var(--red); }
.sh-cart-sum .is-total { font-size: 16px; padding-top: 6px; border-top: 1px dashed #e4e4de; }
.sh-cart-sum .is-total dt, .sh-cart-sum .is-total dd { color: var(--ink); font-weight: 800; }
.sh-cart-foot .btn { height: 50px; border-radius: var(--btn-radius); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 991.98px) {
  .sh-cartbar { bottom: 84px; padding: 0 8px; }
  .sh-cartbar-inner { padding: 2px 8px 2px 2px; gap: 8px; }
  .sh-cartbar-img { width: 32px; height: 28px; }
  .sh-cartbar-count { display: none; }
  .sh-cartbar-btn { height: 28px; padding: 0 8px; font-size: 12px; gap: 4px; }
  .sh-cartbar-btn i { font-size: 14px; }
  .sh-cartbar-total b { font-size: 16px; }
  .sh-cartbar-label-full { display: none; }
  .sh-cartbar-label-short { display: inline; }
}

/* Recipe — تبلت: تصویر کوتاه‌تر و متن رو‌به‌وسط تا کارت روی موبایل و تبلت یک‌دست دیده شود. */
@media (min-width: 576px) and (max-width: 991.98px) {
  .recipe-body { text-align: center; }
  .recipe-body h2 { justify-content: center; }
  .recipe-lead, .recipe-desc { text-align: center; }
  .recipe-actions { flex-direction: row; justify-content: center; }
  .recipe-actions > * { width: auto; }
}

/* تخفیف روز همان کارت پرفروش است؛ کارت فعال مثل قبل پهن‌تر، عکس‌درشت‌تر و دکمه ی تمام‌عرض می‌شود. */
:is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card {
  flex: 0 0 210px;
  min-width: 0;
  height: auto;
  align-self: stretch;
  scroll-snap-align: center;
  cursor: pointer;
  transition: flex-basis .35s ease, box-shadow .3s ease;
}
:is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .p-img,
:is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .p-img {
  height: 100%;
}
:is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .p-name,
:is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .mj-plus-card-now strong,
:is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .mj-plus-card-was {
  transition: font-size .3s ease;
}
:is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .mj-plus-card-add {
  transition: width .3s ease, height .3s ease, border-radius .3s ease, background .2s;
}
:is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .p-name {
  min-width: 0;
  overflow: hidden;
}
:is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .p-name a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}
/* اگر خط در سبد باشد فقط شمارنده می‌ماند؛ دکمه ی افزودن دیده نمی‌شود. */
:is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .mj-plus-card-cart.is-in .mj-plus-card-add {
  display: none;
}
:is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .mj-plus-card-add .lbl { display: none; }
@media (max-width: 991.98px) {
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active {
    flex-basis: 300px;
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "shot"
      "name"
      "unit"
      "pay"
      "bar";
    align-items: start;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-shot { grid-area: shot; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .p-name {
    grid-area: name;
    min-width: 0;
    margin: 10px 0 0;
    font-size: 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .p-name a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-unit {
    grid-area: unit;
    margin: 2px 0 4px;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-was { font-size: 13px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-now strong { font-size: 22px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-bar { display: contents; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-pay {
    grid-area: pay;
    flex: 0 0 auto;
    align-self: start;
    margin-top: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    white-space: nowrap;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-now,
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-now strong,
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-was {
    overflow: visible;
    max-width: none;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-cart {
    grid-area: bar;
    flex: none;
    width: 100%;
    margin-top: 8px;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-cart.is-in {
    grid-area: bar;
    flex: none;
    width: 100%;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .miveh-cart-step {
    width: 100%;
    height: 46px;
    justify-content: space-between;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-mobile-lbl { display: none; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-add {
    width: 100%;
    height: 46px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-add::before { content: none; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-add .lbl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-add .lbl .bi {
    display: inline-block;
    font-size: 18px;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-card-bar {
    flex-wrap: nowrap;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-card-pay {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-card-cart,
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-card-cart.is-in {
    flex: 0 0 auto;
    width: auto;
    margin-top: 0;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-card-cart.is-in .mj-plus-card-add {
    display: none;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .miveh-cart-step {
    justify-content: center;
    align-items: center;
    gap: 1px;
    width: auto;
    min-width: 44px;
    height: 44px;
    flex: 0 0 auto;
    padding: 4px 7px 5px;
    border: 1px solid #d4e8cc;
    border-radius: 14px;
    background: #f3faef;
    box-shadow: 0 4px 12px rgba(43, 106, 37, .14);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .miveh-cart-step::before {
    content: "\F23F";
    font-family: "bootstrap-icons";
    font-size: 13px;
    line-height: 1;
    color: #2b6a25;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .miveh-cart-step button {
    display: none;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .miveh-cart-step strong {
    flex: 0 0 3ch;
    width: 3ch;
    min-width: 3ch;
    padding: 0;
    color: #1c4d18;
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    line-height: 1;
    text-align: center;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active):hover .miveh-cart-step {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(40, 36, 20, 0.12);
  }
  #offersTrack,
  #juices .shelf-track,
  #dried .shelf-track,
  #bestsellers .shelf-track,
  #packs .shelf-track,
  #gift-packs .shelf-track {
    align-items: stretch;
    gap: 10px;
    height: 412px;
    min-height: 412px;
    max-height: 412px;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card { flex-basis: 168px; align-self: stretch; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active { flex-basis: 220px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .p-name { font-size: 13px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-now strong { font-size: 16px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-was { font-size: 11px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-add {
    height: 36px;
    border-radius: 7px;
    font-size: 11px;
    gap: 6px;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-add .lbl { gap: 6px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-add .lbl .bi { font-size: 15px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .miveh-cart-step { height: 36px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .mj-plus-card-off {
    top: 4px;
    left: 4px;
    padding: 2px 7px;
    font-size: 10px;
    max-width: calc(100% - 44px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .mj-plus-card-tools {
    top: 4px;
    right: 4px;
    gap: 4px;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .wish-btn,
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .mj-plus-card-info {
    width: 26px;
    height: 26px;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .wish-btn svg,
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card .mj-plus-card-info svg {
    width: 15px;
    height: 15px;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card-shot {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}
@media (max-width: 575.98px) {
  #offersTrack,
  #juices .shelf-track,
  #dried .shelf-track,
  #bestsellers .shelf-track,
  #packs .shelf-track,
  #gift-packs .shelf-track {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card { flex-basis: 156px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active { flex-basis: 200px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-now strong { font-size: 15px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .mj-plus-card-add { height: 34px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card.is-active .miveh-cart-step { height: 34px; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-card-bar { flex-wrap: nowrap; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-card-pay { flex: 1 1 auto; width: auto; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-card-cart,
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-card-cart.is-in {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-card-add {
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    font-size: 0;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-mobile-lbl { display: none; }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-card-add::before {
    content: "";
    width: 11px;
    height: 11px;
    background:
      linear-gradient(#fff, #fff) center / 11px 2px no-repeat,
      linear-gradient(#fff, #fff) center / 2px 11px no-repeat;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .miveh-cart-step {
    min-width: 28px;
    height: 28px;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card:not(.is-active) .mj-plus-card-cart.is-in .mj-plus-card-add {
    display: none;
  }
  :is(#offersTrack, [data-grow-rail]:not(#healthItems)) .mj-plus-card-shot {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

/* قیمت فروشگاه: یک فونت رقم، وزن اصلی و خط‌خورده */
.mj-price,
.mj-price strong,
.mj-price b,
.sh-line-price.mj-price,
.sh-cartbar-total .mj-price,
.pd-now.mj-price strong,
.cart-page .mj-price,
.address-page .mj-price,
.payment-page .mj-price {
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-variant-numeric: lining-nums proportional-nums;
  font-weight: 800;
  letter-spacing: -.1em;
  white-space: nowrap;
}
.mj-price--old,
.mj-price--old strong,
.mj-price--old del,
.mj-price del {
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-variant-numeric: lining-nums proportional-nums;
  font-weight: 600;
  letter-spacing: -.1em;
}
.mj-price .currency,
.mj-price .mj-toman,
.mj-price .mj-price-unit,
.mj-price .pd-unit {
  font-family: inherit;
  font-weight: 700;
}
