/* لندینگ پک. راست‌چین است و عرضش با ظرف فوتر یکی است. */
.page-pack-home,
.page-pack-home .miveh-main { background: #fff; }
.pg-page {
  direction: rtl;
  text-align: right;
  padding: 16px 0 48px;
}
.pg-page img {
  object-fit: contain;
  object-position: center;
}

/* هیرو یک عکس تمام‌قاب است؛ متن روی گرادیان پایین می‌نشیند. */
.pg-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 320px;
  border-radius: 24px;
  padding: 22px 18px 20px;
  background: #1a2418;
}
.pg-page .pg-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.pg-hero--pack .pg-hero-photo { object-position: 48% 50%; }
.pg-hero--gift .pg-hero-photo { object-position: 50% 50%; }
.pg-hero--gift { /*align-items: flex-end;*/ }
.pg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 16, 12, .04) 0%, rgba(10, 16, 12, .22) 42%, rgba(10, 16, 12, .82) 100%);
}
.pg-hero--gift::before {
  background: linear-gradient(180deg, rgba(20, 12, 6, .06) 0%, rgba(20, 12, 6, .28) 46%, rgba(20, 12, 6, .84) 100%);
}
.pg-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 28rem;
  text-align: right;
}
.pg-hero-copy h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}
.pg-hero-copy p {
  margin: 0 0 16px;
  color: #e8efe4;
  font-size: 14px;
  line-height: 1.9;
}
.pg-hero--gift .pg-hero-copy p { color: #f3ead6; }
.pg-hero-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  color: #eef6ea;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.pg-hero--gift .pg-hero-more { color: #f6ead0; }
.pg-hero-more:hover { color: #fff; }
.pg-hero--gift .pg-btn {
  box-shadow: 0 8px 18px rgba(107, 78, 22, .28);
}
.pg-btn:focus-visible,
.pg-hero-more:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.pg-btn {
  --bs-btn-color: #fff;
  --bs-btn-bg: #2b6a25;
  --bs-btn-border-color: #2b6a25;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #235a1e;
  --bs-btn-hover-border-color: #235a1e;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1f5a1c;
  --bs-btn-active-border-color: #1f5a1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(43, 106, 37, .22);
}
.pg-btn i { font-size: 1.05em; }

.pg-trust {
  margin-top: 16px;
  background: #fff;
  border-radius: 18px;
  padding: 10px 8px;
  box-shadow: 0 8px 24px rgba(30, 40, 20, .05);
}
.pg-trust-row { flex-wrap: nowrap; justify-content: space-between; }
.pg-trust-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 4px;
}
.pg-trust-item i { font-size: 24px; color: #2b6a25; line-height: 1; }
.pg-trust-item strong { font-size: 13px; font-weight: 800; color: #1d2a1f; white-space: nowrap; }
.pg-trust-item span { font-size: 11px; color: #8b8b86; line-height: 1.4; white-space: nowrap; }

.pg-smart {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  background: #f4f6f2;
  border-radius: 22px;
  padding: 16px 22px;
}
.pg-smart-btn { grid-column: 1; }
.pg-smart-copy { grid-column: 2; min-width: 0; text-align: right; }
.pg-smart-bot { grid-column: 3; width: 108px; height: 128px; justify-self: center; }
.pg-smart-copy h2 { margin: 0 0 6px; font-size: 20px; font-weight: 900; color: #1d2a1f; }
.pg-smart-copy p { margin: 0; color: #5c665d; font-size: 14px; line-height: 1.8; }

.pg-block { margin-top: 28px; }
.pg-title { margin: 0 0 14px; font-size: 16px; font-weight: 900; color: #1d2a1f; }
.pg-title i { color: #2b6a25; font-size: .95em; }
.pg-more { color: #6f716a; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pg-more:hover { color: #2b6a25; }

.pg-scroller { position: relative; }
.pg-rail {
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
  padding: 4px 0 6px;
  align-items: stretch;
}
#pgPacksTrack,
#pgReviewsTrack { scroll-snap-type: none; }
.pg-rail::-webkit-scrollbar { display: none; }
.pg-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.pg-rail.is-drag a, .pg-rail.is-drag button { pointer-events: none; }
.pg-rail img { -webkit-user-drag: none; user-select: none; }

.pg-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #4a4c44;
  box-shadow: 0 4px 14px rgba(30, 40, 20, .16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-nav-left { left: -6px; }
.pg-nav-right { right: -6px; }
.pg-nav[hidden] { display: none; }
.pg-cat {
  flex: 0 0 168px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 10px;
  background: #f4f6f2;
  border-radius: 18px;
  color: inherit;
  text-align: center;
}
.pg-cat-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
}
.pg-cat-shot img { max-width: 86%; max-height: 100%; }
.pg-cat-name { font-size: 13px; font-weight: 800; color: #1d2a1f; white-space: nowrap; }

.pg-rail .mj-plus-card,
.pg-pack {
  flex: 0 0 calc((100% - 56px) / 5);
  scroll-snap-align: start;
  min-width: 0;
  height: auto;
  align-self: stretch;
}
.pg-pack {
  background: #fff;
  border: 1px solid #eef1ea;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  text-align: center;
  cursor: pointer;
}
.pg-pack-shot {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 14px;
}
.pg-pack-shot img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
.pg-pack-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #2b6a25;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
}
.pg-pack-badge--vip { background: #e0b325; color: #3d3208; }
.pg-pack-badge--off { background: #e5484d; }
.pg-pack h3 { margin: 0; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-pack p { margin: 2px 0 0; color: #8b8b86; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-pack-rate {
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  color: #7b857c;
}
.pg-pack-rate i { color: #f6b400; }
.pg-pack-rate b { color: #1d2a1f; }
.pg-pack-foot { margin-top: auto; position: relative; z-index: 1; }
.pg-pack-cart,
.pg-pack-heart {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  font-size: 20px;
}
.pg-pack-cart { background: #2b6a25; color: #fff; }
.pg-pack-cart:hover { background: #235a1e; color: #fff; }
.pg-pack-heart { background: transparent; color: #5c665d; font-size: 22px; }

@media (min-width: 992px) {
  .pg-hero { padding: 40px 48px; min-height: 420px; }
  .pg-hero-copy h1 { font-size: 40px; }
  .pg-hero-copy p { font-size: 16px; margin-bottom: 20px; }
  .pg-btn { min-height: 46px; font-size: 15px; }
  .pg-trust { padding: 8px 6px; }
  .pg-trust-item i { font-size: 26px; }
  .pg-smart-copy h2 { font-size: 22px; }
  .pg-title { font-size: 18px; }
}

@media (max-width: 991.98px) {
  .page-pack-home .pg-page { padding-inline: 16px; }
  .pg-rail .mj-plus-card,
  .pg-pack { flex-basis: 46%; }
  .pg-cat { flex-basis: 38%; }
}

@media (max-width: 767.98px) {
  .pg-page { padding-top: 12px; padding-bottom: 8px; }
  .pg-hero { padding: 18px 16px 16px; min-height: 340px; border-radius: 20px; }
  .pg-hero--gift .pg-hero-photo { object-position: 48% 50%; }
  .pg-hero-copy h1 { font-size: 22px; line-height: 1.4; margin-bottom: 8px; }
  .pg-hero-copy p { font-size: 13px; margin-bottom: 14px; }
  .pg-hero-actions .pg-btn { width: 100%; }
  .pg-trust { margin-top: 12px; padding: 8px 4px; border-radius: 14px; }
  .pg-trust-row {
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pg-trust-row::-webkit-scrollbar { display: none; }
  .pg-trust-item { flex: 0 0 auto; gap: 1px; padding: 2px 4px; }
  .pg-trust-item i { font-size: 18px; }
  .pg-trust-item strong { font-size: 11px; }
  .pg-trust-item span { font-size: 9px; }
  .pg-smart {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "copy bot" "btn bot";
    gap: 4px 8px;
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 16px;
  }
  .pg-smart-copy { grid-area: copy; }
  .pg-smart-btn { grid-area: btn; justify-self: start; }
  .pg-smart-bot { grid-area: bot; width: 52px; height: 62px; }
  .pg-smart-copy h2 { font-size: 12px; margin-bottom: 0; white-space: nowrap; }
  .pg-smart-copy p { display: none; }
  .pg-nav { width: 26px; height: 26px; margin-top: -13px; font-size: 12px; }
  .pg-block { margin-top: 18px; }
  .pg-title { font-size: 14px; margin-bottom: 10px; white-space: nowrap; }
  .pg-more { font-size: 11px; }
  .pg-cat { padding: 8px 6px; border-radius: 14px; }
  .pg-cat-shot { height: 64px; }
  .pg-cat-name { font-size: 11px; }
  .pg-pack { padding: 8px; border-radius: 14px; }
  .pg-pack-badge { font-size: 11px; padding: 3px 8px; top: 4px; left: 4px; }
  .pg-pack h3 { font-size: 12px; }
  .pg-pack p { font-size: 10px; }
  .pg-pack-rate { font-size: 11px; margin: 6px 0; }
  .pg-pack-cart, .pg-pack-heart { width: 36px; height: 36px; font-size: 16px; }
  .pg-pack-heart { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-rail { scroll-behavior: auto; }
}
