/* ==========================================================
   میوه‌جو — فهرست پک‌ها (Packs/Index.cshtml)
   ========================================================== */

/* ---- Page ---- */
.pk-page { padding: 8px 0 28px; }

/* ---- Desktop title ---- */
.pk-desk-title {
  align-items: baseline;
  gap: 12px;
  margin: 6px 0 14px;
}
.pk-desk-title h1 { margin: 0; font-size: 28px; font-weight: 900; }
.pk-desk-title p  { margin: 0; color: var(--muted); font-size: 14px; }

/* ---- Mobile topbar ---- */
.pk-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 8px;
  gap: 6px;
  background: #fff;
  border-bottom: 1px solid #f3f3ef;
  direction: ltr;   /* physical: back-left, title-center, icons-right */
}
.pk-topbar h1 {
  flex: 1;
  margin: 0;
  direction: rtl;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}
.pk-topbar .icon-btn { width: 40px; height: 40px; font-size: 22px; }
.pk-topbar-side { display: flex; align-items: center; }

/* ---- Search: ذره‌بین سمت راست مثل طرح ---- */
.pk-search { position: relative; margin-bottom: 14px; }
.pk-search i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8d8d86;
  font-size: 17px;
  pointer-events: none;
  transition: color .2s;
}
.pk-search input {
  width: 100%;
  height: 48px;
  border: 1px solid #eeeae4;
  border-radius: 16px;
  background: #fff;
  padding: 0 46px 0 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: 0 2px 10px rgba(30, 40, 20, .04);
  transition: border-color .2s, box-shadow .25s;
}
.pk-search input:focus { border-color: #cfe0c9; box-shadow: 0 0 0 4px rgba(43, 106, 37, .1); }
.pk-search:focus-within i { color: var(--brand); }

/* ---- Categories: کاروسل، همه اول ---- */
.pk-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-bottom: 12px;
  justify-content: flex-start;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pk-cats::-webkit-scrollbar { display: none; }

.pk-cat {
  --pk-c: #495057;
  flex: 0 0 64px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 2px 8px;
  border: 1px solid #eeeae4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 40, 20, .04);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #4a4c44;
  white-space: nowrap;
  direction: rtl;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .18s ease, border-color .2s, box-shadow .25s, color .2s;
}
.pk-cat:active { transform: scale(.94); }
.pk-cat.active {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(43, 106, 37, .16);
}
.pk-cat-ico {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--pk-c);
}
.pk-cat.active .pk-cat-ico { animation: pkHop .45s cubic-bezier(.3, 1.6, .5, 1); }

.pk-cat--eco    { --pk-c: #2b8a3e; }
.pk-cat--family { --pk-c: #7048e8; }
.pk-cat--best   { --pk-c: #f59f00; }
.pk-cat--party  { --pk-c: #e64980; }
.pk-cat--diet   { --pk-c: #f08c00; }
.pk-cat--gift   { --pk-c: #e03131; }

/* همه: چهار مربع رنگی */
.pk-cat-ico--all {
  display: grid;
  grid-template-columns: repeat(2, 12px);
  gap: 3px;
  align-content: center;
  justify-content: center;
}
.pk-cat-ico--all i { width: 12px; height: 12px; border-radius: 4px; }
.pk-cat-ico--all i:nth-child(1) { background: #fa5252; }
.pk-cat-ico--all i:nth-child(2) { background: #fab005; }
.pk-cat-ico--all i:nth-child(3) { background: #228be6; }
.pk-cat-ico--all i:nth-child(4) { background: #40c057; }

/* ---- Hero: عکس سمت راست، متن و ویژگی‌ها سمت چپ ---- */
.pk-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  background: radial-gradient(120% 140% at 85% 20%, #fff7e8 0%, #fdf8ef 45%, #f6f9ef 100%);
  border: 1px solid #f1eadb;
  border-radius: 22px;
  padding: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.pk-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
}
.pk-hero-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  animation: pkFloat 5s ease-in-out infinite;
}
.pk-hero-copy { direction: rtl; min-width: 0; }
.pk-hero-copy h2 { font-size: 16px; font-weight: 900; margin: 0 0 2px; line-height: 1.5; }
.pk-hero-copy p  { font-size: 11px; color: #66705f; margin: 0 0 10px; }
.pk-fire { display: inline-block; transform-origin: 50% 90%; animation: pkFlame 1.6s ease-in-out infinite; }

/* اولین فرزند در ردیف راست‌چین سمت راست است: کیفیت راست، ارسال چپ */
.pk-hero-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.pk-feat {
  --pk-c: var(--brand);
  --pk-bg: #eef6ea;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 7px 2px;
  border-radius: 12px;
  background: var(--pk-bg);
  animation: pkUp .5s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: calc(350ms + var(--i, 0) * 110ms);
}
.pk-feat--quality { --pk-c: #7048e8; --pk-bg: #f3effd; }
.pk-feat--fresh   { --pk-c: #c77700; --pk-bg: #fdf3e2; }
.pk-feat--fast    { --pk-c: #2b8a3e; --pk-bg: #eaf6ec; }
.pk-feat-ico { color: var(--pk-c); font-size: 17px; line-height: 1; }
.pk-feat b     { font-size: 9px; font-weight: 900; color: var(--ink); line-height: 1.3; }
.pk-feat small { font-size: 8px; color: var(--muted); font-weight: 600; line-height: 1.3; }

/* ---- Sort bar: تعداد سمت راست، مرتب‌سازی سمت چپ ---- */
.pk-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pk-count { display: inline-block; font-size: 13px; font-weight: 800; color: #4a4c44; }
.pk-count.pk-tick { animation: tick .3s ease; }

.pk-sort-btn {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #eeeae4;
  border-radius: 12px;
  background: #f7f7f5;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.pk-sort-btn:hover, .pk-sort-btn[aria-expanded="true"] { background: #fff; border-color: #cfe0c9; }
.pk-sort-btn .bi-chevron-down { font-size: 10px; transition: transform .25s; }
.pk-sort-btn[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }

/* ---- Pack grid ---- */
.pk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

/* ---- Pack card ---- */
/* رنگ نشان و زمینه ی قاب عکس از روی متن نشان؛ بقیه رنگ برند می‌گیرند. */
.pk-card {
  --pk-tone: var(--brand);
  --pk-tint: #f3f7ee;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #f0eee8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(30, 40, 20, .06);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.pk-card[data-badge*="پرفروش"] { --pk-tone: #e03131; --pk-tint: #fff0f2; }
.pk-card[data-badge*="اقتصادی"] { --pk-tone: #2b8a3e; --pk-tint: #edf7ee; }
.pk-card[data-badge*="خانواده"] { --pk-tone: #f76707; --pk-tint: #fff4e6; }
.pk-card[data-badge*="رژیمی"]   { --pk-tone: #1c7ed6; --pk-tint: #eaf4fd; }
.pk-card[data-badge*="کودک"]    { --pk-tone: #9c36b5; --pk-tint: #f8f0fc; }
.pk-card[data-badge*="هدیه"]    { --pk-tone: #c92a2a; --pk-tint: #fff5f0; }

.pk-img-wrap {
  position: relative;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pk-tint);
  overflow: hidden;
}
.pk-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

/* نشان و وزن: سمت راست بالا */
.pk-badges-ol {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.pk-badge {
  display: inline-block;
  background: var(--pk-tone);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  border-radius: 8px;
  padding: 2px 8px;
  line-height: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.pk-kg {
  display: inline-block;
  background: rgba(255, 255, 255, .92);
  color: #3a3c34;
  font-size: 9px;
  font-weight: 800;
  border-radius: 8px;
  padding: 2px 7px;
  line-height: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

/* قلب: سمت چپ بالا */
.pk-img-wrap .wish-btn {
  position: absolute !important;
  top: 8px !important;
  right: auto !important;
  left: 8px !important;
  opacity: 1 !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 14px !important;
  background: rgba(255, 255, 255, .95) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08) !important;
}

.pk-body { display: flex; flex-direction: column; flex: 1; padding: 10px 8px 12px; }
.pk-name { font-size: 13px; font-weight: 900; margin: 0 0 2px; line-height: 1.5; }
.pk-name a { color: inherit; text-decoration: none; transition: color .2s; }
.pk-name a:hover { color: var(--brand); }
.pk-desc { font-size: 10px; color: var(--muted); margin: 0 0 8px; line-height: 1.5; }

/* ستون اول در گرید راست‌چین سمت راست است: صرفه‌جویی و خرید راست، امتیاز و قیمت و محتویات چپ */
/* ردیف قیمت تمام‌عرض و چپ‌چین است تا در کارت باریک نشکند و جای آن مثل عکس سمت چپ بماند. */
.pk-card-foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "save  meta"
    "price price"
    "buy   detail";
  align-items: center;
  gap: 6px 4px;
}
/* عرض صفر با کمینه ی صددرصد: پهنای ستون را دکمه ی خرید تعیین می‌کند، نه متن صرفه‌جویی. */
.pk-saving {
  grid-area: save;
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: color-mix(in srgb, var(--pk-tone) 12%, #fff);
  color: var(--pk-tone);
  font-size: 8.5px;
  font-weight: 800;
  border-radius: 8px;
  padding: 2px 4px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pk-meta {
  grid-area: meta;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 6px;
}
.pk-types { font-size: 9px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.pk-types i { color: #c77700; }
.pk-rate { font-size: 9px; font-weight: 800; color: #4a4c44; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.pk-rate i { color: #f5b301; }
.pk-rate small { color: var(--muted); font-weight: 600; }

.pk-price-row {
  grid-area: price;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0 6px;
}
.pk-orig  { font-size: 10px; color: var(--muted); }
.pk-price { font-size: 13px; font-weight: 900; color: #1e6e1b; white-space: nowrap; }
.pk-price small { font-size: 9px; font-weight: 700; }

.pk-buy-btn {
  grid-area: buy;
  position: relative;
  overflow: hidden;
  height: 32px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(43, 106, 37, .22);
  transition: background .2s, transform .15s;
}
.pk-buy-btn:hover { background: var(--brand-hover); color: #fff; }
.pk-buy-btn:active { transform: scale(.96); }
.pk-buy-btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.pk-detail-btn {
  grid-area: detail;
  justify-self: end;
  border: 0;
  background: none;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
}
.pk-detail-btn i { display: none; font-size: 8px; transition: transform .2s; }
.pk-detail-btn:hover { color: var(--brand); }
.pk-detail-btn:hover i { transform: translateX(-3px); }

/* ---- Trust bar: آیکون سمت راست متن ---- */
.pk-trust {
  list-style: none;
  margin: 8px 0 0;
  padding: 12px 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  background: #fbf7ef;
  border: 1px solid #f1eadb;
  border-radius: 18px;
}
.pk-trust li { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pk-trust i, .pk-trust img { flex-shrink: 0; height: 22px; width: auto; object-fit: contain; color: var(--brand); font-size: 18px; }
.pk-trust div { display: flex; flex-direction: column; min-width: 0; }
.pk-trust b    { font-size: 9px; font-weight: 900; line-height: 1.35; }
.pk-trust span { font-size: 8px; color: var(--muted); line-height: 1.35; }

/* ---- Contents modal ---- */
.pk-modal-desc { font-size: 13px; color: #6a6c64; margin-bottom: 12px; }
.pk-modal-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}
.pk-modal-items li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  animation: pkUp .35s ease both;
}
.pk-modal-items .bi-check-circle-fill { color: var(--brand); font-size: 14px; }
.pk-modal-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f7f5;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
}
.pk-modal-save { color: #1e6e1b; font-weight: 800; font-size: 11px; }
.pk-modal-orig { font-size: 11px; color: var(--muted); text-decoration: line-through; margin-left: 8px; }
.pk-modal-cur  { font-size: 15px; font-weight: 900; color: #1e6e1b; }

/* ---- Motion ---- */
.pk-reveal { animation: pkUp .55s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 80ms); }

/* کارت تا وقتی وارد دید نشده پنهان است؛ کلاس pk-anim را اسکریپت می‌گذارد تا بی‌اسکریپت کارت دیده شود. */
.pk-anim .pk-card:not(.is-in) { opacity: 0; transform: translateY(22px) scale(.97); }
.pk-anim .pk-card.is-in { animation: pkCardIn .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--d, 0ms); }

@media (hover: hover) {
  .pk-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(30, 40, 20, .12); }
  .pk-card:hover .pk-img-wrap img { transform: scale(1.06) rotate(-1deg); }
  .pk-card:hover .pk-buy-btn::after { animation: pkShine .8s ease; }
  .pk-cat:hover { transform: translateY(-2px); border-color: #cfe0c9; }
}

@keyframes pkUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes pkCardIn { from { opacity: 0; transform: translateY(22px) scale(.97); } }
@keyframes pkFloat { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes pkFlame { 50% { transform: rotate(-8deg) scale(1.12); } }
@keyframes pkHop { 40% { transform: translateY(-5px) scale(1.12); } }
@keyframes pkShine { to { left: 120%; } }

@media (prefers-reduced-motion: reduce) {
  .pk-page *, .pk-page *::before, .pk-page *::after, .pk-modal-items li {
    animation: none !important;
    transition: none !important;
  }
  .pk-anim .pk-card:not(.is-in) { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */
@media (min-width: 576px) {
  .pk-buy-btn { padding: 0 14px; }
  .pk-body { padding: 12px 12px 14px; }
  .pk-detail-btn i { display: inline-block; }
  .pk-img-wrap { height: 130px; }
  .pk-name { font-size: 15px; }
  .pk-desc { font-size: 12px; }
  .pk-price { font-size: 16px; }
  .pk-types, .pk-rate, .pk-saving, .pk-detail-btn { font-size: 11px; }
  .pk-buy-btn { height: 36px; font-size: 12px; border-radius: 12px; }
  .pk-hero-media { height: 190px; }
  .pk-hero-copy h2 { font-size: 21px; }
  .pk-hero-copy p { font-size: 13px; }
  .pk-feat b { font-size: 11px; }
  .pk-feat small { font-size: 10px; }
  .pk-feat-ico { font-size: 20px; }
  .pk-trust b { font-size: 11px; }
  .pk-trust span { font-size: 10px; }
  .pk-trust i, .pk-trust img { height: 28px; font-size: 24px; }
}

@media (min-width: 992px) {
  .pk-page { padding-top: 18px; }
  .pk-search { max-width: 640px; margin-inline: auto; margin-bottom: 18px; }
  .pk-cats { gap: 12px; margin-bottom: 20px; }
  .pk-cat { padding: 14px 4px 12px; font-size: 13px; border-radius: 18px; }
  .pk-cat-ico { width: 42px; height: 42px; font-size: 30px; }
  .pk-cat-ico--all { grid-template-columns: repeat(2, 14px); }
  .pk-cat-ico--all i { width: 14px; height: 14px; }
  .pk-hero { padding: 20px 28px; border-radius: 28px; margin-bottom: 22px; gap: 24px; }
  .pk-hero-media { height: 260px; }
  .pk-hero-copy h2 { font-size: 30px; }
  .pk-hero-copy p { font-size: 15px; margin-bottom: 18px; }
  .pk-hero-feats { gap: 12px; max-width: 460px; }
  .pk-feat { padding: 14px 6px; border-radius: 16px; gap: 4px; }
  .pk-feat-ico { font-size: 26px; }
  .pk-feat b { font-size: 14px; }
  .pk-feat small { font-size: 12px; }
  .pk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .pk-card { border-radius: 22px; }
  .pk-img-wrap { height: 150px; }
  .pk-body { padding: 12px 16px 14px; }
  .pk-name { font-size: 17px; }
  .pk-desc { font-size: 13px; margin-bottom: 8px; }
  .pk-card-foot { gap: 8px 10px; }
  .pk-price { font-size: 19px; }
  .pk-orig { font-size: 12px; }
  .pk-types, .pk-rate, .pk-saving, .pk-detail-btn { font-size: 12px; }
  .pk-saving { font-size: 11px; }
  .pk-buy-btn { height: 40px; font-size: 13px; padding: 0 16px; }
  .pk-trust { padding: 18px 20px; gap: 16px; border-radius: 22px; margin-top: 16px; }
  .pk-trust li { gap: 10px; justify-content: center; }
  .pk-trust b { font-size: 14px; }
  .pk-trust span { font-size: 12px; }
  .pk-trust i, .pk-trust img { height: 36px; font-size: 32px; }
}

@media (min-width: 1200px) {
  .pk-grid { gap: 22px; }
  .pk-img-wrap { height: 165px; }
}

@media (max-width: 991.98px) {
  .page-packs .site-header { display: none; }
  .page-packs .toast-container { bottom: 86px !important; }
}

@media (max-width: 360px) {
  .pk-cat { flex-basis: 58px; font-size: 10px; }
  .pk-buy-btn { font-size: 9px; padding: 0 4px; }
  .pk-detail-btn { font-size: 8px; }
  .pk-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================
   Pack detail (Details.cshtml)
   ========================================================== */
.pk-detail { padding: 10px 0 96px; }
.pk-dt-crumb { align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.pk-dt-crumb a { color: var(--muted); }
.pk-dt-crumb a:hover { color: var(--brand); }

.pk-dt-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 992px) {
  .pk-dt-grid { grid-template-columns: 420px 1fr; align-items: start; }
  .pk-dt-grid--bottom { grid-template-columns: 1fr 1fr; }
}

/* ---- Gallery ---- */
.pk-dt-stage { position: relative; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.06); aspect-ratio: 1 / 1; }
.pk-dt-stage img { width: 100%; height: 100%; object-fit: cover; }
.pk-dt-badge { position: absolute; top: 12px; right: 12px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.pk-dt-wish { position: absolute; top: 12px; left: 12px; }
.pk-dt-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pk-dt-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #fff; padding: 0; }
.pk-dt-thumb.active { border-color: var(--brand); }
.pk-dt-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Main ---- */
.pk-dt-title { font-size: 24px; font-weight: 900; margin: 2px 0 8px; }
.pk-dt-sub { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.pk-dt-rate { color: #f59f00; font-weight: 700; }
.pk-dt-rate small { color: var(--muted); font-weight: 400; }
.pk-dt-spec i { margin-left: 4px; }
.pk-dt-desc { color: var(--muted); font-size: 14px; line-height: 1.9; }

.pk-dt-card { background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.05); margin-top: 14px; }
.pk-dt-card-head { font-weight: 800; font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.pk-dt-card-head i { color: var(--brand); }

.pk-step { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line, #e9ecef); background: #f8f9fa; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.pk-step:hover { background: #eef0f2; }

.pk-dt-guests { display: flex; align-items: center; gap: 12px; }
.pk-guest-value { font-size: 20px; font-weight: 900; min-width: 36px; text-align: center; }
.pk-guest-unit { color: var(--muted); font-size: 14px; }
.pk-dt-hint { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.pk-pack-opt { border: 1px solid var(--line, #e9ecef); background: #fff; border-radius: 12px; padding: 8px 12px; text-align: center; min-width: 92px; }
.pk-pack-opt b, .pk-pack-opt small { display: block; }
.pk-pack-opt small { color: var(--muted); font-size: 12px; }
.pk-pack-opt.active { border-color: var(--brand); background: rgba(232, 89, 12, .08); }

.pk-dt-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pk-level { border: 1.5px solid var(--line, #e9ecef); background: #fff; border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pk-level b { font-size: 14px; }
.pk-level small { font-size: 11px; color: var(--muted); }
.pk-level.active { border-color: var(--brand); background: rgba(232,89,12,.06); }
.pk-level.disabled { opacity: .45; cursor: not-allowed; }

/* ---- Items ---- */
.pk-dt-cats { display: flex; gap: 8px; margin-bottom: 12px; }
.pk-dt-cat { border: 1px solid var(--line, #e9ecef); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 13px; white-space: nowrap; }
.pk-dt-cat.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pk-dt-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pk-dt-line { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line, #f1f3f5); border-radius: 12px; }
.pk-dt-line-media { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #f8f9fa; }
.pk-dt-line-media img { width: 100%; height: 100%; object-fit: cover; }
.pk-dt-line-body { flex: 1 1 auto; min-width: 0; }
.pk-dt-line-body b { display: block; font-size: 14px; }
.pk-dt-line-body small { color: var(--muted); font-size: 12px; }
.pk-dt-line-qty { display: flex; align-items: center; gap: 6px; }
.pk-dt-line-qty .pk-step { width: 30px; height: 30px; font-size: 15px; }
.pk-line-value { min-width: 28px; text-align: center; font-weight: 700; font-size: 13px; }
.pk-dt-line-total { flex: 0 0 auto; font-weight: 800; font-size: 13px; }
.pk-dt-line-total::after { content: " ت"; font-weight: 400; color: var(--muted); font-size: 11px; }

/* ---- Chart ---- */
.pk-dt-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pk-dt-donut { position: relative; width: 150px; height: 150px; border-radius: 50%; }
.pk-dt-donut-hole { position: absolute; inset: 28px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pk-dt-donut-hole b { font-size: 22px; }
.pk-dt-donut-hole small { color: var(--muted); font-size: 12px; }
.pk-dt-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 140px; }
.pk-dt-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; }
.pk-dt-legend li b { margin-right: auto; }
.pk-dt-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---- Info ---- */
.pk-dt-info-list { list-style: none; margin: 0 0 12px; padding: 0; }
.pk-dt-info-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line, #f1f3f5); font-size: 14px; }
.pk-dt-info-list li span { color: var(--muted); }
.pk-dt-ship { background: rgba(43,138,62,.08); color: #2b8a3e; font-weight: 700; font-size: 13px; border-radius: 10px; padding: 9px 12px; display: flex; align-items: center; gap: 6px; }

/* ---- Buy bar ---- */
.pk-dt-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,.08); padding: 10px 14px; display: flex; align-items: center; gap: 12px; }
.pk-dt-bar-price { display: flex; align-items: baseline; gap: 6px; }
.pk-dt-bar-price s { color: var(--muted); font-size: 13px; }
.pk-dt-bar-price b { font-size: 20px; font-weight: 900; }
.pk-dt-bar-price span { font-size: 12px; color: var(--muted); }
.pk-dt-add { margin-right: auto; font-weight: 800; }

/* بنر پک آماده و دعوت ساخت پک. در راست‌چین، متن سمت راست و عکس سمت چپ می‌ماند. */
.pk-ready-hero, .pk-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f2f8f1;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.pk-ready-hero img, .pk-custom img { width: 180px; height: 120px; object-fit: cover; border-radius: 14px; }
.pk-ready-hero h2, .pk-custom h3 { font-weight: 900; margin: 0 0 6px; }
.pk-ready-hero h2 span { color: #1f8a35; }
.pk-custom p, .pk-ready-hero p { margin: 0 0 8px; color: #5c665d; }
@media (min-width: 992px) {
  .pk-dt-bar { position: sticky; border-radius: 16px; margin-top: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.06); bottom: 18px; }
}
@media (max-width: 991.98px) {
  .page-pack .site-header { display: none; }
  .page-pack .toast-container { bottom: 86px !important; }
}

/* صفحه ی پک آماده، مطابق home.html. فاصله و جای عکس همان فایل است. */
.hm-page { max-width: 1140px; margin: 0 auto; padding: 14px 14px 40px; color: #1d2a1f; }
.hm-hero {
  margin-top: 6px; border-radius: 22px; overflow: hidden; position: relative;
  background: linear-gradient(250deg, #e9f2e2 0%, #f3f8ee 55%, #fff 100%);
  display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between;
  gap: 12px; padding: 22px 26px; min-height: 190px;
}
.hm-hero-text { flex: 1; min-width: 0; }
.hm-hero-text h1 { font-weight: 900; font-size: 26px; line-height: 1.5; margin: 0 0 8px; }
.hm-hero-text h1 span { color: #1f8a35; display: block; }
.hm-party { font-style: normal; font-size: 28px; }
.hm-hero-text p { color: #5a665b; font-size: 12px; line-height: 2; margin: 0; }
.hm-hero-text p b { color: #e5a300; font-weight: 400; }
.hm-hero-img { flex: none; width: 46%; max-width: 420px; display: flex; align-items: center; justify-content: center; }
.hm-tray {
  width: 100%; aspect-ratio: 16/9; border-radius: 18px;
  background: linear-gradient(135deg, #fbf7ee, #f1e6d0);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; letter-spacing: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  line-height: 1.2; text-align: center;
}
.hm-step { margin-top: 22px; }
.hm-step h2 { font-size: 14px; font-weight: 800; margin: 0 0 10px; }
.hm-box { background: #f3f5f3; border-radius: 14px; padding: 12px 14px 14px; }
.hm-row {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 12px 12px 8px; margin: -12px -12px -8px;
}
.hm-row::-webkit-scrollbar { display: none; }
.hm-occ {
  position: relative; flex: 1 1 0; min-width: 0; scroll-snap-align: center;
  background: #fff; border: 1.5px solid #e8ece8; border-radius: 14px; padding: 16px 6px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-weight: 600; font-size: 12px; color: #333; text-decoration: none; user-select: none;
}
.hm-occ .hm-em { font-size: 34px; line-height: 1; }
.hm-occ:hover { border-color: #bfd8c0; color: #333; }
.hm-occ.active, .hm-occ.active:hover { background: #1f8a35; border-color: #14501c; color: #fff; box-shadow: 0 0 0 3px rgba(31, 138, 53, .35); }
.hm-check {
  display: none; position: absolute; top: -9px; left: -9px; width: 22px; height: 22px; border-radius: 50%;
  background: #1f8a35; color: #fff; font-size: 14px; align-items: center; justify-content: center; border: 2px solid #fff;
}
.hm-occ.active .hm-check { display: flex; background: #fff; color: #1f8a35; }
.hm-opt {
  flex: 1 1 0; min-width: 0; scroll-snap-align: center; white-space: nowrap;
  background: #fff; border: 1.5px solid transparent; border-radius: 12px; height: 46px; padding: 0 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: #444; text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.hm-opt i { font-size: 18px; color: #7b857c; }
.hm-opt .hm-em { font-size: 18px; line-height: 1; }
.hm-opt:hover { border-color: #bfd8c0; color: #444; }
.hm-opt.active, .hm-opt.active:hover { background: #1f8a35; border-color: #14501c; color: #fff; box-shadow: 0 0 0 3px rgba(31, 138, 53, .35); }
.hm-fruits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hm-fruit-tile, .hm-fruit-more { border: 1px solid #e4ebe4; border-radius: 14px; background: #fff; min-height: 92px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: #243126; }
.hm-fruit-tile img { width: 48px; height: 48px; object-fit: contain; }
.hm-fruit-tile.is-on { border-color: #1f8a35; background: #f3faf3; box-shadow: 0 0 0 2px rgba(31, 138, 53, .25); }
.hm-ask { color: #6b756c; font-size: 12px; margin: 0 0 8px; }
.hm-count { color: #1f8a35; font-size: 13px; margin: 8px 0 0; }
@media (min-width: 768px) { .hm-fruits { grid-template-columns: repeat(6, 1fr); } }
.hm-opt.active i, .hm-opt.active:hover i { color: #fff; }
.hm-head { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.hm-head h2 {
  position: absolute; right: 50%; transform: translateX(50%); margin: 0;
  font-size: 15px; font-weight: 800; text-align: center; white-space: nowrap;
}
.hm-head h2::after { content: ""; display: block; width: 18px; height: 3px; background: #1f8a35; border-radius: 3px; margin: 4px auto 0; }
.hm-all { margin-right: auto; order: 6; background: #f3f5f3; border: 0; border-radius: 8px; font: inherit; font-size: 11px; color: #555; padding: 6px 14px; text-decoration: none; cursor: pointer; }
.hm-all:hover { background: #e6f2e4; color: #1a7a2e; }
.hm-sp { width: 70px; }
.hm-page .pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.hm-page .pk-item { min-width: 0; }
.hm-page .pk-item .mj-plus-card { width: 100%; }
.hm-page .pk-card,
.hm-page .pk-anim .pk-card:not(.is-in) {
  background: #fff; border: 1px solid #e8ece8; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
  grid-template-areas: none; height: auto; opacity: 1; transform: none;
}
.hm-img { position: relative; background: linear-gradient(135deg, #f3ecdc, #e8dcc2); aspect-ratio: 16/11; display: flex; align-items: center; justify-content: center; }
.hm-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-img > .hm-em { font-size: 52px; letter-spacing: 4px; text-align: center; line-height: 1.15; }
.hm-badge { position: absolute; top: 8px; right: 8px; font-size: 10.5px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 6px; background: #1f8a35; }
.hm-badge.vip { background: #8b4fd6; }
.hm-badge.rec { background: #f6c32b; color: #4a3a00; }
.hm-badge.fam { background: #2c9fd6; }
.hm-badge.gift { background: #e5484d; }
.hm-page .hm-fav {
  position: absolute; top: 8px; right: auto; left: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: #fff; color: #555; font-size: 14px; display: flex; align-items: center; justify-content: center; padding: 0; opacity: 1;
}
.hm-fav.on, .hm-fav.is-on { color: #e53935; }
.hm-body { padding: 12px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.hm-body h3 { font-size: 15px; font-weight: 800; margin: 0; }
.hm-body h3 a { color: inherit; text-decoration: none; }
.hm-ppl { color: #7b857c; font-size: 11px; margin: 2px 0 10px; }
.hm-chips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.hm-chip { background: #f3f5f3; border-radius: 8px; font-size: 10.5px; padding: 5px 8px; color: #555; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.hm-chip i { color: #888; font-size: 12px; }
.hm-rate { margin: 10px 0 4px; font-size: 11px; color: #7b857c; display: flex; justify-content: center; align-items: center; gap: 4px; }
.hm-rate i { color: #f6b400; }
.hm-rate b { color: #1d2a1f; }
.hm-page .pk-price { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.hm-page .pk-price small { font-size: 11px; font-weight: 600; margin-right: 3px; }
.hm-page .pk-buy-btn {
  margin-top: auto; background: #1f8a35; color: #fff; border: 0; border-radius: 8px; height: 38px; width: 100%;
  font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.hm-page .pk-buy-btn:hover { background: #14501c; color: #fff; }
.hm-save { margin-top: 8px; font-size: 10.5px; color: #1a7a2e; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; }
.hm-custom {
  margin-top: 26px; border-radius: 20px; background: linear-gradient(250deg, #e9f2e2, #f3f8ee);
  padding: 22px 28px; display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 20px;
}
.hm-custom-txt { flex: 1; min-width: 0; }
.hm-custom h3 { font-weight: 900; font-size: 18px; margin: 0 0 6px; }
.hm-custom p { color: #5a665b; font-size: 12px; line-height: 2; margin: 0 0 14px; }
.hm-build {
  background: #fff; color: #1a7a2e; border: 1.5px solid #1f8a35; border-radius: 12px; font-weight: 700; font-size: 13px;
  padding: 9px 28px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.hm-build:hover { background: #1f8a35; color: #fff; }
.hm-plus {
  width: 74px; height: 74px; border-radius: 50%; border: 2px dashed #9dbb9f; color: #333; font-size: 26px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.hm-custom-img { width: 230px; flex: none; }
.hm-custom-img .hm-tray { aspect-ratio: 4/3; font-size: 44px; background: linear-gradient(135deg, #f1dfbf, #e5cfa3); }

@media (min-width: 992px) {
  .hm-page { max-width: 1200px; padding: 22px 40px 80px; }
  .hm-hero { margin-top: 8px; min-height: 340px; padding: 38px 70px; border-radius: 28px; gap: 30px; }
  .hm-hero-text h1 { font-size: 48px; margin-bottom: 14px; }
  .hm-party { font-size: 48px; }
  .hm-hero-text p { font-size: 17px; line-height: 2.2; }
  .hm-hero-img { width: 48%; max-width: 580px; }
  .hm-tray { font-size: 96px; letter-spacing: 10px; border-radius: 24px; }
  .hm-step { margin-top: 36px; }
  .hm-step h2 { font-size: 18px; margin-bottom: 14px; }
  .hm-box { padding: 18px 20px 20px; border-radius: 18px; }
  .hm-row { gap: 16px; }
  .hm-occ { padding: 26px 8px 20px; gap: 12px; font-size: 15px; border-radius: 18px; }
  .hm-occ .hm-em { font-size: 50px; }
  .hm-check { width: 26px; height: 26px; top: -10px; left: -10px; font-size: 17px; }
  .hm-opt { height: 60px; font-size: 15px; gap: 10px; border-radius: 14px; }
  .hm-opt i, .hm-opt .hm-em { font-size: 24px; }
  .hm-head { margin-top: 46px; }
  .hm-head h2 { font-size: 22px; }
  .hm-head h2::after { width: 26px; height: 4px; margin-top: 6px; }
  .hm-all { font-size: 13.5px; padding: 9px 22px; border-radius: 10px; }
  .hm-page .pk-grid { gap: 26px; margin-top: 26px; }
  .hm-page .pk-card { border-radius: 18px; }
  .hm-page .pk-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(20, 80, 28, .12); }
  .hm-img > .hm-em { font-size: 74px; letter-spacing: 6px; }
  .hm-badge { top: 12px; right: 12px; font-size: 12.5px; padding: 4px 14px; border-radius: 8px; }
  .hm-fav { top: 12px; left: 12px; width: 36px; height: 36px; font-size: 17px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
  .hm-body { padding: 20px 20px 18px; }
  .hm-body h3 { font-size: 19px; }
  .hm-ppl { font-size: 13px; margin: 4px 0 14px; }
  .hm-chip { font-size: 12.5px; padding: 7px 12px; border-radius: 10px; }
  .hm-chip i { font-size: 15px; }
  .hm-rate { font-size: 13px; margin: 14px 0 6px; }
  .hm-page .pk-price { font-size: 22px; margin-bottom: 14px; }
  .hm-page .pk-price small { font-size: 13px; }
  .hm-page .pk-buy-btn { height: 48px; font-size: 14.5px; border-radius: 10px; }
  .hm-save { font-size: 12.5px; margin-top: 12px; }
  .hm-custom { margin-top: 40px; padding: 36px 64px; border-radius: 28px; gap: 36px; }
  .hm-custom h3 { font-size: 26px; margin-bottom: 10px; }
  .hm-custom p { font-size: 15px; margin-bottom: 20px; }
  .hm-build { font-size: 15px; padding: 12px 40px; border-radius: 14px; }
  .hm-plus { width: 100px; height: 100px; font-size: 36px; }
  .hm-custom-img { width: 340px; }
  .hm-custom-img .hm-tray { font-size: 64px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .hm-page { padding: 18px 22px 50px; }
  .hm-hero { padding: 28px 36px; min-height: 250px; }
  .hm-hero-text h1 { font-size: 32px; }
  .hm-party { font-size: 34px; }
  .hm-hero-text p { font-size: 14px; }
  .hm-tray { font-size: 70px; }
  .hm-occ { padding: 20px 4px 14px; font-size: 12.5px; }
  .hm-occ .hm-em { font-size: 38px; }
  .hm-opt { font-size: 12.5px; padding: 0 10px; height: 50px; }
  .hm-page .pk-grid { gap: 14px; }
  .hm-img > .hm-em { font-size: 44px; }
  .hm-chips { gap: 4px; }
  .hm-chip { font-size: 10px; padding: 5px 6px; }
  .hm-page .pk-buy-btn { font-size: 12px; }
  .hm-custom { padding: 26px 32px; }
  .hm-custom-img { width: 220px; }
}
@media (max-width: 767.98px) {
  .hm-page { padding: 12px 14px 36px; }
  .hm-occ { flex: 0 0 auto; min-width: 92px; padding: 16px 10px 12px; }
  .hm-opt { flex: 0 0 auto; padding: 0 16px; }
  .hm-page .pk-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hm-img { aspect-ratio: 4 / 3; }
  .hm-img > .hm-em { font-size: 44px; letter-spacing: 2px; }
  .hm-hero { padding: 22px 26px; }
}
@media (max-width: 575.98px) {
  .hm-page { padding: 10px 12px 30px; }
  .hm-hero { flex-direction: column-reverse; align-items: stretch; gap: 12px; padding: 14px; min-height: 0; border-radius: 18px; }
  .hm-hero-text { text-align: center; }
  .hm-hero-text h1 { font-size: 20px; margin-bottom: 4px; }
  .hm-party { font-size: 21px; }
  .hm-hero-text p { font-size: 11px; line-height: 1.9; }
  .hm-hero-img { width: 100%; max-width: none; }
  .hm-tray { font-size: 44px; letter-spacing: 3px; border-radius: 14px; aspect-ratio: 16 / 8; }
  .hm-step { margin-top: 18px; }
  .hm-step h2 { font-size: 13.5px; }
  .hm-occ { min-width: 82px; padding: 14px 8px 10px; font-size: 11.5px; gap: 6px; }
  .hm-occ .hm-em { font-size: 30px; }
  .hm-box { padding: 10px 10px 12px; }
  .hm-opt { height: 42px; padding: 0 14px; font-size: 11.5px; }
  .hm-head { margin-top: 24px; }
  .hm-head h2 { font-size: 14px; }
  .hm-sp { width: 60px; }
  .hm-all { font-size: 10.5px; padding: 5px 12px; }
  .hm-page .pk-grid { gap: 10px; margin-top: 14px; }
  .hm-page .pk-card { border-radius: 12px; }
  .hm-img > .hm-em { font-size: 34px; }
  .hm-badge { top: 6px; right: 6px; font-size: 9.5px; padding: 2px 8px; }
  .hm-fav { top: 6px; left: 6px; width: 24px; height: 24px; font-size: 12px; }
  .hm-body { padding: 10px 8px; }
  .hm-body h3 { font-size: 13px; }
  .hm-ppl { font-size: 10px; margin-bottom: 8px; }
  .hm-chip { font-size: 9px; padding: 4px 5px; gap: 3px; border-radius: 7px; }
  .hm-chip i { font-size: 11px; }
  .hm-rate { font-size: 10px; margin: 8px 0 3px; }
  .hm-page .pk-price { font-size: 13.5px; margin-bottom: 8px; }
  .hm-page .pk-price small { font-size: 10px; }
  .hm-page .pk-buy-btn { height: 34px; font-size: 11px; gap: 5px; }
  .hm-save { font-size: 9px; margin-top: 6px; }
  .hm-custom { flex-direction: column; align-items: stretch; text-align: center; padding: 18px 14px; gap: 14px; margin-top: 22px; }
  .hm-custom h3 { font-size: 16px; }
  .hm-custom p { font-size: 11.5px; }
  .hm-plus { display: none; }
  .hm-custom-img { width: 100%; order: -1; }
  .hm-custom-img .hm-tray { aspect-ratio: 16 / 8; font-size: 40px; }
  .hm-build { width: 100%; justify-content: center; }
}
@media (max-width: 991.98px) {
  .page-packs .site-header { display: flex; }
  /* روی گوشی ردیف فیلتر جمع نمی‌شود؛ مثل بودجه، خودش به چپ و راست می‌رود. */
  .hm-step, .hm-box { min-width: 0; max-width: 100%; }
  .hm-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }
  .hm-occ, .hm-opt { flex: 0 0 auto; flex-shrink: 0; }
}
