/* ==========================================================================
   میوه‌خشک‌سرا — استایل اصلی فروشگاه
   طراحی مدرن، راست‌به‌چپ، مبتنی بر توکن‌های رنگ قابل تنظیم از پنل
   ========================================================================== */

/* ---------- ۱) فونت و متغیرها ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-display: swap; font-style: normal;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap; font-style: normal;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 800 900; font-display: swap; font-style: normal;
}

:root {
  --primary: #1f6f43;
  --primary-dark: #14502f;
  --primary-soft: #e9f2ec;
  --primary-mid: #cfe3d8;
  --primary-glow: 31, 111, 67, 0.28;
  --accent: #f08a24;
  --accent-dark: #d1700f;
  --accent-soft: #fdeedd;
  --accent-glow: 240, 138, 36, 0.34;
  --ink: #12261a;
  --ink-2: #23392c;
  --muted: #6d7d73;
  --line: #e3e0d8;
  --bg: #f7f4ee;
  --card: #ffffff;
  --danger: #c0281f;
  --success: #1c7a4a;
  --warning: #b5730c;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 26px;
  --shadow-s: 0 2px 8px rgba(18, 38, 26, .05);
  --shadow: 0 12px 30px -12px rgba(18, 38, 26, .18);
  --shadow-l: 0 28px 60px -20px rgba(18, 38, 26, .28);
  --container: 1280px;
  --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* اندازه‌ی امن برای همه‌ی آیکون‌های inline؛ قواعد تخصصی پایین‌تر می‌توانند
   برای آیکون‌های تزئینی اندازه‌ی متفاوت تعیین کنند، اما هیچ SVG بی‌نهایت بزرگ
   نمی‌شود. */
svg { width: 1.25em; height: 1.25em; max-width: 32px; max-height: 32px; display: inline-block; flex: 0 0 auto; vertical-align: middle; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-align: justify;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button, .btn, .icon-btn, .cat-nav a, .ps-nav a, .ps-foot a,
input, select, textarea, th, .center, .stars, .rate-input, .pagination,
.header-actions, .hero-cta, .pd-actions, .qty-row, .p-meta, .status,
.badge, .chip, .pill { text-align: center; }
h1, h2, h3, h4, h5, p, li, dd, .card-body, .p-body, .pd-sub,
.footer-about, .footer-links, .footer-contact, .tab-panel, .review-card,
.review-item, .empty-state, .alert, .flash { text-align: justify; }
.hero h1, .hero p, .hero .hero-lead { text-align: right; }
h1, h2, h3, h4, h5 { margin: 0 0 .6rem; line-height: 1.5; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }

::selection { background: var(--primary); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 880px; }

/* ---------- ۲) اسکرول‌بار ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--primary-soft); }
::-webkit-scrollbar-thumb { background: var(--primary-mid); border-radius: 20px; border: 3px solid var(--primary-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- ۳) نوار اعلان ---------- */
.announce {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: .82rem;
  padding: 9px 0;
  position: relative;
  overflow: hidden;
}
.announce .container { display: flex; align-items: center; justify-content: center; gap: 26px; }
.announce-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.announce-item svg { width: 15px; height: 15px; opacity: .9; }
.announce-marquee { display: flex; gap: 34px; animation: slide 26s linear infinite; }
.announce:hover .announce-marquee { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) {
  .announce-marquee { animation: none; }
  .hero-float { animation: none; }
}

/* ---------- ۴) هدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-stuck { box-shadow: 0 8px 26px -18px rgba(18, 38, 26, .45); }

.header-main { display: flex; align-items: center; gap: 18px; padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 15px;
  background: linear-gradient(140deg, var(--primary), var(--primary-dark) 70%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 22px -10px var(--primary);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 15%, rgba(255,255,255,.35), transparent 55%);
}
.brand-mark svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.brand-mark.brand-mascot { padding: 0; background: #fff; border: 1px solid var(--primary-mid); }
.brand-mark.brand-mascot::after { display: none; }
.brand-mark.brand-mascot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; position: relative; z-index: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-name { font-weight: 800; font-size: 1.18rem; letter-spacing: -.2px; }
.brand-tag { font-size: .68rem; color: var(--muted); letter-spacing: .2px; }

.search-form { flex: 1; position: relative; max-width: 620px; }
.search-form input {
  width: 100%; padding: 13px 48px 13px 18px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fbfaf7; outline: none; transition: .2s;
}
.search-form input:focus {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.search-form button {
  position: absolute; inset-inline-start: 6px; top: 6px; bottom: 6px;
  width: 44px; min-height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  transition: .2s;
}
.search-form button:hover { background: var(--primary-dark); }
.search-form button svg { width: 17px; height: 17px; }
.search-suggest {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: none;
}
.search-suggest.open { display: block; }
.search-suggest a { display: flex; gap: 10px; align-items: center; padding: 9px 13px; }
.search-suggest a:hover { background: var(--primary-soft); }
.search-suggest img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.search-suggest .ss-name { font-size: .85rem; font-weight: 600; }
.search-suggest .ss-price { font-size: .75rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 13px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; transition: .2s; color: var(--ink);
  font-size: .84rem; font-weight: 500;
}
.icon-btn:hover { border-color: var(--primary-mid); background: var(--primary-soft); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .lbl { display: inline; }
.cart-btn { background: var(--primary); border-color: var(--primary); color: #fff; }
.cart-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.cart-count {
  position: absolute; inset-inline-start: -4px; top: -6px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px #fff;
}
.cart-btn .cart-count { position: static; margin-inline-start: 2px; }

.burger { display: none; }

/* ناوبری دسته‌ها */
.cat-nav { border-top: 1px solid var(--line); background: #fff; }
.cat-nav .container { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav .container::-webkit-scrollbar { display: none; }
.cat-nav a {
  padding: 13px 14px; font-size: .85rem; font-weight: 500; white-space: nowrap;
  border-bottom: 2.5px solid transparent; color: var(--ink-2); transition: .18s;
  display: flex; align-items: center; gap: 7px;
}
.cat-nav a:hover { color: var(--primary); border-color: var(--primary-mid); }
.cat-nav a.active { color: var(--primary); border-color: var(--primary); font-weight: 700; }
.cat-nav a.mega-trigger { background: var(--primary); color: #fff; border-radius: 0; border: 0; }
.cat-nav a.mega-trigger:hover { background: var(--primary-dark); color: #fff; }
.cat-nav .pill {
  font-size: .62rem; background: var(--accent); color: #fff;
  padding: 1px 6px; border-radius: 999px; font-weight: 700;
}

/* ---------- ۵) دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 13px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .9rem; cursor: pointer; transition: .2s;
  text-align: center; line-height: 1.5;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 24px -14px var(--primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 12px 24px -14px var(--accent); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-ghost { background: var(--primary-soft); color: var(--primary-dark); }
.btn-ghost:hover { background: var(--primary-mid); }
.btn-danger { background: #fdecea; color: var(--danger); border-color: #f6cdc9; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 1rem; border-radius: 15px; }
.btn-sm { padding: 8px 14px; font-size: .8rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- ۶) هیرو ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 480px at 88% -10%, rgba(var(--accent-glow), .32), transparent 70%),
    radial-gradient(900px 420px at 5% 110%, rgba(var(--primary-glow), .3), transparent 65%),
    linear-gradient(160deg, #fffdf8, var(--primary-soft));
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px;
  align-items: center; padding: 58px 0 66px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--primary-mid); color: var(--primary-dark);
  padding: 7px 15px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  box-shadow: var(--shadow-s); margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero h1 { font-size: clamp(1.85rem, 4.2vw, 3.2rem); line-height: 1.35; margin-bottom: 16px; letter-spacing: -.5px; }
.hero h1 .hl { color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 4px; height: 10px;
  background: var(--accent-soft); border-radius: 4px; z-index: -1;
}
.hero-lead { font-size: 1.02rem; color: var(--muted); max-width: 520px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.5rem; color: var(--primary-dark); line-height: 1.4; }
.hero-stat span { font-size: .78rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-card {
  border-radius: var(--radius-l); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-l); border: 1px solid #fff;
  aspect-ratio: 1 / 1; position: relative;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 11px; font-size: .82rem; font-weight: 600;
  border: 1px solid #fff; animation: floaty 5s ease-in-out infinite;
}
.hero-float .ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.hero-float small { display: block; color: var(--muted); font-weight: 400; font-size: .72rem; }
.hero-float.f1 { top: 6%; inset-inline-start: -34px; }
.hero-float.f2 { bottom: 12%; inset-inline-end: -30px; animation-delay: 1.2s; }
.hero-float.f3 { bottom: -18px; inset-inline-start: 12%; animation-delay: 2.1s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* ---------- ۷) نوار اعتماد ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 22px 0; }
.trust-item { display: flex; align-items: center; gap: 13px; padding: 10px 16px; }
.trust-item + .trust-item { border-inline-start: 1px dashed var(--line); }
.trust-ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px;
  background: linear-gradient(150deg, var(--primary-soft), #fff);
  border: 1px solid var(--primary-mid); color: var(--primary);
  display: grid; place-items: center;
}
.trust-ico svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: .88rem; }
.trust-item span { font-size: .74rem; color: var(--muted); }

/* ---------- ۸) سرفصل بخش ---------- */
.section { padding: 56px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-head .sh-title { display: flex; align-items: center; gap: 12px; }
.section-head .sh-title .bar {
  width: 5px; height: 34px; border-radius: 4px;
  background: linear-gradient(var(--primary), var(--accent));
}
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.link-more { color: var(--primary); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.link-more:hover { gap: 10px; }

/* ---------- ۹) کارت دسته ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; transition: .25s; position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transition: .3s; transform-origin: right;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-mid); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-ring {
  width: 82px; height: 82px; margin: 0 auto 12px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--primary-soft); position: relative; background: var(--primary-soft);
}
.cat-ring img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.cat-card:hover .cat-ring img { transform: scale(1.1); }
.cat-ring .ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--primary); font-size: 1.7rem;
}
.cat-card strong { font-size: .88rem; display: block; }
.cat-card small { color: var(--muted); font-size: .72rem; }

/* ---------- ۱۰) کارت کالا ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .26s; position: relative;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-mid); }
.p-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f4f1ea; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.3,1); }
.p-card:hover .p-media img { transform: scale(1.08); }
.p-badges { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.badge {
  padding: 4px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700;
  background: var(--accent); color: #fff; box-shadow: var(--shadow-s);
}
.badge.new { background: var(--primary); }
.badge.sale { background: var(--danger, #d43f37); }
.badge.out { background: #5b6c62; }
.badge.soft { background: #fff; color: var(--primary-dark); }
.p-quick {
  position: absolute; inset-inline: 10px; bottom: 10px; display: flex; gap: 7px;
  opacity: 0; transform: translateY(10px); transition: .26s;
}
.p-card:hover .p-quick { opacity: 1; transform: translateY(0); }
.p-quick .btn { flex: 1; padding: 9px 10px; font-size: .78rem; border-radius: 11px; }
.p-quick .icon-sq {
  width: 40px; flex: 0 0 40px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; cursor: pointer;
}
.p-quick .icon-sq:hover { border-color: var(--primary); color: var(--primary); }
.p-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: .7rem; color: var(--primary); font-weight: 600; margin-bottom: 5px; }
.p-name { font-size: .92rem; font-weight: 700; line-height: 1.65; margin-bottom: 6px; min-height: 2.9em; }
.p-meta { display: flex; align-items: center; gap: 9px; font-size: .72rem; color: var(--muted); margin-bottom: 9px; }
.stars { display: inline-flex; gap: 1px; color: #f0a500; }
.stars svg { width: 13px; height: 13px; }
.p-variants { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 11px; }
.chip {
  font-size: .68rem; padding: 3px 9px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark); font-weight: 500;
}
.chip.accent { background: var(--accent-soft); color: var(--accent-dark); }
.p-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price-old { font-size: .74rem; color: var(--muted); text-decoration: line-through; }
.price-now { font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); line-height: 1.4; }
.price-now .unit { font-size: .72rem; font-weight: 500; color: var(--muted); }

/* ---------- ۱۱) بنر تخفیف ---------- */
.deal-banner {
  border-radius: var(--radius-l); padding: 34px; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, #2d8b56);
  position: relative;
}
.deal-banner::after {
  content: ''; position: absolute; inset-inline-start: -60px; top: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-glow), .5), transparent 70%);
}
.deal-grid { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.deal-banner h2 { color: #fff; margin-bottom: 8px; }
.deal-banner p { color: rgba(255,255,255,.85); margin: 0; font-size: .9rem; }
.countdown { display: flex; gap: 10px; }
.cd-box {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px; padding: 10px 14px; text-align: center; min-width: 66px;
  backdrop-filter: blur(6px);
}
.cd-box strong { display: block; font-size: 1.35rem; line-height: 1.3; }
.cd-box span { font-size: .68rem; opacity: .8; }

/* ---------- ۱۲) بخش بستنی خشک ---------- */
.freeze-section {
  background: linear-gradient(180deg, #fff, var(--accent-soft) 130%);
  border-block: 1px solid var(--line);
}
.freeze-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; }
.freeze-visual { position: relative; }
.freeze-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.freeze-stack .fs-item {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1;
  box-shadow: var(--shadow); border: 3px solid #fff; background: #fff;
}
.freeze-stack .fs-item:nth-child(2) { transform: translateY(20px); }
.freeze-stack .fs-item:nth-child(3) { transform: translateY(-20px); }
.freeze-stack img { width: 100%; height: 100%; object-fit: cover; }
.freeze-points { display: grid; gap: 12px; margin: 22px 0 26px; }
.freeze-point { display: flex; gap: 12px; align-items: flex-start; }
.freeze-point .fp-ico {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  background: #fff; border: 1px solid var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; box-shadow: var(--shadow-s);
}
.freeze-point strong { display: block; font-size: .9rem; }
.freeze-point span { font-size: .8rem; color: var(--muted); }

/* ---------- ۱۳) نظرات ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.review-card .quote {
  position: absolute; top: 12px; inset-inline-start: 18px;
  font-size: 3.4rem; line-height: 1; color: var(--primary-soft); font-family: Georgia, serif;
}
.review-card p { font-size: .87rem; color: var(--ink-2); position: relative; }
.review-who { display: flex; align-items: center; gap: 11px; margin-top: 14px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: .9rem;
}
.review-who strong { font-size: .84rem; display: block; }
.review-who span { font-size: .72rem; color: var(--muted); }

/* ---------- ۱۴) فوتر ---------- */
.site-footer { background: var(--ink); color: #c9d4cc; margin-top: 60px; }
.footer-top { padding: 52px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-grid h4::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 34px; height: 2.5px; border-radius: 3px; background: var(--accent);
}
.footer-about { font-size: .84rem; line-height: 1.95; color: #9fb0a6; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .84rem; color: #9fb0a6; transition: .2s; display: inline-flex; align-items: center; gap: 7px; }
.footer-links a:hover { color: var(--accent); padding-inline-start: 5px; }
.footer-contact { display: flex; flex-direction: column; gap: 13px; font-size: .84rem; }
.footer-contact .fc { display: flex; gap: 10px; align-items: flex-start; color: #9fb0a6; }
.footer-contact .fc svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.socials { display: flex; gap: 9px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #c9d4cc; transition: .22s;
}
.socials a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .78rem; color: #86978d;
}
.trust-badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.trust-badges .tb {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 6px 12px; font-size: .72rem; display: flex; align-items: center; gap: 7px;
}
.trust-badges svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- ۱۵) صفحه محصول ---------- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; font-size: .8rem;
  color: var(--muted); padding: 20px 0 6px; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }

.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding-bottom: 40px; }
.pd-gallery { position: sticky; top: 120px; }
.pd-main {
  border-radius: var(--radius-l); overflow: hidden; background: #fff;
  border: 1px solid var(--line); aspect-ratio: 1/1; position: relative;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumb {
  width: 76px; height: 76px; border-radius: 13px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); background: #fff;
}
.pd-thumb.active, .pd-thumb:hover { border-color: var(--primary); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-title { margin-bottom: 10px; }
.pd-sub { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.pd-rating { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.pd-price-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px;
}
.pd-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pd-price { font-size: 1.85rem; font-weight: 800; color: var(--primary-dark); line-height: 1.3; }
.pd-price .cur { font-size: .9rem; font-weight: 500; color: var(--muted); }
.pd-save { font-size: .78rem; color: var(--danger); font-weight: 600; }

.opt-label { font-size: .84rem; font-weight: 600; margin-bottom: 9px; display: block; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.opt {
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 10px 15px; cursor: pointer; transition: .2s; font-size: .83rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px;
}
.opt:hover { border-color: var(--primary-mid); }
.opt.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.opt b { font-weight: 700; }
.opt small { font-size: .7rem; color: var(--muted); }
.opt.disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

/* کارت بسته‌بندی محصول: وزن درشت، قیمت برجسته، بج تخفیف */
.opt-label { display: flex; align-items: center; justify-content: space-between; }
.opt-count {
  font-size: .7rem; font-weight: 500; color: var(--muted);
  background: var(--primary-soft); border-radius: 999px; padding: 3px 11px;
}
.opt.pkg {
  position: relative; min-width: 128px; padding: 14px 16px 12px; gap: 3px;
  border-radius: 15px; border-width: 2px; overflow: visible;
}
.opt.pkg:hover { border-color: var(--primary-mid); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.opt.pkg.active {
  border-color: var(--primary); background: linear-gradient(180deg, #fff, var(--primary-soft));
  box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow-s);
}
.opt.pkg.active::after {
  content: '✓'; position: absolute; top: -11px; inset-inline-start: -7px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: var(--shadow-s);
}
.pkg-w { font-weight: 800; font-size: 1rem; color: var(--ink); line-height: 1.5; }
.opt.pkg.active .pkg-w { color: var(--primary-dark); }
.pkg-g {
  font-size: .72rem; color: var(--muted);
  background: #f4f1ea; border-radius: 999px; padding: 2px 10px;
}
.pkg-p { font-size: .95rem; font-weight: 800; color: var(--primary-dark); margin-top: 4px; }
.pkg-p small { font-size: .68rem; font-weight: 400; color: var(--muted); }
.pkg-off {
  position: absolute; top: -10px; inset-inline-end: 10px;
  background: var(--danger, #d43f37); color: #fff;
  font-size: .66rem; font-weight: 700; border-radius: 999px; padding: 2px 9px;
  box-shadow: var(--shadow-s);
}
.pkg-out { font-size: .68rem; color: var(--danger); font-weight: 600; }
.opt.pkg.disabled { text-decoration: none; }
.opt.pkg.disabled .pkg-w, .opt.pkg.disabled .pkg-p { text-decoration: line-through; }

/* لیست بسته‌ها در تب مشخصات: ردیفی با قیمت برجسته */
.pkg-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.pkg-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fbfaf7; border: 1px solid var(--line); border-radius: 13px;
  padding: 12px 15px;
}
.pkg-row.out { opacity: .6; }
.pkg-info { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pkg-info strong { font-size: .88rem; }
.pkg-price { text-align: end; display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.pkg-price b { font-size: .95rem; color: var(--primary-dark); }
.pkg-price b small { font-size: .68rem; font-weight: 400; color: var(--muted); }
.pkg-off-s {
  font-size: .66rem; font-weight: 700; color: #fff;
  background: var(--danger, #d43f37); border-radius: 999px; padding: 2px 9px;
}
h3 .opt-count { vertical-align: middle; margin-inline-start: 6px; }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.qty-ctl {
  display: inline-flex; align-items: stretch; justify-content: center;
  width: 154px; height: 48px; border: 1.5px solid var(--line);
  border-radius: 13px; overflow: hidden; background: #fff;
  direction: ltr;
}
.qty-ctl button {
  width: 48px; height: 48px; padding: 0; border: 0; background: #fff;
  cursor: pointer; font-size: 1.35rem; line-height: 1; font-weight: 600;
  color: var(--ink); transition: .15s; display: grid; place-items: center;
}
.qty-ctl button:hover { background: var(--primary-soft); color: var(--primary); }
.qty-ctl input {
  width: 58px; height: 48px; padding: 0; border: 0; text-align: center;
  outline: none; font-weight: 700; border-inline: 1.5px solid var(--line);
  background: #fff; direction: ltr;
}
.qty-ctl button[data-step="up"] { color: var(--primary); }
.qty-ctl button[data-step="down"] { color: var(--muted); }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 170px; }
.stock-note { font-size: .8rem; margin-top: 12px; display: flex; align-items: center; gap: 7px; }
.stock-note.ok { color: var(--success); }
.stock-note.low { color: var(--warning); }
.stock-note.no { color: var(--danger); }

.pd-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.pd-feature {
  display: flex; gap: 10px; align-items: center; font-size: .82rem;
  background: var(--primary-soft); border-radius: 12px; padding: 11px 13px;
}
.pd-feature svg { width: 19px; height: 19px; color: var(--primary); flex-shrink: 0; }

.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; margin-bottom: 24px; }
.tab-btn {
  padding: 13px 20px; border: 0; background: none; cursor: pointer; font-weight: 600;
  font-size: .88rem; color: var(--muted); border-bottom: 3px solid transparent;
  white-space: nowrap; transition: .2s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-color: var(--primary); }
.tab-panel { display: none; animation: fade .3s; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.spec-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table td { padding: 12px 4px; }
.spec-table td:first-child { color: var(--muted); width: 34%; }
.spec-table td:last-child { font-weight: 600; }

.review-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.review-item:last-child { border: 0; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.review-head strong { font-size: .88rem; }
.review-head time { font-size: .74rem; color: var(--muted); margin-inline-start: auto; }
.review-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.rate-input { display: flex; gap: 5px; margin-bottom: 14px; }
.rate-input input { display: none; }
.rate-input label { cursor: pointer; color: #dfe4e0; transition: .15s; }
.rate-input label svg { width: 26px; height: 26px; }
.rate-input input:checked ~ label,
.rate-input label:hover, .rate-input label:hover ~ label { color: #f0a500; }
.rate-input { flex-direction: row-reverse; justify-content: flex-end; }

/* ---------- ۱۶) فرم‌ها ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 7px; }
.field .hint { font-size: .74rem; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; outline: none; transition: .2s; color: var(--ink);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft);
}
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-inline-start: 15px; padding-inline-end: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23900230' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; background-size: 17px;
}
.select:disabled { opacity: .55; cursor: not-allowed; }
/* ویجت آپلود فایل با درگ‌دراپ (الگوی چین‌آور) */
.upload { display: flex; align-items: center; gap: 14px; border: 2px dashed var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; cursor: pointer; transition: .2s; }
.upload:hover, .upload.is-drag { border-color: var(--primary); background: var(--primary-soft); }
.upload-icon { width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.upload-icon svg { width: 23px; height: 23px; }
.upload-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.upload-text b { font-size: .9rem; }
.upload-text small { font-size: .76rem; }
.upload-file { margin-inline-start: auto; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.upload-file.has { color: var(--ink); font-weight: 700; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.9; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: .85rem; }
.check-row input { width: 18px; height: 18px; accent-color: var(--primary); }

.radio-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 15px;
  border: 1.5px solid var(--line); border-radius: 13px; cursor: pointer;
  transition: .2s; background: #fff;
}
.radio-card:hover { border-color: var(--primary-mid); }
.radio-card input { margin-top: 5px; accent-color: var(--primary); }
.radio-card.selected { border-color: var(--primary); background: var(--primary-soft); }
.radio-card strong { font-size: .88rem; display: block; }
.radio-card small { font-size: .77rem; color: var(--muted); }
.radio-card .price-tag { margin-inline-start: auto; font-weight: 700; font-size: .85rem; color: var(--primary-dark); white-space: nowrap; }

/* ---------- ۱۷) سبد خرید ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 24px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head h3 { margin: 0; font-size: 1rem; }
.card-body { padding: 20px; }
/* متن توضیحات کالا: تراز justify + ویدیوی وسط‌چین */
.rt p { text-align: justify; text-justify: inter-word; line-height: 2.1; margin-bottom: 12px; }
.rt-video { display: flex; justify-content: center; margin: 18px 0; }
.rt-video video { max-width: 100%; border-radius: 12px; }
.rt-frame { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; }
.rt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; display: block; }

.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 96px; height: 96px; border-radius: 13px; overflow: hidden; background: #f4f1ea; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info h4 { font-size: .92rem; margin-bottom: 4px; }
.cart-info .ci-meta { font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.cart-line-total { text-align: end; }
.cart-line-total strong { font-size: 1rem; color: var(--primary-dark); }
.cart-remove {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: .76rem; padding: 0; margin-top: 8px; display: inline-flex; align-items: center; gap: 5px;
  min-height: 44px;
}
.cart-remove:hover { color: var(--danger); }

.summary-row { display: flex; justify-content: space-between; font-size: .87rem; padding: 9px 0; }
.summary-row.total {
  border-top: 1.5px dashed var(--line); margin-top: 10px; padding-top: 15px;
  font-size: 1.02rem; font-weight: 700;
}
.summary-row.total span:last-child { color: var(--primary-dark); }
.summary-row .free { color: var(--success); font-weight: 600; }

.progress-wrap { margin-bottom: 16px; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--primary-soft); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; transition: width .4s; }
.progress-text { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.progress-text b { color: var(--primary-dark); }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h3, .empty-state p { text-align: center; }
.empty-state p:empty { display: none; }
.empty-state .ico {
  width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); display: grid; place-items: center;
}
.empty-state .ico svg { width: 44px; height: 44px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }

/* ---------- ۱۸) مراحل خرید ---------- */
.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 26px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: var(--muted); }
.step .num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .8rem;
}
.step.done .num { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.done { color: var(--primary-dark); font-weight: 600; }
.step.active .num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.active { color: var(--ink); font-weight: 700; }
.step-line { flex: 1; height: 2px; background: var(--line); min-width: 20px; }

/* ---------- ۱۹) جدول‌ها ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.data th {
  background: var(--primary-soft); color: var(--primary-dark); font-weight: 700;
  padding: 12px 14px; text-align: start; white-space: nowrap; font-size: .8rem;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: #fbfaf7; }
table.data tr:last-child td { border-bottom: 0; }

.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.pending { background: #fff5e5; color: #a9660a; }
.status.approved { background: #e8f2ff; color: #1a5fb4; }
.status.delivered { background: #e7f6ee; color: #1c7a4a; }
.status.rejected { background: #fdeceb; color: #b62c22; }
.status.cancelled { background: #f0f0f2; color: #5c6269; }
.status.unpaid { background: #fdeceb; color: #b62c22; }
.status.receipt_pending { background: #fff5e5; color: #a9660a; }
.status.paid { background: #e7f6ee; color: #1c7a4a; }

/* ---------- ۲۰) فلش‌پیام‌ها ---------- */
.flash-wrap { position: fixed; top: 96px; inset-inline-start: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 400px; }
.flash {
  background: #fff; border-radius: 14px; padding: 14px 17px; box-shadow: var(--shadow);
  border-inline-start: 4px solid var(--primary); display: flex; gap: 11px; align-items: flex-start;
  font-size: .86rem; animation: slideIn .35s cubic-bezier(.2,.9,.3,1);
}
.flash.success { border-color: var(--success); }
.flash.danger { border-color: var(--danger); }
.flash.warning { border-color: var(--warning); }
.flash.info { border-color: #2b7bb9; }
.flash svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; }
.flash.success svg { color: var(--success); }
.flash.danger svg { color: var(--danger); }
.flash.warning svg { color: var(--warning); }
.flash.info svg { color: #2b7bb9; }
.flash .fl-close { margin-inline-start: auto; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* ---------- ۲۱) صفحه‌بندی ---------- */
.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 13px; border-radius: 12px;
  display: grid; place-items: center; border: 1px solid var(--line); background: #fff;
  font-size: .86rem; font-weight: 600; transition: .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .dots { border: 0; background: none; }

/* ---------- ۲۲) ابزار صفحه فروشگاه ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filter-card { position: sticky; top: 120px; }
.filter-group { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-size: .87rem; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.filter-group h4 svg { width: 16px; height: 16px; color: var(--primary); }
.filter-list { display: flex; flex-direction: column; gap: 3px; }
.filter-list a {
  font-size: .83rem; padding: 7px 10px; border-radius: 9px; color: var(--ink-2);
  display: flex; justify-content: space-between; align-items: center; transition: .18s;
}
.filter-list a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.filter-list a.active { background: var(--primary); color: #fff; font-weight: 600; }
.filter-list a .cnt { font-size: .72rem; opacity: .75; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs .input { padding: 9px 11px; font-size: .82rem; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 17px; margin-bottom: 18px; flex-wrap: wrap;
}
.toolbar .tb-info { font-size: .84rem; color: var(--muted); }
.toolbar .tb-info b { color: var(--ink); }
.sort-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.sort-tabs a {
  padding: 7px 13px; border-radius: 10px; font-size: .8rem; color: var(--muted); transition: .18s;
}
.sort-tabs a:hover { background: var(--primary-soft); color: var(--primary); }
.sort-tabs a.active { background: var(--primary); color: #fff; font-weight: 600; }

/* ---------- ۲۳) خرده‌ریزهای عمومی ---------- */
.alert {
  border-radius: var(--radius-s); padding: 13px 16px; font-size: .85rem;
  background: var(--primary-soft); color: var(--primary-dark); display: flex; gap: 10px; align-items: flex-start;
}
.alert.warn { background: var(--accent-soft); color: var(--accent-dark); }
.alert.danger { background: #fdeceb; color: var(--danger); }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flex-wrap { flex-wrap: wrap; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }

.bank-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden;
}
.bank-box::after {
  content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255,255,255,.07);
}
.bank-box .bb-row { display: flex; justify-content: space-between; font-size: .84rem; padding: 7px 0; position: relative; }
.bank-box .bb-row span:first-child { opacity: .8; }
.bank-box .bb-row span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }

.copy-chip {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 9px; padding: 5px 11px; font-size: .74rem; cursor: pointer; color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
}
.copy-chip:hover { background: rgba(255,255,255,.26); }

/* ---------- ۲۴) موبایل ---------- */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
}
.mobile-drawer .md-overlay {
  position: absolute; inset: 0; background: rgba(18,38,26,.5); opacity: 0; transition: .3s;
}
.mobile-drawer .md-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  max-width: 100%;
  background: #fff;
  transform: translate3d(105%, 0, 0);
  transition: transform .3s cubic-bezier(.2,.9,.3,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -18px 0 45px rgba(18,38,26,.18);
  direction: rtl;
}
.mobile-drawer.open { pointer-events: auto; }
.mobile-drawer.open .md-overlay { opacity: 1; }
.mobile-drawer.open .md-panel { transform: translate3d(0, 0, 0); } 
body.drawer-open { overflow: hidden; } 
@media (min-width: 861px) {
  .mobile-drawer { display: none; }
}
.md-head { padding: 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.md-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.md-body a { padding: 12px 14px; border-radius: 11px; font-size: .88rem; }
.md-body a:hover { background: var(--primary-soft); color: var(--primary); }

/* دکمه باز/بسته کردن فیلترها — فقط موبایل/تبلت (دسکتاپ: سایدبار همیشه باز) */
.filter-toggle { display: none; }
@media (max-width: 1080px) {
  .filter-toggle { display: inline-flex; margin-bottom: 14px; }
  .filter-card { display: none; }
  .filter-card.open { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 40px 0 48px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .hero-float.f1 { inset-inline-start: 0; } .hero-float.f2 { inset-inline-end: 0; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-card { position: static; }
  .pd-grid { grid-template-columns: 1fr; gap: 26px; }
  .pd-gallery { position: static; }
  .freeze-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .header-main { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .burger { display: grid; place-items: center; }
  .search-form { order: 3; max-width: none; flex-basis: 100%; }
  .cat-nav a { padding: 10px 12px; font-size: .8rem; min-height: 44px; }
  .cat-nav a.mega-trigger { font-weight: 700; }
  .icon-btn .lbl { display: none; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .p-name { font-size: .84rem; }
  .section { padding: 40px 0; }
  .deal-grid { grid-template-columns: 1fr; }
  .pd-features { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 74px 1fr; }
  .cart-line-total { grid-column: 2; text-align: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 560px) {
  .hero-float { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-inline-start: 0; border-top: 1px dashed var(--line); }
  .container { padding: 0 14px; }
  .flash-wrap { inset-inline: 12px; max-width: none; }
  .brand-tag { display: none; }
  .upload { padding: 13px 14px; gap: 10px; }
  .upload-icon { width: 40px; height: 40px; }
  .upload-file { max-width: 30%; font-size: .72rem; }
}

/* ---------- ۲۵) چاپ ---------- */
@media print {
  .site-header, .site-footer, .announce, .flash-wrap, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ---------- اسکوپ امن ناحیه لمس (iOS) ---------- */
@supports (padding: max(0px)) {
  .mobile-drawer .md-panel {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* ---------- ۲۶) بهینه‌سازی موبایل ---------- */
@media (max-width: 860px) {
  /* .p-card width:100% است و داخل گرید؛ فقط بخش لمس را بزرگ می‌کنیم
     تا چیدمان دسکتاپ دست‌نخورده بماند. */
  .p-quick { opacity: 1; transform: none; }
  .icon-btn { padding: 10px 12px; }
  .p-quick .btn { min-height: 44px; }
  .product-grid .p-name a,
  .p-media > a { display: block; }
  /* ناحیه لمس ۴۴px برای عنوان کالا، لینک‌های «مشاهده همه»، خرده‌ریز و تب‌های مرتب‌سازی */
  /* توجه: .p-name خودِ <a> است (نه والد آن) و min-height پایه 2.9em دارد. */
  .p-name { display: flex; align-items: center; min-height: 44px; padding: 7px 0; }
  .link-more { padding: 10px 12px; margin: -10px -12px; min-height: 44px; }
  .breadcrumb { padding-top: 12px; }
  .sort-tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px; }
  .filter-list a { min-height: 44px; }
  .btn-sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .breadcrumb a { padding: 11px 8px; margin: -11px 0; }
  .footer-links a, .md-body a { padding: 10px 4px; display: block; }
  .search-suggest a { min-height: 44px; }
  .footer-links { gap: 2px; }
}

@media (max-width: 560px) {
  /* نوار اعلان به‌جای متن ریزتر، خوانا بماند */
  .announce { font-size: .78rem; }
  .announce .container { gap: 18px; }
  .announce-marquee { gap: 22px; }
}

/* ورودی‌ها با فونت <۱۶px روی iOS باعث زوم خودکار صفحه می‌شوند. */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px; }
  .search-form input[type="search"] { font-size: 16px; }
}

/* ============================================================
   ۲۷) تم موبایل جدا (الگوی فروشگاه‌های جهانی)
   فقط max-width:640px — دسکتاپ و تبلت دست‌نخورده می‌مانند.
   اصل‌ها: هیروی فشرده، ریل افقی به‌جای گرید بلند،
   مخفی‌سازی محتوای فرعی، نوبار پایین ثابت.
   ============================================================ */
.mnav { display: none; }

@media (max-width: 640px) {
  /* ---- نوبار پایین ثابت ---- */
  .mnav {
    display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 70;
    background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 30px -18px rgba(18,38,26,.35);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mnav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 4px 10px; font-size: .68rem; font-weight: 600; color: var(--muted);
    min-height: 60px; justify-content: center; position: relative;
  }
  .mnav a svg { width: 22px; height: 22px; }
  .mnav a.active { color: var(--primary); }
  .mnav a.active::before {
    content: ''; position: absolute; top: 0; width: 34px; height: 3px;
    border-radius: 0 0 4px 4px; background: var(--primary);
  }
  .mnav-count {
    position: absolute; top: 4px; inset-inline-start: calc(50% - 24px);
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: var(--primary); color: #fff; font-size: .66rem; font-weight: 700;
    display: grid; place-items: center;
  }
  .mnav-count[hidden] { display: none; }
  body { padding-bottom: 72px; }
  .site-footer { margin-bottom: 0; }

  /* ---- هدر فشرده: فقط لوگو + سبد ---- */
  .header-actions .icon-btn:not(.cart-btn):not(.burger) { display: none; }
  .cat-nav { display: none; }

  /* ---- هیروی فشرده: تیتر + تصویر، بدون پاراگراف و دکمه دوم ---- */
  .hero-grid { padding: 22px 0 26px; gap: 18px; }
  .hero-eyebrow { display: none; }
  .hero h1 { font-size: 1.5rem; line-height: 1.5; margin-bottom: 10px; }
  .hero-lead { display: none; }
  .hero-cta { margin-bottom: 0; }
  .hero-cta .btn-outline { display: none; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card { aspect-ratio: 16 / 8; border-radius: 18px; }

  /* ---- بخش‌ها فشرده ---- */
  .section { padding: 24px 0; }
  .section-head { margin-bottom: 14px; }
  .section-head p, .section-head .link-more { display: none; }
  .section-head h2 { font-size: 1.05rem; }
  .section-head .sh-title .bar { height: 24px; }

  /* ---- ریل افقی محصولات (اسنپ اسکرولی) ---- */
  .product-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 12px; margin-inline: -14px; padding-inline: 14px;
    scrollbar-width: none;
  }
  .product-grid::-webkit-scrollbar { display: none; }
  .product-grid .p-card {
    flex: 0 0 172px; width: 172px; scroll-snap-align: start;
  }
  .product-grid .p-card:hover { transform: none; box-shadow: none; }
  .product-grid .p-card:hover .p-media img { transform: none; }
  .p-quick { display: none; }
  .p-body { padding: 10px 11px 12px; }
  .p-cat { display: none; }
  .p-name { font-size: .8rem; min-height: 2.6em; }
  .p-meta { display: none; }
  .p-variants { display: none; }
  .p-foot { margin-top: 6px; }
  .price-now { font-size: .95rem; }

  /* ---- دسته‌ها: ریل دایره‌ای فشرده ---- */
  .cat-grid {
    display: flex; gap: 12px; overflow-x: auto;
    padding-bottom: 10px; margin-inline: -14px; padding-inline: 14px;
    scrollbar-width: none;
  }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-grid .cat-card { flex: 0 0 104px; width: 104px; padding: 12px 6px; }
  .cat-grid .cat-card small { display: none; }
  .cat-ring { width: 60px; height: 60px; margin-bottom: 8px; }
  .cat-card strong { font-size: .76rem; }

  /* ---- بخش‌های فرعی صفحه اصلی مخفی ---- */
  .trust-strip { display: none; }
  .review-grid .review-card:nth-child(n+3) { display: none; }
  .freeze-points { display: none; }
  .freeze-section .muted { display: none; }
  .freeze-section .btn { width: 100%; justify-content: center; }

  /* ---- ستون گرید فروشگاه نباید با ریل افقی پهن شود ---- */
  .shop-layout > * { min-width: 0; }
  main { overflow-x: clip; }

  /* ---- تب‌های مرتب‌سازی: تک‌خطی اسکرول‌خور (نه دو خط) ---- */
  .toolbar .sort-tabs {
    flex: 1 1 100%; min-width: 0; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none; gap: 6px;
    margin-inline: -14px; padding-inline: 14px; padding-bottom: 4px;
  }
  .toolbar .sort-tabs::-webkit-scrollbar { display: none; }
  .toolbar .sort-tabs a { white-space: nowrap; flex-shrink: 0; font-size: .78rem; }

  /* ---- مراحل خرید: تک‌خطی به سبک جهانی (دایره‌ها + لیبل مرحله فعال) ---- */
  .steps { flex-wrap: nowrap; gap: 4px; margin-bottom: 18px; }
  .steps .step { font-size: 0; gap: 0; }
  .steps .step .num {
    width: 30px; height: 30px; font-size: .8rem;
  }
  .steps .step.active { font-size: .78rem; gap: 7px; white-space: nowrap; }
  .steps .step-line { min-width: 12px; }

  /* ---- فوتر موبایل: متن ستون‌های لینکی وسط‌چین ---- */
  .footer-grid > div:nth-child(2) h4,
  .footer-grid > div:nth-child(3) h4,
  .footer-grid > div:nth-child(2) .footer-links,
  .footer-grid > div:nth-child(3) .footer-links { text-align: center; }
  .footer-grid > div:nth-child(2) .footer-links a,
  .footer-grid > div:nth-child(3) .footer-links a { justify-content: center; text-align: center; }
  .footer-grid > div:nth-child(2) h4::after,
  .footer-grid > div:nth-child(3) h4::after {
    inset-inline: 0; margin-inline: auto;
  }

  /* ---- شمارش معکوس فشرده ---- */
  .deal-banner { padding: 20px; }
  .deal-banner p { display: none; }

  /* ---- پیشنهاد ویژه: متن و شمارش معکوس در یک خط ---- */
  .deal-grid { grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
  .deal-banner h2 { font-size: 1rem; margin-bottom: 0; white-space: nowrap; }
  .countdown { gap: 6px; }
  .cd-box { min-width: 52px; padding: 7px 8px; border-radius: 11px; }
  .cd-box strong { font-size: 1.05rem; }
  .cd-box span { font-size: .62rem; }

  /* ---- ویژگی‌ها (پک هدیه/ارسال/عمده/مشاوره): دو ستون کنار هم ---- */
  .pd-features { grid-template-columns: 1fr 1fr !important; gap: 10px; margin: 14px 0; }
  .pd-feature { padding: 11px 12px !important; font-size: .76rem; }

  /* ---- فوتر دو ستونه: برند و تماس تمام‌عرض، لینک‌ها کنار هم ---- */
  .footer-top { padding: 30px 0 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-grid h4 { font-size: .86rem; margin-bottom: 10px; }
  .footer-about { display: none; }
  .trust-badges { display: none; }
}
