/* ===================================================================
   فروشگاه عمومی کاربران — بازطراحی کامل ۱۴۰۵
   موبایل‌اول (۸۰٪ ترافیک)، بدون هیچ تغییری در HTML/PHP.
   رنگ اختصاصی هر فروشگاه از --shop می‌آید.

   منطق طراحی:
   • فروشگاه باید حس «اپ فروشگاهی واقعی» بدهد نه «صفحه وب ساده»:
     هدر جمع‌وجور چسبان، نوار دسته‌بندی افقی، کارت محصول با تصویر بزرگ،
     و نوار اقدام چسبان پایین صفحه در محصول/سبد/پرداخت.
   • رنگ فروشگاه فقط برای قیمت، اقدام و وضعیت فعال — نه پس‌زمینه همه‌جا.
   • همه لمس‌ها ≥ ۴۴px. همه ترنزیشن‌ها ظریف (۱۴۰–۲۲۰ms).
   =================================================================== */

.store {
  --s:        var(--shop, #0E6F63);
  --s-deep:   color-mix(in srgb, var(--shop, #0E6F63) 72%, #04211D);
  --s-tint:   color-mix(in srgb, var(--shop, #0E6F63) 10%, #fff);
  --s-tint-2: color-mix(in srgb, var(--shop, #0E6F63) 18%, #fff);
  --s-ring:   color-mix(in srgb, var(--shop, #0E6F63) 24%, transparent);

  --s-ink:    #10201D;
  --s-soft:   #586B67;
  --s-faint:  #93A5A0;
  --s-line:   #E8EDEB;
  --s-line-2: #F1F5F3;
  --s-bg:     #F6F8F7;
  --s-card:   #FFFFFF;

  --s-r-s: 12px;
  --s-r-m: 16px;
  --s-r-l: 22px;
  --s-sh-s: 0 1px 2px rgba(16,32,29,.05);
  --s-sh-m: 0 6px 20px rgba(16,32,29,.08);
  --s-sh-l: 0 18px 44px rgba(16,32,29,.14);

  background: var(--s-bg);
  color: var(--s-ink);
  -webkit-tap-highlight-color: transparent;
}
.store img { max-width: 100%; }

/* -------------------------------------------------------------------
   دکمه‌ها و فرم‌ها — فقط داخل فروشگاه بازتعریف می‌شوند
   ------------------------------------------------------------------- */
.store .btn {
  border-radius: 14px; font-weight: 800; letter-spacing: -.01em;
  min-height: 46px; transition: transform .14s ease, box-shadow .18s ease, background .18s ease;
}
.store .btn:active { transform: scale(.985); }
.store .btn--primary {
  background: var(--s); border-color: var(--s); color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--shop, #0E6F63) 30%, transparent);
}
.store .btn--primary:hover {
  background: var(--s-deep); border-color: var(--s-deep);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--shop, #0E6F63) 38%, transparent);
}
.store .btn--lg { padding: 15px 24px; font-size: 15px; min-height: 54px; border-radius: 16px; }
.store .btn.is-disabled, .store .btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }

.store .field__label { font-size: 12.5px; font-weight: 700; color: var(--s-soft); }
.store .field__input, .store .field__select, .store textarea.field__input {
  border-radius: 14px; border: 1.5px solid var(--s-line); background: #fff;
  min-height: 48px; font-size: 14.5px; color: var(--s-ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.store .field__input:focus, .store .field__select:focus {
  border-color: var(--s); box-shadow: 0 0 0 4px var(--s-ring); outline: none;
}
.store .field__input::placeholder { color: #A9B7B3; }
.store .field__hint { font-size: 11.5px; color: var(--s-faint); }

.store .empty {
  background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-r-l);
  padding: 48px 24px; text-align: center; box-shadow: var(--s-sh-s);
}
.store .empty__icon {
  width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 14px;
  display: grid; place-items: center; background: var(--s-tint); color: var(--s);
}
.store .empty h2 { font-size: 16.5px; margin: 0 0 6px; }
.store .empty p { font-size: 13.5px; color: var(--s-soft); margin: 0 0 18px; }

.swrap { max-width: 1120px; margin-inline: auto; padding: 16px 14px 72px; }
.swrap--narrow { max-width: 640px; }
@media (min-width: 760px) { .swrap { padding: 26px 22px 90px; } }

.stitle { font-size: 18px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.02em; }

/* ===================================================================
   سربرگ — جمع‌وجور، چسبان، با سایه‌ی نرم هنگام اسکرول
   =================================================================== */
.shead {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--s-line);
}
@media (min-width: 760px) {
  .shead { padding: 12px 22px; }
  .shead > * { max-width: 1120px; }
}
.shead__brand { display: flex; align-items: center; gap: 10px; color: var(--s-ink); min-width: 0; }
.shead__brand:hover { text-decoration: none; opacity: .85; }
.shead__brand img {
  width: 38px; height: 38px; border-radius: 13px; object-fit: cover; flex: none;
  border: 1px solid var(--s-line); background: #fff;
}
.shead__mark {
  width: 38px; height: 38px; flex: none; border-radius: 13px;
  background: linear-gradient(145deg, var(--s), var(--s-deep)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--shop, #0E6F63) 32%, transparent);
}
.shead__name {
  font-weight: 800; font-size: 15px; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shead__account {
  min-height: 42px; padding: 0 12px; border-radius: 13px;
  font-weight: 700; color: var(--s-soft) !important;
  transition: background .16s ease, color .16s ease;
}
.shead__account:hover { background: var(--s-tint); color: var(--s) !important; }
@media (max-width: 420px) { .shead__account span { display: none; } }

.shead__cart {
  position: relative; width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--s-line); border-radius: 13px;
  color: var(--s-ink); background: #fff;
  transition: border-color .16s ease, background .16s ease, transform .14s ease;
}
.shead__cart:hover { border-color: var(--s); background: var(--s-tint); text-decoration: none; }
.shead__cart:active { transform: scale(.94); }
.shead__cart svg { width: 20px; height: 20px; }
.shead__badge {
  position: absolute; top: -5px; inset-inline-start: -5px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--s); color: #fff;
  font-size: 10.5px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid #fff;
}

.snotice {
  background: linear-gradient(90deg, var(--s), var(--s-deep)); color: #fff;
  padding: 9px 16px; text-align: center; font-size: 12.5px; font-weight: 700;
  letter-spacing: -.01em;
}

/* ===================================================================
   هدر هویتی فروشگاه — بنر + آواتار روی لبه + نام + آمار
   (بدون clip-path مورب؛ الگوی آشنای فروشگاه‌های واقعی)
   =================================================================== */
.sherowrap { position: relative; margin: 0 0 12px; }
.sherocard {
  position: relative; overflow: hidden;
  border-radius: var(--s-r-l);
  padding-bottom: 30%;
  min-height: 132px;
  background:
    radial-gradient(420px 220px at 82% 0%, color-mix(in srgb, #fff 22%, transparent), transparent 65%),
    linear-gradient(135deg, var(--s) 0%, var(--s-deep) 100%);
  clip-path: none;
  animation: none;
}
@media (min-width: 760px) { .sherocard { padding-bottom: 20%; min-height: 200px; } }
.sherocard__banner {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .5; mix-blend-mode: normal;
}
.sherocard::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,20,17,.05) 0%, rgba(4,20,17,.42) 100%);
}
.sherocard__glow {
  position: absolute; inset-inline-start: -70px; top: -80px;
  width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 68%);
  pointer-events: none;
}
.sherocard__top {
  position: relative; z-index: 2;
  display: flex; justify-content: flex-end; align-items: flex-start;
  padding: 12px 12px 0;
}
.sherocard__navicons { display: flex; gap: 8px; }
.sherocard__navicon {
  width: 40px; height: 40px; border-radius: 14px; flex: none;
  background: rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.24);
  display: grid; place-items: center; color: #fff;
  transition: background .16s ease, transform .14s ease;
}
.sherocard__navicon:hover { background: rgba(255,255,255,.32); text-decoration: none; }
.sherocard__navicon:active { transform: scale(.93); }
.sherocard__navicon svg { width: 18px; height: 18px; }

.sherocard__badge {
  position: absolute; z-index: 3;
  bottom: -34px; inset-inline-start: 50%; transform: translateX(50%);
  width: 84px; height: 84px; border-radius: 26px;
  background: #fff; border: 3px solid #fff;
  box-shadow: 0 12px 28px rgba(10,20,18,.2);
  overflow: hidden; display: grid; place-items: center;
}
html[dir="rtl"] .sherocard__badge { transform: translateX(50%); }
.sherocard__badge img { width: 100%; height: 100%; object-fit: cover; }
.sherocard__badge span {
  font-size: 32px; font-weight: 800;
  background: linear-gradient(145deg, var(--s), var(--s-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.sidentity { padding: 44px 16px 0; text-align: center; }
.sidentity__row { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.sidentity__name { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -.03em; }
.sidentity__active {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--s-tint); color: var(--s);
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
}
.sidentity__active svg { width: 12px; height: 12px; }
.sidentity__cat { font-size: 12.5px; color: var(--s-faint); margin: 5px 0 0; }
.sidentity__insta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--s-line); background: #fff;
  color: var(--s-ink); font-size: 12.5px; font-weight: 700; direction: ltr;
  transition: border-color .16s ease, background .16s ease;
}
.sidentity__insta svg { width: 15px; height: 15px; color: var(--s); }
.sidentity__insta:hover { text-decoration: none; border-color: var(--s); background: var(--s-tint); }

.shero__about {
  color: var(--s-soft); font-size: 13px; line-height: 2;
  margin: 12px auto 0; max-width: 56ch; text-align: center; text-wrap: pretty;
}

.sstats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 18px 0 0; max-width: 420px; margin-inline: auto;
}
.sstats__pill {
  background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-r-m);
  padding: 11px 8px; min-width: 0; text-align: center; box-shadow: var(--s-sh-s);
}
.sstats__pill strong {
  display: block; font-size: 16px; font-weight: 800; color: var(--s-ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.sstats__pill span { font-size: 10.5px; color: var(--s-faint); }

.shero { margin-bottom: 20px; }
.shero__tag { font-size: 17px; font-weight: 700; margin: 0 0 6px; }

/* --- جستجو: یک نوار قرصی با دکمه‌ی چسبیده --- */
.ssearch {
  display: flex; gap: 0; margin: 22px 0 14px;
  background: #fff; border: 1.5px solid var(--s-line); border-radius: 999px;
  padding: 4px 4px 4px 4px; box-shadow: var(--s-sh-s);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ssearch:focus-within { border-color: var(--s); box-shadow: 0 0 0 4px var(--s-ring); }
.ssearch .field__input {
  flex: 1; border: 0 !important; background: transparent; box-shadow: none !important;
  min-height: 42px; padding-inline: 16px; font-size: 14px;
}
.ssearch .btn--primary {
  border-radius: 999px; min-height: 42px; padding-inline: 22px; font-size: 13.5px;
  box-shadow: none;
}

/* --- دسته‌بندی: نوار افقی اسکرول‌شونده، بدون شکستن خط --- */
.schips {
  display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  margin: 0 -14px 18px; padding: 2px 14px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.schips::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .schips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; } }
.store .chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 15px; border-radius: 999px;
  border: 1.5px solid var(--s-line); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--s-soft); white-space: nowrap;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.store .chip:hover { border-color: var(--s); color: var(--s); text-decoration: none; }
.store .chip__n {
  font-size: 10.5px; font-weight: 800; color: inherit; opacity: .6;
  font-variant-numeric: tabular-nums;
}
.schips .chip.is-active {
  background: var(--s); border-color: var(--s); color: #fff;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--shop, #0E6F63) 28%, transparent);
}

/* ===================================================================
   شبکه محصول — دو ستون در موبایل، تصویر بزرگ، قیمت پررنگ
   =================================================================== */
.pgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 560px) { .pgrid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; } }

.pcard {
  position: relative;
  background: var(--s-card); border: 1px solid var(--s-line); border-radius: var(--s-r-m);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--s-sh-s);
  transition: border-color .18s ease, box-shadow .2s ease, transform .18s ease;
}
.pcard:hover {
  border-color: color-mix(in srgb, var(--shop, #0E6F63) 40%, var(--s-line));
  box-shadow: var(--s-sh-m); transform: translateY(-3px); text-decoration: none;
}
.pcard:active { transform: translateY(-1px) scale(.995); }
.pcard.is-out { opacity: 1; }
.pcard.is-out .pcard__img::after {
  content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.55);
}
.pcard.is-out .pcard__price strong { color: var(--s-faint); }

.pcard__img {
  position: relative; display: block; aspect-ratio: 1;
  background: var(--s-line-2); overflow: hidden;
}
.pcard__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__ph {
  display: block; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, #EDF2F0 0 8px, #F5F8F7 8px 16px);
}
.pcard__badge {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2;
  background: rgba(16,32,29,.82); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
}

.pcard__body { padding: 10px 11px 12px; display: grid; gap: 6px; }
.pcard__title {
  font-size: 13px; font-weight: 700; color: var(--s-ink); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.pcard__price {
  font-size: 12px; color: var(--s-faint);
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.pcard__price strong {
  color: var(--s-ink); font-size: 15px; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.pcard__price del { color: var(--s-faint); font-size: 13px; margin: 0; order: 2;
  text-decoration-thickness: 1.5px; }

/* ===================================================================
   صفحه محصول
   =================================================================== */
.scrumb {
  font-size: 12px; color: var(--s-faint); margin-bottom: 14px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.scrumb a { color: var(--s-soft); }

.pdetail { display: grid; gap: 20px; }
@media (min-width: 860px) {
  .pdetail { grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
  .pdetail__media { position: sticky; top: 76px; }
}

.pdetail__media img {
  width: 100%; border-radius: var(--s-r-l); border: 1px solid var(--s-line);
  aspect-ratio: 1; object-fit: cover; background: var(--s-line-2);
}
.pdetail__ph {
  width: 100%; aspect-ratio: 1; border-radius: var(--s-r-l);
  background: repeating-linear-gradient(135deg, #EDF2F0 0 10px, #F5F8F7 10px 20px);
}
.pthumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pthumbs::-webkit-scrollbar { display: none; }
.pthumb {
  width: 62px; height: 62px; flex: none; padding: 0; border-radius: 14px; overflow: hidden;
  border: 2px solid var(--s-line); background: none; cursor: pointer;
  transition: border-color .16s ease, transform .14s ease;
}
.pthumb:hover { transform: translateY(-2px); }
.pthumb.is-active { border-color: var(--s); box-shadow: 0 0 0 3px var(--s-ring); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdetail__info h1 { font-size: 20px; line-height: 1.6; margin: 0 0 12px; letter-spacing: -.02em; }
@media (min-width: 860px) { .pdetail__info h1 { font-size: 25px; } }

.pdetail__price { font-size: 14px; margin-bottom: 14px; }
.pdetail__price strong {
  font-size: 26px; color: var(--s-ink); font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.pdetail__price del { color: var(--s-soft); font-size: 20px; font-weight: 600;
  margin-inline-end: 10px; text-decoration-thickness: 2px; }

.pdetail__stock {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFF6E4; color: #9A6A05; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 800; margin: 0 0 14px;
}
.pdetail__delivery {
  display: flex; align-items: center; gap: 8px;
  color: var(--s-soft); font-size: 12.5px; margin: 0 0 16px;
  background: #fff; border: 1px solid var(--s-line); border-radius: 14px; padding: 11px 13px;
}
.pdetail__delivery .ico { color: var(--s); flex: none; }

.pshare { margin: 0 0 20px; }
.pshare__label { display: block; font-size: 11.5px; color: var(--s-faint); margin-bottom: 8px; }
.pshare__row { display: flex; gap: 8px; flex-wrap: wrap; }
.pshare__btn {
  flex: 1; min-width: 96px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 12px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--s-line); background: #fff; color: var(--s-ink);
  font-family: inherit; font-size: 12.5px; font-weight: 700; text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .14s ease;
}
.pshare__btn:hover { border-color: currentColor; background: #FAFCFB; text-decoration: none; }
.pshare__btn:active { transform: scale(.97); }
.pshare__btn .ico { flex: none; }
.pshare__btn--wa { color: #0E8C6F; }
.pshare__btn--tg { color: #1E93CE; }

.paddform { display: grid; gap: 14px; margin-bottom: 22px; }
.paddform .btn--primary { min-height: 54px; font-size: 15px; border-radius: 16px; }

/* نوار خرید چسبان در موبایل */
@media (max-width: 859px) {
  .pdetail__info .paddform {
    position: sticky; bottom: 0; z-index: 35;
    margin: 22px -14px 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--s-line);
  }
}

.pdetail__desc { border-top: 1px solid var(--s-line); padding-top: 20px; margin-top: 4px; }
.pdetail__desc h2 { font-size: 14.5px; margin: 0 0 10px; }
.pdetail__desc p { color: var(--s-soft); font-size: 13.5px; margin: 0; line-height: 2.1; text-wrap: pretty; }

/* ===================================================================
   سبد خرید
   =================================================================== */
.citems { display: grid; gap: 10px; }
.citem {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  grid-template-areas: "img body actions" "img total total";
  gap: 8px 12px; align-items: center;
  background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-r-m);
  padding: 12px; box-shadow: var(--s-sh-s);
  transition: border-color .16s ease;
}
.citem:hover { border-color: color-mix(in srgb, var(--shop,#0E6F63) 30%, var(--s-line)); }
@media (min-width: 620px) {
  .citem { grid-template-columns: 72px 1fr auto auto; grid-template-areas: "img body actions total"; gap: 14px; }
}
.citem__img { grid-area: img; }
.citem__img img, .citem__img .pcard__ph {
  width: 72px; height: 72px; border-radius: 14px; object-fit: cover; display: block;
  background: var(--s-line-2);
}
.citem__body { grid-area: body; min-width: 0; }
.citem__title { font-size: 13.5px; font-weight: 700; color: var(--s-ink); display: block; line-height: 1.7; }
.citem__price { font-size: 12px; color: var(--s-faint); margin-top: 3px; }
.citem__warn { font-size: 11.5px; color: #B4700A; margin-top: 4px; font-weight: 700; }
.citem__actions { grid-area: actions; display: flex; gap: 7px; align-items: center; }
.citem__qty { margin: 0; }
.citem__qty .field__input {
  width: 62px; min-height: 40px; padding: 6px; text-align: center;
  font-weight: 800; font-variant-numeric: tabular-nums; border-radius: 12px;
}
.citem__del {
  width: 40px; height: 40px; border: 1px solid var(--s-line); border-radius: 12px;
  background: #fff; color: #C24734; cursor: pointer; font-size: 17px;
  display: grid; place-items: center;
  transition: background .16s ease, border-color .16s ease;
}
.citem__del:hover { background: #FDEDEA; border-color: #F3C9C1; }
.citem__total {
  grid-area: total; font-weight: 800; font-size: 14.5px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cactions {
  display: grid; gap: 9px; margin-top: 18px;
  position: sticky; bottom: 0; z-index: 30;
  padding: 12px 0 calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(246,248,247,0), var(--s-bg) 32%);
}
.cactions .btn--primary { min-height: 54px; font-size: 15px; border-radius: 16px; }

/* ===================================================================
   پرداخت
   =================================================================== */
.cosec {
  background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-r-l);
  padding: 16px; margin-bottom: 12px; display: grid; gap: 14px; box-shadow: var(--s-sh-s);
}
@media (min-width: 760px) { .cosec { padding: 22px; } }
.cosec h2 {
  font-size: 15px; margin: 0; display: flex; align-items: center; gap: 8px;
  letter-spacing: -.02em;
}
.cosec h2::before {
  content: ''; width: 4px; height: 17px; border-radius: 3px; background: var(--s); flex: none;
}

.opts { display: grid; gap: 9px; }
.opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1.5px solid var(--s-line); border-radius: 16px;
  cursor: pointer; background: #fff;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.opt:hover { border-color: color-mix(in srgb, var(--shop,#0E6F63) 45%, var(--s-line)); }
.opt:has(input:checked) {
  border-color: var(--s); background: var(--s-tint);
  box-shadow: 0 0 0 3px var(--s-ring);
}
.opt input { width: 20px; height: 20px; flex: none; accent-color: var(--s); }
.opt__body { flex: 1; display: grid; gap: 3px; }
.opt__title { font-size: 13.5px; font-weight: 800; }
.opt__sub { font-size: 11.5px; color: var(--s-faint); line-height: 1.7; }
.opt__price { font-size: 13px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }

.cosum { display: grid; gap: 9px; font-size: 13px; }
.cosum__row { display: flex; justify-content: space-between; gap: 10px; color: var(--s-soft); }
.cosum__row strong { color: var(--s-ink); font-variant-numeric: tabular-nums; }
.cosum__row:last-child {
  border-top: 1px dashed var(--s-line); padding-top: 10px; margin-top: 2px;
  font-size: 15px; color: var(--s-ink); font-weight: 800;
}
.cosum__row:last-child strong { color: var(--s); font-size: 17px; }

#coForm .btn--primary { min-height: 56px; font-size: 15.5px; border-radius: 16px; }

/* ===================================================================
   پیگیری سفارش — تایم‌لاین
   =================================================================== */
.tkhead {
  text-align: center; padding: 22px 16px;
  background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-r-l);
  margin-bottom: 16px; box-shadow: var(--s-sh-s);
}
.tkhead__label { font-size: 12px; color: var(--s-faint); }
.tkhead__code {
  font-size: 26px; margin: 5px 0 4px; letter-spacing: .01em; direction: ltr;
  font-variant-numeric: tabular-nums; font-weight: 800;
}
.tkhead__date { font-size: 12px; color: var(--s-faint); margin: 0; }

.tksteps {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; justify-content: space-between; position: relative;
  background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-r-l);
  padding: 20px 12px 16px;
}
.tksteps::before {
  content: ''; position: absolute; top: 29px; inset-inline: 18%;
  height: 3px; border-radius: 3px; background: var(--s-line); z-index: 0;
}
.tkstep { flex: 1; text-align: center; position: relative; z-index: 1; }
.tkstep__dot {
  width: 22px; height: 22px; border-radius: 50%; display: block; margin: 0 auto 9px;
  background: #fff; border: 2.5px solid var(--s-line);
  transition: background .2s ease, border-color .2s ease;
}
.tkstep.is-done .tkstep__dot { background: var(--s); border-color: var(--s); }
.tkstep.is-now .tkstep__dot {
  background: var(--s); border-color: var(--s);
  box-shadow: 0 0 0 6px var(--s-ring);
}
.tkstep__label { font-size: 10.5px; color: var(--s-faint); display: block; line-height: 1.6; }
.tkstep.is-now .tkstep__label { color: var(--s-ink); font-weight: 800; }
.tkstep.is-done .tkstep__label { color: var(--s-soft); font-weight: 700; }

.tkcard {
  background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-r-l);
  padding: 16px; margin-bottom: 12px; box-shadow: var(--s-sh-s);
}
.tkcard h2 { font-size: 14.5px; margin: 0 0 12px; display: flex; align-items: center; gap: 9px; }
.tkcard h2 .ico { color: var(--s); }
.tkcard--pay { border-color: var(--s); box-shadow: 0 0 0 3px var(--s-ring); }
.tkcard__lead { font-size: 13px; color: var(--s-soft); margin: 0 0 12px; line-height: 2; }

.tkrow {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--s-line-2);
}
.tkrow:last-child { border-bottom: 0; }
.tkrow span { color: var(--s-faint); flex: none; }
.tkrow strong { text-align: end; font-weight: 700; }

.tkpay { margin-top: 14px; text-align: center; }

.cardpicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cardpicker__pill {
  display: flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--s-line);
  background: #fff; font: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--s-soft); cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.cardpicker__pill:hover { border-color: var(--s); }
.cardpicker__pill.is-active { border-color: var(--s); background: var(--s-tint); color: var(--s); }
.cardpicker__pill svg { width: 14px; height: 14px; flex: none; }

.tkcardno {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(135deg, var(--s), var(--s-deep)); color: #fff;
  border-radius: 16px; padding: 15px 16px;
  font-size: 19px; font-weight: 800; letter-spacing: .1em; direction: ltr;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--shop,#0E6F63) 26%, transparent);
}
.tkcardno .btn { background: #fff; border-color: #fff; color: var(--s); font-weight: 800; min-height: 38px; padding: 0 16px; }
.tkcardno__owner { font-size: 12px; color: var(--s-faint); margin: 9px 0 0; text-align: center; }

.tkhelp { text-align: center; font-size: 12.5px; color: var(--s-faint); margin-top: 22px; }
.tkhelp a { margin-inline-start: 8px; font-weight: 700; }

/* ===================================================================
   پاورقی
   =================================================================== */
.sfoot {
  border-top: 1px solid var(--s-line); padding: 26px 16px calc(34px + env(safe-area-inset-bottom));
  text-align: center; background: #fff;
}
.sfoot__links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.sfoot__pill {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--s-line);
  background: #fff; font-size: 12.5px; font-weight: 700; color: var(--s-ink);
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.sfoot__pill svg { width: 16px; height: 16px; flex: none; color: var(--s); }
.sfoot__pill:hover { border-color: var(--s); background: var(--s-tint); text-decoration: none; }
.sfoot__brand { font-size: 11px; color: var(--s-faint); margin: 0; }

.empty__icon .ico { display: block; }

/* ===================================================================
   لندینگ تک‌محصولی
   =================================================================== */
.landing {
  max-width: 480px; margin: 0 auto; padding-bottom: 118px;
  background: #fff; min-height: 100vh;
}
.landing__head {
  display: flex; align-items: center; gap: 9px; padding: 13px 16px;
  border-bottom: 1px solid var(--s-line-2); position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.landing__mark {
  width: 30px; height: 30px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--s), var(--s-deep)); color: #fff;
  font-size: 13px; font-weight: 800; overflow: hidden;
}
.landing__mark img { width: 100%; height: 100%; object-fit: cover; }
.landing__name { font-size: 13.5px; font-weight: 800; color: var(--s-ink); }

.landing__hero {
  position: relative; margin: 0; border-radius: 0; overflow: hidden; aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(135deg, #EDF2F0 0 10px, #F5F8F7 10px 20px);
  display: grid; place-items: center;
}
@media (min-width: 480px) { .landing__hero { margin: 12px 12px 0; border-radius: 20px; aspect-ratio: 1; } }
.landing__hero img { width: 100%; height: 100%; object-fit: cover; }
.landing__hero .ico { width: 30%; height: 30%; color: var(--s); opacity: .3; }
.landing__badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(16,32,29,.82); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 800; padding: 7px 13px; border-radius: 999px;
  display: flex; align-items: center; gap: 5px;
}
.landing__badge .ico { width: 13px; height: 13px; opacity: 1; color: inherit; }

.landing__info { padding: 18px 18px 12px; }
.landing__title { font-size: 19px; font-weight: 800; margin: 0 0 6px; line-height: 1.6; letter-spacing: -.02em; }
.landing__desc { font-size: 13px; color: var(--s-soft); margin: 0 0 16px; line-height: 2.05; }

.landing__price { display: flex; align-items: baseline; gap: 9px; margin-bottom: 16px; flex-wrap: wrap; }
.landing__price strong {
  font-size: 26px; font-weight: 800; color: var(--s-ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.landing__price del { font-size: 19px; font-weight: 600; color: var(--s-soft);
  text-decoration-thickness: 2px; }
.landing__off {
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  background: #C0392B; color: #fff;
}

.landing__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.landing__trust div {
  background: #fff; border: 1px solid var(--s-line); border-radius: 14px;
  padding: 12px 6px; text-align: center;
}
.landing__trust .ico { width: 19px; height: 19px; color: var(--s); margin-bottom: 6px; }
.landing__trust span { display: block; font-size: 10.5px; color: var(--s-soft); line-height: 1.6; font-weight: 600; }

.landing__urgency {
  display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #A83B0A;
  background: #FFF1E8; border: 1px solid #FBDCC9; padding: 10px 13px; border-radius: 14px; margin-bottom: 4px;
}
.landing__urgency .ico { width: 15px; height: 15px; flex: none; }

.landing__cta {
  position: fixed; bottom: 0; inset-inline: 0; max-width: 480px; margin: 0 auto;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--s-line);
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; z-index: 40;
}
.landing__cta-price { display: flex; flex-direction: column; }
.landing__cta-price small { font-size: 10px; color: var(--s-faint); }
.landing__cta-price strong {
  font-size: 16px; color: var(--s-ink); white-space: nowrap;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.landing__buy {
  flex: 1; border: 0; border-radius: 16px; padding: 16px 0; color: #fff; font-family: inherit;
  font-size: 14.5px; font-weight: 800; cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 7px; text-decoration: none; min-height: 54px;
  /* ⚠️ باگ رفع‌شده: قبلاً گرادیان از var(--s-deep) استفاده می‌کرد که
     خودش با color-mix ساخته شده بود. متغیرِ حاوی color-mix داخل
     linear-gradient در بعضی مرورگرها (از جمله سافاری iOS) کل قاعده را
     باطل می‌کند — نتیجه‌اش دکمه‌ی کاملاً سفید با متن سفید بود، یعنی
     دکمه‌ی خرید عملاً نامرئی می‌شد.
     حالا اول یک رنگ ساده به‌عنوان پایه می‌آید (که همیشه کار می‌کند) و
     گرادیان روی آن سوار می‌شود؛ اگر مرورگر گرادیان را نفهمد، باز هم
     دکمه رنگ دارد. */
  background-color: var(--shop, #0E6F63);
  background-image: linear-gradient(135deg,
      color-mix(in srgb, var(--shop, #0E6F63) 100%, transparent),
      color-mix(in srgb, var(--shop, #0E6F63) 72%, #04211D));
  box-shadow: 0 8px 22px rgba(14,111,99,.32);
  transition: transform .14s ease, box-shadow .18s ease;
}
.landing__buy:hover { box-shadow: 0 12px 30px rgba(14,111,99,.42); }
.landing__buy:active { transform: scale(.985); }
.landing__buy .ico { width: 17px; height: 17px; }
.landing__buy[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }

.landing__credit { text-align: center; font-size: 10.5px; color: var(--s-faint); margin: 20px 0 6px; }

/* ===================================================================
   سبد شناور (mini-cart)
   =================================================================== */
.minicart { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.minicart.is-open { visibility: visible; pointer-events: auto; }
.minicart__backdrop {
  position: absolute; inset: 0; background: rgba(10,26,23,.42);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .22s ease;
}
.minicart.is-open .minicart__backdrop { opacity: 1; }
.minicart__panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0;
  width: 100%; max-width: 400px; background: #fff;
  box-shadow: -10px 0 40px rgba(10,26,23,.18);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.25,1);
}
html[dir="rtl"] .minicart__panel { transform: translateX(-100%); }
.minicart.is-open .minicart__panel { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .minicart__panel { transition: none; } }
@media (max-width: 560px) {
  .minicart__panel {
    top: auto; inset-inline: 0; max-width: none; height: 86vh;
    border-radius: 26px 26px 0 0; transform: translateY(100%);
  }
  html[dir="rtl"] .minicart__panel { transform: translateY(100%); }
  .minicart.is-open .minicart__panel { transform: translateY(0); }
  .minicart__panel::before {
    content: ''; position: absolute; top: 9px; inset-inline: 0; margin: auto;
    width: 42px; height: 4px; border-radius: 4px; background: #DCE4E1;
  }
}
.minicart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px; border-bottom: 1px solid var(--s-line); flex: none;
}
.minicart__head h2 { font-size: 15px; margin: 0; letter-spacing: -.02em; }
.minicart__close {
  width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--s-bg);
  color: var(--s-soft); font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .16s ease;
}
.minicart__close:hover { background: var(--s-line); }
.minicart__content { flex: 1; overflow-y: auto; padding: 16px 18px; }
.minicart__empty { text-align: center; padding: 48px 10px; color: var(--s-soft); }
.minicart__empty svg { width: 34px; height: 34px; color: var(--s-faint); margin-bottom: 12px; }
.minicart__empty p { font-size: 13px; margin: 0 0 16px; }
.minicart__items { display: grid; gap: 14px; }
.minicart__item {
  display: flex; gap: 11px; align-items: flex-start;
  padding-bottom: 14px; border-bottom: 1px solid var(--s-line-2);
}
.minicart__item:last-child { border-bottom: 0; padding-bottom: 0; }
.minicart__img {
  width: 58px; height: 58px; flex: none; border-radius: 14px; overflow: hidden;
  background: var(--s-line-2);
}
.minicart__img img { width: 100%; height: 100%; object-fit: cover; }
.minicart__body { flex: 1; min-width: 0; }
.minicart__title {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--s-ink);
  text-decoration: none; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.minicart__price { font-size: 12px; color: var(--s-faint); margin-bottom: 8px; }
.minicart__qty {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--s-bg); border-radius: 999px; padding: 3px;
}
.minicart__step {
  width: 30px; height: 30px; border-radius: 999px; border: 0; background: #fff;
  color: var(--s-ink); font-size: 15px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--s-sh-s);
  transition: background .15s ease, color .15s ease;
}
.minicart__step:hover { background: var(--s); color: #fff; }
.minicart__step:disabled { opacity: .35; cursor: not-allowed; background: #fff; color: var(--s-ink); }
.minicart__qty span {
  font-size: 12.5px; font-weight: 800; min-width: 20px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.minicart__del {
  flex: none; width: 30px; height: 30px; border-radius: 10px; border: 0; background: #FDEDEA;
  color: #C24734; font-size: 16px; line-height: 1; cursor: pointer;
}
.minicart__footer {
  border-top: 1px solid var(--s-line); margin-top: 16px; padding-top: 14px;
  display: grid; gap: 10px;
  padding-bottom: env(safe-area-inset-bottom);
}
.minicart__subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.minicart__subtotal strong {
  font-size: 17px; color: var(--s-ink); font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}

/* ===================================================================
   شمارش معکوس تخفیف
   =================================================================== */
.salecountdown {
  margin: 4px 0 18px; background: #fff; border: 1px solid var(--s-line);
  border-radius: 16px; padding: 12px;
}
.salecountdown__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; margin-bottom: 10px; color: var(--s-ink);
}
.salecountdown__label::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #C0392B;
  box-shadow: 0 0 0 0 rgba(192,57,43,.6); animation: sdpulse 1.8s ease-out infinite;
}
@keyframes sdpulse {
  70% { box-shadow: 0 0 0 7px rgba(192,57,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(192,57,43,0); }
}
@media (prefers-reduced-motion: reduce) { .salecountdown__label::before { animation: none; } }
.salecountdown__row { display: flex; gap: 7px; direction: ltr; }
.salecountdown__box {
  flex: 1; text-align: center; border-radius: 13px; padding: 9px 4px 8px;
  background: var(--s-bg); border: 1px solid var(--s-line); color: var(--s-ink);
}
.salecountdown__box span {
  display: block; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums;
  direction: ltr; letter-spacing: -.02em;
}
.salecountdown__box small { display: block; font-size: 9.5px; color: var(--s-faint); margin-top: 3px; }

/* ===================================================================
   بلوک قیمت مشترک
   =================================================================== */
.priceblock { display: grid; gap: 4px; margin-bottom: 4px; }
.priceblock__row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.priceblock__now {
  font-size: 27px; font-weight: 800; line-height: 1.3; color: var(--s-ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.priceblock__unit { font-size: 13px; color: var(--s-soft); }
.priceblock__off {
  font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  background: #C0392B; color: #fff; letter-spacing: -.01em;
}
.priceblock__was { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.priceblock__was del { font-size: 18px; font-weight: 600; color: var(--s-soft);
  text-decoration-thickness: 2px; }
.priceblock__saved { font-size: 11.5px; color: var(--s); font-weight: 800; }

/* --- صفحه‌های وضعیت (پیگیری/۴۰۴/ورود) --- */
.store .statuspage__card, .statuspage__card {
  border-radius: var(--s-r-l);
}
