/*
 * Girmiad 2.0 — "Voucher" theme core.
 * Paper surfaces, solid ink edges, hard offset shadows and ticket
 * perforations. No frosted glass. Tokens live in tokens.css (--v-*).
 */
@font-face {
  font-family: Vazirmatn;
  src: url(../fonts/vazirmatn-regular.woff2) format("woff2");
  font-display: swap;
  font-weight: 100 500;
}
@font-face {
  font-family: Vazirmatn;
  src: url(../fonts/vazirmatn-bold.woff2) format("woff2");
  font-display: swap;
  font-weight: 600 900;
}

/* Older component names still used by plugins resolve to the new tokens. */
:root {
  --ink: var(--v-ink);
  --text: var(--v-text);
  --muted: var(--v-muted);
  --bg: var(--v-paper);
  --panel: var(--v-card);
  --panel2: var(--v-card-2);
  --line: var(--v-line);
  --blue: var(--v-primary);
  --link: var(--v-link);
  --cyan: var(--v-mint);
  --danger: var(--v-coral);
  --radius: var(--v-radius);
  --shadow: var(--v-shadow-card);
  --glass: none;
  --purple: #6b3fd6;
  --gold: #8a5a00;
  --ok: #0f7a5c;
  --header-h: 128px;
  color-scheme: light;
}
:root.dmx-dark,
body.dmx-dark {
  --purple: #c2a8ff;
  --gold: #ffd37a;
  --ok: #6fe0b8;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--v-dots) 0 0 / 22px 22px, var(--v-paper);
  color: var(--v-text);
  font: 400 14px/1.85 var(--v-body);
  text-rendering: optimizeLegibility;
}
main {
  display: block;
  min-height: 55vh;
  padding-bottom: 56px;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--v-ink);
  line-height: 1.45;
  font-weight: 800;
}
h1 {
  font: 400 clamp(26px, 3.4vw, 40px) / 1.35 var(--v-display);
  letter-spacing: 0;
}
h2 {
  font-size: clamp(18px, 2vw, 22px);
}
h3 {
  font-size: 16px;
}
p {
  margin: 0 0 1em;
}
::selection {
  background: var(--v-yellow);
  color: var(--v-on-yellow);
}
:focus-visible {
  outline: 3px solid var(--v-focus);
  outline-offset: 2px;
  border-radius: 6px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
.dmx-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 1000;
  padding: 10px 16px;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius-sm);
  background: var(--v-yellow);
  color: var(--v-on-yellow);
  font-weight: 800;
}
.skip-link:focus {
  top: 12px;
}
.dmx-container {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: 24px;
}
.site-content,
.page-content {
  padding-top: 24px;
}

/* ---------- Buttons ---------- */
.button,
input[type="submit"],
.wp-element-button {
  --btn-bg: var(--v-primary);
  --btn-fg: var(--v-on-primary);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--v-shadow-sm);
  font: 800 14px/1.4 var(--v-body);
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.button:hover,
input[type="submit"]:hover,
.wp-element-button:hover {
  transform: translate(1px, -1px);
  box-shadow: var(--v-shadow-card);
}
.button:active,
input[type="submit"]:active,
.wp-element-button:active {
  transform: translate(-2px, 2px);
  box-shadow: none;
}
.button .dmx-icon {
  width: 18px;
  height: 18px;
}
.button.ghost,
.button.secondary {
  --btn-bg: var(--v-card);
  --btn-fg: var(--v-ink);
}
.button.alt,
.button.is-yellow,
.checkout-button {
  --btn-bg: var(--v-yellow);
  --btn-fg: var(--v-on-yellow);
}
.button[disabled],
.button.disabled,
button:disabled.button {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.button.is-busy,
.button[aria-busy="true"] {
  color: transparent !important;
  pointer-events: none;
}
.button.is-busy::after,
.button[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid var(--btn-fg);
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: v-spin 0.7s linear infinite;
}
@keyframes v-spin {
  to {
    transform: rotate(360deg);
  }
}
.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius-sm);
  background: var(--v-card);
  color: var(--v-ink);
  box-shadow: var(--v-shadow-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.icon-button:hover {
  transform: translate(1px, -1px);
  box-shadow: var(--v-shadow-card);
}
.icon-button:active {
  transform: translate(-2px, 2px);
  box-shadow: none;
}
.dmx-text-link,
.prose a,
.dmx-link {
  color: var(--v-link);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--v-link) 35%, transparent);
}
.dmx-text-link:hover,
.prose a:hover {
  text-decoration-color: currentColor;
}

/* ---------- Forms ---------- */
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,
.input-text {
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border: 2px solid var(--v-line);
  border-radius: var(--v-radius-sm);
  background: var(--v-card);
  color: var(--v-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.9;
}
input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--v-edge) 45%, var(--v-line));
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--v-edge);
  box-shadow: 0 0 0 3px var(--v-focus);
}
input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--v-muted) 80%, transparent);
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--v-primary);
}
label {
  color: var(--v-ink);
  font-weight: 600;
}
select {
  appearance: none;
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6186' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: left 12px center;
  background-size: 16px 16px;
  background-repeat: no-repeat;
}
.dmx-help {
  color: var(--v-muted);
  font-size: 13px;
}

/* ---------- Shared pieces ---------- */
.dmx-card {
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius);
  background: var(--v-card);
  box-shadow: var(--v-shadow-card);
}
.eyebrow,
.dmx-eyebrow,
.dmx-editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--v-primary);
  font-size: 13px;
  font-weight: 800;
}
.eyebrow .dmx-icon,
.dmx-eyebrow .dmx-icon {
  width: 16px;
  height: 16px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
  font: 400 clamp(22px, 2.6vw, 30px) / 1.4 var(--v-display);
}
.section-heading p {
  margin: 2px 0 0;
  color: var(--v-muted);
}
.section-heading > a {
  flex: none;
  padding: 4px 12px;
  border: 2px solid var(--v-edge);
  border-radius: 999px;
  background: var(--v-card);
  color: var(--v-ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.section-heading > a:hover {
  background: var(--v-yellow);
  color: var(--v-on-yellow);
}
.dmx-badge,
.dmx-pill,
.dmx-store-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 9px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  color: var(--v-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
}
.dmx-badge[data-level="pro"],
.dmx-store-level[data-level="pro"] {
  color: var(--purple);
}
.dmx-badge[data-level="top"],
.dmx-store-level[data-level="top"] {
  color: var(--gold);
}
.dmx-badge[data-level="new"],
.dmx-store-level[data-level="new"] {
  color: var(--ok);
}
.dmx-official-label,
.dmx-public-badge,
.dmx-sponsored-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 10px;
  border: 2px solid var(--v-edge);
  border-radius: 999px;
  background: var(--v-yellow);
  color: var(--v-on-yellow);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  white-space: nowrap;
}
.dmx-public-badge {
  background: var(--v-card);
  color: var(--v-ink);
}
.dmx-sponsored-label {
  background: var(--v-card-2);
  color: var(--v-muted);
  border-color: var(--v-line);
}
.dmx-empty {
  padding: 36px 24px;
  border: 2px dashed var(--v-line);
  border-radius: var(--v-radius);
  background: var(--v-card);
  color: var(--v-muted);
  text-align: center;
}

/* Breadcrumbs */
.woocommerce-breadcrumb,
.dmx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--v-muted);
  font-size: 13px;
}
.woocommerce-breadcrumb a,
.dmx-breadcrumb a {
  color: var(--v-ink);
  font-weight: 700;
}
.woocommerce-breadcrumb a:hover,
.dmx-breadcrumb a:hover {
  color: var(--v-link);
}

/* Pagination (WooCommerce, posts, reviews) */
.woocommerce-pagination ul.page-numbers,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.page-numbers a,
.page-numbers span,
.nav-links .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius-sm);
  background: var(--v-card);
  color: var(--v-ink);
  font-weight: 800;
}
.page-numbers .current,
.nav-links .current {
  background: var(--v-ink);
  color: var(--v-card);
}
.page-numbers a:hover,
.nav-links a.page-numbers:hover {
  background: var(--v-yellow);
  color: var(--v-on-yellow);
}

/* WooCommerce notices */
.woocommerce-notices-wrapper:empty {
  display: none;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 2px solid var(--v-edge);
  border-inline-start-width: 8px;
  border-radius: var(--v-radius-sm);
  background: var(--v-card);
  color: var(--v-ink);
  list-style: none;
  font-weight: 600;
}
.woocommerce-message {
  border-inline-start-color: var(--v-mint);
}
.woocommerce-info {
  border-inline-start-color: var(--v-primary);
}
.woocommerce-error {
  border-inline-start-color: var(--v-coral);
}
.woocommerce-error li {
  width: 100%;
}
.woocommerce-message .button,
.woocommerce-info .button {
  margin-inline-start: auto;
  min-height: 36px;
  padding: 4px 14px;
}

/* ---------- Announcement ---------- */
.site-announcement {
  position: relative;
  padding: 7px 0 11px;
  background:
    radial-gradient(circle at 7px 100%, var(--v-card) 3.5px, transparent 4px) 0 100% / 14px 7px repeat-x,
    var(--v-yellow);
  color: var(--v-on-yellow);
  font-size: 13px;
  font-weight: 800;
}
.site-announcement .dmx-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.site-announcement .dmx-icon {
  width: 16px;
  height: 16px;
}

/* ---------- Header ----------
 * One calm bar: logo · categories · search · actions, with a thin row of
 * text links underneath on wide screens. On phones the bar keeps only the
 * menu, logo, search and cart; everything else lives in the drawer.
 * The cart keeps the same brand colours in light and dark mode.
 */
.site-header {
  --hdr-cart: #5140f2;
  --hdr-cart-edge: #17193b;
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 60;
  background: var(--v-card);
  border-bottom: 2px solid var(--v-edge);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 14px 28px -22px rgb(8 9 30 / 0.6);
}
.header-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: var(--v-ink);
  min-width: 0;
}
.brand > i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--v-edge);
  border-radius: 12px;
  background: var(--v-primary);
  color: var(--v-on-primary);
  box-shadow: var(--v-shadow-sm);
  transform: rotate(-6deg);
  transition: transform 0.25s ease;
}
.brand:hover > i {
  transform: rotate(0deg);
}
.brand > i .dmx-icon {
  width: 24px;
  height: 24px;
}
.brand > span {
  display: grid;
  font: 400 26px/1.1 var(--v-display);
}
.brand small {
  margin-top: 3px;
  color: var(--v-muted);
  font: 600 11px/1.3 var(--v-body);
  white-space: nowrap;
}
.brand.has-logo img,
.brand .brand-logo {
  display: block;
  width: auto;
  max-width: 190px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}
/* Light/dark logo pair: exactly one is visible (must outrank the rule above). */
.brand.has-logo .brand-logo--dark,
:root.dmx-dark .brand.has-logo .brand-logo--light {
  display: none;
}
:root.dmx-dark .brand.has-logo .brand-logo--dark {
  display: block;
}

/* Icon buttons (menu, search, theme) */
.header-icon {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--v-ink);
  cursor: pointer;
  transition: background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.header-icon:hover {
  background: var(--v-card-2);
}
.header-icon .dmx-icon {
  width: 22px;
  height: 22px;
}
.header-menu-toggle,
.header-search-toggle,
.header-search-close {
  display: none;
}
.theme-toggle .theme-icon {
  display: grid;
}
.theme-toggle .theme-icon--sun,
:root.dmx-dark .theme-toggle .theme-icon--moon {
  display: none;
}
:root.dmx-dark .theme-toggle .theme-icon--sun {
  display: grid;
}

/* Categories */
.category-menu {
  flex: none;
}
.category-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--v-edge);
  border-radius: 12px;
  background: var(--v-yellow);
  color: var(--v-on-yellow);
  font-weight: 800;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
:root.dmx-dark .category-menu > summary {
  border-color: transparent;
}
.category-menu > summary::-webkit-details-marker {
  display: none;
}
.category-menu > summary .dmx-icon {
  width: 18px;
  height: 18px;
}
.category-menu > summary .dmx-icon:last-child {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.category-menu[open] > summary .dmx-icon:last-child {
  transform: rotate(180deg);
}
.category-mega {
  position: absolute;
  top: calc(100% + 2px);
  inset-inline: 16px;
  z-index: 70;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--v-edge);
  border-top: 0;
  border-radius: 0 0 var(--v-radius) var(--v-radius);
  background: var(--v-card);
  box-shadow: var(--v-shadow-card);
  animation: v-drop 0.18s ease-out;
}
@keyframes v-drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.category-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.category-mega-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: var(--v-radius-sm);
  color: var(--v-ink);
  font-weight: 800;
}
.category-mega-grid a:hover {
  border-color: var(--v-edge);
  background: var(--v-card-2);
}
.category-mega-grid b {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--tone, var(--v-primary));
  color: #fff;
}
.category-mega-grid b .dmx-icon {
  width: 20px;
  height: 20px;
}
.category-mega-grid b img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-mega-grid span {
  display: grid;
  min-width: 0;
  line-height: 1.5;
}
.category-mega-grid small {
  color: var(--v-muted);
  font-size: 12px;
  font-weight: 600;
}
/* Category tones: indigo, amber, mint and coral sit on the brand palette. */
[data-tone="violet"] {
  --tone: #5b4cf0;
}
[data-tone="gold"] {
  --tone: #d98a00;
}
[data-tone="mint"] {
  --tone: #12946f;
}
[data-tone="blue"] {
  --tone: #e2546d;
}
.category-mega-all {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--v-link);
  font-weight: 800;
}
.category-mega-all .dmx-icon {
  width: 16px;
  height: 16px;
}

/* Search */
.header-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 640px;
  margin-inline: auto;
}
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  border: 2px solid var(--v-edge);
  border-radius: 14px;
  background: var(--v-card);
  box-shadow: var(--v-shadow-sm);
  transition: box-shadow 0.15s ease;
}
.search-form:focus-within {
  box-shadow: 0 0 0 3px var(--v-focus), var(--v-shadow-card);
}
.header-search .search-form {
  height: 46px;
  border-color: var(--v-line);
  border-radius: 12px;
  background: var(--v-card-2);
  box-shadow: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.header-search .search-form:hover {
  border-color: color-mix(in srgb, var(--v-edge) 45%, var(--v-line));
}
.header-search .search-form:focus-within {
  border-color: var(--v-edge);
  background: var(--v-card);
  box-shadow: 0 0 0 3px var(--v-focus);
}
.search-form button {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--v-ink);
  cursor: pointer;
}
.search-form .search-field {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  font-size: 14px;
}
.search-form .search-field::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search-hint {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-inline: 8px 12px;
  border: 1.5px solid var(--v-line);
  border-bottom-width: 3px;
  border-radius: 7px;
  color: var(--v-muted);
  font: 700 12px/1 var(--v-body);
}
.search-form:focus-within .search-hint {
  visibility: hidden;
}
.search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 0;
  z-index: 80;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 8px;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius);
  background: var(--v-card);
  box-shadow: var(--v-shadow-card);
}
.search-suggest[hidden] {
  display: none;
}
.search-suggest h4 {
  margin: 8px 10px 4px;
  color: var(--v-muted);
  font-size: 12px;
  font-weight: 800;
}
.search-suggest a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--v-radius-sm);
  color: var(--v-ink);
}
.search-suggest a:hover,
.search-suggest a[aria-selected="true"] {
  background: var(--v-card-2);
}
.search-suggest a[aria-selected="true"] {
  outline: 2px solid var(--v-edge);
  outline-offset: -2px;
}
.search-suggest .s-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 2px solid var(--v-edge);
  border-radius: 10px;
  background: var(--v-primary);
  color: var(--v-on-primary);
  font: 400 20px/1 var(--v-display);
}
.search-suggest .s-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-suggest .s-thumb.is-store {
  border-radius: 50%;
  background: var(--v-yellow);
  color: var(--v-on-yellow);
}
.search-suggest .s-copy {
  display: grid;
  min-width: 0;
  flex: 1;
}
.search-suggest .s-copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-suggest .s-copy small {
  color: var(--v-muted);
  font-size: 12px;
}
.search-suggest .s-price {
  flex: none;
  color: var(--v-ink);
  font-size: 12.5px;
  font-weight: 800;
}
.search-suggest .s-all {
  justify-content: center;
  margin-top: 6px;
  border: 2px dashed var(--v-line);
  font-weight: 800;
}
.search-suggest .s-empty {
  margin: 0;
  padding: 18px;
  color: var(--v-muted);
  text-align: center;
}


/* Actions */
.header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}
.header-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 14px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--v-card-2);
  color: var(--v-ink);
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}
.header-account:hover {
  border-color: var(--v-edge);
}
.header-account .dmx-icon {
  width: 20px;
  height: 20px;
}
.cart-link {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 44px;
  border: 2px solid var(--hdr-cart-edge);
  border-radius: 12px;
  background: var(--hdr-cart);
  color: #fff;
  box-shadow: -3px 3px 0 var(--hdr-cart-edge);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cart-link:hover {
  transform: translate(1px, -1px);
  box-shadow: -4px 4px 0 var(--hdr-cart-edge);
}
.cart-link:active {
  transform: translate(-2px, 2px);
  box-shadow: none;
}
.cart-link .dmx-icon {
  width: 22px;
  height: 22px;
}
:root.dmx-dark .site-header {
  --hdr-cart-edge: #07081a;
}
.cart-count,
.account-count {
  position: absolute;
  top: -8px;
  inset-inline-start: -8px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid var(--v-card);
  border-radius: 999px;
  background: #ffc83d;
  color: #2a2100;
  font: 800 11px/1 var(--v-body);
  animation: v-pop 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.account-count {
  background: #e2405b;
  color: #fff;
}
@keyframes v-pop {
  from {
    transform: scale(0.4);
  }
}

/* Link row */
.header-nav {
  border-top: 1px solid var(--v-line);
}
.header-nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
}
.header-links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-links::-webkit-scrollbar {
  display: none;
}
.header-links ul {
  display: contents;
  list-style: none;
}
.header-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 12px;
  color: var(--v-muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.header-links a .dmx-icon {
  width: 17px;
  height: 17px;
}
.header-links a:hover,
.header-links a[aria-current="page"],
.header-links .current-menu-item > a {
  color: var(--v-ink);
}
.header-links a[aria-current="page"]::after,
.header-links .current-menu-item > a::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--v-primary);
}
.header-sell {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin-inline-start: auto;
  padding: 0 14px;
  border: 1.5px dashed var(--v-edge);
  border-radius: 999px;
  color: var(--v-ink);
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.header-sell .dmx-icon {
  width: 16px;
  height: 16px;
}
.header-sell:hover {
  border-style: solid;
  background: var(--v-ink);
  color: var(--v-card);
}

/* Mobile drawer */
.site-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  inset-inline-end: auto;
  width: min(360px, 88vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-end: 2px solid var(--v-edge);
  background: var(--v-card);
  color: var(--v-text);
  overflow: hidden;
}
.site-drawer[open] {
  display: flex;
  flex-direction: column;
  animation: v-drawer 0.22s ease-out;
}
.site-drawer::backdrop {
  background: rgb(9 10 30 / 0.55);
}
@keyframes v-drawer {
  from {
    transform: translateX(100%);
  }
}
html:has(.site-drawer[open]) {
  overflow: hidden;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--v-line);
}
.drawer-head .brand.has-logo img,
.drawer-head .brand .brand-logo {
  max-width: 150px;
  max-height: 38px;
}
.drawer-body {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 20px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer-account {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius);
  background: var(--v-card-2);
  color: var(--v-ink);
}
.drawer-account-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--v-primary);
  color: var(--v-on-primary);
}
.drawer-account-icon .dmx-icon {
  width: 20px;
  height: 20px;
}
.drawer-account > span:nth-child(2) {
  display: grid;
  min-width: 0;
}
.drawer-account strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drawer-account small {
  color: var(--v-muted);
  font-size: 12.5px;
}
.drawer-account .account-count {
  position: static;
  margin-inline-start: auto;
  border-color: var(--v-card-2);
}
.drawer-links {
  display: grid;
}
.drawer-links ul {
  display: contents;
  list-style: none;
}
.drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 4px;
  border-bottom: 1px dashed var(--v-line);
  color: var(--v-ink);
  font-weight: 800;
}
.drawer-links a .dmx-icon {
  width: 20px;
  height: 20px;
  color: var(--v-muted);
}
.drawer-links a[aria-current="page"],
.drawer-links .current-menu-item > a {
  color: var(--v-link);
}
.drawer-links a[aria-current="page"] .dmx-icon {
  color: currentColor;
}
.drawer-cats h2 {
  margin: 0 0 10px;
  font: 400 19px/1.3 var(--v-display);
}
.drawer-cats .category-mega-grid {
  grid-template-columns: 1fr;
  gap: 4px;
}
.drawer-cats .category-mega-grid a {
  padding: 6px;
}
.drawer-cats .category-mega-grid b {
  width: 36px;
  height: 36px;
}
.drawer-foot {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.drawer-theme {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border: 2px solid var(--v-line);
  border-radius: 12px;
  background: transparent;
  color: var(--v-ink);
  font: 800 14px/1 var(--v-body);
  cursor: pointer;
}
.drawer-theme .dmx-icon {
  width: 20px;
  height: 20px;
}
.drawer-theme .is-dark-label,
:root.dmx-dark .drawer-theme .is-light-label {
  display: none;
}
:root.dmx-dark .drawer-theme .is-dark-label {
  display: inline;
}
.drawer-foot .header-sell {
  justify-content: center;
  height: 46px;
  margin: 0;
  border-radius: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 44px 0 0;
  background: var(--v-ink);
  color: color-mix(in srgb, var(--v-card) 78%, transparent);
}
:root.dmx-dark .site-footer {
  background: #0b0c22;
  color: #c9c8ee;
}
.footer-perforation {
  position: absolute;
  inset: -8px 0 auto;
  height: 16px;
  background: radial-gradient(circle at 10px 8px, var(--v-paper) 7px, transparent 7.5px) 0 0 / 20px 16px repeat-x;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand .brand > i {
  background: var(--v-yellow);
  color: var(--v-on-yellow);
  border-color: #fff;
  box-shadow: none;
}
.footer-brand .brand > span {
  font-size: 34px;
}
.footer-brand p {
  max-width: 340px;
  margin: 14px 0;
  line-height: 2;
}
.footer-top {
  display: inline-flex;
  padding: 3px 12px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}
.footer-links {
  display: grid;
  align-content: start;
  gap: 6px;
}
.footer-links h3 {
  margin: 0 0 8px;
  color: #fff;
  font: 400 19px/1.4 var(--v-display);
}
.footer-links a {
  justify-self: start;
  padding: 2px 0;
  transition: color 0.15s ease;
}
.footer-links a:hover,
.footer-top:hover {
  color: var(--v-yellow);
}
/* Trust badges: copy on the reading side, equal badge tiles at the far end. */
.dmx-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 20px;
  border-top: 1px dashed #ffffff2e;
}
.dmx-trust > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.dmx-trust strong {
  color: #fff;
  font: 400 20px/1.4 var(--v-display);
}
.dmx-trust p {
  margin: 0;
  font-size: 13.5px;
}
.dmx-trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-inline-start: auto;
}
.dmx-trust-card {
  display: grid;
  flex: none;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: 8px;
  overflow: hidden;
  border-radius: var(--v-radius-sm);
  background: #fff;
}
.dmx-trust-card img,
.dmx-trust-card a {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 16px 20px;
  border-top: 1px dashed #ffffff2e;
  font-size: 12.5px;
}

/* ---------- Mobile dock ---------- */
.mobile-dock {
  display: none;
}

/* ---------- Share button ---------- */
.dmx-share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 2px dashed var(--v-edge);
  border-radius: var(--v-radius-sm);
  background: var(--v-card);
  color: var(--v-ink);
  font-weight: 800;
  cursor: pointer;
}
.dmx-share-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.dmx-share-button .dmx-share-url {
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--v-card-2);
  color: var(--v-muted);
  font-size: 12px;
  font-weight: 600;
}
.dmx-share-button:hover {
  border-style: solid;
}
.dmx-share-button.is-copied {
  border-style: solid;
  background: var(--v-mint);
  color: #fff;
}
.dmx-share-button.is-copied .dmx-share-url {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-main {
    gap: 10px;
  }
  .header-account-label {
    display: none;
  }
  .header-account {
    justify-content: center;
    width: 44px;
    padding: 0;
  }
}
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 1000px) {
  .category-menu > summary span {
    display: none;
  }
  .category-menu > summary {
    padding: 0 11px;
  }
}
@media (max-width: 860px) {
  :root {
    --header-h: 62px;
  }
  .dmx-container {
    padding-inline: 16px;
  }
  /* Phone bar: menu · logo ……… search · cart */
  .header-main {
    gap: 4px;
    min-height: 62px;
    padding-block: 9px;
  }
  .header-menu-toggle,
  .header-search-toggle {
    display: inline-grid;
  }
  .header-menu-toggle {
    margin-inline-start: -8px;
  }
  .brand {
    margin-inline-end: auto;
  }
  .brand > i {
    width: 38px;
    height: 38px;
  }
  .brand > i .dmx-icon {
    width: 21px;
    height: 21px;
  }
  .brand > span {
    font-size: 22px;
  }
  .brand.has-logo img,
  .brand .brand-logo {
    max-width: 136px;
    max-height: 36px;
  }
  .category-menu,
  .header-nav,
  .header-account,
  .header-actions > .theme-toggle {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .cart-link {
    width: 44px;
    height: 42px;
  }
  /* Search opens as a sheet under the bar; it does not push the page. */
  .header-search {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    z-index: 5;
    display: none;
    align-items: center;
    gap: 6px;
    max-width: none;
    margin: 0;
    padding: 10px 16px 12px;
    border-bottom: 2px solid var(--v-edge);
    background: var(--v-card);
    box-shadow: 0 18px 30px -24px rgb(8 9 30 / 0.7);
  }
  .site-header.search-open .header-search {
    display: flex;
  }
  .header-search .search-form {
    flex: 1;
  }
  .header-search .search-hint {
    display: none;
  }
  .header-search-close {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--v-ink);
    cursor: pointer;
  }
  .header-search-close .dmx-icon {
    width: 20px;
    height: 20px;
  }
  .header-search .search-suggest {
    inset-inline: 16px;
    top: calc(100% - 4px);
  }
  .site-header.search-open .header-search-toggle {
    background: var(--v-card-2);
  }
  .category-mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer {
    padding-bottom: 76px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .mobile-dock {
    position: fixed;
    inset: auto 12px calc(10px + env(safe-area-inset-bottom)) 12px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 5px;
    border: 2px solid var(--v-edge);
    border-radius: 16px;
    background: var(--v-ink);
    box-shadow: var(--v-shadow-card);
  }
  :root.dmx-dark .mobile-dock {
    background: #0b0c22;
  }
  .mobile-dock a {
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 5px 0 4px;
    border-radius: 11px;
    color: color-mix(in srgb, #fff 72%, transparent);
    font-size: 11px;
    font-weight: 700;
  }
  .mobile-dock a[aria-current="page"] {
    background: var(--v-yellow);
    color: var(--v-on-yellow);
  }
  body {
    padding-bottom: 72px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 520px) {
  .brand small {
    display: none;
  }
  .site-announcement {
    font-size: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-links h3 {
    font-size: 17px;
  }
  .dmx-trust-card {
    width: 88px;
    height: 88px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
[hidden] {
  display: none !important;
}
.woocommerce-Price-currencySymbol {
  margin-inline: 4px;
  font-size: 0.82em;
}

/* 2.5: switchable parts and the closable announcement bar */
.header-search-spacer {
  flex: 1 1 auto;
}
.dmx-bar-closed .site-announcement {
  display: none;
}
.site-announcement a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-announcement.is-dismissible .dmx-container {
  position: relative;
  padding-inline: 40px;
}
.site-announcement-close {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transform: translateY(-50%);
}
.site-announcement-close:hover,
.site-announcement-close:focus-visible {
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.site-announcement-close .dmx-icon {
  width: 16px;
  height: 16px;
}
@media (max-width: 860px) {
  body.dmx-no-dock {
    padding-bottom: 0;
  }
  .dmx-no-dock .site-footer {
    padding-bottom: 32px;
  }
}

/* 2.6: «همهٔ دسته‌ها» dialog and empty («به‌زودی») categories */
.category-mega-grid a.is-empty,
.category-grid a.is-empty {
  opacity: 0.72;
}
.category-mega-grid a.is-empty b,
.category-grid a.is-empty b {
  background: color-mix(in srgb, var(--tone, var(--v-primary)) 45%, var(--v-card));
}
.category-mega-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.category-mega-more,
.dmx-text-button {
  padding: 6px 12px;
  border: 2px solid var(--v-edge);
  border-radius: 999px;
  background: var(--v-card);
  color: var(--v-ink);
  font: 800 13px/1.6 var(--v-body);
  cursor: pointer;
}
.category-mega-more:hover,
.dmx-text-button:hover {
  background: var(--v-yellow);
  color: var(--v-on-yellow);
}
.drawer-cats .category-mega-more {
  margin-top: 10px;
}
.dmx-cat-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 2px solid var(--v-edge);
  border-radius: var(--v-radius);
  background: var(--v-card);
  color: var(--v-text);
  box-shadow: var(--v-shadow-card);
}
.dmx-cat-dialog::backdrop {
  background: color-mix(in srgb, #0b0c22 60%, transparent);
}
.dmx-cat-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.dmx-cat-dialog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--v-line);
}
.dmx-cat-dialog-head h2 {
  margin: 0;
  font: 400 22px/1.4 var(--v-display);
}
.dmx-cat-filter {
  flex: 1 1 220px;
}
.dmx-cat-filter input {
  width: 100%;
  min-height: 40px;
}
.dmx-cat-dialog-body {
  overflow-y: auto;
  padding: 18px;
}
.dmx-cat-columns {
  columns: 4 220px;
  column-gap: 16px;
}
.dmx-cat-column {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 10px;
  border: 1.5px solid var(--v-line);
  border-radius: var(--v-radius-sm);
  break-inside: avoid;
}
.dmx-cat-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  color: var(--v-ink);
}
.dmx-cat-head b {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tone, var(--v-primary));
  color: #fff;
}
.dmx-cat-head b .dmx-icon {
  width: 18px;
  height: 18px;
}
.dmx-cat-head strong {
  font-size: 14px;
}
.dmx-cat-head small {
  color: var(--v-muted);
  font-size: 11.5px;
}
.dmx-cat-head.is-empty b {
  background: color-mix(in srgb, var(--tone, var(--v-primary)) 45%, var(--v-card));
}
.dmx-cat-column ul {
  display: grid;
  gap: 1px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.dmx-cat-column li a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--v-text);
  font-size: 13px;
}
.dmx-cat-column li a:hover {
  background: var(--v-card-2);
}
.dmx-cat-column li small {
  color: var(--v-muted);
  font-size: 11px;
}
.dmx-cat-column li a.is-empty {
  color: var(--v-muted);
}
.dmx-cat-soon-title {
  margin: 6px 0 12px;
  color: var(--v-muted);
  font-size: 14px;
}
.dmx-cat-columns.is-soon .dmx-cat-column {
  border-style: dashed;
}
.dmx-cat-none {
  color: var(--v-muted);
}
@media (max-width: 560px) {
  .dmx-cat-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .dmx-cat-columns {
    columns: 1;
  }
  .dmx-cat-columns.is-soon {
    columns: 2;
    column-gap: 8px;
  }
  .dmx-cat-columns.is-soon .dmx-cat-column {
    margin-bottom: 8px;
    padding: 8px;
  }
  .dmx-cat-columns.is-soon .dmx-cat-head {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .dmx-cat-columns.is-soon .dmx-cat-head b {
    width: 28px;
    height: 28px;
  }
}
