/* ═══════════════════════════════════════════════════════
   قله‌شاپ — استایل اصلی (Mobile-First / RTL)
   ═══════════════════════════════════════════════════════ */

/* ─────────── متغیرها و ریست ─────────── */
:root {
  --red: #ef4056;
  --red-dark: #d92d43;
  --red-soft: #fdeeef;
  --ink: #232933;
  --ink-2: #5b616e;
  --ink-3: #8a8f99;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e8e9ec;
  --green: #1f9d5c;
  --green-soft: #e6f6ee;
  --blue: #2f6bc4;
  --blue-soft: #e8f0fb;
  --orange: #f28c28;
  --orange-soft: #fdf1e2;
  --purple: #7c5cd6;
  --shadow-sm: 0 1px 3px rgba(23, 29, 45, .06);
  --shadow-md: 0 4px 16px rgba(23, 29, 45, .08);
  --shadow-lg: 0 12px 34px rgba(23, 29, 45, .14);
  --radius: 12px;
  --radius-lg: 16px;
  --font: 'Vazirmatn', Tahoma, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
ul { list-style: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 12px; }

/* ─────────── دکمه‌ها ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
  transition: all .18s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(239, 64, 86, .28); }
.btn-primary:hover { background: var(--red-dark); }

.btn-outline { background: #fff; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red-soft); }

.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: #f2f3f5; color: var(--ink); }

.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }

.btn-danger { background: #fff; color: #d92d43; border-color: #f3c6cc; }
.btn-danger:hover { background: var(--red-soft); }

.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-flex { flex: 1; }
.btn .ic { flex-shrink: 0; }

/* ─────────── فرم‌ها ─────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field-hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; display: block; }

.inp {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.inp:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239, 64, 86, .12); }
textarea.inp { resize: vertical; line-height: 1.9; }

.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; user-select: none; }
.check input { display: none; }

/* ─────────── نشان‌ها و پیام‌ها ─────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-ok { background: var(--green-soft); color: var(--green); }
.badge-warn { background: var(--orange-soft); color: #b96a16; }
.badge-err { background: var(--red-soft); color: var(--red); }
.badge-info { background: var(--blue-soft); color: var(--blue); }
.st-pending { background: var(--orange-soft); color: #b96a16; }
.st-processing { background: var(--blue-soft); color: var(--blue); }
.st-shipped { background: #ede7fb; color: var(--purple); }
.st-delivered { background: var(--green-soft); color: var(--green); }
.st-cancelled { background: #f0f1f3; color: var(--ink-3); }
.pst-unpaid { background: var(--red-soft); color: var(--red); }
.pst-review { background: var(--orange-soft); color: #b96a16; }
.pst-paid { background: var(--green-soft); color: var(--green); }

.alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 14px;
  line-height: 2;
}
.alert div { display: flex; align-items: center; gap: 7px; }
.alert-info { background: var(--blue-soft); color: #2b5da3; }
.alert-warn { background: var(--orange-soft); color: #b96a16; }
.alert-error { background: var(--red-soft); color: var(--red-dark); }
.alert-ok { background: var(--green-soft); color: var(--green); }

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 11px;
  margin-bottom: 14px;
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
  animation: flashIn .3s ease;
  transition: opacity .35s, transform .35s;
}
.flash.hide { opacity: 0; transform: translateY(-8px); }
.flash-x { color: inherit; opacity: .6; font-size: 19px; line-height: 1; padding: 0 4px; }
.flash-x:hover { opacity: 1; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.flash-info { background: var(--blue-soft); color: #2b5da3; }
.flash-warn { background: var(--orange-soft); color: #b96a16; }
.flash-error { background: var(--red-soft); color: var(--red-dark); }
.flash-ok { background: var(--green-soft); color: var(--green); }

/* ─────────── هدر ─────────── */
.hdr {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow .2s;
}
.hdr.scrolled { box-shadow: var(--shadow-md); }

.hdr-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.hamburger {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--bg);
  flex-shrink: 0;
}

/* تگ <picture> لوگو در چیدمان دخالت نکند (لوگوی WebP/PNG) */
picture { display: contents; }

.logo { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-mark {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.9), 0 0 0 3px rgba(23,29,45,.14);
  background: #000;
}
.logo-name { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }

.hdr-top .search-form { display: none; }

.hdr-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.hdr-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 9px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 11px;
}
.hdr-action:hover { background: var(--bg); color: var(--ink); }
.act-label { display: none; }
.act-badge {
  position: absolute;
  top: 1px;
  inset-inline-start: 22px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.admin-link { display: none; }

.m-search { padding-bottom: 9px; }

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 11px;
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.search-form:focus-within { border-color: var(--red); background: #fff; }
.search-inp {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 14px;
  outline: none;
}
.search-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 42px;
  color: var(--ink-2);
  flex-shrink: 0;
}
.search-btn:hover { color: var(--red); }

.hdr-nav { display: none; position: relative; border-top: 1px solid var(--line); background: #fff; }
.hdr-nav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hdr-nav-in::-webkit-scrollbar { display: none; }
.hdr-nav-in a {
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color .15s;
}
.hdr-nav-in a:hover { color: var(--ink); }
.hdr-nav-in a.active { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }
.hdr-nav-in a.nav-discount { color: var(--red); }

/* دکمه همبرگری دسته‌بندی (سبک دیجی‌کالا) */
.cat-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  margin-inline-end: 6px;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid #f7cdd3;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
}
.cat-menu-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.cat-menu-btn .ic:last-child { transition: transform .2s ease; }
.cat-menu-btn[aria-expanded="true"] .ic:last-child { transform: rotate(180deg); }

/* پنل بازشوی دسته‌بندی‌ها */
.cat-drop {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  z-index: 55;
  background: #fff;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.cat-drop.open { display: block; }
.cat-drop-in {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 14px 16px 16px;
}
.cat-drop-in a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .13s;
}
.cat-drop-in a:hover { background: var(--bg); color: var(--red); }
.cat-drop-in a.active { color: var(--red); font-weight: 700; }
@media (min-width: 900px) {
  .cat-drop-in { grid-template-columns: repeat(4, 1fr); }
}

/* ─────────── دراور موبایل ─────────── */
.drawer-overlay, .sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 24, .55);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s;
}
.drawer-overlay.show, .sheet-overlay.show { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  bottom: 0;
  width: min(300px, 84vw);
  background: #fff;
  z-index: 90;
  transform: translateX(-105%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
html[dir="rtl"] .drawer { transform: translateX(105%); }
.drawer.open { transform: translateX(0) !important; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-close { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); background: var(--bg); }
.drawer-links { padding: 10px 0 30px; }
.drawer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}
.drawer-links a:hover { background: var(--bg); color: var(--red); }
.drawer-links a .ic { color: var(--ink-3); }
.drawer-emoji { font-size: 18px; }
.drawer-sep {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  text-align: start;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.drawer-sep:hover { background: var(--bg); color: var(--red); }
.drawer-sep .ic { transition: transform .2s ease; color: var(--ink-3); }
.drawer-sep[aria-expanded="true"] .ic { transform: rotate(180deg); }
.drawer-cats { display: none; }
.drawer-cats.open { display: block; }
.drawer-cats a { padding-inline-start: 28px; font-size: 13.5px; }

/* ─────────── ناوبری پایین موبایل ─────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 60;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(23, 29, 45, .06);
}
.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0 6px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 500;
  position: relative;
}
.bnav-item.active { color: var(--red); font-weight: 700; }
.bnav-badge {
  position: absolute;
  top: 2px;
  inset-inline-start: calc(50% + 6px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
@media (min-width: 768px) { .bottom-nav { display: none; } }

/* ─────────── قهرمان (Hero) ─────────── */
.hero {
  background: #15213a;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('../img/hero-billboard.jpg') center 30%/cover no-repeat;
  background-color: #0b1626;
}
.hero-bg .mt-svg { width: 100%; height: 100%; display: block; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,14,26,.68) 0%, rgba(8,14,26,.64) 35%, rgba(8,14,26,.76) 70%, rgba(8,14,26,.9) 100%);
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 34px;
  padding-bottom: 38px;
  min-height: clamp(300px, 46vh, 440px);
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  margin-bottom: 14px;
}
.hero-title { font-size: 25px; font-weight: 800; line-height: 1.5; margin-bottom: 10px; }
.hero-sub { font-size: 13.5px; color: rgba(255,255,255,.85); max-width: 460px; margin-bottom: 18px; line-height: 2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { display: none; }
.hero-logo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.28);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

/* ─────────── نشان اعتماد ─────────── */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px 0; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  color: var(--ink);
}
.trust-item .ic { color: var(--red); flex-shrink: 0; }
.trust-item b { display: block; font-size: 13px; }
.trust-item span { font-size: 11px; color: var(--ink-3); }

/* ─────────── بخش‌ها ─────────── */
.sec { padding: 20px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sec-title { font-size: 16.5px; font-weight: 800; position: relative; padding-inline-start: 12px; }
.sec-title::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 3px;
  background: var(--red);
}
.sec-title-red::before { background: var(--orange); }
.sec-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.sec-more:hover { color: var(--red); }

/* ─────────── دسته‌بندی‌ها ─────────── */
.grid-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 12px;
  text-align: center;
  transition: all .18s ease;
  position: relative;
}
.cat-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #2c4a55;
  border-radius: 14px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #eef3f6 0%, #dfe7ec 100%);
  border: 1px solid #d5e0e6;
}
.cat-card:hover .cat-ic { color: var(--red); background: #fdeef0; border-color: #f7cdd3; }
.cat-ic svg { width: 30px; height: 30px; }
.cat-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(15, 24, 40, .06);
}
.cat-ph img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; }
.cat-ph-transparent { background: transparent; border-color: transparent; box-shadow: none; }
.cat-ph-transparent img { padding: 0; }
@media (min-width: 768px) {
  .cat-ph { width: 72px; height: 72px; }
}
.cat-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 10px;
  color: #e8dcc0;
  background: linear-gradient(145deg, #263b56 0%, #121f33 100%);
  border: 1px solid #405b7a;
  box-shadow: 0 4px 14px rgba(10, 20, 38, .35), inset 0 0 0 1px rgba(232,220,192,.08);
}
.cat-logo svg { width: 40px; height: 40px; }
.cat-logo:hover { color: #fff4d7; border-color: var(--red); background: linear-gradient(145deg, #304968 0%, #17263d 100%); }
.cat-name { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.cat-cnt { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }

/* ─────────── کارت محصول ─────────── */
.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.p-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.p-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #e3d5d8; }

.p-img {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #fafbfd, #f0f2f6);
  display: grid;
  place-items: center;
}
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-disc {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  z-index: 2;
}
.p-disc.big { font-size: 12.5px; padding: 4px 10px; }
.p-stock-badge {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  background: rgba(23, 29, 45, .68);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.p-info { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-cat { font-size: 10.5px; color: var(--ink-3); }
.p-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  flex: 1;
}
.p-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; margin-top: 5px; }
.p-price { font-size: 14.5px; font-weight: 800; color: var(--red); }
.p-price small { font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
.p-old { font-size: 11.5px; color: var(--ink-3); text-decoration: line-through; }

/* ─────────── بنرهای تبلیغاتی ─────────── */
.promos { display: grid; gap: 10px; }
.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius-lg);
  padding: 18px;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.promo::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  inset-inline-end: -40px;
  top: -50px;
}
.promo-1 { background: linear-gradient(120deg, #e2713d, #a03f2c); }
.promo-2 { background: linear-gradient(120deg, #2f6f66, #1f3a5e); }
.promo-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.promo-tag { font-size: 11.5px; opacity: .85; }
.promo-text b { font-size: 17px; font-weight: 800; }
.promo-text small { font-size: 11.5px; opacity: .85; }
.promo-emoji { font-size: 42px; position: relative; z-index: 1; }

/* ─────────── برندها ─────────── */
.brands-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .15s;
}
.brand-pill:hover { border-color: var(--red); color: var(--red); }

/* ─────────── مسیر و عنوان صفحه ─────────── */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 14px;
}
.crumbs a:hover { color: var(--red); }
.crumb-sep { color: #c6cad1; }

.page-head { padding: 14px 0 16px; }
.page-title { font-size: 19px; font-weight: 800; }
.page-sub { font-size: 13px; color: var(--ink-3); }

/* ─────────── فروشگاه: چیدمان ─────────── */
.shop-layout { display: block; padding-bottom: 30px; }

.shop-side { display: none; }

.shop-main { min-width: 0; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  margin-bottom: 12px;
}
.toolbar-info { display: flex; align-items: center; gap: 10px; }
.toolbar-count { font-size: 12.5px; color: var(--ink-3); }
.toolbar-sort { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.sort-select {
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
  background: #fff;
  outline: none;
  font-size: 13px;
  max-width: 140px;
}
.sort-select:focus { border-color: var(--red); }

.fbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 9px;
}
.fbtn-badge {
  background: var(--red);
  color: #fff;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 11px;
  padding: 0 4px;
}

/* ─────────── چیپ‌های فیلتر فعال ─────────── */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--ink-2);
}
.chip .ic { color: var(--ink-3); }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip:hover .ic { color: var(--red); }
.chip-clear { color: var(--red); border-color: #f3c6cc; background: var(--red-soft); }

/* ─────────── فیلتر سایدبار ─────────── */
.f-form { display: flex; flex-direction: column; gap: 0; }
.f-group { border-bottom: 1px solid var(--line); padding: 12px 0; }
.f-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: start;
  margin-bottom: 9px;
  cursor: pointer;
}
.f-title .ic { color: var(--ink-3); transition: transform .2s ease; flex-shrink: 0; }
.f-group.open .f-title .ic { transform: rotate(180deg); }
.f-list { display: flex; flex-direction: column; gap: 2px; }
.f-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5.5px 2px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-2);
  border-radius: 7px;
  user-select: none;
}

/* ─────────── چک‌باکس‌های رنگ و سایز در فرم محصول ─────────── */
.var-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.var-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
  user-select: none;
  transition: border-color .15s, background .15s;
}
.var-check:hover { border-color: var(--red); }
.var-check input { display: none; }
.var-check input:checked ~ .f-check {
  border-color: var(--red);
  background: var(--red);
}
.var-check input:checked ~ .f-check::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.var-check input:checked {
  border-color: var(--red);
  background: var(--red-soft);
}
.size-field { margin-top: 14px; }
.size-field[style*="display:none"], .size-field[hidden] { display: none !important; }
.f-item:hover { color: var(--ink); }
.f-item input { display: none; }
.f-radio, .f-check {
  width: 19px;
  height: 19px;
  border: 1.8px solid #cdd1d9;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: all .15s;
}
.f-radio { border-radius: 50%; }
.f-check { border-radius: 5px; }
.f-item input:checked ~ .f-radio, .f-item input:checked ~ .f-check {
  border-color: var(--red);
  background: var(--red);
}
.f-item input:checked ~ .f-radio::after {
  content: '';
  position: absolute;
  inset: 4.5px;
  border-radius: 50%;
  background: #fff;
}
.f-item input:checked ~ .f-check::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.f-label small { font-size: 11px; color: var(--ink-3); }
.f-price-row { display: flex; align-items: center; gap: 8px; }
.f-price-row .inp { padding: 8px 10px; font-size: 13px; }
.f-price-sep { color: var(--ink-3); font-size: 12.5px; }
.f-reset { margin-top: 8px; }

/* ─────────── شیت فیلتر موبایل ─────────── */
.sheet {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 90;
  background: #fff;
  border-radius: 18px 18px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(105%);
  transition: transform .3s ease;
}
.sheet.open { transform: translateY(0); }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h3 { font-size: 15.5px; font-weight: 800; }
.sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink-2);
}
.sheet-body { padding: 4px 18px 22px; overflow-y: auto; }

/* ─────────── صفحه‌بندی ─────────── */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .15s;
}
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.current { background: var(--red); border-color: var(--red); color: #fff; }

/* ─────────── حالت خالی ─────────── */
.empty-state {
  text-align: center;
  padding: 46px 16px;
  background: #fff;
  border: 1px dashed #d5d8df;
  border-radius: var(--radius-lg);
}
.empty-ic {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-3);
  margin-bottom: 14px;
}
.empty-state h3 { font-size: 16.5px; margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }

/* ─────────── جزئیات محصول ─────────── */
.p-detail {
  display: grid;
  gap: 14px;
  padding: 14px 0 26px;
}
.p-gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; }
.p-main-img {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #fafbfd, #f0f2f6);
}
.p-main-img img { width: 100%; height: 100%; object-fit: cover; }
.p-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.p-thumb {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  border: 2px solid var(--line);
  overflow: hidden;
  padding: 0;
  background: #f7f8fa;
  transition: border-color .15s;
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-thumb.active { border-color: var(--red); }

.p-info-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.p-name { font-size: 17px; font-weight: 800; line-height: 1.7; }
.p-brand-row { display: flex; flex-wrap: wrap; gap: 8px; }
.p-cat-chip, .p-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--ink-2);
}
.p-brand-chip { background: var(--blue-soft); color: var(--blue); }
.p-avail-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-avail { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; }
.p-avail.in { color: var(--green); }
.p-avail.out { color: var(--red); }
.p-lowstock { font-size: 12px; color: var(--orange); font-weight: 600; }

.p-price-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.p-price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.p-big-price { font-size: 24px; font-weight: 800; color: var(--red); }
.p-big-price small { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.p-old-price { font-size: 13.5px; color: var(--ink-3); text-decoration: line-through; }
.pct-pill { background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 20px; }

.p-actions { display: flex; flex-direction: column; gap: 11px; }
/* گزینه‌های تنوع محصول (رنگ/سایز) */
.p-variants { display: flex; flex-direction: column; gap: 10px; margin: 2px 0 4px; }
.pv-group { display: flex; flex-direction: column; gap: 7px; }
.pv-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.pv-options { display: flex; flex-wrap: wrap; gap: 7px; }
.pv-opt {
  min-width: 46px;
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.pv-opt:hover { border-color: var(--red); color: var(--red); }
.pv-opt.active { border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 3px 10px rgba(199,36,46,.25); }
@keyframes pvPop { from { transform: scale(.92); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.pv-opt.active { animation: pvPop .18s ease; }
/* نمایش تنوع در سبد و فاکتور */
.ci-variant, .si-var { display: block; margin-top: 3px; font-size: 12px; color: #7c8392; font-weight: 400; }
.si-var { margin-top: 1px; }
.td-prod .td-sub { display: block; font-size: 11px; color: #7c8392; margin-top: 2px; }
.qty-row { display: inline-flex; align-items: center; align-self: flex-start; border: 1.5px solid var(--line); border-radius: 11px; overflow: hidden; }
.qty-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: var(--bg);
  transition: background .15s;
}
.qty-btn:hover { background: #e9ebef; }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-num {
  width: 52px;
  height: 38px;
  border: none;
  border-inline: 1.5px solid var(--line);
  text-align: center;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-num::-webkit-outer-spin-button, .qty-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: 10px; }

.p-meta { border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.meta-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); }
.meta-row b { color: var(--ink-2); font-weight: 600; }

/* ─────────── تب‌ها و مشخصات ─────────── */
.card-sec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  min-width: 0;
}
.tabs { padding: 0; overflow: hidden; }
.tabs-head { display: flex; border-bottom: 1px solid var(--line); background: #fff; }
.tab-btn {
  flex: 1;
  padding: 13px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
  border-bottom: 2.5px solid transparent;
  transition: all .15s;
}
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
.tab-body { padding: 16px; }
.p-desc { font-size: 14px; line-height: 2.2; color: var(--ink-2); }
.tab-pane { display: block; }
.js-tabs .tab-pane { display: none; }
.js-tabs .tab-pane.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  padding: 11px 15px;
  font-size: 13.5px;
  text-align: start;
  border-bottom: 1px solid var(--line);
}
.spec-table th { width: 38%; background: var(--bg); color: var(--ink-2); font-weight: 600; border-inline-start: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ─────────── سبد خرید ─────────── */
.cart-layout { display: grid; gap: 14px; padding-bottom: 26px; }
.cart-layout > * { min-width: 0; }

.free-ship-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.free-ship-bar .ic { color: var(--orange); flex-shrink: 0; }
.free-ship-bar.ok { color: var(--green); }
.free-ship-bar.ok .ic { color: var(--green); }
.free-ship-bar b { color: var(--red); }
.fs-track { flex: 1; height: 7px; background: #e8eaef; border-radius: 4px; overflow: hidden; }
.fs-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--red)); border-radius: 4px; transition: width .5s; }

.cart-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  margin-bottom: 10px;
  position: relative;
}
.ci-img {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-title { font-size: 13px; font-weight: 600; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-title:hover { color: var(--red); }
.ci-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.ci-now { font-size: 13.5px; font-weight: 800; color: var(--red); }
.ci-old { font-size: 11.5px; color: var(--ink-3); text-decoration: line-through; }
.ci-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.qty-ctrl { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty-ctrl .qty-btn { width: 32px; height: 32px; }
.qty-val { width: 34px; text-align: center; font-weight: 700; font-size: 13px; }
.ci-remove { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 12px; }
.ci-remove:hover { color: var(--red); }
.ci-line { position: absolute; bottom: 12px; inset-inline-end: 12px; font-weight: 800; font-size: 13.5px; color: var(--ink); }
.ci-line small { font-size: 10px; color: var(--ink-3); font-weight: 500; }
.cart-clear-wrap { text-align: start; margin-top: 4px; }

.cart-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  align-self: start;
}
.cart-summary h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 13px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13.5px; color: var(--ink-2); }
.sum-row b { color: var(--ink); font-weight: 700; }
.sum-row .green { color: var(--green); }
.sum-total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; }
.sum-total span { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.sum-total b { font-size: 17px; color: var(--red); }
.cart-summary .btn { margin-top: 10px; }
.sum-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--orange); background: var(--orange-soft); border-radius: 8px; padding: 7px 10px; margin-top: 4px; }

/* ─────────── تسویه حساب ─────────── */
.check-layout { display: grid; gap: 14px; padding-bottom: 26px; }
.check-layout > * { min-width: 0; }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.form-title { font-size: 15.5px; font-weight: 800; margin-bottom: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.form-card .form-title { margin-top: 18px; }
.form-card .form-title:first-child { margin-top: 0; }

.pay-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pay-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  cursor: pointer;
  transition: all .15s;
}
.pay-opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.pay-opt input { display: none; }
.pay-opt b { display: block; font-size: 13.5px; }
.pay-opt small { font-size: 11.5px; color: var(--ink-3); }

.order-sum .sum-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12.5px; color: var(--ink-2); }
.order-sum .sum-item b { margin-inline-start: auto; color: var(--ink); font-size: 12.5px; }
.si-qty { color: var(--ink-3); font-size: 11.5px; }

.order-success { text-align: center; max-width: 560px; margin: 30px auto 50px; }
.os-ic {
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 16px;
}
.order-success h1 { font-size: 20px; margin-bottom: 10px; }
.order-success > p { color: var(--ink-2); font-size: 14px; margin-bottom: 20px; line-height: 2; }
.os-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px 18px;
  text-align: start;
  margin-bottom: 20px;
}
.os-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ─────────── ورود / ثبت‌نام ─────────── */
.auth-wrap { display: grid; place-items: center; padding: 34px 0 50px; }
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}
.auth-ic {
  display: inline-grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 12px;
}
.auth-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.auth-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 18px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 16px; }
.auth-alt a { color: var(--red); font-weight: 700; }

/* ─────────── پنل کاربری ─────────── */
.acc-layout { display: grid; gap: 14px; padding-bottom: 30px; }
.acc-layout > * { min-width: 0; }
.acc-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; align-self: start; }
.acc-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fdf3f4, #fff);
}
.acc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
  flex-shrink: 0;
}
.acc-avatar.sm { width: 32px; height: 32px; font-size: 14px; }
.acc-user b { display: block; font-size: 14px; }
.acc-user small { font-size: 11.5px; color: var(--ink-3); }
.acc-nav { padding: 8px; display: flex; gap: 2px; overflow-x: auto; }
.acc-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
}
.acc-nav a:hover { background: var(--bg); color: var(--ink); }
.acc-nav a.active { background: var(--red-soft); color: var(--red); font-weight: 700; }
.acc-nav a .ic { opacity: .7; }

.order-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.order-detail-head h3 { font-size: 15.5px; font-weight: 800; }
.order-detail-head small { font-size: 12px; color: var(--ink-3); }
.order-info-grid { display: grid; gap: 10px; margin: 16px 0; }
.oi-box { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.oi-box h4 { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.oi-box p { font-size: 12.5px; color: var(--ink-2); line-height: 2; }
.oi-note { color: var(--orange) !important; }
.oi-total { color: var(--red) !important; font-weight: 800; }

/* ─────────── جدول‌ها ─────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th {
  text-align: start;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--bg);
  padding: 10px 13px;
  white-space: nowrap;
}
.table td { padding: 11px 13px; font-size: 13px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #fafbfc; }
.td-prod { display: flex; align-items: center; gap: 10px; }
.td-prod img { border-radius: 8px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.td-prod span { font-size: 12.5px; font-weight: 600; }
.td-title a { font-weight: 600; }
.td-title a:hover { color: var(--red); }
.td-title small { display: block; color: var(--ink-3); font-size: 11px; }
.td-old { color: var(--ink-3); text-decoration: line-through; font-size: 11px; margin-inline-start: 5px; }
.td-empty { text-align: center !important; color: var(--ink-3); padding: 30px !important; }
.td-sub { display: block; font-size: 11px; color: var(--ink-3); }
.td-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.t-thumb { border-radius: 8px; object-fit: cover; background: var(--bg); }
.link { color: var(--red); font-weight: 700; }
.link:hover { text-decoration: underline; }

/* ─────────── فوتر ─────────── */
.foot { background: #1d2433; color: #c3c9d4; margin-top: 10px; }

/* نوار اعتماد بالای فوتر */
.foot-trust { border-bottom: 1px solid rgba(255,255,255,.07); }
.foot-trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 15px 12px; }
.ft-item { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 10px; }
.ft-item + .ft-item { border-inline-start: 1px solid rgba(255,255,255,.08); }
.ft-item .ic { color: var(--red); flex-shrink: 0; }
.ft-item b { display: block; font-size: 12.5px; color: #fff; }
.ft-item span { display: block; font-size: 11px; color: #8b93a3; margin-top: 2px; white-space: nowrap; }

.foot-grid { display: grid; grid-template-columns: 1.55fr .95fr .95fr 1.25fr; gap: 20px 26px; padding: 24px 12px 20px; align-items: start; }
.foot-about .logo-name { color: #fff; }
.foot-about p { font-size: 12.5px; line-height: 2; margin-top: 10px; color: #9aa3b3; }
.foot-about .foot-lead { color: #cdd3de; font-size: 13px; }
.foot-about .foot-lead b { color: #fff; }
.foot-about p:last-child { padding-bottom: 2px; }
.foot-title { color: #fff; font-size: 13.5px; font-weight: 700; margin-bottom: 11px; position: relative; padding-inline-start: 11px; }
.foot-title::before { content: ''; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 15px; border-radius: 3px; background: var(--red); }
.foot-links { display: flex; flex-direction: column; gap: 7px; }
.foot-links a { font-size: 12.5px; color: #aab2c0; transition: color .15s; line-height: 1.9; }
.foot-category-links { gap: 10px; }
.foot-category-links a { display: block; white-space: normal; word-break: normal; }
.foot-category-enamad { margin-top: 16px; }
.foot-category-enamad a { display: inline-block; line-height: 0; background: #fff; border-radius: 9px; padding: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.foot-category-enamad img { width: 90px; height: 90px; object-fit: contain; }
/* اینماد: دسکتاپ زیر دکمه نقشه، موبایل/تبلت زیر دسته‌بندی‌ها */
.foot-enamad { display: none; }
@media (min-width: 1021px) {
  .foot-enamad { display: block; }
  .foot-category-enamad { display: none; }
}
.foot-links a:hover { color: var(--red); }
.rules-card { max-width: 980px; margin-inline: auto; }
.rules-intro { color: var(--ink-2); line-height: 2.1; margin-bottom: 18px; }
.rules-section { padding: 18px 0; border-top: 1px solid var(--line); }
.rules-section h2 { font-size: 16px; margin-bottom: 10px; color: var(--ink); }
.rules-section p, .rules-section li { color: var(--ink-2); font-size: 13.5px; line-height: 2.15; }
.rules-section ul { list-style: disc; padding-inline-start: 22px; }
.rules-section li + li { margin-top: 5px; }
.rules-updated { border-top: 1px dashed var(--line); padding-top: 14px; color: var(--ink-3); font-size: 12px; }
.foot-contact { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; color: #aab2c0; }
.foot-contact a, .foot-contact span { display: flex; align-items: center; gap: 7px; }
.foot-contact .ic { color: var(--red); flex-shrink: 0; }
.foot-contact a:hover { color: var(--red); }
.fc-phone { color: #fff; font-weight: 800; font-size: 14.5px; }
.fc-map { color: #d7dbe3; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; padding: 8px 11px; font-size: 12px; font-weight: 600; transition: all .15s; }
.fc-map:hover { background: var(--red); color: #fff; border-color: var(--red); }
/* ─────────── شبکه‌های اجتماعی — لوگوی بدون پس‌زمینه ───────────
 * لوگوها فقط خودِ نشان برند هستند (بدون کادر و بدون پس‌زمینه).
 * افکت هاور: بالا آمدن نرم + بزرگ‌نمایی + درخشش ملایم. */
.foot-social {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 16px;
}
.foot-social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 8px;
  color: inherit;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
  transition: transform .26s cubic-bezier(.34, 1.56, .64, 1), filter .26s ease;
  will-change: transform;
}
.foot-social a img.ic-img,
.foot-social a svg.ic {
  width: 24px;
  height: 24px;
  display: block;
}
.foot-social a:hover {
  transform: translateY(-3px) scale(1.16);
  filter: drop-shadow(0 5px 13px rgba(255, 255, 255, .38));
}
.foot-social a:active { transform: translateY(-1px) scale(1.06); }

/* آیکون‌هایی که به‌صورت تصویر جاسازی‌شده (base64) لود می‌شوند */
.ic-img {
  display: inline-block;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}
.foot-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 12px 0; font-size: 12px; color: #8b93a3; }
.foot-bottom-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.foot-bottom-links { display: flex; gap: 16px; }
.foot-bottom-links a { color: #aab2c0; }
.foot-bottom-links a:hover { color: var(--red); }
/* نماد اعتماد الکترونیکی (اینماد) — داخل ستون ارتباط با ما */
.foot-enamad {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.foot-enamad a {
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transition: transform .2s ease;
}
.foot-enamad a:hover { transform: scale(1.03); }
.foot-enamad img { width: 90px; height: 90px; object-fit: contain; display: block; }
.foot-enamad a { line-height: 0; }

@media (max-width: 1020px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px 22px; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .foot-trust-in { grid-template-columns: 1fr 1fr; gap: 6px; padding: 11px 8px; }
  .ft-item { justify-content: flex-start; padding: 4px 6px; }
  .ft-item:nth-child(3) { border-inline-start: none; border-top: 1px solid rgba(255,255,255,.08); }
  .ft-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.08); }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; padding: 20px 16px 16px; }
  .foot-col { min-width: 0; }
  .foot-category-links { gap: 8px; }
  .foot-category-enamad { margin-top: 12px; }
  .foot-bottom-in { justify-content: center; text-align: center; flex-direction: column; }
  .foot-enamad { margin-top: 12px; }
  .foot-enamad img { width: 78px; height: 78px; }
}

/* ─────────── صفحه درباره ما ─────────── */
.page-hero { background: linear-gradient(135deg, #232a3b 0%, #1a2030 100%); color: #fff; padding: 24px 0 20px; }
.page-hero .crumbs a { color: #c3c9d4; }
.page-hero .crumbs span { color: #8b93a3; }
.page-hero-title { font-size: 22px; font-weight: 800; margin-top: 10px; }
.page-hero-sub { color: #aab2c0; font-size: 13px; margin-top: 6px; }

.about-intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.about-h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; position: relative; padding-inline-start: 12px; }
.about-h2::before { content: ''; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 18px; border-radius: 3px; background: var(--red); }
.about-text p { font-size: 13.5px; line-height: 2.15; color: var(--ink-2); margin-bottom: 10px; }
.about-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.about-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; text-align: center; }
.about-logo { border-radius: 20px; }
.about-card h3 { font-size: 16px; font-weight: 800; margin-top: 10px; }
.about-tagline { font-size: 12px; color: #8a92a3; margin-top: 4px; }
.about-info { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; text-align: start; }
.about-info li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); background: #f7f8fa; border-radius: 10px; padding: 9px 11px; }
.about-info li span, .about-info li a { line-height: 1.9; }
.about-info .ic { color: var(--red); flex-shrink: 0; }
.about-info a:hover { color: var(--red); }

.about-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.af-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; text-align: center; }
.af-item .ic { color: var(--red); }
.af-item b { display: block; font-size: 13.5px; margin-top: 8px; }
.af-item span { display: block; font-size: 11.5px; color: #8a92a3; margin-top: 5px; line-height: 1.9; }

/* سوالات متداول */
.sec-desc { font-size: 12.5px; color: #8a92a3; margin-top: 5px; }
.faq-list { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; max-width: 880px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.faq-item.open { border-color: #f3b3bd; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: none; border: none; cursor: pointer; text-align: start; font-family: inherit; line-height: 1.8; }
.faq-q:hover { color: var(--red); }
.faq-ico { position: relative; flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; background: #fdeef0; transition: background .2s; }
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--red); border-radius: 2px; }
.faq-ico::before { width: 11px; height: 2px; }
.faq-ico::after { width: 2px; height: 11px; transition: transform .25s; }
.faq-item.open .faq-ico { background: var(--red); }
.faq-item.open .faq-ico::before, .faq-item.open .faq-ico::after { background: #fff; }
.faq-item.open .faq-ico::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; min-height: 0; padding: 0 15px; font-size: 13px; line-height: 2.15; color: #5c6470; }
.faq-item.open .faq-a-in { padding-bottom: 14px; }

/* نقشه و مسیریابی */
.map-card { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.map-frame { position: relative; border-radius: 12px; overflow: hidden; min-height: 360px; background: #e8ecf1; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-marker { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); z-index: 2; }
.map-pin { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.map-pin .ic { transform: rotate(45deg); }
.map-pulse { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); width: 16px; height: 5px; border-radius: 50%; background: rgba(239,64,86,.5); animation: mapPulse 1.6s ease-out infinite; }
@keyframes mapPulse {
  0%   { transform: translateX(-50%) scale(.6); opacity: .9; }
  100% { transform: translateX(-50%) scale(2.3); opacity: 0; }
}
.map-side { display: flex; flex-direction: column; gap: 11px; }
.map-addr { background: #f7f8fa; border-radius: 12px; padding: 14px; flex: 1; }
.map-addr h3 { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.map-addr h3 .ic { color: var(--red); }
.map-addr p { font-size: 12.5px; color: #5c6470; margin-top: 8px; line-height: 2; }
.map-coord { font-size: 11px; color: #9aa3b3; }
.map-nav { display: grid; gap: 8px; }
.map-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 12px; border-radius: 11px; font-size: 13px; font-weight: 700; color: #fff; transition: filter .15s, transform .15s; }
.map-btn:hover { filter: brightness(1.1); }
.map-btn:active { transform: scale(.98); }
.map-btn-neshan { background: #0e7d6f; }
.map-btn-balad  { background: #1f6fd1; }
.map-btn-google { background: #3c4657; }
.map-btn-call   { background: var(--red); }

@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-feats { grid-template-columns: 1fr 1fr; }
  .map-card { grid-template-columns: 1fr; }
  .map-frame { min-height: 300px; }
}
@media (max-width: 480px) {
  .about-feats { gap: 9px; }
  .af-item { padding: 13px 9px; }
  .page-hero-title { font-size: 19px; }
}

/* ═══════════════════════════════════════════════════════
   پنل مدیریت
   ═══════════════════════════════════════════════════════ */
.adm-body { background: #f1f2f5; }
.adm { min-height: 100vh; display: flex; flex-direction: column; }

.adm-side {
  background: linear-gradient(180deg, #232a3b, #1b2130);
  color: #c6cdda;
  display: flex;
  flex-direction: column;
}
.adm-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.adm-logo img { border-radius: 8px; }
.adm-logo span { font-weight: 800; font-size: 15px; line-height: 1.3; }
.adm-logo small { display: block; font-size: 10.5px; font-weight: 500; color: #9aa3b3; }
.adm-nav { display: flex; overflow-x: auto; padding: 8px; gap: 4px; }
.adm-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: #c6cdda;
  white-space: nowrap;
}
.adm-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.adm-nav a.active { background: var(--red); color: #fff; font-weight: 700; }
.adm-side-foot { display: flex; gap: 4px; padding: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.adm-side-foot a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: 9px;
  font-size: 12.5px;
  color: #c6cdda;
}
.adm-side-foot a:hover { background: rgba(255,255,255,.07); color: #fff; }

.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.adm-top h1 { font-size: 16px; font-weight: 800; }
.adm-user { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.adm-content { padding: 16px; flex: 1; min-width: 0; }

.adm-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.adm-cards > * { min-width: 0; }
.adm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.ac-ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ac-red { background: var(--red-soft); color: var(--red); }
.ac-blue { background: var(--blue-soft); color: var(--blue); }
.ac-orange { background: var(--orange-soft); color: var(--orange); }
.ac-green { background: var(--green-soft); color: var(--green); }
.ac-purple { background: #ede7fb; color: var(--purple); }
.adm-card b { display: block; font-size: 16px; font-weight: 800; line-height: 1.4; }
.adm-card small { font-size: 11px; color: var(--ink-3); }

.adm-cols { display: grid; gap: 16px; }
.adm-cols > * { min-width: 0; }
.adm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-toolbar .inp { max-width: 320px; }
.adm-form-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.adm-form-actions { display: flex; gap: 10px; margin-bottom: 30px; }
.f-checks { display: flex; flex-direction: column; gap: 9px; padding-top: 24px; }

.spec-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; margin-bottom: 8px; }
.spec-row .btn { padding: 8px 0; }
.img-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.img-preview img { border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.img-preview small { font-size: 12px; color: var(--ink-3); }
.gallery-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.gallery-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.gallery-item img { width: 86px; height: 86px; object-fit: cover; border-radius: 8px; }
.gallery-del { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; cursor: pointer; }

/* ── ویرایشگر تصویر قبل از آپلود (فرم محصول) ── */
.img-editor-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.img-editor-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); max-width: 150px; }
.img-editor-item img { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.img-editor-item small { font-size: 11px; color: var(--ink-3); max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-editor-acts { display: flex; gap: 6px; }
.img-editor-modal { position: fixed; inset: 0; z-index: 1200; background: rgba(10, 16, 28, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.img-editor-modal-inner { background: #fff; border-radius: 16px; padding: 18px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px; }
.img-editor-modal-inner h3 { font-size: 15px; font-weight: 800; margin: 0; }
.img-editor-hint { font-size: 12.5px; line-height: 1.8; color: var(--ink-3); margin: 0; }
.img-editor-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.img-editor-modes .btn.on { background: var(--green-soft); color: var(--green); border-color: transparent; }
.img-editor-stage { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(#f1f2f4 0% 25%, #fff 0% 50%) 50% / 22px 22px; touch-action: none; user-select: none; -webkit-user-select: none; }
.img-editor-stage.card { aspect-ratio: 1; width: 100%; max-width: 360px; margin-inline: auto; }
.img-editor-stage.full { height: 300px; }
.img-editor-stage img { position: absolute; max-width: none; max-height: none; left: 0; top: 0; }
.img-editor-stage.dragging { cursor: grabbing; }
.img-editor-stage:not(.dragging) { cursor: move; }
.img-editor-stage-info { position: absolute; bottom: 8px; inset-inline-start: 8px; inset-inline-end: 8px; text-align: center; background: rgba(15, 24, 40, .62); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 8px; pointer-events: none; }
.img-editor-zoom { display: flex; align-items: center; gap: 10px; }
.img-editor-zoom input[type="range"] { flex: 1; }
.img-editor-zoom-val { font-size: 13px; font-weight: 700; min-width: 44px; text-align: center; color: var(--ink-2); }
.img-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.lowstock-list { display: flex; flex-direction: column; }
.lowstock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
.lowstock-item:last-child { border-bottom: none; }
.lowstock-item img { border-radius: 8px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.ls-title { flex: 1; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-stock { font-size: 12px; font-weight: 800; color: var(--orange); }
.ls-stock.out { color: var(--red); }

.tbtn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f0f1f3;
  color: var(--ink-3);
  border: 1px solid var(--line);
  transition: all .15s;
}
.tbtn.on { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tbtn.on.gold { background: var(--orange-soft); color: var(--orange); }
.tbtn:hover { transform: scale(1.06); }

.status-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.status-form label { font-size: 13.5px; font-weight: 700; }
.status-form .inp { max-width: 220px; }

/* ورود مدیریت */
.adm-login-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1d2b4a, #2e5f6b 55%, #3d7a66);
  display: grid;
  place-items: center;
  padding: 20px;
}
.adm-login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.adm-login-card h1 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.adm-login-card .auth-alt { display: block; text-align: center; margin-top: 16px; font-size: 13px; }

/* ═══════════════════════════════════════════════════════
   ریسپانسیو — تبلت و دسکتاپ
   ═══════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid-cats { grid-template-columns: repeat(3, 1fr); }
  .grid-products { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .trust-row { grid-template-columns: repeat(4, 1fr); }
  .promos { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 30px; }
  .hero-inner { min-height: clamp(340px, 48vh, 480px); }
  .cart-item { grid-template-columns: 100px 1fr; padding: 14px; }
  .ci-img { width: 100px; height: 100px; }
  .adm-cards { grid-template-columns: repeat(3, 1fr); }
  .order-info-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .hamburger { display: none; }
  .m-search { display: none; }
  .hdr-top .search-form { display: flex; flex: 1; max-width: 520px; margin-inline: 12px; }
  .act-label { display: block; }
  .hdr-nav { display: block; }
  .admin-link { display: flex; }
  .hero-art { display: block; }
  .hero-art img { width: 250px; height: 250px; }
  .hero-inner { padding-top: 42px; padding-bottom: 48px; min-height: clamp(400px, 52vh, 520px); }
  .acc-nav { flex-direction: column; overflow: visible; }
  .adm { flex-direction: row; }
  .adm-side { width: 228px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; }
  .adm-nav { flex-direction: column; overflow: visible; padding: 12px 10px; flex: 1; }
  .adm-side-foot { flex-direction: column; }
  .adm-cards { grid-template-columns: repeat(5, 1fr); }
  .adm-form-grid { grid-template-columns: 1.4fr 1fr; }
  .adm-cols { grid-template-columns: 1.4fr 1fr; }
}

@media (min-width: 900px) {
  .p-detail { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .p-actions { flex-direction: row; align-items: center; }
  .cart-layout { grid-template-columns: 1fr 330px; align-items: start; }
  .check-layout { grid-template-columns: 1fr 360px; align-items: start; }
  .acc-layout { grid-template-columns: 250px 1fr; align-items: start; }
}

@media (min-width: 1024px) {
  body { font-size: 15px; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .grid-cats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cat-card { padding: 20px 14px; }

  .shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
  .shop-layout > * { min-width: 0; }
  .shop-side { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 16px 16px; position: sticky; top: 88px; }
  .fbtn { display: none; }
  .page-head { padding-top: 18px; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .grid-products { grid-template-columns: repeat(4, 1fr); }
  .hero-title { font-size: 36px; }
  .hero-inner { min-height: clamp(460px, 54vh, 560px); }
  .hero-art img { width: 300px; height: 300px; }
}

@media (min-width: 900px) and (max-width: 1023px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════
   افزونه‌های ریسپانسیو — پنل‌ها، آکاردئون و کارت سفارش
   ═══════════════════════════════════════════════════════ */

/* کارت سفارش (پنل مشتری — موبایل و دسکتاپ) */
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: all .15s;
}
.order-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.oc-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.oc-num { font-size: 13.5px; font-weight: 800; }
.oc-date { font-size: 12px; color: var(--ink-3); }
.oc-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.oc-total { font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.oc-total small { font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
.oc-arrow { color: var(--ink-3); display: grid; place-items: center; }
.order-card:hover .oc-arrow { color: var(--red); }

/* جداول پنل مشتری: دسکتاپ حداقل عرض، موبایل کارت‌های عمودی */
.acc-main { min-width: 0; }
.acc-main .table { min-width: 480px; }
@media (max-width: 600px) {
  .acc-main .table { min-width: 0; }
  .acc-main .table, .acc-main .table tbody { display: block; width: 100%; }
  .acc-main .table thead { display: none; }
  .acc-main .table tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 12px;
    margin-bottom: 10px;
    background: #fff;
  }
  .acc-main .table tr:hover td { background: transparent; }
  .acc-main .table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: none;
    padding: 8px 0;
    text-align: start;
  }
  .acc-main .table td + td { border-top: 1px dashed var(--line); }
  .acc-main .table td::before {
    content: attr(data-l);
    font-size: 12px;
    color: var(--ink-3);
    font-weight: 700;
    flex-shrink: 0;
  }
}

/* آکاردئون فیلترها: در موبایل جمع‌شده (با کلیک روی عنوان باز می‌شود) */
@media (max-width: 767px) {
  .f-list { display: none; }
  .f-group.open .f-list { display: block; }
  .f-title { margin-bottom: 0; }
  .f-group.open .f-title { margin-bottom: 9px; }
}

/* ─── پنل مدیریت: منوی کشویی در موبایل ─── */
.adm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 24, .55);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s;
}
.adm-overlay.show { opacity: 1; visibility: visible; }
.adm-burger { display: grid; }

@media (max-width: 767px) {
  .adm-side {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(290px, 85vw);
    height: 100vh;
    z-index: 100;
    transform: translateX(-105%);
    transition: transform .28s ease;
    box-shadow: 0 0 44px rgba(0,0,0,.4);
    overflow-y: auto;
  }
  html[dir="rtl"] .adm-side { transform: translateX(105%); }
  .adm-side.open { transform: translateX(0) !important; }
  .adm-nav { flex-direction: column; overflow: visible; padding: 12px 10px; }
  .adm-nav a { padding: 12px 14px; font-size: 14px; }
  .adm-side-foot { flex-direction: column; margin-top: auto; }
  .adm-side-foot a { justify-content: flex-start; padding: 11px 14px; }
  .adm-content { padding: 12px; }
  .adm-top { padding: 10px 12px; gap: 8px; }
  .adm-top h1 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .adm-toolbar .inp { max-width: none; flex: 1 1 100%; min-width: 0; }
  .adm-form-actions .btn { flex: 1; }
  .adm-card { padding: 11px; }
  .adm-card b { font-size: 14px; }
  .spec-row { grid-template-columns: 1fr 1fr 38px; gap: 6px; }
  .status-form .inp { flex: 1; max-width: none; min-width: 0; }
  .adm-cols { gap: 12px; }
}

/* ارتفاع صفحه اصلی برای ناوبری پایین موبایل */
@media (max-width: 767px) {
  body { padding-bottom: 58px; }
  .foot { margin-bottom: 0; }
}

/* ─────────── پرداخت کارت به کارت ─────────── */
.cc-wrap { max-width: 760px; margin: 0 auto 50px; }
.cc-fields { display: grid; gap: 12px; }
.cc-hint {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue-soft); color: var(--blue);
  border-radius: 10px; padding: 11px 14px;
  font-size: 13px; line-height: 1.9; margin: 18px 0 14px;
}
.cc-hint b { white-space: nowrap; }
.cc-note { font-size: 12px; color: var(--ink-3); line-height: 2; text-align: center; margin-top: 12px; }
.pay-confirm { background: var(--green-soft); border: 1px dashed var(--green); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.pay-confirm label { color: var(--green); font-weight: 800; }
.pay-reminder { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.pay-reminder .btn { margin-inline-start: auto; }

/* کارت دیجیتال بانکی */
.cc-cards { display: grid; gap: 14px; }
.digi-card {
  position: relative;
  border-radius: 18px;
  padding: 18px 20px 16px;
  color: #fff;
  background: linear-gradient(135deg, #1d2b50 0%, #16213a 55%, #0e1526 100%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .28);
  overflow: hidden;
}
.digi-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% -10%, rgba(255,255,255,.14), transparent 45%),
    radial-gradient(circle at -10% 110%, rgba(255,255,255,.08), transparent 40%);
  pointer-events: none;
}
.digi-card.alt { background: linear-gradient(135deg, #3a1d24 0%, #2a1418 55%, #1a0d10 100%); }
.dc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dc-bank { font-size: 14px; font-weight: 800; letter-spacing: .3px; opacity: .95; }
.dc-chip {
  width: 40px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, #f4d47c, #d9a83f 60%, #b8871f);
  position: relative;
}
.dc-chip::after {
  content: ''; position: absolute; inset: 5px 7px;
  border: 1px solid rgba(0,0,0,.28); border-radius: 4px;
}
.dc-name { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; opacity: .95; }
.dc-num {
  font-size: clamp(17px, 4.6vw, 24px);
  font-weight: 800; letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  white-space: nowrap;
}
.dc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dc-sheba { font-size: 11.5px; opacity: .8; word-break: break-all; }
.dc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.dc-copy {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.14);
  color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 9px; padding: 7px 12px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.dc-copy:hover { background: rgba(255,255,255,.24); }
.dc-copy.copied { background: rgba(74, 178, 108, .85); border-color: transparent; }

@media (min-width: 700px) {
  .cc-cards { grid-template-columns: 1fr 1fr; }
  .cc-fields { grid-template-columns: 1fr 1fr; }
  .cc-form { margin-top: 4px; }
}
@media (max-width: 480px) {
  .digi-card { padding: 15px 15px 14px; border-radius: 15px; }
  .dc-num { letter-spacing: 1px; }
  .dc-foot { flex-direction: column; align-items: stretch; }
  .dc-btns { justify-content: stretch; }
  .dc-btns .dc-copy { flex: 1; justify-content: center; }
  .cc-hint { font-size: 12px; }
}

/* ─────────── تیکت پشتیبانی ─────────── */
.tick-wrap { max-width: 800px; margin: 0 auto 50px; }
.tick-wrap > .btn { margin-bottom: 14px; }
.tick-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tick-list { display: flex; flex-direction: column; gap: 10px; }
.tick-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 16px; transition: all .15s;
}
.tick-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.tc-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tc-sub { font-size: 14.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-date { font-size: 12px; color: var(--ink-3); }
.tc-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tc-new { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--red); border-radius: 20px; padding: 3px 9px; }
.tick-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin-top: 16px; }
.tick-view .card-sec { margin-top: 14px; }
.tick-thread { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.tick-msg {
  padding: 11px 13px; border-radius: 12px; max-width: 86%;
  border: 1px solid var(--line); background: var(--bg); font-size: 13.5px; line-height: 1.9;
}
.tick-msg.own { align-self: flex-start; border-start-start-radius: 4px; }
.tick-msg.admin { align-self: flex-end; background: var(--green-soft); border-color: #cfe9d6; border-start-end-radius: 4px; }
.tm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.tm-head b { font-size: 12.5px; }
.tm-head small { font-size: 11px; color: var(--ink-3); }
.tick-msg.admin .tm-head b { color: var(--green); }

/* وضعیت تیکت */
.tst-open { background: var(--red-soft); color: var(--red); }
.tst-answered { background: var(--blue-soft); color: var(--blue); }
.tst-closed { background: var(--green-soft); color: var(--green); }

/* تب‌های دسته‌بندی (سفارش‌ها / تیکت‌ها) */
.adm-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; margin-bottom: 14px;
}
.adm-tabs a {
  padding: 8px 15px; border-radius: 9px; font-size: 13px; font-weight: 700;
  color: var(--ink-2); background: transparent; transition: all .15s;
}
.adm-tabs a:hover { background: var(--bg); color: var(--ink); }
.adm-tabs a.active { background: var(--red); color: #fff; }

/* آمار وضعیت پرداخت در پنل ادمین */
.pay-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pay-filter-row a {
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px;
}
.pay-filter-row a.active { border-color: var(--red); color: var(--red); background: var(--red-soft); }

@media (max-width: 640px) {
  .tick-msg { max-width: 96%; }
  .tick-card { flex-wrap: wrap; }
}

/* ─────────── کد پیگیری سفارش ─────────── */
.track-code { display: block; color: var(--ink-3); }
.track-code b { color: var(--red); font-size: 13px; }
.track-code.small { font-size: 11.5px; margin-top: 3px; }

/* کادر کد در صفحه موفقیت */
.os-code {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--green-soft);
  border: 1px dashed var(--green);
  border-radius: 12px;
  padding: 13px 16px;
  margin: 14px 0 4px;
}
.os-code small { font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.os-code b {
  font-size: 24px; font-weight: 800; color: var(--green);
  letter-spacing: 2px;
}
.os-code .dc-copy {
  margin-inline-start: auto;
  background: var(--green); border-color: transparent;
  color: #fff;
}
.os-code .dc-copy:hover { background: #2f8f55; }
.os-code .dc-copy.copied { background: #2f8f55; }

/* نوار کد در صفحه پرداخت کارت به کارت */
.order-code-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--blue-soft);
  border: 1px solid var(--blue);
  border-radius: 12px;
  padding: 11px 15px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-2);
}
.order-code-banner span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.order-code-banner b {
  font-size: 20px; font-weight: 800; color: var(--blue);
  letter-spacing: 2px;
}
.order-code-banner .dc-copy { margin-inline-start: auto; }
.order-code-banner .dc-copy.copied { background: rgba(74, 178, 108, .9); border-color: transparent; }

/* صفحه پیگیری سفارش */
.track-wrap { max-width: 760px; margin: 0 auto 50px; }
.track-form { margin-bottom: 16px; }
.track-input {
  font-size: 22px !important;
  font-weight: 800;
  text-align: center;
  letter-spacing: 6px;
  padding: 14px 16px !important;
}
.track-badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* تایم‌لاین پیگیری */
.track-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 16px 0;
}
.tl-step {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  position: relative;
  padding-bottom: 18px;
}
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.tl-step:last-child::before { display: none; }
.tl-step.done::before { background: var(--green); }
.tl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-top: 2px;
}
.tl-step.done .tl-dot { background: var(--green); border-color: var(--green); }
.tl-step.now .tl-dot {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.tl-step b { display: block; font-size: 13.5px; }
.tl-step small { font-size: 12px; color: var(--ink-3); }

/* جدول پیگیری در موبایل به صورت کارت */
.track-table { min-width: 460px; }

@media (max-width: 600px) {
  .track-table { min-width: 0; }
  .track-table, .track-table tbody { display: block; width: 100%; }
  .track-table thead { display: none; }
  .track-table tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 12px;
    margin-bottom: 10px;
    background: #fff;
  }
  .track-table tr:hover td { background: transparent; }
  .track-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: none;
    padding: 8px 0;
    text-align: start;
  }
  .track-table td + td { border-top: 1px dashed var(--line); }
  .track-table td::before {
    content: attr(data-l);
    font-size: 12px;
    color: var(--ink-3);
    font-weight: 700;
    flex-shrink: 0;
  }
  .os-code { gap: 8px; }
  .os-code b { font-size: 20px; }
  .os-code .dc-copy { margin-inline-start: 0; }
  .order-code-banner b { font-size: 18px; }
  .order-code-banner .dc-copy { margin-inline-start: 0; }
}
