/* ===========================================================
   ابرپک — استایل اصلی فروشگاه کارتن و بسته‌بندی
   =========================================================== */

:root {
  --brand:        #b5651d;   /* رنگ کرافت / مقوا */
  --brand-dark:   #8f4f15;
  --brand-light:  #f3e3d2;
  --accent:       #1d8a8f;
  --accent-dark:  #15686c;
  --accent-light: #e0f1f1;
  --ink:          #2b2118;
  --muted:        #7a6f64;
  --line:         #e7ded3;
  --bg:           #faf6f1;
  --card:         #ffffff;
  --ok:           #2e7d32;
  --danger:       #c62828;
  --radius:       14px;
  --shadow:       0 6px 22px rgba(80, 50, 20, .08);
  --shadow-sm:    0 2px 8px rgba(80, 50, 20, .06);
  --container:    1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 18px;
}

/* ---------- نوار بالایی ---------- */
.topbar {
  background: var(--ink);
  color: #f2e9df;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
}
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .tb-phone { font-weight: 700; color: #ffd9b0; }

/* ---------- هدر ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--brand);
  white-space: nowrap;
}
.logo .logo-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  font-size: 20px;
}
.logo small { color: var(--muted); font-weight: 500; font-size: 11px; }

.search {
  flex: 1;
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  max-width: 520px;
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 11px 14px;
  font: inherit;
  outline: none;
}
.search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding-inline: 18px;
  cursor: pointer;
  font: inherit;
}
.search button:hover { background: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 16px; margin-inline-start: auto; }
.header-actions .ha {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted);
}
.header-actions .cart-btn {
  position: relative;
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 700;
}
.cart-count {
  position: absolute;
  inset-block-start: -6px; inset-inline-start: -6px;
  background: var(--accent); color: #fff;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 11px; padding-inline: 4px;
}

/* ---------- ناوبری ---------- */
.main-nav { border-top: 1px solid var(--line); }
.main-nav .container { display: flex; align-items: center; gap: 4px; }
.nav-toggle {
  display: none;
  background: none; border: 0; font: inherit;
  padding: 12px 4px; cursor: pointer; color: var(--ink);
}
.nav-list { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-list > li > a {
  display: block;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 3px solid transparent;
}
.nav-list > li > a:hover { color: var(--brand); }
.nav-list > li > a.active { color: var(--brand); border-bottom-color: var(--brand); }

/* منوی دسته‌بندی کشویی */
.has-mega { position: relative; }
.mega {
  position: absolute;
  inset-block-start: 100%; inset-inline-start: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  min-width: 260px;
  padding: 10px;
  display: none;
  z-index: 60;
}
.has-mega:hover .mega { display: block; }
.mega a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; color: var(--ink);
}
.mega a:hover { background: var(--bg); color: var(--brand); }
.mega a .ic { font-size: 18px; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer;
  font: inherit; font-weight: 700;
  padding: 11px 22px;
  border-radius: 10px;
  background: var(--brand); color: #fff;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #16686c; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- هیرو ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-light), var(--accent-light));
  border-bottom: 1px solid var(--line);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
  padding-block: 56px;
}
.hero h1 { font-size: 36px; margin: 0 0 14px; line-height: 1.4; }
.hero p { font-size: 17px; color: var(--muted); margin: 0 0 26px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(45deg, #d9a066 0 16px, #c98c4e 16px 32px);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  color: #5a3a16; font-size: 80px;
  position: relative;
  overflow: hidden;
}
.hero-art::after {
  content: "ابرپک";
  position: absolute; inset-block-end: 16px;
  background: rgba(255,255,255,.85);
  padding: 4px 16px; border-radius: 999px;
  font-size: 16px; font-weight: 800; color: var(--brand-dark);
}

/* ---------- ویژگی‌ها / نوار اعتماد ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-block: 40px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; gap: 14px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.feature .fi { font-size: 26px; flex: none; width: 50px; height: 50px; display: grid; place-items: center; background: var(--accent-light); border-radius: 14px; }
.feature b { display: block; }
.feature span { color: var(--muted); font-size: 13px; }

/* ---------- عناوین بخش ---------- */
.section { padding-block: 40px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 12px;
}
.section-head h2 {
  font-size: 24px; margin: 0;
  position: relative; padding-inline-start: 16px;
}
.section-head h2::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block: 4px;
  width: 6px; border-radius: 4px; background: var(--brand);
}
.section-head a { color: var(--brand); font-weight: 700; font-size: 14px; }

/* ---------- دسته‌بندی‌ها ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card .cat-ic {
  width: 64px; height: 64px; margin: 0 auto 12px;
  display: grid; place-items: center;
  background: var(--accent-light); color: var(--accent-dark);
  border-radius: 16px; font-size: 30px;
}
.cat-card b { display: block; font-size: 16px; }
.cat-card span { color: var(--muted); font-size: 13px; }

/* یک ردیف فشرده برای دسته‌بندی‌های صفحه خانه */
.cat-row {
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
}
.cat-row .cat-card { padding: 16px 8px; }
.cat-row .cat-ic {
  width: 46px; height: 46px;
  font-size: 22px; border-radius: 12px; margin-bottom: 8px;
}
.cat-row .cat-card b { font-size: 13px; }
.cat-row .cat-card span { display: none; }

/* ---------- محصولات ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-thumb {
  aspect-ratio: 1/1;
  background: repeating-linear-gradient(45deg, #e7c79f 0 14px, #dcb685 14px 28px);
  display: grid; place-items: center;
  color: #6b4a22; font-size: 52px;
  position: relative;
}
.badge {
  position: absolute; inset-block-start: 10px; inset-inline-start: 10px;
  background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.badge.green { background: var(--ok); }
.product-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body .p-cat { color: var(--muted); font-size: 12px; }
.product-body h3 { font-size: 15px; margin: 0; line-height: 1.6; }
.product-body h3 a:hover { color: var(--brand); }
.rating { color: #f0a500; font-size: 13px; letter-spacing: 2px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { font-size: 18px; font-weight: 800; color: var(--brand-dark); }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.product-body .btn { margin-top: 6px; }
.disc { background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* کارت محصول — چیدمان جمع‌وجور */
.p-short { color: var(--muted); font-size: 12px; margin: 0; min-height: 1.6em; }
.vpills { display: flex; gap: 6px; }
.vpill {
  flex: 1; border: 1.5px solid var(--line); background: var(--card);
  border-radius: 9px; padding: 6px 8px; font: inherit; font-size: 12px;
  font-weight: 700; color: var(--muted); cursor: pointer; transition: all .12s ease;
}
.vpill:hover { border-color: var(--brand); }
.vpill.active { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }
.p-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.p-price .price-final { font-size: 19px; font-weight: 800; color: var(--brand-dark); }
.p-price .price-old { color: var(--muted); font-size: 12px; }
.dual-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.variant-price { min-width: 0; padding: 6px 7px; border: 1px solid #ead8c3; border-radius: 8px; background: #fffaf4; }
.variant-price.unavailable { opacity: .55; }
.variant-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 700; }
.variant-amount { display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap; line-height: 1.35; }
.variant-amount .price-final { color: var(--brand-dark); font-size: 14px; font-weight: 800; }
.variant-amount small { color: var(--muted); font-size: 9px; }
.variant-amount .price-old { color: var(--muted); font-size: 10px; }
.variant-amount .disc { padding: 1px 4px; font-size: 9px; }
.p-stock { font-size: 12px; color: var(--ok); font-weight: 600; }
.p-stock.out { color: var(--danger); }
.p-pack { font-size: 12px; font-weight: 700; color: var(--brand-dark); background: var(--brand-light); padding: 4px 9px; border-radius: 8px; align-self: flex-start; }
.p-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.p-chip { font-size: 11px; font-weight: 700; color: var(--brand-dark); background: var(--brand-light); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.p-buy { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.p-buy .btn { margin: 0; flex: 1; }
.p-actions { display: flex; gap: 8px; align-items: stretch; margin-top: auto; }
.p-actions .btn { margin: 0; flex: 1; text-align: center; }
.qty-sm button { width: 30px; height: 36px; font-size: 17px; }
.qty-sm input { width: 36px; height: 36px; }

/* ---------- چیدمان فروشگاه (سایدبار + شبکه) ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 96px;
}
.sidebar h4 { margin: 0 0 12px; font-size: 15px; }
.filter-block { padding-block: 14px; border-top: 1px solid var(--line); }
.filter-block:first-of-type { border-top: 0; padding-top: 0; }
.filter-list li a {
  display: flex; justify-content: space-between;
  padding: 7px 8px; border-radius: 8px; color: var(--ink); font-size: 14px;
}
.filter-list li a:hover, .filter-list li a.active { background: var(--bg); color: var(--brand); }
.filter-list .count { color: var(--muted); font-size: 12px; }
.check { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; cursor: pointer; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm); gap: 12px; flex-wrap: wrap;
}
.shop-toolbar select { font: inherit; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.shop-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- مسیر راهنما ---------- */
.breadcrumb { color: var(--muted); font-size: 13px; padding-block: 16px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin-inline: 6px; }

/* ---------- صفحه محصول ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.gallery-main {
  aspect-ratio: 1/1;
  background: repeating-linear-gradient(45deg, #e7c79f 0 18px, #dcb685 18px 36px);
  border-radius: var(--radius);
  display: grid; place-items: center; font-size: 90px; color: #6b4a22;
  box-shadow: var(--shadow-sm);
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs span {
  width: 72px; aspect-ratio: 1/1;
  background: repeating-linear-gradient(45deg, #e7c79f 0 10px, #dcb685 10px 20px);
  border-radius: 10px; border: 2px solid transparent; cursor: pointer;
}
.gallery-thumbs span.active { border-color: var(--brand); }
.product-detail h1 { font-size: 26px; margin: 6px 0 10px; }
.pd-meta { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-bottom: 16px; flex-wrap: wrap; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.pd-price .price { font-size: 28px; }
.pd-desc { color: #4a4036; margin-bottom: 20px; }
.pd-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.opt {
  padding: 8px 16px; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; background: var(--card); font: inherit;
}
.opt.active { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 40px; height: 44px; border: 0; background: var(--bg); font-size: 20px; cursor: pointer; }
.qty input { width: 56px; height: 44px; border: 0; text-align: center; font: inherit; }
.buy-row { display: flex; gap: 12px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table th, .spec-table td { text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table th { background: var(--bg); width: 200px; font-weight: 700; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 32px 0 18px; flex-wrap: wrap; }
.tab { padding: 12px 18px; cursor: pointer; font-weight: 600; border-bottom: 3px solid transparent; color: var(--muted); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- فرم‌ها ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { color: var(--muted); font-size: 12px; }
.form-note {
  background: var(--brand-light); color: var(--brand-dark);
  padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px;
}
.alert-ok {
  background: #e6f4ea; color: var(--ok);
  border: 1px solid #bfe3c7; padding: 12px 16px;
  border-radius: 10px; margin-bottom: 16px; display: none;
}

/* ---------- بلاگ ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-light), #e7c79f); display: grid; place-items: center; font-size: 44px; color: var(--brand-dark); }
.post-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body .p-meta { color: var(--muted); font-size: 12px; }
.post-body h3 { margin: 0; font-size: 17px; line-height: 1.7; }
.post-body h3 a:hover { color: var(--brand); }
.post-body p { color: var(--muted); font-size: 14px; margin: 0; }
.post-body .read { color: var(--brand); font-weight: 700; font-size: 14px; margin-top: auto; }

/* ---------- درباره ما ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.about-art { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #d9a066 0 18px, #c98c4e 18px 36px); box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-block: 36px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { font-size: 30px; color: var(--brand); display: block; }
.stat span { color: var(--muted); font-size: 14px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.value .vi { font-size: 30px; margin-bottom: 8px; }
.value h3 { margin: 0 0 6px; font-size: 17px; }
.value p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- تماس ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
.info-list li { display: flex; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ii { font-size: 22px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand-dark); border-radius: 12px; flex: none; }
.info-list b { display: block; }
.info-list span { color: var(--muted); font-size: 14px; }
.contact-channels { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.contact-channels .btn { color: #fff; }
.contact-channels .btn svg { flex: none; }
.contact-channels .btn:hover { filter: brightness(.93); }
.map-embed { aspect-ratio: 16/10; background: linear-gradient(135deg, #cfe3df, #e7ded3); border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); margin-top: 18px; border: 1px solid var(--line); }

/* ---------- بنر سفارش عمده ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff; border-radius: var(--radius);
  padding: 36px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 6px; font-size: 24px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { background: #fff; color: var(--accent-dark); }
.cta-band .btn:hover { background: var(--accent-light); }

/* ---------- پله‌های فرایند ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; inset-block-start: -14px; inset-inline-start: 18px; width: 36px; height: 36px; background: var(--brand); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.step h3 { margin: 10px 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- فوتر ---------- */
.site-footer { background: var(--ink); color: #d8cbbd; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-block: 44px; }
.site-footer h4 { color: #fff; font-size: 16px; margin: 0 0 16px; }
.site-footer a { color: #d8cbbd; }
.site-footer a:hover { color: #fff; }
.footer-grid p { color: #b5a799; font-size: 14px; margin: 0 0 14px; }
.footer-links li { padding-block: 5px; font-size: 14px; }
.foot-contact li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14px; align-items: center; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,.08); border-radius: 10px; font-size: 16px; }
.socials a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 16px; text-align: center; font-size: 13px; color: #b5a799; }
.footer-credit { text-align: center; padding-bottom: 16px; font-size: 13px; }
.footer-credit a { display: inline-flex; align-items: center; gap: 6px; color: #b5a799; text-decoration: none; transition: color .2s; }
.footer-credit a:hover { color: #d8cfc6; }
.footer-credit .asan-name { color: #34d399; font-weight: 600; transition: color .2s; }
.footer-credit a:hover .asan-name { color: #6ee7b7; }
.footer-credit img { width: 20px; height: 20px; border-radius: 4px; object-fit: contain; }

/* ---------- متفرقه ---------- */
.page-hero { background: var(--brand-light); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: 30px; }
.page-hero h1 { margin: 0; font-size: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prose p { color: #4a4036; }
.prose h3 { margin-top: 26px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 600; }
.pagination a.active, .pagination a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- نوار اعلان موبایل ---------- */
.toast {
  position: fixed; inset-block-end: 20px; inset-inline-start: 50%;
  transform: translateX(50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 12px 22px;
  border-radius: 999px; box-shadow: var(--shadow); z-index: 200;
  transition: transform .3s ease; font-weight: 600;
}
.toast.show { transform: translateX(50%) translateY(0); }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; padding-block: 40px; }
  .features, .cat-grid, .product-grid, .blog-grid, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .cat-grid.cat-row { grid-template-columns: repeat(4, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail, .about-hero, .contact-layout, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .search { display: none; }
  .nav-toggle { display: block; }
  .nav-list {
    display: none; flex-direction: column; width: 100%;
    padding-block: 6px;
  }
  .nav-list.open { display: flex; }
  .main-nav .container { flex-direction: column; align-items: stretch; }
  .has-mega .mega { position: static; display: block; box-shadow: none; border: 0; padding-inline-start: 20px; }

  /* هدر جمع‌وجور برای موبایل */
  .header-main { gap: 12px; }
  .logo { font-size: 18px; }
  .logo small { display: none; }
  .logo .logo-mark { width: 34px; height: 34px; font-size: 17px; }
  .header-actions { gap: 10px; }
  .header-actions .ha { display: none; }   /* لینک‌های متنی پنهان؛ دکمه‌ی سبد خرید می‌ماند */

  /* شبکه‌ها */
  .features, .stats, .product-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid.cat-row { grid-template-columns: repeat(3, 1fr); }
  .blog-grid, .steps, .footer-grid, .cat-grid { grid-template-columns: 1fr; }

  .hero .container { padding-block: 30px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; margin-bottom: 20px; }
  .section { padding-block: 28px; }
  .cta-band { padding: 24px; }
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; }
}
@media (max-width: 430px) {
  .product-grid, .shop-grid { grid-template-columns: 1fr; }
  .cat-grid.cat-row { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 23px; }
  .section-head h2 { font-size: 21px; }
}

/* ===========================================================
   لایه‌ی پریمیوم — انیمیشن‌ها، هاورها، آیکن‌ها و تصاویر
   =========================================================== */

/* ---- انیمیشن‌ها ---- */
@keyframes apFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes apFloat  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes apFloatS { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes apPop    { 0% { opacity: 0; transform: scale(.8); } 100% { opacity: 1; transform: scale(1); } }
@keyframes apSpin   { to { transform: rotate(360deg); } }

/* ---- آشکارسازی هنگام اسکرول ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.ap-up { animation: apFadeUp .7s both; animation-delay: var(--d, 0s); }

/* ---- آیکن‌های SVG ---- */
.ico { display: inline-flex; align-items: center; justify-content: center; line-height: 0; vertical-align: -.16em; }
.ico svg { width: 1.05em; height: 1.05em; display: block; }
.feature .fi .ico svg { width: 26px; height: 26px; }
.value .vi .ico svg { width: 26px; height: 26px; }
.info-list .ii .ico svg { width: 22px; height: 22px; }
.socials .ico svg { width: 19px; height: 19px; }

/* ---- دکمه‌ها (افکت برق + بالاآمدن) ---- */
.btn { position: relative; overflow: hidden; background-image: linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow: 0 8px 18px -8px rgba(181,101,29,.65); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn::after { content: ""; position: absolute; inset: 0; width: 45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); transform: translateX(-160%) skewX(-18deg); transition: transform .6s ease; pointer-events: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(181,101,29,.7); filter: brightness(1.04); }
.btn:hover::after { transform: translateX(340%) skewX(-18deg); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; background-image: none; box-shadow: inset 0 0 0 1.6px var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-accent { background-image: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 8px 18px -8px rgba(29,138,143,.6); }
.cta-band .btn { background: #fff; background-image: none; color: var(--accent-dark); box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); }
.cta-band .btn:hover { background: #fff; filter: brightness(1); transform: translateY(-2px); }

/* ---- هدر چسبان (سایه هنگام اسکرول) + ناوبری ---- */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 22px -10px rgba(80,50,20,.25); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.2) blur(8px); }
.nav-list > li > a { position: relative; }
.nav-list > li > a::after { content: ""; position: absolute; inset-block-end: -2px; inset-inline-start: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 2px; transition: width .25s ease; }
.nav-list > li > a:hover::after, .nav-list > li > a.active::after { width: 100%; }
.header-actions .ha:hover { color: var(--brand); }

/* ---- هیرو پریمیوم ---- */
.hero { position: relative; overflow: hidden;
  background: radial-gradient(1100px 480px at 88% -12%, var(--accent-light), transparent 58%),
              linear-gradient(135deg, #fcf4ec 0%, #f3e3d2 55%, #e7f2f1 100%); }
.hero::before { content: ""; position: absolute; inset-block-end: -120px; inset-inline-start: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(29,138,143,.14), transparent 70%); pointer-events: none; }
.hero .container { padding-block: 66px; position: relative; z-index: 1; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(29,138,143,.12); color: var(--accent-dark); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero .eyebrow .ico svg { width: 15px; height: 15px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .ico { color: var(--ok); }

/* تصویر هیرو + نشان‌های شناور */
.hero-media { position: relative; }
.hero-media .hm-img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: 24px; box-shadow: 0 34px 64px -24px rgba(80,50,20,.5); animation: apFloat 6.5s ease-in-out infinite; }
.hero-media::before { content: ""; position: absolute; inset: 14px; border-radius: 24px; background: linear-gradient(135deg, rgba(181,101,29,.16), rgba(29,138,143,.16)); transform: rotate(-4deg); z-index: -1; }
.hero-chip { position: absolute; background: #fff; border-radius: 16px; box-shadow: 0 16px 30px -14px rgba(80,50,20,.4); padding: 11px 15px; display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 14px; }
.hero-chip small { display: block; font-weight: 600; font-size: 11.5px; color: var(--muted); }
.hero-chip .hc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.hero-chip .hc-ic .ico svg { width: 20px; height: 20px; }
.hero-chip.c1 { inset-block-start: 22px; inset-inline-start: -18px; animation: apFloatS 5s ease-in-out infinite; }
.hero-chip.c1 .hc-ic { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.hero-chip.c2 { inset-block-end: 26px; inset-inline-end: -16px; animation: apFloatS 6.4s ease-in-out .6s infinite; }
.hero-chip.c2 .hc-ic { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }

/* ---- ویژگی‌ها ---- */
.feature { position: relative; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.feature::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: inline-end; transition: transform .35s ease; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature .fi { background: linear-gradient(135deg, var(--accent-light), #cfeceb); color: var(--accent-dark); transition: transform .25s ease; }
.feature:hover .fi { transform: scale(1.08) rotate(-5deg); }

/* ---- سرتیتر بخش ---- */
.section-head h2::before { background: linear-gradient(var(--brand), var(--accent)); }

/* ---- کارت دسته‌بندی ---- */
.cat-card { position: relative; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand); }
.cat-card .cat-ic { transition: transform .25s ease; }
.cat-card:hover .cat-ic { transform: scale(1.14) translateY(-2px); }
.cat-row .cat-ic { background: linear-gradient(135deg, var(--brand-light), #ecd6bd); border-radius: 16px; }

/* ---- کارت محصول ---- */
.product-card { transition: transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .24s ease; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 24px 42px -20px rgba(80,50,20,.42); }
.product-thumb { overflow: hidden; }
.product-thumb img { transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.product-card:hover .product-thumb img { transform: scale(1.08); }
.product-grid .product-card, .cat-grid .cat-card { animation: apFadeUp .5s both; }
.product-grid .product-card:nth-child(1), .cat-grid .cat-card:nth-child(1) { animation-delay: .03s; }
.product-grid .product-card:nth-child(2), .cat-grid .cat-card:nth-child(2) { animation-delay: .08s; }
.product-grid .product-card:nth-child(3), .cat-grid .cat-card:nth-child(3) { animation-delay: .13s; }
.product-grid .product-card:nth-child(4), .cat-grid .cat-card:nth-child(4) { animation-delay: .18s; }
.product-grid .product-card:nth-child(5), .cat-grid .cat-card:nth-child(5) { animation-delay: .23s; }
.product-grid .product-card:nth-child(6), .cat-grid .cat-card:nth-child(6) { animation-delay: .28s; }
.product-grid .product-card:nth-child(7), .cat-grid .cat-card:nth-child(7) { animation-delay: .33s; }
.product-grid .product-card:nth-child(8), .cat-grid .cat-card:nth-child(8) { animation-delay: .38s; }

/* ---- بنر دعوت به اقدام (با تصویر) ---- */
.cta-band { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(115deg, rgba(21,104,108,.93) 0%, rgba(143,79,21,.88) 100%), url("../img/cta.jpg") center/cover no-repeat;
  box-shadow: 0 20px 44px -22px rgba(80,50,20,.5); }

/* ---- سرصفحه‌ی صفحات داخلی (با تصویر) ---- */
.page-hero { position: relative; overflow: hidden; border-bottom: 0;
  background: linear-gradient(0deg, rgba(43,33,24,.66), rgba(43,33,24,.6)), url("../img/pagehero.jpg") center/cover no-repeat; }
.page-hero .container { padding-block: 60px; position: relative; }
.page-hero h1 { color: #fff; font-size: 34px; }
.page-hero h1::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin-top: 12px; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* ---- درباره ما ---- */
.about-art { box-shadow: 0 26px 50px -22px rgba(80,50,20,.45); transition: transform .4s ease; }
.about-hero:hover .about-art { transform: translateY(-5px); }
.stat { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat b { background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value { transition: transform .2s ease, box-shadow .2s ease; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value .vi { width: 54px; height: 54px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-light), #ecd6bd); color: var(--brand-dark); border-radius: 16px; }

/* ---- تماس ---- */
.info-list .ii { background: linear-gradient(135deg, var(--brand-light), #ecd6bd); transition: transform .2s ease; }
.info-list li:hover .ii { transform: scale(1.08) rotate(-4deg); }
.contact-layout .card { transition: transform .25s ease, box-shadow .25s ease; }

/* ---- بلاگ ---- */
.post-card { transition: transform .22s ease, box-shadow .22s ease; }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.post-cover { overflow: hidden; position: relative; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.post-card:hover .post-cover img { transform: scale(1.08); }

/* ---- صفحه‌ی محصول (گالری) ---- */
.gallery-main { overflow: hidden; }
.gallery-main img { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.gallery-main:hover img { transform: scale(1.06); }
.vpill { transition: all .15s ease; }

/* ---- چیدمان هیرو در موبایل ---- */
@media (max-width: 880px) {
  .hero-media { max-width: 460px; margin-inline: auto; }
  .hero-chip.c1 { inset-inline-start: 4px; }
  .hero-chip.c2 { inset-inline-end: 4px; }
}

/* ---- احترام به کاهش حرکت ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation: none !important; }
  .hero-media .hm-img { animation: none; }
}
