/* eivapet.css — لایهٔ کامپوننت قالب ایوا‌پت (بعد از style.css لود می‌شود).
 *
 * پورت ۱:۱ از EivaPet.dc.html (Nuxt UI v4). قواعد ساختاری مرجع که اینجا
 * عیناً رعایت شده‌اند:
 *   ۱) مرز = box-shadow: inset 0 0 0 1px var(--eiva-border) — نه border.
 *      (border جای layout می‌گیرد و در گریدها ۱px پرش می‌دهد.)
 *   ۲) کانتینر ۸۰rem با gutter ۲۴px.
 *   ۳) مقیاس تایپ: 36/40 برای h1، 24/32 برای h2، 14/20 برای متن رابط،
 *      12/16 برای متادیتا. letter-spacing: -0.025em فقط روی تیترها.
 *   ۴) tintها با color-mix تا در دارک‌مود هم درست بمانند.
 *   ۵) تصویر محصول object-fit: contain روی bg-elevated — بسته‌بندی غذای
 *      حیوانات نباید crop شود (cover بسته‌ها را می‌برید؛ باگ واقعی ۱.۰).
 * بدون گرادیان، بدون ایموجی، حرکت فقط رنگ ۱۵۰ms، اعداد mono + isolate.
 */

/* ---------- پایه ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--eiva-bg);
  color: var(--eiva-text);
  font-family: var(--eiva-font-sans);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--eiva-text-toned); text-decoration: none; transition: color var(--eiva-transition); }
a:hover { color: var(--eiva-text-highlighted); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
h1, h2, h3, h4 { letter-spacing: -0.025em; color: var(--eiva-text-highlighted); text-wrap: pretty; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--eiva-primary-ring); outline-offset: 1px; border-radius: var(--eiva-radius); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { max-width: var(--eiva-container); margin-inline: auto; padding-inline: var(--eiva-gutter); }
section { padding: 64px 0; }

/* نوارهای هم‌سطح (bg-muted با خط بالا/پایین — الگوی مرجع) */
.band {
  background: var(--eiva-bg-muted);
  box-shadow: inset 0 1px 0 var(--eiva-border), inset 0 -1px 0 var(--eiva-border);
}
.band-top { background: var(--eiva-bg-muted); box-shadow: inset 0 1px 0 var(--eiva-border); }

/* اعداد/قیمت/تلفن — همیشه mono و ایزوله (قرارداد Vazir Code) */
.eiva-num, .eiva-price, .eiva-tel, .cart-count, .bignum, .woocommerce-Price-amount,
.p-brand, .brand, .count, .fc-count {
  font-family: var(--eiva-font-mono);
  unicode-bidi: isolate;
}

/* ---------- دکمه — اندازه‌های Nuxt UI ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 32px; padding-inline: 12px; border: 0; border-radius: var(--eiva-radius);
  font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer;
  white-space: nowrap;
  transition: color var(--eiva-transition), background-color var(--eiva-transition), box-shadow var(--eiva-transition);
}
.btn.sm { height: 28px; padding-inline: 10px; font-size: 12px; line-height: 16px; }
.btn.lg { height: 36px; padding-inline: 14px; }
.btn.xl { height: 40px; padding-inline: 16px; font-weight: 600; }
.btn.primary { background: var(--eiva-primary); color: var(--eiva-text-inverted); }
.btn.primary:hover { background: var(--eiva-primary-hover); color: var(--eiva-text-inverted); }
.btn.soft { background: var(--eiva-primary-soft); color: var(--eiva-primary); }
.btn.soft:hover { background: color-mix(in oklab, var(--eiva-primary) 18%, transparent); color: var(--eiva-primary); }
.btn.outline {
  background: transparent; color: var(--eiva-text-highlighted);
  box-shadow: inset 0 0 0 1px var(--eiva-border-accented);
}
.btn.outline:hover { background: var(--eiva-bg-elevated); color: var(--eiva-text-highlighted); }
.btn.ghost { background: transparent; color: var(--eiva-text-toned); }
.btn.ghost:hover { background: var(--eiva-bg-elevated); color: var(--eiva-text-highlighted); }
.btn.eiva-code { background: var(--eiva-accent-eiva-soft); color: var(--eiva-accent-eiva); }
.btn.full { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn .i { width: 16px; height: 16px; flex: none; }

/* نشان (Badge) */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; line-height: 16px; font-weight: 500; padding: 2px 8px; border-radius: 999px;
  background: var(--eiva-bg-elevated); color: var(--eiva-text-toned);
}
.badge.b-primary { background: var(--eiva-primary-soft); color: var(--eiva-primary); }
.badge.b-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--eiva-border); color: var(--eiva-text-toned); }
.badge.b-sale { background: var(--eiva-primary-soft); color: var(--eiva-primary); }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }

.kicker {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-size: 14px; line-height: 20px; font-weight: 500;
  color: var(--eiva-primary); background: var(--eiva-primary-soft);
  padding: 2px 10px; border-radius: 999px;
}

/* سرتیتر بخش — مرجع start-align است نه وسط‌چین.
   پیش‌فرض ستونی تا مارک‌آپ موجود (kicker + h2 + p) دست‌نخورده کار کند؛
   .split برای حالتی که دکمه‌ای سمت دیگر می‌نشیند. */
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 24px; }
.sec-head h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 0; }
.sec-head p { color: var(--eiva-text-muted); margin: 0; font-size: 14px; line-height: 20px; }
.sec-head.split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sec-head.split .sec-head-copy { display: flex; flex-direction: column; gap: 6px; }
.sec-more { margin-top: 24px; }

/* ---------- هدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  height: var(--eiva-header-height);
  background: color-mix(in oklab, var(--eiva-bg) 80%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 -1px 0 var(--eiva-border);
}
.header-row { display: flex; align-items: center; gap: 20px; height: 100%; }

/* نشان برند — دایرهٔ ۳۲px با حرف «ا» (مطابق مرجع) */
.brand-link { flex: none; display: flex; align-items: center; gap: 8px; }
.brand-mark {
  flex: none; width: 32px; height: 32px; border-radius: 999px;
  background: var(--eiva-primary); color: var(--eiva-text-inverted);
  font-size: 16px; font-weight: 700; display: grid; place-items: center;
}
.brand-name { white-space: nowrap; font-size: 16px; font-weight: 700; color: var(--eiva-text-highlighted); letter-spacing: -0.025em; }
.site-header .custom-logo { height: 32px; width: auto; display: block; }

.main-nav { flex: none; margin-inline-start: 8px; }
.main-nav ul.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block; padding: 6px 10px; border-radius: var(--eiva-radius);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--eiva-text-toned);
  transition: color var(--eiva-transition), background-color var(--eiva-transition);
}
.main-nav a:hover { color: var(--eiva-text-highlighted); background: var(--eiva-bg-elevated); }
.main-nav .current-menu-item > a, .main-nav .current-menu-parent > a {
  color: var(--eiva-primary); background: var(--eiva-primary-soft);
}
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 6px; }

.account-btn, .cart-btn, .burger, .theme-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; border-radius: var(--eiva-radius);
  background: transparent; color: var(--eiva-text-toned); cursor: pointer;
  transition: color var(--eiva-transition), background-color var(--eiva-transition);
}
.account-btn:hover, .cart-btn:hover, .burger:hover, .theme-toggle:hover {
  background: var(--eiva-bg-elevated); color: var(--eiva-text-highlighted);
}
.account-ico, .cart-ico, .theme-ico {
  width: 18px; height: 18px; display: inline-block; background: currentColor;
  -webkit-mask: var(--eiva-ico-user) center/contain no-repeat;
  mask: var(--eiva-ico-user) center/contain no-repeat;
}
.cart-ico { -webkit-mask-image: var(--eiva-ico-cart); mask-image: var(--eiva-ico-cart); }
.theme-ico { -webkit-mask-image: var(--eiva-ico-sun); mask-image: var(--eiva-ico-sun); }
:root[data-theme="dark"] .theme-ico { -webkit-mask-image: var(--eiva-ico-moon); mask-image: var(--eiva-ico-moon); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-ico {
    -webkit-mask-image: var(--eiva-ico-moon); mask-image: var(--eiva-ico-moon);
  }
}
.cart-count {
  position: absolute; top: -3px; left: -3px; min-width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1; font-weight: 700;
  color: var(--eiva-text-inverted); background: var(--eiva-primary);
  border-radius: 999px; padding-inline: 4px;
}
.cart-count.is-empty { display: none; }

.burger { display: none; flex-direction: column; gap: 4px; }
.burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* جستجوی هدر — ۳۲px با ذره‌بین SVG داخلی (مطابق مرجع) */
.header-search { flex: 0 1 240px; min-width: 0; }
.header-search input {
  width: 100%; height: 32px; padding: 6px 32px 6px 10px; border: 0;
  border-radius: var(--eiva-radius);
  background-color: var(--eiva-bg); color: var(--eiva-text-highlighted);
  font-family: var(--eiva-font-sans); font-size: 14px; line-height: 20px;
  box-shadow: inset 0 0 0 1px var(--eiva-border-accented);
  background-image: var(--eiva-ico-search);
  background-repeat: no-repeat; background-position: right 10px center;
  transition: box-shadow var(--eiva-transition), background-color var(--eiva-transition);
}
.header-search input::placeholder { color: var(--eiva-text-dimmed); }
.header-search input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--eiva-primary); }

/* ---------- منوی موبایل ----------
 * باگ واقعی ۱.۰: display:flex روی .mobile-menu قانون UA یعنی
 * [hidden]{display:none} را (به‌خاطر specificity کلاس) باطل می‌کرد و منو در
 * همهٔ حالت‌ها تمام صفحه را می‌پوشاند. دو محافظ: [hidden] صریح + قفل ≤۷۶۸px.
 */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--eiva-bg);
  padding: 80px var(--eiva-gutter) var(--eiva-gutter);
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu[hidden] { display: none !important; }
@media (min-width: 769px) { .mobile-menu { display: none !important; } }
.mobile-menu .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu .menu a {
  display: block; padding: 12px 16px; border-radius: var(--eiva-radius);
  font-size: 16px; font-weight: 500; color: var(--eiva-text-highlighted);
  transition: color var(--eiva-transition), background-color var(--eiva-transition);
}
.mobile-menu .menu a:hover { background: var(--eiva-primary-soft); color: var(--eiva-primary); }
.mobile-menu-close { margin-top: auto; }
body.menu-open { overflow: hidden; }

.skip-link {
  position: absolute; right: -9999px; top: 8px; z-index: 100;
  background: var(--eiva-primary); color: var(--eiva-text-inverted);
  padding: 8px 16px; border-radius: var(--eiva-radius);
}
.skip-link:focus { right: 8px; }

/* ---------- نوار کد تخفیف EIVA (تنها استفادهٔ نارنجی) ---------- */
.eiva-promo {
  background: var(--eiva-primary-soft);
  box-shadow: inset 0 -1px 0 var(--eiva-primary-soft-2);
  color: var(--eiva-text-toned);
}
.eiva-promo .promo-row {
  max-width: var(--eiva-container); margin-inline: auto;
  padding: 8px var(--eiva-gutter);
  display: flex; align-items: center; justify-content: center;
  gap: 8px 12px; flex-wrap: wrap;
  font-size: 12px; line-height: 16px;
}
.eiva-promo .promo-ico {
  width: 16px; height: 16px; flex: none; display: inline-block;
  background: currentColor;
  -webkit-mask: var(--eiva-ico-ticket) center/contain no-repeat;
  mask: var(--eiva-ico-ticket) center/contain no-repeat;
}
.eiva-promo span { white-space: nowrap; }
.eiva-promo .code {
  color: var(--eiva-accent-eiva); font-weight: 700;
  font-family: var(--eiva-font-mono); unicode-bidi: isolate;
}

/* ---------- هیرو ---------- */
.hero { }
.hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.hero-copy h1 { font-size: 36px; line-height: 40px; font-weight: 700; margin: 0; }
.hero-copy .lede { color: var(--eiva-text-muted); font-size: 18px; line-height: 28px; margin: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--eiva-radius-lg);
  background: var(--eiva-bg-elevated); display: grid; place-items: center; overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- گرید محصولات ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px; list-style: none; margin: 0; padding: 0;
}
.product-card {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow var(--eiva-transition);
}
.product-card:hover { box-shadow: inset 0 0 0 1px var(--eiva-border-accented), var(--eiva-shadow); }
/* تصویر: contain روی bg-elevated — بسته‌بندی نباید بریده شود */
.product-card .thumb {
  height: 160px; background: var(--eiva-bg-elevated);
  display: grid; place-items: center; overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-card .pbody { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .brand { font-size: 12px; line-height: 16px; color: var(--eiva-text-dimmed); }
.product-card .pname { font-size: 14px; line-height: 20px; font-weight: 500; margin: 0; }
.product-card .pname a { color: var(--eiva-text-highlighted); }
.product-card .pfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card .pprice { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--eiva-text-highlighted); }
.product-card .pprice .was { color: var(--eiva-text-dimmed); font-weight: 400; text-decoration: line-through; font-size: 12px; margin-inline-start: 6px; }
/* دلیل پیشنهاد مشاور — جعبهٔ tint اولیه (مطابق مرجع) */
.p-why {
  display: flex; gap: 6px; align-items: start; padding: 8px 10px;
  border-radius: var(--eiva-radius); background: var(--eiva-primary-soft);
  font-size: 12px; line-height: 16px; color: var(--eiva-text-toned);
}

/* ---------- باند اعتماد ---------- */
.trust-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.trust-item {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.trust-item strong { font-size: 16px; font-weight: 600; color: var(--eiva-text-highlighted); }
.trust-item span { font-size: 14px; line-height: 20px; color: var(--eiva-text-muted); }

/* ---------- دسته‌ها ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.cat-card {
  text-align: start; border: 0; border-radius: var(--eiva-radius-lg);
  background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border);
  padding: 20px; display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  transition: box-shadow var(--eiva-transition), background-color var(--eiva-transition);
}
.cat-card:hover { background: var(--eiva-bg-muted); box-shadow: inset 0 0 0 1px var(--eiva-border-accented); }
.cat-card .cat-ico { width: 24px; height: 24px; color: var(--eiva-primary); }
.cat-card .cat-ico svg { width: 100%; height: 100%; display: block; }
.cat-card strong { font-size: 16px; font-weight: 600; color: var(--eiva-text-highlighted); }
.cat-card .cat-desc { font-size: 14px; line-height: 20px; color: var(--eiva-text-muted); }
.cat-card .count { font-size: 12px; line-height: 16px; color: var(--eiva-text-dimmed); }

/* ---------- فیلترها (فروشگاه) ---------- */
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 999px;
  background: var(--eiva-bg-elevated); color: var(--eiva-text-toned);
  font-family: inherit; font-size: 12px; line-height: 16px; cursor: pointer;
  transition: color var(--eiva-transition), background-color var(--eiva-transition), box-shadow var(--eiva-transition);
}
.filter-chip:hover { background: var(--eiva-bg-accented); color: var(--eiva-text-highlighted); }
.filter-chip[aria-pressed="true"] { background: var(--eiva-primary-soft); color: var(--eiva-primary); }
.filter-chip .fc-count { font-size: 11px; color: var(--eiva-text-dimmed); }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.active-filter {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px;
  background: var(--eiva-primary-soft); color: var(--eiva-primary); border-radius: 999px; padding: 4px 10px;
}
select.eiva-sort, .woocommerce-ordering select.orderby {
  height: 32px; padding: 6px 10px; border: 0; border-radius: var(--eiva-radius);
  background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border-accented);
  font-family: inherit; font-size: 14px; color: var(--eiva-text-highlighted); cursor: pointer;
}
/* نوار زیردسته‌ها بالای گرید دسته (مرجع خط ۴۷۹) */
.subcat-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
/* شمار نتیجه + مرتب‌سازی (مرجع خط ۵۰۰) — .woocommerce-ordering فرم بومی ووکامرس است */
.woocommerce-ordering { display: inline-flex; }
.woocommerce-result-count { margin: 0; font-size: 14px; line-height: 20px; color: var(--eiva-text-muted); }
/* ستون کناری فروشگاه (مرجع: 240px + محتوا) */
.shop-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.shop-aside {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 16px;
  display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--eiva-header-height) + 16px);
}
.shop-aside .f-group { display: flex; flex-direction: column; gap: 10px; }
.shop-aside .f-label {
  font-size: 12px; line-height: 16px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--eiva-text-dimmed);
}
.shop-aside label.f-item {
  display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 28px;
  font-size: 14px; line-height: 20px; color: var(--eiva-text-toned);
}
.shop-aside .f-item input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--eiva-primary); cursor: pointer; flex: 0 0 auto;
}
.shop-aside .f-item .fc-count { margin-inline-start: auto; font-size: 12px; color: var(--eiva-text-dimmed); }
.shop-aside .f-clear { align-self: flex-start; }

/* ---------- حالت خالی صادقانه ---------- */
.empty-state {
  text-align: center; padding: 48px 24px; border-radius: var(--eiva-radius-lg);
  background: var(--eiva-bg-muted); box-shadow: inset 0 0 0 1px var(--eiva-border);
}
.empty-state strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--eiva-text-highlighted); }
.empty-state p { color: var(--eiva-text-muted); margin: 0 0 16px; font-size: 14px; line-height: 20px; }

/* ---------- ۴۰۴ (مرجع خط ۱۳۱۴) ---------- */
.notfound-page {
  max-width: 480px; margin-inline: auto; padding: 96px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.notfound-num { display: block; font-size: 64px; font-weight: 700; line-height: 1; color: var(--eiva-text-dimmed); }
.notfound-title { font-size: 20px; color: var(--eiva-text-highlighted); }
.notfound-desc { margin: 0; font-size: 15px; line-height: 22px; color: var(--eiva-text-muted); }
.notfound-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* ---------- صفحه محصول ---------- */
.product-single { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.p-gallery { display: grid; gap: 10px; }
.p-gallery .p-main {
  aspect-ratio: 1; border-radius: var(--eiva-radius-lg); background: var(--eiva-bg-elevated);
  display: grid; place-items: center; overflow: hidden;
}
.p-gallery .p-main img { width: 100%; height: 100%; object-fit: contain; }
.p-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.p-thumbs img {
  aspect-ratio: 1; object-fit: contain; background: var(--eiva-bg-elevated);
  border-radius: var(--eiva-radius); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--eiva-border); transition: box-shadow var(--eiva-transition);
}
.p-thumbs img[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--eiva-primary); }
.p-info { display: flex; flex-direction: column; gap: 12px; }
.p-info h1 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 0; }
.p-brand { font-size: 12px; line-height: 16px; color: var(--eiva-text-dimmed); }
.p-price { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--eiva-text-highlighted); margin: 0; }
.p-price .was { font-size: 14px; font-weight: 400; color: var(--eiva-text-dimmed); text-decoration: line-through; margin-inline-start: 8px; }
.p-inquiry { color: var(--eiva-text-muted); font-weight: 600; }
.p-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.p-info .short { color: var(--eiva-text-muted); font-size: 14px; line-height: 20px; }
.p-info-box {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg-muted);
  box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.p-info-box strong { font-size: 14px; font-weight: 600; color: var(--eiva-text-highlighted); }
.p-info-box p { margin: 0; font-size: 13px; line-height: 20px; color: var(--eiva-text-muted); }
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 12px; line-height: 16px; color: var(--eiva-text-dimmed); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--eiva-text-muted); }
.breadcrumb a:hover { color: var(--eiva-text-highlighted); }
.breadcrumb .sep { opacity: 0.6; }

/* جدول تغذیهٔ DPS + ماشین‌حساب (مرجع: EivaPet.dc.html خط ۴۰۶–۴۷۱) */
.dps-nutrition { margin-top: 24px; border-radius: var(--eiva-radius-lg); box-shadow: inset 0 0 0 1px var(--eiva-border); overflow: hidden; }
.dps-nutrition-head { padding: 16px 18px 0; }
.dps-nutrition-head h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--eiva-text-highlighted); }
.dps-nutrition-head p { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: var(--eiva-text-muted); }
.dps-nutri { width: 100%; border-collapse: collapse; font-size: 14px; }
.dps-nutri th, .dps-nutri td { padding: 10px 14px; text-align: right; box-shadow: inset 0 -1px 0 var(--eiva-border); }
.dps-nutri thead th { background: var(--eiva-bg-muted); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--eiva-text-muted); }
.dps-nutri tr.is-hot td { background: var(--eiva-primary-soft); color: var(--eiva-primary); font-weight: 600; }
.dps-calc { display: flex; gap: 8px; align-items: center; padding: 12px 14px; background: var(--eiva-bg-muted); flex-wrap: wrap; }
.dps-calc label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--eiva-text); }
.dps-calc input {
  width: 110px; height: 32px; border: 0; border-radius: var(--eiva-radius); padding: 6px 10px;
  background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border-accented);
  font-family: var(--eiva-font-mono); unicode-bidi: isolate; font-size: 14px;
}
.dps-calc input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--eiva-primary); }
.dps-calc .result { font-weight: 600; color: var(--eiva-primary); font-family: var(--eiva-font-mono); unicode-bidi: isolate; }
.dps-note { padding: 10px 18px 14px; margin: 0; font-size: 12px; line-height: 18px; color: var(--eiva-text-dimmed); font-style: italic; }

/* مکمل این خرید (مرجع خط ۳۷۹) */
.p-complementary { margin-top: 32px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--eiva-border); }

/* ---------- سبد ---------- */
.cart-table, .woocommerce-cart-form table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart-table th, .cart-table td { padding: 12px 10px; box-shadow: inset 0 -1px 0 var(--eiva-border); text-align: right; vertical-align: middle; }
.cart-table th { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--eiva-text-muted); }
.cart-table .ci-thumb img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--eiva-radius); background: var(--eiva-bg-elevated); }
.qty-stepper {
  display: inline-flex; align-items: center; border-radius: var(--eiva-radius); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--eiva-border-accented);
}
.qty-stepper button {
  width: 32px; height: 32px; border: 0; background: var(--eiva-bg-muted); cursor: pointer;
  font-size: 16px; color: var(--eiva-text); transition: color var(--eiva-transition), background-color var(--eiva-transition);
}
.qty-stepper button:hover { background: var(--eiva-primary-soft); color: var(--eiva-primary); }
.qty-stepper input {
  width: 48px; height: 32px; border: 0; text-align: center; background: var(--eiva-bg);
  color: var(--eiva-text); font-family: var(--eiva-font-mono); unicode-bidi: isolate;
}
.cart-summary {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 20px; display: grid; gap: 12px;
}
.cart-summary .line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; line-height: 20px; }
.cart-summary .line span:first-child { color: var(--eiva-text-muted); }
.cart-summary .total { font-size: 16px; font-weight: 700; color: var(--eiva-text-highlighted); padding-top: 12px; box-shadow: inset 0 1px 0 var(--eiva-border); }
.eiva-coupon-box { display: flex; gap: 8px; }
.eiva-coupon-box input {
  flex: 1; height: 32px; border: 0; border-radius: var(--eiva-radius); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border-accented); padding-inline: 10px;
  font-family: var(--eiva-font-mono); unicode-bidi: isolate; font-size: 14px;
}
.eiva-coupon-box input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--eiva-primary); }
.coupon-applied { color: var(--eiva-accent-eiva); font-size: 12px; line-height: 16px; font-weight: 600; }

/* مینی‌سبد (کشو) */
.mini-cart-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 92vw); z-index: 80;
  background: var(--eiva-bg); box-shadow: var(--eiva-shadow-lg);
  transform: translateX(-100%); visibility: hidden;
  transition: transform 200ms var(--eiva-ease), visibility 200ms;
  display: flex; flex-direction: column;
}
[dir="ltr"] .mini-cart-drawer { transform: translateX(100%); }
.mini-cart-drawer.open { transform: translateX(0); visibility: visible; }
.mini-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; box-shadow: inset 0 -1px 0 var(--eiva-border); }
.mini-cart-head strong { font-size: 16px; font-weight: 600; }
.mini-cart-body { flex: 1; overflow-y: auto; padding: 12px 20px; display: grid; gap: 10px; align-content: start; }
.mini-cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; box-shadow: inset 0 -1px 0 var(--eiva-border); }
.mini-cart-line img { width: 56px; height: 56px; object-fit: contain; background: var(--eiva-bg-elevated); border-radius: var(--eiva-radius); }
.mini-cart-foot { padding: 16px 20px; box-shadow: inset 0 1px 0 var(--eiva-border); display: grid; gap: 10px; }
.mini-cart-backdrop { position: fixed; inset: 0; z-index: 70; background: color-mix(in oklab, var(--eiva-slate-900) 40%, transparent); opacity: 0; visibility: hidden; transition: opacity 200ms var(--eiva-ease); }
.mini-cart-backdrop.open { opacity: 1; visibility: visible; }

/* ---------- پرداخت ---------- */
/* هدر — مرجع خط ۷۲۱: بردکرامب + آیکون کارت + h1 */
.eiva-checkout__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.eiva-checkout__title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.025em; color: var(--eiva-text-highlighted); }
.checkout-h-ico { width: 28px; height: 28px; background: var(--eiva-primary); -webkit-mask: var(--eiva-ico-card) center/contain no-repeat; mask: var(--eiva-ico-card) center/contain no-repeat; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: start; }
.eiva-checkout__main { display: flex; flex-direction: column; gap: 20px; }
.eiva-checkout__side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: var(--eiva-radius-lg); background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border); }
/* کارت‌بخش‌ها: هر جزء فرم یک کارت — مرجع خط ۷۳۹ (مشخصات گیرنده / نشانی / ارسال / پرداخت) */
.eiva-checkout .col2-set { display: flex; flex-direction: column; gap: 20px; }
.eiva-checkout .col2-set .col-1, .eiva-checkout .col2-set .col-2 {
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border);
}
.eiva-checkout h3, .eiva-checkout .woocommerce-billing-fields h3 { font-size: 16px; font-weight: 600; margin: 0; color: var(--eiva-text-highlighted); }
.eiva-checkout__side h3 { margin: 0; }
.checkout-card {
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border);
}
.woocommerce-checkout .form-row { margin-bottom: 14px; }
.woocommerce-checkout label { display: block; font-size: 12px; line-height: 16px; font-weight: 500; margin-bottom: 6px; color: var(--eiva-text-muted); }
.woocommerce-checkout input[type="text"], .woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="email"], .woocommerce-checkout select, .woocommerce-checkout textarea {
  width: 100%; height: 32px; border: 0; border-radius: var(--eiva-radius); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border-accented); padding-inline: 10px;
  font-size: 14px; line-height: 20px; color: var(--eiva-text-highlighted);
  transition: box-shadow var(--eiva-transition); font-family: inherit;
}
.woocommerce-checkout textarea { height: auto; padding: 8px 10px; }
.woocommerce-checkout input:focus, .woocommerce-checkout select:focus, .woocommerce-checkout textarea:focus {
  outline: 0; box-shadow: inset 0 0 0 2px var(--eiva-primary);
}
.eiva-methods { display: grid; gap: 10px; }
.eiva-method {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  background: var(--eiva-bg); border-radius: var(--eiva-radius-lg);
  box-shadow: inset 0 0 0 1px var(--eiva-border-accented);
  transition: box-shadow var(--eiva-transition), background-color var(--eiva-transition);
}
.eiva-method:hover { box-shadow: inset 0 0 0 1px var(--eiva-primary-soft-2); }
.eiva-method.checked { background: var(--eiva-primary-soft); box-shadow: inset 0 0 0 2px var(--eiva-primary); }
.eiva-method .price-tag { margin-inline-start: auto; font-family: var(--eiva-font-mono); unicode-bidi: isolate; font-size: 13px; color: var(--eiva-text-muted); }
.province-cascade select { cursor: pointer; }

/* روش‌های پرداخت native — ظاهرِ eiva-method (مرجع خط ۷۹۰: رادیو + عنوان + توضیح) */
.eiva-checkout .wc_payment_methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.eiva-checkout .wc_payment_methods > li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--eiva-radius-lg); background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border-accented); }
.eiva-checkout .wc_payment_methods > li.payment_method_eiva_card_to_card { background: var(--eiva-primary-soft); box-shadow: inset 0 0 0 2px var(--eiva-primary); }
.eiva-checkout .wc_payment_methods input[type="radio"] { width: 16px; height: 16px; margin-block-start: 4px; accent-color: var(--eiva-primary); cursor: pointer; }
.eiva-checkout .wc_payment_methods .payment_box { flex: 1; min-width: 0; font-size: 13px; line-height: 20px; color: var(--eiva-text-muted); }
.eiva-checkout .wc_payment_methods label { margin-bottom: 0; font-size: 14px; font-weight: 500; color: var(--eiva-text-highlighted); }

/* دکمهٔ ثبت سفارش — مرجع خط ۸۷۱ (Button lg + lock) */
.eiva-checkout #place_order { width: 100%; height: 44px; border: 0; border-radius: 999px; background: var(--eiva-primary); color: var(--eiva-text-inverted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity var(--eiva-transition); }
.eiva-checkout #place_order:hover { opacity: 0.9; }
.woocommerce-error, .woocommerce-info, .woocommerce-message {
  border-radius: var(--eiva-radius-lg); padding: 12px 16px; font-size: 14px; line-height: 20px;
  margin-bottom: 16px; list-style: none;
}
.woocommerce-error { background: var(--eiva-error-soft); color: var(--eiva-error); border-inline-start: 3px solid var(--eiva-error); }
.woocommerce-info { background: var(--eiva-primary-soft); color: var(--eiva-primary); border-inline-start: 3px solid var(--eiva-primary); }
.woocommerce-message { background: var(--eiva-bg-muted); color: var(--eiva-text); border-inline-start: 3px solid var(--eiva-primary); }

/* ---------- حساب کاربری (مرجع EivaPet.dc.html خط ۸۸۹) ----------
   قرارداد: قالب‌های woocommerce/myaccount/*.php این کلاس‌ها را emit
   می‌کنند؛ این بخش شِل کامل مرجع را استایل می‌دهد. */

/* پوشش دوستونه: سایدبار ناوبری ۲۴۰px + محتوا */
.eiva-account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.eiva-account__content { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* هدر دسکتاپ — مرجع خط ۸۹۴: بردکرامب + آواتار حرف اول + نام/موبایل + بج + خروج */
.eiva-account__head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.eiva-account__head-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--eiva-text-dimmed); }
.eiva-account__head-breadcrumb a { color: inherit; }
.eiva-account__head-breadcrumb .sep { color: var(--eiva-text-dimmed); }
.eiva-account__head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eiva-account__head-id { display: flex; align-items: center; gap: 12px; }
.eiva-account__head-avatar {
  width: 40px; height: 40px; flex: none; border-radius: 999px; display: grid; place-items: center;
  background: var(--eiva-primary-soft); color: var(--eiva-primary);
  font-size: 16px; font-weight: 600; font-family: var(--eiva-font-sans, inherit);
}
.eiva-account__head-identity { display: flex; flex-direction: column; gap: 2px; }
.eiva-account__head-name { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--eiva-text-highlighted); }
.eiva-account__head-phone { font-size: 13px; line-height: 18px; color: var(--eiva-text-muted); font-family: var(--eiva-font-mono); unicode-bidi: isolate; }
.eiva-account__head-actions { display: flex; align-items: center; gap: 8px; }
.eiva-account__head-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--eiva-primary-soft); color: var(--eiva-primary);
  font-size: 12px; line-height: 18px; font-weight: 500;
}
.eiva-account__head-badge svg { width: 13px; height: 13px; }
.eiva-account__head-logout {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--eiva-radius);
  font-size: 13px; line-height: 18px; font-weight: 500; color: var(--eiva-text-muted);
  transition: color var(--eiva-transition), background-color var(--eiva-transition);
}
.eiva-account__head-logout:hover { background: var(--eiva-bg-elevated); color: var(--eiva-text-highlighted); }
.eiva-account__head-logout svg { width: 14px; height: 14px; }

/* ناوبری سایدبار */
.eiva-account__nav {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 10px;
}
.eiva-account__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.eiva-account__nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--eiva-radius);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--eiva-text-toned);
  transition: color var(--eiva-transition), background-color var(--eiva-transition);
}
.eiva-account__nav a:hover { background: var(--eiva-bg-elevated); color: var(--eiva-text-highlighted); }
.eiva-account__nav .is-active a { background: var(--eiva-primary-soft); color: var(--eiva-primary); }
.eiva-account__nav-icon-wrap { display: inline-flex; flex: none; }
.eiva-account__nav-icon { width: 17px; height: 17px; stroke-width: 1.7; }

/* هدر پروفایل موبایل (فقط ≤۷۶۸ و روی dashboard) + نوار بازگشت (فقط موبایل) */
.eiva-account__mobile-profile { display: none; }
.eiva-account__mobile-back { display: none; }

/* کارت پایه */
.eiva-account-card {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 20px; display: grid; gap: 12px;
}
.eiva-account-placeholder { text-align: center; justify-items: center; gap: 14px; color: var(--eiva-text-muted); font-size: 14px; }

/* داشبورد: اطلاعات حساب */
.eiva-account-info__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eiva-account-info__title { font-size: 16px; font-weight: 600; margin: 0; color: var(--eiva-text-highlighted); }
.eiva-account-info__edit {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  color: var(--eiva-primary); transition: color var(--eiva-transition);
}
.eiva-account-info__edit svg { width: 15px; height: 15px; }
.eiva-account-info__edit:hover { color: var(--eiva-primary-hover, var(--eiva-primary)); }
.eiva-account-info__user { display: flex; align-items: center; gap: 12px; }
.eiva-account-info__avatar img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; background: var(--eiva-bg-elevated); }
.eiva-account-info__identity { display: flex; flex-direction: column; gap: 2px; }
.eiva-account-info__name { font-size: 16px; font-weight: 600; color: var(--eiva-text-highlighted); margin: 0; }
.eiva-account-info__email { font-size: 13px; color: var(--eiva-text-muted); margin: 0; font-family: var(--eiva-font-mono); unicode-bidi: isolate; }
.eiva-account-info__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eiva-account-info__field { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--eiva-radius); background: var(--eiva-bg-muted); }
.eiva-account-info__label { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--eiva-text-muted); }
.eiva-account-info__label svg { width: 14px; height: 14px; }
.eiva-account-info__value { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--eiva-text-highlighted); }
.eiva-account-info__value--empty { color: var(--eiva-text-dimmed); font-weight: 400; }

/* داشبورد: آمار */
.eiva-account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.eiva-account-stat {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border);
  padding: 16px; display: flex; flex-direction: column; gap: 4px; text-align: center;
}
.eiva-account-stat__value { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--eiva-primary); font-family: var(--eiva-font-mono); unicode-bidi: isolate; }
.eiva-account-stat__value .woocommerce-Price-amount { color: inherit; }
.eiva-account-stat__label { font-size: 12px; line-height: 16px; color: var(--eiva-text-muted); }

/* بنر یادآور خرید — مرجع خط ۹۱۷ */
.food-reminder__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.food-reminder__text b { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--eiva-text-highlighted); }
.food-reminder__text span { font-size: 12px; line-height: 16px; color: var(--eiva-text-muted); }
.food-reminder svg { width: 20px; height: 20px; flex: none; color: var(--eiva-primary); }
.food-reminder .btn { flex: none; }

/* داشبورد: کارت دعوت به ساخت/ویرایش پروندهٔ حیوان */
.eiva-account-pets-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.eiva-account-pets-cta__text p { margin: 4px 0 0; font-size: 13px; color: var(--eiva-text-muted); }
.eiva-account-pets-cta .btn { flex: none; }

/* تب «پرونده‌های من» */
.eiva-pets-box { display: grid; gap: 16px; }
.eiva-pets-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.eiva-pets-head h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--eiva-text-highlighted); }
.eiva-pets-lead { margin: 4px 0 0; font-size: 13px; color: var(--eiva-text-muted); max-width: 46ch; }
.eiva-pets-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.eiva-pets-empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--eiva-text-dimmed); border-radius: var(--eiva-radius-lg); box-shadow: inset 0 0 0 1px var(--eiva-border); }

.eiva-pet-card {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border);
  padding: 16px; display: grid; gap: 6px; align-content: start;
}
.eiva-pet-card__name { font-size: 15px; font-weight: 600; color: var(--eiva-text-highlighted); }
.eiva-pet-card__meta { margin: 0; font-size: 13px; color: var(--eiva-text-toned); }
.eiva-pet-card__note { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--eiva-text-muted); }
.eiva-pet-card__note b { color: var(--eiva-text-toned); font-weight: 600; }
.eiva-pet-card__actions { display: flex; gap: 8px; margin-top: 6px; }

.eiva-pet-form {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border);
  padding: 20px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.eiva-pet-form[hidden] { display: none; }
.eiva-pet-form h3 { grid-column: 1 / -1; margin: 0; font-size: 15px; font-weight: 600; color: var(--eiva-text-highlighted); }
.eiva-pet-form .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--eiva-text-toned); }
.eiva-pet-form .field input, .eiva-pet-form .field select {
  border-radius: var(--eiva-radius); box-shadow: inset 0 0 0 1px var(--eiva-border); background: var(--eiva-bg);
  padding: 8px 10px; font-size: 14px; color: var(--eiva-text-highlighted);
}
.eiva-pet-form__actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.eiva-pet-form__message { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--eiva-text-muted); }
.eiva-pet-form__message.is-error { color: var(--eiva-red-600); }

@media (max-width: 640px) {
  .eiva-account-pets-cta { flex-direction: column; align-items: stretch; }
  .eiva-pet-form { grid-template-columns: 1fr; }
}

/* سفارش‌ها: کارت‌ها — مرجع خط ۹۳۶ */
.eiva-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.eiva-orders__card {
  position: relative; border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border); overflow: hidden;
}
.eiva-orders__card-link { display: block; padding: 16px 20px; }
.eiva-orders__status {
  display: inline-block; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; line-height: 16px; font-weight: 500;
  background: var(--eiva-bg-elevated); color: var(--eiva-text-toned);
}
.eiva-orders__status--completed, .eiva-orders__status--processing { background: var(--eiva-primary-soft); color: var(--eiva-primary); }
.eiva-orders__status--on-hold { background: var(--eiva-bg-muted); color: var(--eiva-text-toned); }
.eiva-orders__status--cancelled, .eiva-orders__status--failed { background: var(--eiva-error-soft); color: var(--eiva-red-600); }
.eiva-orders__meta { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; line-height: 18px; color: var(--eiva-text-toned); }
.eiva-orders__meta li { font-family: var(--eiva-font-mono); unicode-bidi: isolate; }
.eiva-orders__thumbs { display: flex; gap: 6px; margin-top: 12px; }
.eiva-orders__thumbs img { width: 48px; height: 48px; border-radius: var(--eiva-radius); object-fit: contain; background: var(--eiva-bg-elevated); }
.eiva-orders__card-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 20px; background: var(--eiva-bg-muted); box-shadow: inset 0 1px 0 var(--eiva-border); }
.eiva-orders__action { font-size: 13px; font-weight: 500; color: var(--eiva-primary); }
.eiva-orders__action.pay { font-weight: 600; }
.eiva-orders__pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.eiva-orders__page { padding: 8px 16px; border-radius: 999px; background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border); font-size: 13px; color: var(--eiva-text-toned); }
.eiva-orders__empty { text-align: center; }

/* جزئیات سفارش (view-order) */
.eiva-order-view { display: flex; flex-direction: column; gap: 16px; }
.eiva-order-view__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eiva-order-view__back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--eiva-text-muted); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--eiva-border); }
.eiva-order-view__back svg { width: 14px; height: 14px; }
.eiva-order-view__back:hover { color: var(--eiva-text-highlighted); }
.eiva-order-view__title { font-size: 22px; line-height: 28px; font-weight: 600; margin: 0; color: var(--eiva-text-highlighted); font-family: var(--eiva-font-mono); unicode-bidi: isolate; }
.eiva-order-view__info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eiva-order-view__info-field { display: flex; flex-direction: column; gap: 4px; }
.eiva-order-view__info-label { font-size: 12px; line-height: 16px; color: var(--eiva-text-dimmed); }
.eiva-order-view__info-value { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--eiva-text-highlighted); }
.eiva-order-view__info-row { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; box-shadow: inset 0 1px 0 var(--eiva-border); }
.eiva-order-view__status { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--eiva-bg-elevated); color: var(--eiva-text-toned); }
.eiva-order-view__status--completed, .eiva-order-view__status--processing { background: var(--eiva-primary-soft); color: var(--eiva-primary); }
.eiva-order-view__history summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--eiva-primary); }
.eiva-order-view__history-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.eiva-order-view__history-date { font-size: 12px; color: var(--eiva-text-dimmed); margin: 0; font-family: var(--eiva-font-mono); }
.eiva-order-view__history-text { font-size: 13px; line-height: 20px; color: var(--eiva-text-toned); }
.eiva-order-view__items-card { gap: 16px; }
.eiva-order-view__items-title { font-size: 16px; font-weight: 600; margin: 0; color: var(--eiva-text-highlighted); }
.eiva-order-view__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.eiva-order-view__item { display: flex; align-items: center; gap: 12px; }
.eiva-order-view__item-img { flex: none; }
.eiva-order-view__item-img img { width: 64px; height: 64px; border-radius: var(--eiva-radius); object-fit: contain; background: var(--eiva-bg-elevated); }
.eiva-order-view__item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.eiva-order-view__item-name { font-size: 14px; font-weight: 500; color: var(--eiva-text-highlighted); }
.eiva-order-view__item-attrs { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--eiva-text-muted); }
.eiva-order-view__item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.eiva-order-view__item-qty { font-size: 12px; color: var(--eiva-text-muted); font-family: var(--eiva-font-mono); unicode-bidi: isolate; }
.eiva-order-view__item-price { font-size: 14px; font-weight: 500; color: var(--eiva-text-highlighted); font-family: var(--eiva-font-mono); unicode-bidi: isolate; }
.eiva-order-view__totals { margin: 0; padding-top: 12px; display: grid; gap: 8px; box-shadow: inset 0 1px 0 var(--eiva-border); }
.eiva-order-view__total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eiva-order-view__total dt { font-size: 13px; color: var(--eiva-text-muted); }
.eiva-order-view__total dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--eiva-text-highlighted); font-family: var(--eiva-font-mono); unicode-bidi: isolate; }

/* فرم آدرس (edit-address) */
.eiva-address-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.eiva-address-form__grid .form-row-first { grid-column: auto; }
.eiva-address-form__grid .form-row-wide { grid-column: 1 / -1; }
.eiva-address-form__actions { display: flex; align-items: center; gap: 10px; }
.eiva-address-form__cancel { font-size: 13px; color: var(--eiva-text-muted); }

/* فرم ویرایش حساب (edit-account) */
.eiva-account-edit-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 16px; }
.eiva-account-edit-form__grid .form-row-wide { grid-column: 1 / -1; }
.eiva-account-edit-form__password { border: 0; padding: 0; margin: 0 0 16px; }
.eiva-account-edit-form__password legend { font-size: 13px; font-weight: 600; color: var(--eiva-text-toned); padding: 0 0 8px; }
.eiva-account-edit-form__actions { display: flex; align-items: center; gap: 10px; }

/* ورود OTP (مهمان) — مرجع خط ۱۰۱۳: کارت وسط‌چین */
.eiva-account-auth { grid-column: 1 / -1; display: flex; justify-content: center; padding: 24px 0; }
.eiva-account-auth .eiva-auth-box { width: 100%; max-width: 440px; }
.eiva-auth-box {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border);
  padding: 32px 24px; display: flex; flex-direction: column; gap: 14px; text-align: center;
}
.eiva-auth-box h2 { font-size: 16px; line-height: 24px; font-weight: 600; margin: 0; color: var(--eiva-text-highlighted); }
.auth-lead { margin: 0; font-size: 14px; line-height: 20px; color: var(--eiva-text-muted); }
.eiva-auth-box .field { display: flex; flex-direction: column; gap: 6px; text-align: right; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--eiva-text-muted); }
.eiva-auth-box input {
  width: 100%; height: 40px; border: 0; border-radius: var(--eiva-radius); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border-accented); padding-inline: 12px;
  font-size: 14px; color: var(--eiva-text-highlighted); transition: box-shadow var(--eiva-transition); font-family: inherit;
}
.eiva-auth-box input[type="tel"] { font-family: var(--eiva-font-mono); }
.auth-code { font-family: var(--eiva-font-mono); unicode-bidi: isolate; letter-spacing: 4px; text-align: center; }
.eiva-auth-box input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--eiva-primary); }
.auth-message { margin: 0; font-size: 13px; line-height: 20px; color: var(--eiva-text-muted); min-height: 18px; }
.auth-message.is-error { color: var(--eiva-red-600); }
.auth-message.is-ok { color: var(--eiva-primary); }

/* کلاس‌های قدیمی بازپوست‌شده (سازگاری؛ قالب‌های فعلی emit نمی‌کنند) */
.account-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.account-nav { border-radius: var(--eiva-radius-lg); background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 10px; }
.account-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.account-nav a {
  display: block; padding: 8px 12px; border-radius: var(--eiva-radius);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--eiva-text-toned);
  transition: color var(--eiva-transition), background-color var(--eiva-transition);
}
.account-nav a:hover { background: var(--eiva-bg-elevated); color: var(--eiva-text-highlighted); }
.account-nav .is-active a { background: var(--eiva-primary-soft); color: var(--eiva-primary); }
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-table th, .order-table td { padding: 12px 10px; box-shadow: inset 0 -1px 0 var(--eiva-border); text-align: right; }
.order-table th { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--eiva-text-muted); }
.order-status { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--eiva-bg-elevated); color: var(--eiva-text-toned); }
.order-status.completed { background: var(--eiva-primary-soft); color: var(--eiva-primary); }
.pet-profile-card { border-radius: var(--eiva-radius-lg); background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 20px; display: grid; gap: 12px; }
.pet-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pet-field label { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--eiva-text-muted); margin-bottom: 4px; }
.pet-field input, .pet-field select {
  width: 100%; height: 32px; border: 0; border-radius: var(--eiva-radius); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border-accented); padding-inline: 10px; font-size: 14px; font-family: inherit;
}
.pet-field input:focus, .pet-field select:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--eiva-primary); }
.food-reminder {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-primary-soft);
  box-shadow: inset 0 0 0 1px var(--eiva-primary-soft-2);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 14px; line-height: 20px; color: var(--eiva-text-toned);
}

/* ورود OTP */
.otp-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: color-mix(in oklab, var(--eiva-slate-900) 45%, transparent); }
.otp-modal[hidden] { display: none !important; }
.otp-box {
  width: min(400px, 92vw); background: var(--eiva-bg); border-radius: var(--eiva-radius-xl);
  padding: 28px; box-shadow: var(--eiva-shadow-lg); display: grid; gap: 14px;
}
.otp-box h2 { font-size: 18px; line-height: 24px; font-weight: 600; margin: 0; }
.otp-box p { margin: 0; font-size: 14px; line-height: 20px; color: var(--eiva-text-muted); }
.otp-box input {
  height: 40px; border: 0; border-radius: var(--eiva-radius); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border-accented); text-align: center; font-size: 16px;
  font-family: var(--eiva-font-mono); unicode-bidi: isolate; letter-spacing: 4px; color: var(--eiva-text-highlighted);
}
.otp-box input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--eiva-primary); }
.otp-box { position: relative; }
.otp-box .eiva-auth-box { padding: 0; background: none; box-shadow: none; }
.otp-box__close {
  position: absolute; top: 16px; inset-inline-end: 16px; width: 32px; height: 32px;
  border: 0; border-radius: 999px; background: var(--eiva-bg-muted); color: var(--eiva-text-toned);
  display: grid; place-items: center; cursor: pointer; transition: color var(--eiva-transition), background-color var(--eiva-transition);
}
.otp-box__close:hover { background: var(--eiva-bg-elevated); color: var(--eiva-text-highlighted); }
.otp-box__close svg { width: 16px; height: 16px; }
/* دکمهٔ ورود هدر (مهمان) + پیل حساب (واردشده) — مرجع خط ۷۷ */
.account-login-btn { display: inline-flex; align-items: center; gap: 6px; }
.account-login-btn .i { width: 16px; height: 16px; }
.account-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
  border-radius: 999px; background: var(--eiva-bg-elevated); color: var(--eiva-text-highlighted);
  text-decoration: none; transition: background-color var(--eiva-transition);
}
.account-pill:hover { background: var(--eiva-bg-accented); }
.account-pill__avatar {
  width: 24px; height: 24px; flex: none; border-radius: 999px; background: var(--eiva-primary-soft);
  color: var(--eiva-primary); display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.account-pill__name { font-size: 14px; line-height: 20px; font-weight: 500; }

/* ---------- مشاور ---------- */
.advisor-box {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.advisor-head { display: flex; align-items: center; gap: 12px; }
.advisor-head-ico {
  width: 40px; height: 40px; flex: none; border-radius: 999px;
  background: var(--eiva-primary-soft); display: grid; place-items: center; color: var(--eiva-primary);
}
.advisor-head-ico svg { width: 20px; height: 20px; }
.advisor-head-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.advisor-head-text b { font-size: 16px; font-weight: 600; color: var(--eiva-text-highlighted); }
.advisor-head-text span { font-size: 13px; line-height: 18px; color: var(--eiva-text-muted); }
.advisor-progress-row { display: flex; align-items: center; gap: 8px; }
.advisor-step-label { flex: none; font-size: 13px; font-weight: 500; color: var(--eiva-text-muted); }
.advisor-progress { flex: 1; height: 4px; border-radius: 999px; background: var(--eiva-bg-elevated); overflow: hidden; }
.advisor-progress span { display: block; height: 100%; background: var(--eiva-primary); transition: width var(--eiva-duration) var(--eiva-ease); }
.advisor-q-title { display: block; font-size: 16px; line-height: 24px; font-weight: 600; margin: 0 0 14px; color: var(--eiva-text-highlighted); }
.advisor-q-grid { display: grid; gap: 8px; }
.advisor-q-grid--2 { grid-template-columns: 1fr 1fr; }
.advisor-q-grid--3 { grid-template-columns: repeat(3, 1fr); }
.advisor-q-grid--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.advisor-q-opt {
  padding: 14px; border: 0; border-radius: var(--eiva-radius); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border); cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 500; color: var(--eiva-text-highlighted);
  transition: background-color var(--eiva-transition), box-shadow var(--eiva-transition);
}
.advisor-q-grid--chips .advisor-q-opt { padding: 10px 16px; border-radius: 999px; }
.advisor-q-opt:hover { background: var(--eiva-bg-muted); box-shadow: inset 0 0 0 1px var(--eiva-border-accented); }
.advisor-note { font-size: 12px; line-height: 16px; color: var(--eiva-text-dimmed); margin: 0; }

/* تعویض حالت کوئیز/گفتگو — فقط وقتی هوش مصنوعی فعال و کاربر واردشده باشد */
.advisor-mode-toggle { display: flex; flex: none; gap: 2px; padding: 3px; border-radius: 999px; background: var(--eiva-bg-muted); }
.advisor-mode-btn {
  padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500; color: var(--eiva-text-muted);
  transition: background-color var(--eiva-transition), color var(--eiva-transition);
}
.advisor-mode-btn.is-active { background: var(--eiva-bg); color: var(--eiva-primary); box-shadow: inset 0 0 0 1px var(--eiva-border); }

/* گفت‌وگوی واقعی مشاور */
.advisor-chat[hidden] { display: none; }
.advisor-chat { display: flex; flex-direction: column; gap: 12px; }
.advisor-chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; padding-inline-end: 4px; }
.advisor-chat-msg { max-width: 85%; padding: 10px 14px; border-radius: var(--eiva-radius-lg); font-size: 14px; line-height: 22px; }
.advisor-chat-msg--bot { align-self: flex-start; background: var(--eiva-bg-muted); color: var(--eiva-text-highlighted); }
.advisor-chat-msg--user { align-self: flex-end; background: var(--eiva-primary-soft); color: var(--eiva-text-highlighted); }
.advisor-chat-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.advisor-chat-error { margin: 0; font-size: 13px; color: var(--eiva-red-600); }
.advisor-chat-error[hidden] { display: none; }
.advisor-chat-row { display: flex; gap: 8px; }
.advisor-chat-input {
  flex: 1; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--eiva-border); background: var(--eiva-bg);
  padding: 10px 16px; font-size: 14px; color: var(--eiva-text-highlighted); font-family: inherit;
}
.advisor-chat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.advisor-chat-reset { font-size: 12px; color: var(--eiva-text-muted); transition: color var(--eiva-transition); }
.advisor-chat-reset:hover { color: var(--eiva-text-highlighted); }
.advisor-chat-foot span { font-size: 12px; color: var(--eiva-text-dimmed); }

@media (max-width: 640px) {
  .advisor-chat-msg { max-width: 92%; }
}
.advisor-callout {
  padding: 14px 16px; border-radius: var(--eiva-radius); background: var(--eiva-primary-soft);
  box-shadow: inset 0 0 0 1px var(--eiva-primary-soft-2); font-size: 14px; line-height: 20px; color: var(--eiva-text-toned);
}
.advisor-result-heading { display: block; font-size: 16px; font-weight: 600; color: var(--eiva-text-highlighted); margin: 4px 0; }
.advisor-result-grid { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.advisor-result-card {
  display: flex; gap: 12px; border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 12px;
}
.advisor-result-thumb {
  flex: none; width: 64px; height: 64px; border-radius: var(--eiva-radius); overflow: hidden;
  background: var(--eiva-bg-elevated); display: block;
}
.advisor-result-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.advisor-result-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.advisor-result-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.advisor-result-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.advisor-result-id .pname { font-size: 14px; font-weight: 500; color: var(--eiva-text-highlighted); }
.advisor-result-top .pprice { font-size: 14px; font-weight: 600; color: var(--eiva-text-highlighted); white-space: nowrap; }
.advisor-result-why { margin: 0; font-size: 13px; line-height: 18px; color: var(--eiva-text-muted); }
.advisor-result-actions { display: flex; gap: 8px; }
.advisor-disclaimer {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--eiva-radius);
  background: var(--eiva-bg-muted); box-shadow: inset 0 0 0 1px var(--eiva-border);
  font-size: 13px; line-height: 18px; color: var(--eiva-text-muted);
}
.advisor-disclaimer-phone { color: var(--eiva-text-toned); }
.advisor-restart {
  align-self: flex-start; border: 0; background: none; padding: 4px; color: var(--eiva-primary);
  font-size: 13px; line-height: 18px; cursor: pointer; font-family: inherit;
}

/* ---------- دانشنامه/مقالات ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.article-card {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit;
  transition: box-shadow var(--eiva-transition);
}
.article-card:hover { box-shadow: inset 0 0 0 1px var(--eiva-border-accented); }
.article-card__tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.article-card h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--eiva-text-highlighted); }
.article-card p { margin: 0; font-size: 14px; line-height: 20px; color: var(--eiva-text-muted); }
.article-readtime { font-size: 12px; line-height: 16px; color: var(--eiva-text-dimmed); }
.article-back {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px;
  border: 0; background: none; padding: 4px; color: var(--eiva-primary);
  font-size: 13px; line-height: 18px; text-decoration: none;
}
.article-back svg { width: 14px; height: 14px; }
.article-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.article-head h1 { margin: 0; font-size: 26px; }
/* متن بلند مقاله — اینجا خوانایی مهم‌تر از تراکم رابط است */
.article-body { max-width: 68ch; font-size: 16px; line-height: 28px; color: var(--eiva-text); }
.article-body h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 32px 0 12px; }
.article-body p { margin: 0 0 16px; }

/* ---------- دربارهٔ ما ---------- */
.about-page { display: flex; flex-direction: column; gap: 32px; max-width: 800px; }
.about-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.about-info-card {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 20px;
  display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; color: var(--eiva-text-toned);
}
.about-info-card b { font-size: 15px; color: var(--eiva-text-highlighted); }
.about-info-card .about-info-sub { font-size: 13px; line-height: 18px; color: var(--eiva-text-muted); }
.about-info-ico {
  width: 36px; height: 36px; border-radius: 999px; background: var(--eiva-primary-soft);
  color: var(--eiva-primary); display: grid; place-items: center;
}
.about-info-ico svg { width: 18px; height: 18px; }
.about-why {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg-muted);
  box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.about-why > b { font-size: 16px; color: var(--eiva-text-highlighted); }
.about-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.about-why-item { display: flex; gap: 10px; align-items: start; font-size: 14px; line-height: 20px; color: var(--eiva-text-toned); }
.about-why-ico {
  width: 24px; height: 24px; flex: none; border-radius: 999px; background: var(--eiva-primary-soft);
  color: var(--eiva-primary); display: grid; place-items: center;
}
.about-why-ico svg { width: 14px; height: 14px; }
.about-map {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border); overflow: hidden;
}
.about-map-head {
  padding: 16px 20px; box-shadow: inset 0 -1px 0 var(--eiva-border);
  display: flex; align-items: center; gap: 8px; color: var(--eiva-text-highlighted);
}
.about-map-head svg { width: 18px; height: 18px; color: var(--eiva-primary); }
.about-map-head b { font-size: 15px; }
.about-map-body {
  height: 160px; background: var(--eiva-bg-muted); display: grid; place-items: center;
  color: var(--eiva-text-dimmed); font-size: 14px;
}
.about-social {
  border-radius: var(--eiva-radius-lg); background: var(--eiva-bg);
  box-shadow: inset 0 0 0 1px var(--eiva-border); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.about-social > b { font-size: 16px; color: var(--eiva-text-highlighted); }
.about-social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.about-social-row a { font-size: 14px; color: var(--eiva-primary); text-decoration: none; }

/* ---------- فوتر ---------- */
.site-footer { background: var(--eiva-bg-muted); box-shadow: inset 0 1px 0 var(--eiva-border); padding: 48px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.site-footer h3 { font-size: 14px; line-height: 20px; font-weight: 600; margin: 0 0 12px; color: var(--eiva-text-highlighted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 20px; color: var(--eiva-text-muted); }
.site-footer a { color: var(--eiva-text-muted); }
.site-footer a:hover { color: var(--eiva-text-highlighted); }
.footer-bottom {
  margin-top: 32px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--eiva-border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; line-height: 16px; color: var(--eiva-text-dimmed);
}

/* ---------- آیکون‌های lucide (inline-mask) ---------- */
:root {
  --eiva-ico-user: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/%3E%3Ccircle cx="12" cy="7" r="4"/%3E%3C/svg%3E');
  --eiva-ico-cart: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="8" cy="21" r="1"/%3E%3Ccircle cx="19" cy="21" r="1"/%3E%3Cpath d="M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"/%3E%3C/svg%3E');
  --eiva-ico-ticket: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z"/%3E%3Cpath d="m9 15 6-6"/%3E%3Ccircle cx="9.5" cy="9.5" r=".5" fill="currentColor"/%3E%3Ccircle cx="14.5" cy="14.5" r=".5" fill="currentColor"/%3E%3C/svg%3E');
  --eiva-ico-sun: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="4"/%3E%3Cpath d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/%3E%3C/svg%3E');
  --eiva-ico-moon: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/%3E%3C/svg%3E');
  --eiva-ico-search: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2390a1b9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="11" cy="11" r="8"/%3E%3Cpath d="m21 21-4.3-4.3"/%3E%3C/svg%3E');
  --eiva-ico-card: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect width="20" height="14" x="2" y="5" rx="2"/%3E%3Cline x1="2" x2="22" y1="10" y2="10"/%3E%3C/svg%3E');
}

/* ---------- رسپانسیو ----------
 * گریدها auto-fit/minmax هستند و خودشان می‌شکنند؛ اینجا فقط چیدمان‌های
 * دوستونیِ ثابت و رفتار هدر نیاز به breakpoint دارند.
 */
@media (max-width: 1024px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-aside { position: static; }
}

/* ---------- سبد خرید (مرجع خط ۶۰۰) ---------- */
.eiva-wc-cart { display: flex; flex-direction: column; gap: 24px; }
.eiva-wc-cart__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eiva-wc-cart__head .breadcrumb { font-size: 12px; color: var(--eiva-text-dimmed); margin-bottom: 8px; }
.eiva-wc-cart__title { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 600; margin: 0; color: var(--eiva-text-highlighted); }
.eiva-wc-cart__count { min-width: 28px; height: 28px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 999px; background: var(--eiva-primary); color: #fff; font-size: 13px; font-weight: 600; font-family: var(--eiva-font-mono); }
.eiva-wc-cart__line { margin: 4px 0 0 0; font-size: 14px; color: var(--eiva-text-muted); }
.eiva-wc-cart__back { font-size: 13px; color: var(--eiva-text-muted); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--eiva-border); }
.cart-h-ico { width: 24px; height: 24px; background: var(--eiva-primary); -webkit-mask: var(--eiva-ico-cart) center/contain no-repeat; mask: var(--eiva-ico-cart) center/contain no-repeat; }

/* گرید دوستونی: اقلام + خلاصه (340px) */
.eiva-wc-cart__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }

/* کارت اقلام سبد */
.cart-lines-card { background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border); border-radius: var(--eiva-radius-lg, 16px); overflow: hidden; }
.cart-lines-head { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--eiva-bg-muted); box-shadow: inset 0 -1px 0 var(--eiva-border); font-size: 12px; font-weight: 500; color: var(--eiva-text-muted); }
.cart-lines-ico { width: 16px; height: 16px; background: var(--eiva-text-muted); -webkit-mask: var(--eiva-ico-cart) center/contain no-repeat; mask: var(--eiva-ico-cart) center/contain no-repeat; }

/* ردیف خطی: 72px | 1fr | auto | auto — مرجع خط ۶۲۶ */
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 20px; box-shadow: inset 0 1px 0 var(--eiva-border); }
.cart-line-thumb { width: 72px; height: 72px; border-radius: var(--eiva-radius); background: var(--eiva-bg-elevated); display: grid; place-items: center; overflow: hidden; }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-line-name { font-size: 14px; font-weight: 500; color: var(--eiva-text-highlighted); }
.cart-line-name a { color: inherit; }
.cart-line-brand { font-size: 12px; color: var(--eiva-text-dimmed); font-family: var(--eiva-font-mono); unicode-bidi: isolate; }
.cart-line-price { font-size: 13px; color: var(--eiva-text-toned, var(--eiva-text-muted)); }
.cart-line-qty { display: flex; align-items: center; gap: 4px; }
.cart-line-qty input[type="number"], .cart-line-qty .quantity input[type="text"] { width: 44px; min-width: 44px; text-align: center; font-family: var(--eiva-font-mono); font-weight: 600; }
.cart-line-qty .quantity { display: flex; align-items: center; gap: 4px; }
.cart-line-qty .quantity .plus, .cart-line-qty .quantity .minus,
.cart-line-qty .quantity button { width: 28px; height: 28px; border: 0; border-radius: 999px; background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border-accented, var(--eiva-border)); color: var(--eiva-text-toned, var(--eiva-text-muted)); font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.cart-line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-line-total { font-size: 14px; font-weight: 600; color: var(--eiva-text-highlighted); font-family: var(--eiva-font-mono); }
.cart-line-remove { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--eiva-text-dimmed); }
.cart-line-remove:hover { color: var(--eiva-red, #dc2626); }

/* پانل: کوپن + به‌روزرسانی */
.cart-lines-foot { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; background: var(--eiva-bg-muted); box-shadow: inset 0 1px 0 var(--eiva-border); }
.cart-coupon { display: flex; flex-direction: column; gap: 10px; }
.cart-coupon-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--eiva-text-highlighted); }
.cart-coupon-ico { width: 16px; height: 16px; background: var(--eiva-primary); -webkit-mask: var(--eiva-ico-ticket) center/contain no-repeat; mask: var(--eiva-ico-ticket) center/contain no-repeat; }
.cart-coupon-row { display: flex; gap: 8px; }
.cart-coupon-row input[type="text"] { flex: 1; height: 36px; padding: 6px 12px; border: 0; border-radius: var(--eiva-radius); background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border-accented, var(--eiva-border)); font: inherit; font-size: 14px; color: var(--eiva-text-highlighted); }
.cart-coupon-note { font-size: 12px; color: var(--eiva-text-muted); }
.cart-coupon-note .code { color: var(--eiva-orange, #ea580c); font-family: var(--eiva-font-mono); }
.cart-update-btn { align-self: flex-start; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border); color: var(--eiva-text-highlighted); font: inherit; font-size: 13px; cursor: pointer; }

/* سایدبار خلاصه */
.cart-side { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border); border-radius: var(--eiva-radius-lg, 16px); }
.cart-side .cart-collaterals .cart_totals { padding: 0; box-shadow: none; }
.cart-side .cart-collaterals h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.cart-side .shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart-side .shop_table td, .cart-side .shop_table th { padding: 8px 0; box-shadow: inset 0 -1px 0 var(--eiva-border); text-align: right; }
.cart-side .cart_totals .amount { font-weight: 600; font-family: var(--eiva-font-mono); }
.cart-side .checkout-button { display: none; } /* دکمهٔ native جای خودش را به CTA بالایی می‌دهد */
.cart-checkout-btn { justify-content: center; }
.cart-shop-btn { justify-content: center; }

@media (max-width: 768px) {
  :root { --eiva-gutter: 16px; }
  .main-nav { display: none; }
  .header-search { flex-basis: 150px; }
  .burger { display: inline-flex; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-single { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .eiva-checkout__side { position: static; }
  .eiva-checkout__title { font-size: 24px; line-height: 30px; }
  .account-grid { grid-template-columns: 1fr; }
  /* حساب کاربری — تک‌ستونه؛ ناوبری افقی اسکرول، هدر دسکتاپ مخفی */
  .eiva-account { grid-template-columns: 1fr; gap: 16px; }
  .eiva-account__head { display: none; }
  .eiva-account__nav { padding: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .eiva-account__nav ul { display: flex; gap: 4px; width: max-content; }
  .eiva-account__nav a { padding: 8px 12px; white-space: nowrap; }
  .eiva-account__nav--ep-dashboard ~ .eiva-account__content .eiva-account__mobile-profile,
  .eiva-account--ep-dashboard .eiva-account__mobile-profile { display: block; margin: -8px 0 0; }
  .eiva-account__mobile-back { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--eiva-radius); background: var(--eiva-bg-muted); font-size: 13px; font-weight: 500; color: var(--eiva-text-toned); grid-column: 1 / -1; }
  .eiva-account__mobile-back svg { width: 15px; height: 15px; }
  .eiva-account--ep-dashboard .eiva-account__mobile-back { display: none; }
  .eiva-account__mobile-profile-inner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--eiva-radius-lg); background: var(--eiva-bg); box-shadow: inset 0 0 0 1px var(--eiva-border); }
  .eiva-account__mobile-avatar { width: 44px; height: 44px; flex: none; border-radius: 999px; background: var(--eiva-primary-soft); color: var(--eiva-primary); display: grid; place-items: center; }
  .eiva-account__mobile-avatar svg { width: 20px; height: 20px; }
  .eiva-account__mobile-identity p { margin: 0; }
  .eiva-account__mobile-phone { font-size: 14px; font-weight: 600; color: var(--eiva-text-highlighted); font-family: var(--eiva-font-mono); unicode-bidi: isolate; }
  .eiva-account__mobile-name { font-size: 12px; color: var(--eiva-text-muted); }
  .eiva-account-info__grid, .eiva-order-view__info-grid, .eiva-address-form__grid { grid-template-columns: 1fr; }
  .eiva-account-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .eiva-account-stat { padding: 12px 8px; }
  .eiva-account-stat__value { font-size: 17px; line-height: 24px; }
  .food-reminder { align-items: flex-start; }
  .food-reminder .btn { width: 100%; justify-content: center; }
  .pet-profile-grid { grid-template-columns: 1fr; }
  .eiva-wc-cart__grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; }
  .cart-line-thumb { width: 56px; height: 56px; }
  .cart-line-qty { grid-column: 1; }
  .cart-line-end { grid-column: 2; align-items: flex-start; }
  section { padding: 40px 0; }
  .hero-copy h1 { font-size: 28px; line-height: 36px; }
  .hero-copy .lede { font-size: 16px; line-height: 26px; }
}
@media (max-width: 420px) {
  .header-search { display: none; }
  .product-grid { gap: 10px; }
  .product-card .thumb { height: 130px; }
}

/* حالت خالی سبد — ردیف CTA */
.eiva-wc-cart-empty__cta-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
