/* ═════════════════ IDBAMA theme ═════════════════ */
:root {
  --bg: #f4f7fc;
  --surface: #fff;
  --surface-2: #f7f9fd;
  --glass: rgba(255, 255, 255, .78);
  --line: #e3e9f3;
  --line-2: #d3dcea;
  --ink: #0e1726;
  --ink-2: #47536a;
  --ink-3: #7b879c;
  --brand: #0b6bff;
  --brand-hover: #0857d1;
  --brand-soft: #e7f0ff;
  --ok: #12a46b;
  --ok-soft: #e3f7ee;
  --warn: #b7791f;
  --warn-soft: #fff4dc;
  --bad: #e5484d;
  --bad-soft: #ffeceb;
  --r: 20px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 64, .04), 0 8px 24px rgba(16, 32, 64, .06);
  --shadow-lg: 0 24px 60px rgba(11, 60, 150, .14);
  --font: 'Vazirmatn', 'Vazir', 'IRANSansX', 'IRANSans', Tahoma, sans-serif;
  --header-h: 72px;
  --hover-grey: #eef1f6;
  --brand-soft-2: #d6e5ff;
  --ok-ink: #0b6b46;
  --info-ink: #0a4fbf;
  --bad-ink: #a3262b;
  --hero-1: #dce9ff;
  --hero-2: #eef4ff;
  --hero-3: #f7faff;
  --on-ink: #fff;
  color-scheme: light;
}
/* ─── حالت تاریک ─── */
:root[data-theme="dark"] {
  --bg: #0a111e;
  --surface: #111b2c;
  --surface-2: #162236;
  --glass: rgba(14, 23, 38, .82);
  --line: #1f2c42;
  --line-2: #2c3d59;
  --ink: #eef3fb;
  --ink-2: #b4c0d4;
  --ink-3: #7f8ca4;
  --brand: #3d8bff;
  --brand-hover: #5c9dff;
  --brand-soft: #14284a;
  --brand-soft-2: #1b3560;
  --ok: #2fbf84;
  --ok-soft: #0f2e24;
  --warn: #e8b04b;
  --warn-soft: #33270b;
  --bad: #f06a6e;
  --bad-soft: #3a1618;
  --ok-ink: #7fe0b6;
  --info-ink: #9cc2ff;
  --bad-ink: #ffb0b2;
  --hover-grey: #1c2a42;
  --hero-1: #13284d;
  --hero-2: #0f1c33;
  --hero-3: #0c1628;
  --on-ink: #0a111e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
.idb-when-dark { display: none !important; }
:root[data-theme="dark"] .idb-when-dark { display: inline-block !important; }
:root[data-theme="dark"] .idb-when-light { display: none !important; }
body { transition: background-color .25s, color .25s; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:where(a:hover) { color: var(--brand); } /* وزن صفر: رنگ متن دکمه‌ها در هاور عوض نمی‌شود */
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.45; font-weight: 800; color: var(--ink); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(11, 107, 255, .45); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.idb-skip { position: absolute; top: -60px; right: 16px; z-index: 1000; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px; }
.idb-skip:focus { top: 8px; color: #fff; }
.idb-i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.idb-i-lg { width: 28px; height: 28px; }
.idb-ltr { direction: ltr; unicode-bidi: isolate; }
.idb-muted { color: var(--ink-3); }
.idb-center { text-align: center; }
.idb-mt { margin-top: 20px; }
[hidden] { display: none !important; }

.idb-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .idb-wrap { padding-inline: 24px; } }
.idb-narrow { max-width: 880px; }
.idb-main { min-height: 50vh; padding-bottom: 48px; }
.idb-builder { padding-bottom: 0; }
.idb-section { padding-block: 56px; }
.idb-section-tight { padding-block: 32px; }
.idb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.idb-head h2 { font-size: clamp(20px, 2.6vw, 28px); margin: 0; }
.idb-head p { color: var(--ink-3); margin: 4px 0 0; }
.idb-more { color: var(--brand); font-weight: 700; font-size: 14px; white-space: nowrap; }
.idb-card-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.idb-pad { padding: 20px; }
@media (min-width: 768px) { .idb-pad { padding: 28px; } }
.idb-box-title { font-size: 18px; margin-bottom: 16px; }
.idb-sub-title { font-size: 18px; margin: 28px 0 14px; }

/* ─── دکمه، چیپ، فرم ───
   استایل‌های عمومی عناصر با :where() نوشته شده‌اند (وزن صفر)، تا استایل خود افزونه‌ها
   مثل پنجرهٔ ورود Digits و فیلدهای TM Extra Product Options همیشه اولویت داشته باشد. */
.idb-btn, :where(.button, button.button, a.button, input.button, input[type="submit"], .wc-block-components-button) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 15px; line-height: 1.4; border: 1px solid transparent; background: var(--brand); color: #fff; cursor: pointer;
  transition: background .2s, transform .15s, border-color .2s; text-align: center; white-space: nowrap; text-decoration: none;
}
.idb-btn:hover, :where(.button, input[type="submit"]):hover { background: var(--brand-hover); color: #fff; }
.idb-btn:active, :where(.button):active { transform: scale(.98); }
.idb-btn-primary { box-shadow: 0 8px 20px rgba(11, 107, 255, .28); }
/* دکمه‌های فرعی: در حالت عادی سفید، با هاور کمی طوسی؛ رنگ متن ثابت می‌ماند */
.idb-btn-ghost, .button.wc-backward, .woocommerce-cart .button[name="update_cart"] { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.idb-btn-ghost:hover, .idb-btn-ghost:focus-visible, .button.wc-backward:hover, .woocommerce-cart .button[name="update_cart"]:hover { background: var(--hover-grey); color: var(--ink); border-color: var(--line-2); }
.idb-btn-soft { background: var(--brand-soft); color: var(--brand); }
.idb-btn-soft:hover { background: var(--brand-soft-2); color: var(--brand); }
.idb-btn-glass { background: rgba(255, 255, 255, .14); color: #fff; }
.idb-btn-glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.idb-btn-sm { min-height: 40px; padding: 6px 14px; font-size: 14px; border-radius: 12px; }
.idb-btn-block { width: 100%; }
:where(.button:disabled, .button.disabled, .button[disabled]), .idb-btn[disabled] { opacity: .5; cursor: not-allowed; }
:where(.button.loading) { opacity: .6; pointer-events: none; }
.idb-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); width: fit-content; }
.idb-chip-brand { background: var(--brand-soft); color: var(--brand); }
.idb-chip-glass { background: rgba(255, 255, 255, .12); color: #fff; }
.idb-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.idb-icon-btn { width: 42px; height: 42px; border-radius: 13px; display: inline-grid; place-items: center; position: relative; padding: 0; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: .2s; flex: none; }
.idb-icon-btn:hover { color: var(--brand); border-color: var(--line-2); }
.idb-count { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); line-height: 1; }
.idb-count[data-n="0"], .idb-count:empty { display: none; }
.idb-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.idb-avatar:hover { color: #fff; }

.idb-input, :where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], input[type="date"], select, textarea, .select2-container .select2-selection--single) {
  width: 100%; min-height: 48px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 10px 14px; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; box-shadow: none;
}
:where(textarea), .idb-textarea { min-height: 110px; resize: vertical; }
:where(select) { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b879c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; background-size: 18px; padding-left: 38px; }
.idb-input:focus, :where(input, select, textarea):focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 107, 255, .14); }
.idb-input.is-bad, .woocommerce-invalid input, .woocommerce-invalid select { border-color: var(--bad) !important; }
:where(input[type="checkbox"], input[type="radio"]) { width: 18px; height: 18px; accent-color: var(--brand); vertical-align: middle; margin: 0 0 0 6px; }
:where(label) { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.select2-container .select2-selection--single { display: flex; align-items: center; height: auto; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.5; padding: 0; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; left: 8px; right: auto; }
.select2-dropdown { border-color: var(--line); border-radius: 12px; overflow: hidden; }
.idb-form { display: grid; gap: 12px; }
@media (min-width: 600px) { .idb-form { grid-template-columns: 1fr 1fr; } .idb-full { grid-column: 1 / -1; } }
.idb-field { display: grid; gap: 6px; }
/* بدون جابه‌جایی با left منفی؛ در صفحهٔ RTL باعث اسکرول افقی می‌شد */
.idb-hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0 !important; opacity: 0; }
.idb-err { color: var(--bad); font-size: 13.5px; margin: 0; }
.idb-success { text-align: center; padding: 24px; display: grid; justify-items: center; gap: 6px; }
.idb-success h3 { margin: 6px 0 0; font-size: 18px; }
.idb-success p { color: var(--ink-3); margin: 0; }
.idb-success-ic, .idb-thanks-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.idb-success-ic .idb-i, .idb-thanks-ic .idb-i { width: 32px; height: 32px; stroke-width: 2.4; }

/* ─── هدر ─── */
.idb-header-wrap { position: sticky; top: 0; z-index: 90; }
.admin-bar .idb-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .idb-header-wrap { top: 0; } }
.idb-topbar { background: #0b1220; color: #cfd8e8; font-size: 13px; text-align: center; padding: 7px 16px; line-height: 1.6; }
.idb-topbar b, .idb-topbar strong { color: #ffd166; }
.idb-topbar a { color: #8db8ff; }
.idb-header { background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid var(--line); }
.idb-header-row { min-height: var(--header-h); display: flex; align-items: center; gap: 14px; }
.idb-logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.idb-logo:hover { color: var(--ink); }
.idb-logo-img { max-height: 46px; width: auto; display: block; }
.idb-logo-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #3d8bff, #0b5fe6); box-shadow: 0 6px 16px rgba(11, 107, 255, .35); }
.idb-logo-mark .idb-i { width: 24px; height: 24px; }
.idb-logo-text b { display: block; font-size: 17px; font-weight: 900; line-height: 1.2; }
.idb-logo-text small { display: block; font-size: 10px; letter-spacing: .18em; color: var(--ink-3); direction: ltr; text-align: right; line-height: 1.4; }
.idb-nav { display: none; }
.idb-nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.idb-nav-list > li { position: relative; }
.idb-nav-list a { display: block; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.idb-nav-list a:hover { background: var(--surface-2); color: var(--ink); }
.idb-nav-list .current-menu-item > a, .idb-nav-list .current-menu-ancestor > a, .idb-nav-list a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.idb-nav-list .sub-menu { position: absolute; top: 100%; right: 0; min-width: 220px; list-style: none; margin: 6px 0 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 5; }
.idb-nav-list li:hover > .sub-menu, .idb-nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.idb-search { position: relative; flex: 1; min-width: 0; max-width: 420px; margin-inline-start: auto; }
.idb-search > .idb-i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.idb-search input[type="search"] { min-height: 44px; padding: 8px 42px 8px 14px; font-size: 14px; -webkit-appearance: none; }
.idb-search-pop { position: absolute; top: calc(100% + 8px); inset-inline: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 100; max-height: 420px; overflow: auto; }
.idb-search-pop.is-open { display: block; }
.idb-search-pop a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--ink); }
.idb-search-pop a:hover, .idb-search-pop a.is-active { background: var(--surface-2); color: var(--ink); }
.idb-search-pop img, .idb-sp-ph { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: var(--brand-soft); }
.idb-search-pop b { display: block; font-size: 14px; line-height: 1.5; }
.idb-search-pop small { color: var(--ink-3); font-size: 12.5px; }
.idb-sp-all { justify-content: center; color: var(--brand) !important; font-weight: 700; font-size: 14px; }
.idb-sp-empty { padding: 14px; color: var(--ink-3); text-align: center; font-size: 14px; }
.idb-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.idb-hide-sm { display: none; }
@media (min-width: 640px) { .idb-hide-sm { display: inline-grid; } }
@media (max-width: 639px) {
  .idb-header-row { flex-wrap: wrap; padding-block: 10px; row-gap: 10px; }
  .idb-header .idb-search { order: 5; flex-basis: 100%; max-width: none; }
  .idb-logo-text small { display: none; }
  .idb-actions { margin-inline-start: auto; }
  .idb-topbar { font-size: 12px; }
}
@media (min-width: 1200px) { .idb-nav { display: block; } .idb-menu-toggle { display: none; } .idb-header .idb-search { margin-inline-start: 8px; } }

/* کشوها (منوی موبایل، سبد، فیلترها) */
.idb-backdrop { position: fixed; inset: 0; background: rgba(5, 12, 25, .45); z-index: 998; }
.idb-drawer { position: fixed; top: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface); z-index: 999; transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; overflow: auto; visibility: hidden; }
.idb-drawer-right { right: 0; transform: translateX(100%); }
.idb-drawer-left { left: 0; transform: translateX(-100%); }
.idb-drawer.is-open { transform: none; visibility: visible; }
.idb-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.idb-drawer-nav { padding: 12px; flex: 1; }
.idb-drawer-list, .idb-drawer-list ul { list-style: none; margin: 0; padding: 0; }
.idb-drawer-list ul { padding-inline-start: 14px; }
.idb-drawer-list a { display: block; padding: 11px 14px; border-radius: 12px; font-weight: 600; }
.idb-drawer-list a:hover, .idb-drawer-list .current-menu-item > a { background: var(--brand-soft); color: var(--brand); }
.idb-drawer-foot { padding: 16px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
body.idb-lock { overflow: hidden; }

/* مینی‌کارت */
.idb-minicart .widget_shopping_cart_content { padding: 8px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.idb-minicart .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; flex: 1; }
.idb-minicart .woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 14px 0 14px 28px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.idb-minicart .woocommerce-mini-cart-item > a:not(.remove) { display: contents; font-weight: 700; color: var(--ink); }
.idb-minicart .woocommerce-mini-cart-item img { grid-row: span 3; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; margin: 0; }
.idb-minicart .woocommerce-mini-cart-item .remove { position: absolute; left: 0; top: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); font-size: 18px; line-height: 1; }
.idb-minicart .woocommerce-mini-cart-item .remove:hover { background: var(--bad-soft); color: var(--bad); }
.idb-minicart .quantity { color: var(--ink-3); font-size: 13px; grid-column: 2; }
.idb-minicart .variation { grid-column: 2; font-size: 12.5px; color: var(--ink-3); margin: 2px 0; }
.idb-minicart .variation dt, .idb-minicart .variation dd { display: inline; margin: 0; }
.idb-minicart .variation dd p { display: inline; margin: 0; }
.idb-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; padding: 16px 0 10px; margin: 0; }
.idb-minicart .woocommerce-mini-cart__buttons { display: grid; gap: 8px; margin: 0; }
.idb-minicart .woocommerce-mini-cart__buttons .button:not(.checkout) { background: var(--surface); color: var(--ink); border-color: var(--line); }
.idb-minicart .woocommerce-mini-cart__empty-message { text-align: center; color: var(--ink-3); padding: 40px 0; }

/* توست */
.idb-toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.idb-toast { background: #0f1a2e; color: #eef3fb; border-radius: 14px; padding: 12px 16px; display: flex; gap: 10px; align-items: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); font-size: 14px; pointer-events: auto; animation: idb-in .3s ease; }
.idb-toast a { color: #8db8ff; font-weight: 700; margin-inline-start: auto; white-space: nowrap; }
.idb-toast .idb-i { color: #4ade80; }
@keyframes idb-in { from { opacity: 0; transform: translateY(12px); } }

/* مسیر و سربرگ */
.idb-crumbs, .woocommerce-breadcrumb { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); padding: 18px 0 6px; margin: 0; }
.idb-crumbs a:hover { color: var(--brand); }
.idb-crumbs span[aria-hidden] { opacity: .5; }
.idb-page-head { padding: 0 0 22px; }
.idb-page-head h1, .idb-shop-head h1, .idb-wc-title { font-size: clamp(22px, 3vw, 32px); margin: 6px 0 4px; }
.idb-page-head p { color: var(--ink-3); margin: 0; }
.idb-cover { border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.idb-cover img { display: block; width: 100%; }

/* ─── کارت محصول ─── */
.idb-grid, ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .idb-grid, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .idb-grid, ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } .idb-shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product, .idb-li { width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important; list-style: none; }
.idb-card { position: relative; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.idb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.idb-card.is-out { opacity: .75; }
.idb-card-media { display: block; }
.idb-thumb { aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.idb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; }
.idb-gen { display: grid; place-items: center; color: #fff; font-weight: 900; font-size: clamp(16px, 3vw, 28px); text-align: center; padding: 12px; direction: ltr; background: linear-gradient(145deg, hsl(var(--h, 215) 80% 58%), hsl(calc(var(--h, 215) + 25) 75% 38%)); aspect-ratio: 1; width: 100%; height: 100%; }
.idb-card-badge { position: absolute; top: 10px; right: 10px; z-index: 2; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.idb-fav { position: absolute; top: 10px; left: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 12px; border: 0; padding: 0; background: var(--glass); backdrop-filter: blur(8px); display: grid; place-items: center; color: var(--ink-2); }
.idb-fav:hover { color: var(--bad); }
.idb-fav .idb-i { width: 18px; height: 18px; }
.idb-fav.is-on { color: var(--bad); }
.idb-fav.is-on .idb-i { fill: currentColor; }
.idb-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.idb-card-cat { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.idb-card-title { font-size: 15px; font-weight: 800; line-height: 1.6; margin: 0; }
.idb-card-title a { color: var(--ink); }
.idb-card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.idb-card-feats { display: flex; gap: 4px; flex-wrap: wrap; }
.idb-card-feats span { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.idb-card-rate { font-size: 12px; color: var(--ink-3); display: flex; gap: 4px; align-items: center; }
.idb-card-rate .idb-i { width: 14px; height: 14px; fill: #f5a524; stroke: none; }
.idb-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.idb-price, .price { font-weight: 900; font-size: 15px; line-height: 1.5; color: var(--ink); }
.idb-price del, .price del { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); opacity: 1; }
.idb-price ins, .price ins { text-decoration: none; background: none; }
.idb-price .woocommerce-Price-amount, .price .woocommerce-Price-amount { white-space: nowrap; }
.idb-price .woocommerce-Price-currencySymbol, .price .woocommerce-Price-currencySymbol { font-size: .78em; font-weight: 600; color: var(--ink-3); }
.idb-price-ask { font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.idb-card-btn { position: relative; z-index: 2; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; transition: .2s; }
.idb-card-btn:hover { background: var(--brand); color: #fff; }
.idb-card-btn.loading { opacity: .5; pointer-events: none; }
.idb-card-btn.added { background: var(--ok); color: #fff; }
.idb-card .added_to_cart { display: none; }
@media (max-width: 480px) {
  .idb-card-body { padding: 10px; }
  .idb-card-title { font-size: 13.5px; }
  .idb-price, .idb-card .price { font-size: 13px; }
  .idb-card-btn { width: 34px; height: 34px; }
  .idb-card-feats { display: none; }
}

/* ─── خانه ─── */
.idb-hero { padding: 24px 0 8px; }
/* اسلایدر */
.idb-slider { position: relative; border-radius: 32px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); isolation: isolate; touch-action: pan-y; }
.idb-slides { display: grid; }
.idb-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 8px; min-height: 480px; padding: 32px 22px 84px;
  background: radial-gradient(90% 120% at 12% 50%, color-mix(in srgb, var(--c) 24%, transparent) 0%, transparent 60%), linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--c) 9%, var(--surface)) 100%);
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s;
}
.idb-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
@media (min-width: 900px) { .idb-slide { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 56px 56px 96px; min-height: 520px; } }
.idb-slide-text { display: grid; gap: 18px; max-width: 590px; position: relative; z-index: 2; }
.idb-slide-text > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.idb-slide.is-active .idb-slide-text > * { opacity: 1; transform: none; }
.idb-slide.is-active .idb-slide-text > :nth-child(2) { transition-delay: .08s; }
.idb-slide.is-active .idb-slide-text > :nth-child(3) { transition-delay: .16s; }
.idb-slide.is-active .idb-slide-text > :nth-child(4) { transition-delay: .24s; }
.idb-slide-chip { background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); }
.idb-slide-title { font-size: clamp(30px, 4.8vw, 54px); line-height: 1.25; font-weight: 900; margin: 0; letter-spacing: -.01em; }
.idb-slide-title em { font-style: normal; display: block; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 55%, #7c3aed)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
.idb-lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2); max-width: 48ch; margin: 0; }
.idb-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.idb-slide-btn { background: var(--c); box-shadow: 0 12px 28px color-mix(in srgb, var(--c) 35%, transparent); }
.idb-slide-btn:hover { background: color-mix(in srgb, var(--c) 82%, #000); }
/* تصویرسازی هر اسلاید */
.idb-slide-art { position: relative; height: 240px; }
@media (min-width: 900px) { .idb-slide-art { height: 400px; } }
.idb-glow { position: absolute; inset: 15% 18%; border-radius: 50%; background: var(--c); filter: blur(70px); opacity: .35; }
.idb-ring { position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--c) 35%, transparent); animation: idb-spin 40s linear infinite; }
.idb-art-main { position: absolute; left: 50%; top: 50%; width: 150px; aspect-ratio: 1; border-radius: 36px; overflow: hidden; transform: translate(-50%, -50%) rotate(-6deg) scale(.85); box-shadow: 0 30px 60px color-mix(in srgb, var(--c) 40%, transparent), 0 0 0 6px color-mix(in srgb, var(--surface) 70%, transparent); opacity: 0; transition: transform .9s cubic-bezier(.2, .9, .2, 1.1), opacity .6s; }
@media (min-width: 900px) { .idb-art-main { width: 260px; border-radius: 56px; } }
.idb-art-main img, .idb-art-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idb-slide.is-active .idb-art-main { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
.idb-art-tile { position: absolute; width: 58px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 34px rgba(11, 30, 70, .2); border: 3px solid var(--surface); opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .6s, transform .8s cubic-bezier(.2, .9, .2, 1.1); }
@media (min-width: 900px) { .idb-art-tile { width: 92px; border-radius: 26px; } }
.idb-slide.is-active .idb-art-tile { opacity: 1; transform: none; animation: idb-float 6s ease-in-out infinite; }
.idb-slide.is-active .idb-art-tile-0 { transition-delay: .15s; animation-delay: -1s; }
.idb-slide.is-active .idb-art-tile-1 { transition-delay: .25s; animation-delay: -2.5s; }
.idb-slide.is-active .idb-art-tile-2 { transition-delay: .35s; animation-delay: -4s; }
.idb-slide.is-active .idb-art-tile-3 { transition-delay: .45s; animation-delay: -5s; }
.idb-art-badge { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .6s .5s; }
.idb-art-badge .idb-i { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.6; }
.idb-slide.is-active .idb-art-badge { opacity: 1; }
@media (max-width: 899px) { .idb-art-badge { display: none; } .idb-slide-text { gap: 14px; } }
/* کنترل‌ها */
.idb-slider-nav { position: absolute; z-index: 3; bottom: 22px; inset-inline-start: 22px; display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) { .idb-slider-nav { bottom: 32px; inset-inline-start: 56px; } }
.idb-slider-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--line); color: var(--ink); padding: 0; transition: background .2s; }
.idb-slider-arrow:hover { background: var(--hover-grey); }
.idb-slider-dots { display: flex; gap: 6px; align-items: center; }
.idb-slider-dot { position: relative; width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: color-mix(in srgb, var(--ink) 18%, transparent); overflow: hidden; transition: width .4s; }
.idb-slider-dot.is-active { width: 44px; }
.idb-slider-dot span { position: absolute; inset: 0; width: 0; background: var(--c); border-radius: inherit; }
.idb-slider-dot.is-active span { animation: idb-progress var(--dur, 6s) linear forwards; }
.idb-slider.is-paused .idb-slider-dot.is-active span { animation-play-state: paused; }
.idb-slider.is-static .idb-slider-dot.is-active span { animation: none; width: 100%; }
@keyframes idb-progress { to { width: 100%; } }
@keyframes idb-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.idb-hero-stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.idb-hero-stats div { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.idb-hero-stats b { font-size: 15px; font-weight: 900; }
.idb-hero-stats span { font-size: 12.5px; color: var(--ink-3); }
@keyframes idb-float { 50% { transform: translateY(-10px); } }
.idb-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .idb-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.idb-cat { position: relative; overflow: hidden; border-radius: 22px; padding: 18px; min-height: 170px; display: flex; flex-direction: column; gap: 6px; background: var(--tint, #e8f0ff); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; color: var(--ink); }
.idb-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.idb-cat-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow); }
.idb-cat h3 { font-size: 17px; margin: 6px 0 0; }
.idb-cat p { font-size: 13px; color: var(--ink-3); margin: 0; max-width: 24ch; }
.idb-cat-go { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--brand); position: relative; z-index: 1; }
.idb-cat-imgs { position: absolute; left: -10px; bottom: -12px; display: flex; }
.idb-cat-imgs img { width: 58px; height: 58px; border-radius: 16px; margin-left: -18px; box-shadow: 0 8px 18px rgba(0, 0, 0, .12); border: 2px solid var(--surface); transform: rotate(-8deg); object-fit: cover; }
@media (max-width: 480px) { .idb-cat-imgs { display: none; } .idb-cat { min-height: 150px; } }
.idb-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-bottom: 16px; }
.idb-tabs::-webkit-scrollbar { display: none; }
.idb-tab { height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.idb-tab:hover { color: var(--ink); }
.idb-tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.idb-panel-more { text-align: center; margin: 20px 0 0; }
.idb-apple { border-radius: 28px; padding: 28px 20px; background: linear-gradient(135deg, #0b1630, #0b2a66 60%, #0b6bff); color: #fff; }
@media (min-width: 900px) { .idb-apple { padding: 48px; } }
.idb-apple h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin: 12px 0 0; }
.idb-apple-desc { color: #bcd0f5; margin: 8px 0 0; max-width: 60ch; }
.idb-apple-opts { display: grid; gap: 12px; margin-top: 26px; }
@media (min-width: 760px) { .idb-apple-opts { grid-template-columns: repeat(3, 1fr); } }
.idb-apple-opt { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.idb-apple-opt h3 { color: inherit; font-size: 17px; margin: 0; }
.idb-apple-opt ul { list-style: none; margin: 0; padding: 0; }
.idb-apple-opt li { display: flex; gap: 6px; align-items: center; font-size: 14px; margin: 4px 0; opacity: .92; }
.idb-apple-opt li .idb-i { width: 16px; height: 16px; color: #4ade80; }
.idb-apple-opt .idb-price { color: inherit; font-size: 19px; margin-top: auto; }
.idb-apple-opt .idb-price .woocommerce-Price-currencySymbol, .idb-apple-opt .idb-price del { color: inherit; opacity: .7; }
.idb-apple-opt.is-featured { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.idb-apple-opt.is-featured li .idb-i { color: var(--ok); }
.idb-steps { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .idb-steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.idb-step { position: relative; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.idb-step-n { position: absolute; top: 12px; left: 18px; font-size: 40px; font-weight: 900; color: var(--line); line-height: 1; }
.idb-step-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.idb-step h3 { font-size: 15.5px; margin: 0; }
.idb-step p { font-size: 13.5px; color: var(--ink-3); margin: 4px 0 0; }
.idb-stars { color: #f5a524; display: inline-flex; gap: 1px; }
.idb-stars .idb-i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.idb-stars .is-off { opacity: .25; }
.idb-reviews { display: grid; gap: 12px; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.idb-review { scroll-snap-align: start; margin: 0; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.idb-review blockquote { margin: 0; }
.idb-review p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.idb-review figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.idb-review .idb-avatar { width: 38px; height: 38px; font-size: 14px; }
.idb-review b { display: block; font-size: 14px; }
.idb-review small { color: var(--ink-3); font-size: 12px; }
.idb-faq { display: grid; gap: 10px; }
.idb-faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.idb-faq-item summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.idb-faq-item summary::-webkit-details-marker { display: none; }
.idb-faq-item summary .idb-i { transition: transform .25s; color: var(--ink-3); }
.idb-faq-item[open] summary .idb-i { transform: rotate(180deg); color: var(--brand); }
.idb-faq-a { padding: 0 18px 18px; color: var(--ink-2); font-size: 14.5px; }
.idb-faq-search { max-width: none; margin: 0 0 16px; }
.idb-faq-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.idb-faq-cta p { margin: 0; }
.idb-request { display: grid; gap: 24px; border-radius: 28px; padding: 24px 20px; background: var(--surface); border: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .idb-request { grid-template-columns: 1fr 1.1fr; padding: 40px; align-items: center; } }
.idb-request h2 { font-size: clamp(20px, 2.6vw, 28px); margin: 12px 0 8px; }

/* ─── فروشگاه ─── */
.idb-shop-head { padding-bottom: 14px; }
.idb-shop-head .term-description, .idb-shop-head .page-description { color: var(--ink-3); max-width: 75ch; }
.idb-shop-head .term-description p:last-child { margin: 0; }
.idb-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; margin-bottom: 18px; }
.idb-chips::-webkit-scrollbar { display: none; }
.idb-chip-link { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.idb-chip-link span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.idb-chip-link.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.idb-chip-link.is-active span { color: inherit; opacity: .7; }
.idb-shop { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .idb-shop { grid-template-columns: 260px minmax(0, 1fr); } }
.idb-shop-side { display: grid; gap: 14px; }
.idb-filters-head { display: none; }
@media (min-width: 1024px) { .idb-shop-side { position: sticky; top: var(--sticky-top, 140px); } .idb-filter-btn { display: none !important; } }
@media (max-width: 1023px) {
  .idb-shop-side { position: fixed; inset: auto 0 0 0; z-index: 999; max-height: 85vh; overflow: auto; background: var(--bg); padding: 0 16px 24px; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .25); transform: translateY(105%); visibility: hidden; transition: transform .3s; }
  .idb-shop-side.is-open { transform: none; visibility: visible; }
  .idb-filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--bg); padding: 14px 0; z-index: 1; }
}
.idb-widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.idb-widget-title { font-size: 15px; margin: 0 0 10px; }
.idb-cat-list, .idb-cat-list ul { list-style: none; margin: 0; padding: 0; }
.idb-cat-list ul { padding-inline-start: 12px; border-inline-start: 2px solid var(--line); margin-inline-start: 10px; }
.idb-cat-list a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.idb-cat-list a span { font-size: 12px; color: var(--ink-3); }
.idb-cat-list a:hover { background: var(--surface-2); color: var(--ink); }
.idb-cat-list a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.idb-price-filter { display: grid; gap: 10px; }
.idb-price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.idb-price-row .idb-input { min-height: 42px; font-size: 14px; }
.idb-link-sm { font-size: 13px; color: var(--brand); }
.idb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.idb-toolbar .woocommerce-notices-wrapper { flex-basis: 100%; }
.woocommerce-result-count { margin: 0 auto 0 0; color: var(--ink-3); font-size: 14px; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { min-height: 42px; width: auto; font-size: 14px; }
.woocommerce-pagination, .idb-pagination { margin-top: 28px; text-align: center; }
.woocommerce-pagination ul.page-numbers, .idb-pagination .nav-links { display: inline-flex; gap: 6px; list-style: none; margin: 0; padding: 0; border: 0 !important; flex-wrap: wrap; justify-content: center; }
.woocommerce-pagination ul.page-numbers li { border: 0 !important; float: none; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: var(--ink-2); }
.page-numbers.current { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.woocommerce-info.woocommerce-no-products-found, .woocommerce-no-products-found { background: none; border: 0; padding: 0; margin: 0 0 10px; }

/* ─── صفحهٔ محصول ─── */
.single-product div.product { margin-top: 10px; position: relative; }
/* فقط تصویر و خلاصه در یک گرید؛ تصویر چسبان داخل همین قاب می‌ماند و روی تب‌ها نمی‌رود */
.idb-product-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; position: relative; }
@media (min-width: 960px) {
  .idb-product-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
  .idb-product-top > .idb-gallery { position: sticky; top: var(--sticky-top, 140px); z-index: 1; }
}
.idb-gallery > .onsale { position: absolute; top: 14px; right: 14px; z-index: 5; }
.idb-gallery:has(> .onsale) .woocommerce-product-gallery__trigger { top: 56px; }
.single-product .product_meta .sku_wrapper { display: none; }
.onsale { display: inline-grid; place-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12.5px; font-weight: 800; }
.idb-gallery { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.idb-gallery .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; opacity: 1 !important; }
.idb-gallery .woocommerce-product-gallery__wrapper { margin: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.idb-gallery .woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; }
.idb-gallery .flex-control-thumbs { display: flex; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0; }
.idb-gallery .flex-control-thumbs li { width: 72px; }
.idb-gallery .flex-control-thumbs img { border-radius: 12px; border: 2px solid transparent; cursor: pointer; opacity: .7; }
.idb-gallery .flex-control-thumbs img.flex-active { border-color: var(--brand); opacity: 1; }
.idb-gallery .woocommerce-product-gallery__trigger { position: absolute; top: 14px; right: 14px; z-index: 4; width: 38px; height: 38px; border-radius: 12px; background: var(--glass); display: grid; place-items: center; font-size: 0; }
.idb-gallery .woocommerce-product-gallery__trigger::before { content: '⤢'; font-size: 18px; color: var(--ink-2); }
.idb-thumb-lg { border-radius: 28px; border: 1px solid var(--line); }
.idb-thumb-lg.idb-gen { font-size: clamp(28px, 6vw, 56px); }
.idb-fav-lg { top: 14px; left: 14px; width: 42px; height: 42px; z-index: 5; }
.single-product .summary { display: flex; flex-direction: column; gap: 14px; margin: 0 !important; width: auto !important; float: none !important; }
.single-product .summary > * { margin: 0; }
.single-product .product_title { font-size: clamp(22px, 3vw, 32px); margin: 0; }
.single-product .summary .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1.1em; font-size: 14px; line-height: 1.1; overflow: hidden; font-family: Arial, sans-serif; letter-spacing: .1em; }
.star-rating::before { content: '★★★★★'; color: var(--line-2); position: absolute; inset: 0; }
.star-rating span { position: absolute; inset: 0 0 0 auto; overflow: hidden; font-size: 0; padding-top: 1.5em; }
.star-rating span::before { content: '★★★★★'; color: #f5a524; position: absolute; top: 0; right: 0; font-size: 14px; }
.single-product .summary > .price { font-size: 26px; }
.single-product .summary > .price del { font-size: 15px; }
.woocommerce-product-details__short-description { color: var(--ink-2); font-size: 15px; }
.woocommerce-product-details__short-description ul { padding-inline-start: 18px; margin: 0; }
.woocommerce-product-details__short-description blockquote { margin: 0; }
.single-product form.cart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 0 !important; }
.single-product form.cart > * { flex-basis: 100%; }
.single-product form.cart > .quantity, .single-product form.cart .woocommerce-variation-add-to-cart > .quantity { flex: 0 0 auto; }
.single-product form.cart .single_add_to_cart_button, .single-product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 200px; min-height: 52px; font-size: 16px; float: none; }
.single-product form.cart:not(.variations_form) > .quantity + .single_add_to_cart_button { flex-basis: auto; }
.single-product form.cart::before, .single-product form.cart::after { display: none; }
.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.woocommerce-variation-add-to-cart::before, .woocommerce-variation-add-to-cart::after { display: none; }
.single_variation_wrap { display: grid; gap: 12px; }
.woocommerce-variation-price .price { font-size: 22px; }
.woocommerce-variation-description { color: var(--ink-2); font-size: 14px; }
.woocommerce-variation-availability .stock { margin: 0; }
table.variations { width: 100%; border: 0; margin: 0; border-collapse: collapse; }
table.variations tr { display: grid; gap: 8px; margin-bottom: 8px; }
table.variations th, table.variations td { display: block; padding: 0; border: 0; text-align: right; background: none; }
table.variations th label { font-size: 15px; font-weight: 800; color: var(--ink); }
table.variations .reset_variations { display: inline-block; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
/* کارت‌های انتخاب پلن (جایگزین دیداری select؛ خود select حفظ شده) */
.idb-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.idb-plan { position: relative; text-align: right; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); display: grid; gap: 2px; transition: .2s; min-height: 64px; color: var(--ink); }
.idb-plan:hover { border-color: var(--line-2); }
.idb-plan b { font-size: 14.5px; }
.idb-plan span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.idb-plan[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(11, 107, 255, .15); }
.idb-plan[aria-checked="true"]::after { content: ''; position: absolute; top: 10px; left: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat; }
.idb-plan:disabled { opacity: .45; cursor: not-allowed; }
.idb-plans-select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
/* تعداد */
.quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); height: 52px; overflow: hidden; }
.quantity input.qty { width: 48px; min-height: 0; height: 100%; border: 0; text-align: center; font-weight: 800; padding: 0; box-shadow: none !important; -moz-appearance: textfield; background: transparent; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.idb-qty-btn { width: 40px; height: 100%; border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; padding: 0; }
.idb-qty-btn:hover { color: var(--brand); background: var(--surface-2); }
.quantity.hidden, .quantity input[type="hidden"] + .idb-qty-btn { display: none; }
/* فیلدهای افزونهٔ TM Extra Product Options و افزونه‌های مشابه داخل فرم */
.single-product form.cart .tc-extra-product-options, .single-product form.cart .tm-extra-product-options { margin: 0 !important; width: 100%; }
.single-product form.cart .tc-extra-product-options h3, .single-product form.cart .tc-epo-label { font-size: 15px; font-weight: 800; color: var(--ink); }
.single-product form.cart .tc-extra-product-options input[type="text"], .single-product form.cart .tc-extra-product-options input[type="email"], .single-product form.cart .tc-extra-product-options textarea, .single-product form.cart .tc-extra-product-options select { width: 100% !important; }
.single-product form.cart .tc-totals-form, .single-product form.cart .tm-totals-form-main { width: 100%; }
.stock { font-size: 13.5px; font-weight: 700; }
.stock.in-stock { color: var(--ok); }
.stock.out-of-stock { color: var(--bad); background: var(--bad-soft); padding: 10px 14px; border-radius: 12px; }
.idb-assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.idb-assure div { text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: grid; justify-items: center; gap: 4px; }
.idb-assure .idb-i { color: var(--brand); }
.idb-rules-note { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.idb-rules-note .idb-i { width: 16px; height: 16px; }
.idb-rules-note a { color: var(--brand); }
.product_meta { font-size: 13px; color: var(--ink-3); display: grid; gap: 4px; }
.product_meta a { color: var(--ink-2); }
.woocommerce-tabs { margin-top: 12px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.woocommerce-tabs ul.tabs li.active a { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.woocommerce-Tabs-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; color: var(--ink-2); line-height: 2; }
.woocommerce-Tabs-panel > h2:first-child { font-size: 18px; }
.woocommerce-Tabs-panel table.shop_attributes { width: 100%; border-collapse: collapse; }
.woocommerce-Tabs-panel table.shop_attributes th, .woocommerce-Tabs-panel table.shop_attributes td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; }
#reviews .commentlist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
#reviews .commentlist li .comment_container { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
#reviews .commentlist img.avatar { width: 40px; height: 40px; border-radius: 50%; }
#reviews .comment-text { flex: 1; }
#reviews .comment-text .meta { font-size: 13px; color: var(--ink-3); margin: 4px 0; }
#review_form #respond { display: grid; gap: 12px; }
#review_form .comment-reply-title { font-size: 17px; font-weight: 800; display: block; }
#review_form p { margin: 0 0 10px; }
.comment-form-rating .stars a { color: #f5a524; margin-left: 4px; font-size: 18px; }
.related > h2, .upsells > h2, .idb-empty-suggest > h2, .cross-sells > h2 { font-size: clamp(18px, 2.4vw, 24px); margin: 32px 0 16px; }
.idb-sticky-buy { position: fixed; inset: auto 0 0 0; z-index: 80; background: var(--glass); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .3s; }
.idb-sticky-buy.is-show { transform: none; }
.idb-sticky-info { flex: 1; min-width: 0; }
.idb-sticky-info b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idb-sticky-info .idb-price { font-size: 14px; }
.idb-sticky-info .idb-price del { display: none; }
.idb-sticky-buy .idb-btn { flex: 0 0 auto; min-width: 120px; }
@media (min-width: 960px) { .idb-sticky-buy { display: none; } }

/* ─── اعلان‌ها ─── */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { list-style: none; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.woocommerce-message { background: var(--ok-soft); border-color: transparent; color: var(--ok-ink); }
.woocommerce-info { background: var(--brand-soft); border-color: transparent; color: var(--info-ink); }
.woocommerce-error { background: var(--bad-soft); border-color: transparent; color: var(--bad-ink); flex-direction: column; align-items: stretch; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 38px; padding: 6px 14px; font-size: 13.5px; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }

/* ─── سبد خرید (مثل نمونه) ─── */
.idb-wc-page .woocommerce { display: block; }
.idb-cart { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .idb-cart { grid-template-columns: minmax(0, 1fr) 360px; } .idb-cart-summary { position: sticky; top: var(--sticky-top, 140px); } }
.idb-cart > :not(.idb-cart-items):not(.idb-cart-summary) { grid-column: 1 / -1; }
.idb-cart-items { padding: 8px 20px; }
.idb-cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0 10px; border-bottom: 1px solid var(--line); }
.idb-cart-head h2 { font-size: 19px; margin: 0; }
.idb-cart-head h2 .idb-muted { font-size: 14px; font-weight: 600; }
.idb-cart-clear { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); }
.idb-cart-clear:hover { color: var(--bad); }
.idb-i-sm { width: 16px; height: 16px; }
.idb-line { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.idb-line:last-of-type { border-bottom: 0; }
.idb-line-thumb { grid-row: span 2; }
.idb-line-thumb .idb-thumb { width: 84px; height: 84px; border-radius: 16px; aspect-ratio: auto; }
.idb-line-thumb .idb-gen { font-size: 13px; }
.idb-line-info { display: grid; gap: 2px; padding-inline-end: 34px; min-width: 0; }
.idb-line-name { font-weight: 800; font-size: 15px; color: var(--ink); line-height: 1.6; }
.idb-line-meta, .idb-line-unit { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.idb-line-unit .woocommerce-Price-amount { font-weight: 600; }
.idb-line .variation, .idb-line .wc-item-meta { margin: 2px 0; font-size: 12.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.idb-line .variation dt, .idb-line .variation dd { margin: 0; display: inline; }
.idb-line .variation dd p { display: inline; margin: 0; }
.idb-line-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.idb-line-row .quantity { height: 40px; border-radius: 12px; }
.idb-line-row .quantity input.qty { width: 38px; }
.idb-line-row .idb-qty-btn { width: 34px; }
.idb-line-total { font-weight: 900; font-size: 16px; }
.idb-line-total .woocommerce-Price-currencySymbol { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.idb-line .product-remove { position: absolute; top: 14px; left: 0; }
.idb-line-remove { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3) !important; background: var(--surface-2); }
.idb-line-remove:hover { background: var(--bad-soft); color: var(--bad) !important; }
.idb-cart-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 0 14px; }
.idb-cart-actions [name="update_cart"] { min-height: 38px; }
.idb-cart-actions [name="update_cart"]:disabled { display: none; }
.idb-cart-summary { padding: 20px; display: grid; gap: 14px; }
.idb-cart-summary > h2 { font-size: 17px; margin: 0; }
.idb-sum-rows { display: grid; gap: 10px; font-size: 14.5px; }
.idb-sum-row { display: flex; justify-content: space-between; gap: 10px; }
.idb-sum-row > span:first-child { color: var(--ink-3); }
.idb-sum-discount, .idb-sum-discount > span:first-child { color: var(--ok); }
.idb-sum-discount .woocommerce-remove-coupon { font-size: 12px; color: var(--bad); margin-inline-start: 6px; }
.idb-coupon { display: flex; gap: 8px; }
.idb-coupon .idb-input { min-height: 44px; flex: 1; min-width: 0; }
.idb-coupon .idb-btn { min-height: 44px; padding-inline: 16px; }
.idb-sum-total { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 900; font-size: 16px; }
.idb-sum-total strong { font-weight: 900; }
.wc-proceed-to-checkout { padding: 0; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 52px; font-size: 16px; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent); }
.idb-sum-note { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin: 0; }
.cart-collaterals { width: 100%; margin-top: 22px; }
.cart-collaterals:empty { display: none; }
.cart-collaterals .cart_totals, .cart-collaterals .cross-sells { width: 100% !important; float: none !important; }
.cart_totals { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.cart_totals > h2 { font-size: 17px; margin: 0 0 6px; }
.cart-empty.woocommerce-info { justify-content: center; text-align: center; font-size: 16px; padding: 36px 16px; }
.return-to-shop { text-align: center; margin: 0 0 10px; }
table.shop_table { width: 100%; border-collapse: collapse; border: 0; margin: 0; font-size: 14.5px; }
table.shop_table th { text-align: right; font-weight: 700; color: var(--ink-3); font-size: 12.5px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
table.shop_table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: right; }
table.shop_table tr:last-child td { border-bottom: 0; }
.shop_table .variation, .wc-item-meta { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; padding: 0; list-style: none; }
.shop_table .variation dt, .shop_table .variation dd, .wc-item-meta li, .wc-item-meta strong { display: inline; margin: 0; font-weight: 600; }
.shop_table .variation dd p, .wc-item-meta p { display: inline; margin: 0; }
@media (max-width: 600px) {
  .idb-cart-items { padding: 4px 14px; }
  .idb-line { grid-template-columns: 64px minmax(0, 1fr); }
  .idb-line-thumb .idb-thumb { width: 64px; height: 64px; border-radius: 14px; }
  .idb-line-row { grid-column: 1 / -1; }
}

/* ─── مرحله‌نما ─── */
.idb-stepper { display: flex; align-items: center; gap: 8px; list-style: none; margin: 18px 0; padding: 0; font-size: 13.5px; font-weight: 700; color: var(--ink-3); flex-wrap: wrap; }
.idb-stepper li { display: inline-flex; align-items: center; gap: 6px; }
.idb-stepper li:not(:last-child)::after { content: ''; width: 36px; height: 2px; background: var(--line); margin-inline-start: 6px; }
.idb-stepper b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-size: 12px; }
.idb-stepper .is-current { color: var(--ink); }
.idb-stepper .is-current b { background: var(--brand); color: #fff; border-color: var(--brand); }
.idb-stepper .is-done b { background: var(--ok); color: #fff; border-color: var(--ok); }
.idb-wc-title { margin-bottom: 18px; }

/* ─── تسویه حساب (مثل نمونه) ─── */
form.checkout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
form.checkout > * { min-width: 0; }
@media (min-width: 960px) {
  form.checkout { grid-template-columns: minmax(0, 1fr) 390px; column-gap: 22px; }
  form.checkout > :not(#order_review):not(#order_review_heading):not(.woocommerce-NoticeGroup) { grid-column: 1; }
  form.checkout > #order_review { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: var(--sticky-top, 140px); }
  #payment #place_order { display: none !important; }
}
@media (max-width: 959px) { .idb-co-sum-actions [data-place-order] { display: none; } }
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
#order_review_heading { display: none; }
.idb-co-user { display: flex; align-items: center; gap: 12px; padding: 16px 20px; flex-wrap: wrap; }
.idb-co-user .idb-avatar { width: 46px; height: 46px; font-size: 18px; }
.idb-co-user-info { flex: 1; min-width: 180px; display: grid; }
.idb-co-user-info small { color: var(--ink-3); font-size: 13px; text-align: right; }
.idb-chip-ok { background: var(--ok-soft); color: var(--ok); }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { justify-content: flex-start; }
.woocommerce-form-coupon, .woocommerce-form-login { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 0 0 16px; }
form.checkout_coupon { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.checkout_coupon p { margin: 0; }
form.checkout_coupon .form-row-first { flex: 1 1 200px; }
#customer_details { display: grid; gap: 18px; }
#customer_details .col-1, #customer_details .col-2 { width: 100% !important; float: none !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
#customer_details .col-2:not(:has(.form-row)):not(:has(input)) { display: none; }
.woocommerce-billing-fields > h3:not(.idb-box-title), .woocommerce-additional-fields > h3 { display: none; }
.idb-box-title { display: flex; align-items: center; gap: 8px; }
.idb-box-title .idb-i { color: var(--brand); }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-row { margin: 0 0 14px; padding: 0; display: grid; gap: 6px; grid-column: 1 / -1; }
/* عرض و float قدیمی woocommerce-layout.css را خنثی می‌کند؛ چیدمان با grid است */
.woocommerce form .form-row, .woocommerce-page form .form-row, .woocommerce form .form-row-first, .woocommerce form .form-row-last, .woocommerce-page form .form-row-first, .woocommerce-page form .form-row-last { width: auto; float: none; }
.form-row-first { grid-column: 1; }
.form-row-last { grid-column: 2; }
@media (max-width: 600px) { .form-row-first, .form-row-last { grid-column: 1 / -1; } }
.form-row label { margin: 0; }
.form-row .required { color: var(--bad); text-decoration: none; border: 0; }
.form-row .optional { color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.woocommerce-input-wrapper { display: block; }
#ship-to-different-address label { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.idb-co-pay { padding: 20px; }
.idb-co-pay #payment { background: none; border-radius: 0; margin: 0; }
#payment ul.payment_methods { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; border: 0; }
#payment ul.payment_methods li { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; transition: border-color .2s, background .2s; }
#payment ul.payment_methods li:hover { border-color: var(--line-2); }
#payment ul.payment_methods li:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
#payment ul.payment_methods li label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
#payment ul.payment_methods li img { max-height: 28px; width: auto; margin: 0 6px; vertical-align: middle; }
#payment .payment_box { margin: 10px 0 0; padding: 12px; border-radius: 12px; background: var(--surface); font-size: 13.5px; color: var(--ink-2); }
#payment .payment_box::before { display: none; }
#payment .payment_box p:last-child { margin: 0; }
#payment .place-order { padding: 0; margin: 0; display: grid; gap: 12px; }
#payment #place_order { width: 100%; min-height: 54px; font-size: 16px; float: none; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent); }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--ink-3); }
.woocommerce-terms-and-conditions-wrapper .form-row { margin: 8px 0 0; }
.woocommerce-privacy-policy-text p { margin: 0 0 8px; }
#order_review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 10px 0 !important; border-bottom: 1px solid var(--line); }
.woocommerce-checkout-review-order-table td:last-child, .woocommerce-checkout-review-order-table th:last-child { text-align: left; }
.woocommerce-checkout-review-order-table .cart_item td { border-bottom: 1px dashed var(--line); }
.woocommerce-checkout-review-order-table .product-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--ink-3); font-weight: 600; }
.woocommerce-checkout-review-order-table tfoot th { font-weight: 600; color: var(--ink-3); font-size: 14px; }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: 16px; font-weight: 900; color: var(--ink); border-bottom: 0; padding-top: 14px !important; }
.idb-co-item { display: inline-flex; align-items: center; gap: 10px; }
.idb-co-thumb { width: 46px; height: 46px; border-radius: 12px; flex: none; aspect-ratio: auto; }
.idb-co-thumb.idb-gen { font-size: 9px; padding: 4px; }
.idb-co-sum-actions { display: grid; gap: 10px; margin-top: 16px; }
.idb-co-sum-actions [data-place-order] { min-height: 54px; font-size: 16px; }
.blockUI.blockOverlay { background: color-mix(in srgb, var(--surface) 60%, transparent) !important; border-radius: var(--r); }

/* ─── سفارش دریافت شد (مثل نمونه) ─── */
.idb-thanks { padding: 0; margin-bottom: 20px; overflow: hidden; }
.idb-thanks-hero { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 32px 18px; }
.idb-thanks-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; animation: idb-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.idb-thanks-ic .idb-i { width: 40px; height: 40px; stroke-width: 2.6; }
@keyframes idb-pop { from { transform: scale(.4); opacity: 0; } }
.idb-thanks h2 { font-size: clamp(22px, 3vw, 28px); margin: 6px 0 0; }
.idb-thanks-hero p { color: var(--ink-2); margin: 0; max-width: 52ch; }
.idb-thanks-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.idb-thanks-status { border-top: 1px solid var(--line); padding: 22px 24px 8px; }
.idb-thanks-status h3 { font-size: 17px; margin: 0 0 18px; }
.idb-timeline { list-style: none; margin: 0; padding: 0; }
.idb-timeline li { position: relative; padding-inline-start: 38px; padding-bottom: 22px; }
.idb-timeline li::before { content: ''; position: absolute; right: 10px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.idb-timeline li:last-child::before { display: none; }
.idb-timeline li.is-done::before { background: var(--ok); }
.idb-tl-dot { position: absolute; right: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.idb-timeline .is-done .idb-tl-dot { background: var(--ok); border-color: var(--ok); }
.idb-timeline .is-now .idb-tl-dot { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px var(--brand-soft); animation: idb-pulse 1.8s ease-in-out infinite; }
@keyframes idb-pulse { 50% { box-shadow: 0 0 0 10px transparent; } }
.idb-timeline b { display: block; font-size: 15px; }
.idb-timeline small { color: var(--ink-3); font-size: 13px; }
.woocommerce-thankyou-order-received { display: none; }
.woocommerce-order-overview { list-style: none; margin: 0 0 20px; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.woocommerce-order-overview li { margin: 0; padding: 0; border: 0; font-size: 13px; color: var(--ink-3); }
.woocommerce-order-overview li strong { display: block; font-size: 15px; color: var(--ink); margin-top: 2px; }
.woocommerce-order-details, .woocommerce-customer-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 20px; }
.woocommerce-order-details__title, .woocommerce-column__title { font-size: 17px; margin: 0 0 10px; }
.woocommerce-order-details table.shop_table td:last-child, .woocommerce-order-details table.shop_table th:last-child { text-align: left; }
.woocommerce-customer-details address { font-style: normal; line-height: 2; border: 0; padding: 0; }

/* ─── برگه‌ها، نوشته‌ها ─── */
.idb-prose { padding: 24px; color: var(--ink-2); line-height: 2.05; font-size: 15.5px; }
@media (min-width: 768px) { .idb-prose { padding: 36px; } }
.idb-prose > :first-child { margin-top: 0; }
.idb-prose > :last-child { margin-bottom: 0; }
.idb-prose h2, .idb-prose h3, .idb-prose h4 { color: var(--ink); margin: 1.6em 0 .5em; }
.idb-prose h2 { font-size: 22px; }
.idb-prose h3 { font-size: 18px; }
.idb-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.idb-prose ul, .idb-prose ol { padding-inline-start: 22px; }
.idb-prose li { margin: 6px 0; }
.idb-prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-inline-start: 4px solid var(--brand); background: var(--surface-2); border-radius: 12px; }
.idb-prose img { border-radius: 14px; }
.idb-prose table { width: 100%; border-collapse: collapse; }
.idb-prose th, .idb-prose td { border: 1px solid var(--line); padding: 8px 12px; }
.idb-post-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .idb-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .idb-post-grid { grid-template-columns: repeat(3, 1fr); } }
.idb-post { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.idb-post:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.idb-post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.idb-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idb-post-media .idb-gen { aspect-ratio: auto; font-size: 22px; }
.idb-post-body { padding: 18px; display: grid; gap: 8px; }
.idb-post-title { font-size: 17px; line-height: 1.6; margin: 0; }
.idb-post-title a::after { content: ''; position: absolute; inset: 0; }
.idb-post-body p { color: var(--ink-3); font-size: 14px; margin: 0; }
.idb-post-meta { font-size: 12.5px; color: var(--ink-3); }
.post-navigation { margin-top: 20px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 12px; }
.idb-comment-list { padding-inline-start: 18px; }
.idb-empty { text-align: center; padding: 48px 20px; display: grid; justify-items: center; gap: 10px; }
.idb-empty h2 { font-size: 19px; margin: 0; }
.idb-empty p { color: var(--ink-3); max-width: 42ch; margin: 0; }
.idb-empty-ic { width: 72px; height: 72px; border-radius: 22px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 4px; }
.idb-empty .woocommerce-info { background: none; border: 0; padding: 0; margin: 0; color: var(--ink-2); justify-content: center; }
.idb-search-page { max-width: 560px; margin: 0 0 20px; }
.idb-404 { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 48px 0 12px; }
.idb-404-code { font-size: clamp(90px, 20vw, 160px); font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--brand), #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.idb-404 h1 { font-size: 24px; margin: 0; }
.idb-404 p { color: var(--ink-3); margin: 0; }
.idb-404 .idb-search-page { width: 100%; margin: 8px auto; }
.idb-404-cta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.idb-contact { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .idb-contact { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.idb-contact-ways { display: grid; gap: 12px; }
.idb-way { display: flex; gap: 14px; align-items: center; padding: 16px; color: var(--ink); }
.idb-way:hover { color: var(--ink); border-color: var(--brand); }
.idb-way b { display: block; }
.idb-way small { color: var(--ink-3); font-size: 13px; }
.idb-way-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.idb-admin-note { font-size: 13px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); margin: 0; }

/* ─── فوتر ─── */
.idb-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 24px; }
.idb-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding-block: 28px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .idb-trust { grid-template-columns: repeat(4, 1fr); } }
.idb-trust-item { display: flex; gap: 12px; align-items: center; }
.idb-trust-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.idb-trust-item b { display: block; font-size: 14.5px; }
.idb-trust-item small { color: var(--ink-3); font-size: 12.5px; }
.idb-footer-grid { display: grid; gap: 28px; padding-block: 36px; grid-template-columns: 1fr 1fr; }
.idb-footer-about { grid-column: 1 / -1; }
@media (min-width: 900px) { .idb-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; } .idb-footer-about { grid-column: auto; } }
.idb-footer-title { font-size: 15px; margin: 0 0 12px; }
.idb-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.idb-footer .menu a:hover { color: var(--brand); }
.idb-footer-about p { color: var(--ink-3); font-size: 14px; margin: 12px 0 16px; max-width: 42ch; }
.idb-socials { display: flex; gap: 8px; }
.idb-seals { display: flex; gap: 10px; flex-wrap: wrap; }
.idb-seal { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.idb-seal img { display: block; max-width: 96px; height: auto; }
.idb-seal-slot { width: 84px; height: 96px; border-radius: 14px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--ink-3); padding: 6px; }
.idb-copy { border-top: 1px solid var(--line); padding-block: 18px; font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.single-product .idb-footer { margin-bottom: 0; }
@media (max-width: 959px) { .single-product .idb-copy { padding-bottom: 84px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ─── آیکون‌های منو ─── */
.idb-nav-list > li > a { display: flex; align-items: center; gap: 6px; }
.idb-nav-ic { width: 18px; height: 18px; opacity: .75; }
.idb-nav-list .current-menu-item > a .idb-nav-ic, .idb-nav-list a:hover .idb-nav-ic { opacity: 1; }
.idb-drawer-list > li > a { display: flex; align-items: center; gap: 12px; }
.idb-drawer-list .idb-nav-ic { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--surface-2); color: var(--brand); opacity: 1; box-sizing: border-box; }
.idb-drawer-list .current-menu-item > a .idb-nav-ic, .idb-drawer-list a:hover .idb-nav-ic { background: var(--surface); }
@media (min-width: 1200px) and (max-width: 1320px) { .idb-nav-ic { display: none; } }

/* ─── لینک، سوالات متداول ─── */
.idb-link { color: var(--brand); font-weight: 700; }
.idb-link:hover { text-decoration: underline; }
[data-faq-tabs] { margin-bottom: 14px; }
.idb-faq-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.idb-faq-cta > div { flex: 1; min-width: 200px; }
.idb-faq-cta p { margin: 0; }
.idb-faq-cta-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.idb-faq-none { padding: 24px; }

/* ─── مجله ─── */
.idb-post.is-featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .idb-post.is-featured { flex-direction: row; }
  .idb-post.is-featured .idb-post-media { width: 52%; aspect-ratio: auto; min-height: 320px; }
  .idb-post.is-featured .idb-post-body { flex: 1; align-content: center; padding: 36px; gap: 12px; }
  .idb-post.is-featured .idb-post-title { font-size: 26px; }
  .idb-post.is-featured p { font-size: 15px; }
}
.idb-post-body .idb-chip { justify-self: start; }
.idb-article { max-width: 780px; margin-inline: auto; }
.idb-article > .idb-chip { margin-top: 8px; }
.idb-article-title { font-size: clamp(24px, 3.6vw, 38px); line-height: 1.5; margin: 10px 0 8px; }
.idb-article-cover { aspect-ratio: 16 / 8; margin: 18px 0 26px; border-radius: 26px; }
.idb-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.idb-toc { padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.idb-toc b { font-size: 15px; }
.idb-toc ol { margin: 8px 0 0; padding-inline-start: 20px; font-size: 14.5px; display: grid; gap: 4px; }
.idb-toc .idb-toc-3 { margin-inline-start: 16px; font-size: 13.5px; list-style: circle; }
.idb-toc a:hover { color: var(--brand); }
.idb-article-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.idb-article-body h2[id], .idb-article-body h3[id] { scroll-margin-top: calc(var(--sticky-top, 140px) + 8px); }
.idb-inline-product { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); margin: 22px 0; text-decoration: none !important; color: var(--ink) !important; transition: border-color .2s; }
.idb-inline-product:hover { border-color: var(--brand); }
.idb-inline-product .idb-thumb { width: 72px; height: 72px; border-radius: 16px; flex: none; aspect-ratio: auto; }
.idb-inline-product .idb-gen { font-size: 11px; }
.idb-inline-product-info { flex: 1; min-width: 0; display: grid; }
.idb-inline-product-info small { color: var(--ink-3); font-size: 13px; }
.idb-article-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }

/* ─── فوتر: شبکه‌های اجتماعی ─── */
.idb-follow { margin: 0 0 8px !important; font-size: 13px; font-weight: 700; color: var(--ink-2) !important; }
.idb-social { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.idb-social:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.idb-social-telegram:hover { background: #229ed9; }
.idb-social-instagram:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.idb-social-whatsapp:hover { background: #25d366; }

/* ─── حالت تاریک: جزئیات ─── */
:root[data-theme="dark"] .idb-cat { background: color-mix(in srgb, var(--tint, #e8f0ff) 8%, var(--surface)); }
:root[data-theme="dark"] .idb-apple { background: linear-gradient(135deg, #0b1630, #0d2350 60%, #1a4fb0); }
:root[data-theme="dark"] .idb-topbar { background: #060b14; }
:root[data-theme="dark"] .idb-gallery .woocommerce-product-gallery__wrapper, :root[data-theme="dark"] .idb-thumb { background: var(--surface-2); }
:root[data-theme="dark"] .select2-dropdown, :root[data-theme="dark"] .select2-results__option { background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] img { color-scheme: normal; }

/* select2 (کشور/استان در تسویه): رنگ‌ها از توکن‌ها، در حالت تاریک هم */
.select2-container--default .select2-selection--single { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); min-height: 48px; display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); padding-inline: 14px 32px; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ink-3); }
.select2-dropdown { background: var(--surface); border-color: var(--line); color: var(--ink); }
.select2-container--default .select2-search--dropdown .select2-search__field { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--brand); color: #fff; }
.select2-container--default .select2-results__option[aria-selected="true"], .select2-container--default .select2-results__option[data-selected="true"] { background: var(--surface-2); }


/* ───── میموجی‌ها ───── */
.idb-404-memoji{width:132px;height:132px;object-fit:contain;display:block;margin:0 auto -8px;filter:drop-shadow(0 14px 22px rgba(11,60,150,.2))}
.idb-empty-memoji{text-align:center;margin:8px 0 4px}
.idb-memoji-lg{width:120px;height:120px;object-fit:contain;display:inline-block;filter:drop-shadow(0 14px 22px rgba(11,60,150,.2))}
.idb-contact-hello{display:flex;align-items:center;gap:16px;padding:16px 20px;margin-bottom:18px}
.idb-contact-hello b{display:block;font-size:17px}
.idb-contact-hello p{margin:2px 0 0;color:var(--ink-3)}
.idb-contact-memoji{width:84px;height:84px;object-fit:contain;flex:none;filter:drop-shadow(0 10px 16px rgba(11,60,150,.18))}
