/* ============================================================
   SARAMAD — BASE DESIGN SYSTEM
   Design system: "Dungeons & Dragons" (DESIGN.md)
   Gold #de8435 on a cool, misty canvas; dark #1a1a2e bands.
   Persian RTL. Vazirmatn (fa) + Roboto (latin).
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Colors */
  --color-primary: #de8435;
  --color-primary-active: #c46f2a;
  --color-primary-disabled: #f0cfa0;
  --color-ink: #1a1a2e;
  --color-body: #2d2d44;
  --color-muted: #6b6b80;
  --color-muted-soft: #9a9aad;
  --color-hairline: #c8c8d4;
  --color-hairline-soft: #e0e0e8;
  --color-canvas: #ffffff;
  --color-surface-soft: #f4f4f8;
  --color-surface-card: #ffffff;
  --color-surface-dark: #1a1a2e;
  --color-on-primary: #ffffff;
  --color-on-dark: #ffffff;
  --color-accent-blue: #bdd6e6;
  --color-accent-blue-soft: #d4e4f0;
  --color-accent-gold: #de8435;
  --color-accent-gold-light: #f5d6a8;
  --color-badge-red: #c0392b;
  --color-badge-green: #27ae60;
  --color-link: #de8435;
  --color-link-hover: #c46f2a;

  /* Radii */
  --radius-none: 0px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 64px;

  /* Type */
  --font-body: 'Vazirmatn', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Vazirmatn', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-latin: 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  --text-display-xl: 48px;
  --text-display-lg: 36px;
  --text-display-md: 28px;
  --text-title-lg: 20px;
  --text-title-md: 18px;
  --text-title-sm: 16px;
  --text-body-md: 16px;
  --text-body-sm: 14px;
  --text-caption: 13px;
  --text-caption-sm: 12px;

  /* Elevation & misc */
  --shadow-card: 0 1px 2px rgba(26, 26, 46, 0.05), 0 4px 16px rgba(26, 26, 46, 0.07);
  --shadow-card-hover: 0 6px 14px rgba(26, 26, 46, 0.10), 0 14px 40px rgba(26, 26, 46, 0.14);
  --shadow-pop: 0 18px 50px rgba(26, 26, 46, 0.22);
  --ease: cubic-bezier(0.25, 0.8, 0.35, 1);
  --nav-h: 64px;
  --container-max: 1440px;
  --z-header: 900;
  --z-drawer: 1000;
  --z-modal: 1100;
  --z-float: 950;
  --z-toast: 1200;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body-md);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-body);
  background: var(--color-canvas);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin: 0 0 var(--space-base);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
}

p { margin: 0 0 var(--space-base); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--color-link-hover); }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

hr {
  border: 0;
  height: 1px;
  background: var(--color-hairline-soft);
  margin: var(--space-base) 0;
}

::selection { background: var(--color-accent-gold-light); color: var(--color-ink); }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Latin digits / prices */
.num, .price-text, .countdown .time-box span {
  font-family: var(--font-latin);
  direction: ltr;
  unicode-bidi: embed;
}

/* ---------- 3. TYPE SCALE ---------- */
.display-xl { font-size: var(--text-display-xl); font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; }
.display-lg { font-size: var(--text-display-lg); font-weight: 800; line-height: 1.15; letter-spacing: -0.3px; }
.display-md { font-size: var(--text-display-md); font-weight: 700; line-height: 1.2; }
.title-lg   { font-size: var(--text-title-lg); font-weight: 600; line-height: 1.3; }
.title-md   { font-size: var(--text-title-md); font-weight: 600; line-height: 1.35; }
.title-sm   { font-size: var(--text-title-sm); font-weight: 500; line-height: 1.4; }
.body-md    { font-size: var(--text-body-md); line-height: 1.6; }
.body-sm    { font-size: var(--text-body-sm); line-height: 1.5; }
.caption    { font-size: var(--text-caption); line-height: 1.4; }
.caption-sm { font-size: var(--text-caption-sm); line-height: 1.3; }

.fs-3 { font-size: 30px; }
.fs-4 { font-size: 24px; }
.fs-5 { font-size: 20px; }
.fs-6 { font-size: 14px; }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-normal { font-weight: 400; }
.fw-light { font-weight: 300; }

.text-white { color: #fff !important; }
.text-ink { color: var(--color-ink) !important; }
.text-body { color: var(--color-body) !important; }
.text-muted { color: var(--color-muted) !important; }
.text-muted-soft { color: var(--color-muted-soft) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-gold { color: var(--color-primary) !important; }
.text-success { color: var(--color-badge-green) !important; }
.text-danger { color: var(--color-badge-red) !important; }
.text-center { text-align: center !important; }
.text-start { text-align: start !important; }
.text-end { text-align: end !important; }
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.small { font-size: 0.875em; }
.link-underline:hover { text-decoration: underline; }

/* ---------- 4. LAYOUT PRIMITIVES ---------- */
.container, .container-fluid {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-base);
}
.container { max-width: var(--container-max); }
.container-xxl { max-width: 1440px; }

.section { padding-block: var(--space-section); }
.section-sm { padding-block: var(--space-xxl); }
.section-xs { padding-block: var(--space-xl); }

/* --- Flexbox utilities --- */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-baseline { align-items: baseline !important; }
.align-self-center { align-self: center !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.h-70px { height: 70px; }
.min-vh-100 { min-height: 100vh; }
.max-vw-100 { max-width: 100%; }

/* --- Grid (row + cols, used by injected cart HTML and legacy partials) --- */
.row {
  display: flex;
  flex-wrap: wrap;
}
.row > * { min-width: 0; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.g-0 { --gap: 0; }
.g-1 { --gap: var(--space-xs); }
.g-2 { --gap: var(--space-sm); }
.g-3 { --gap: var(--space-base); }
.g-4 { --gap: var(--space-lg); }
.g-5 { --gap: var(--space-xl); }
.row.g-1, .row.g-2, .row.g-3, .row.g-4, .row.g-5,
.g-1, .g-2, .g-3, .g-4, .g-5 { gap: var(--gap, 0); }

@media (min-width: 744px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-sm-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
}
@media (min-width: 1128px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
  .col-lg-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 1440px) {
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
}

/* --- Spacing utilities (m* = margin, p* = padding; RTL-aware) --- */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ms-0 { margin-inline-start: 0 !important; }
.me-0 { margin-inline-end: 0 !important; }
.mx-0 { margin-inline: 0 !important; }
.my-0 { margin-block: 0 !important; }
.mt-1 { margin-top: var(--space-xxs) !important; }
.mt-2 { margin-top: var(--space-xs) !important; }
.mt-3 { margin-top: var(--space-sm) !important; }
.mt-4 { margin-top: var(--space-base) !important; }
.mt-5 { margin-top: var(--space-lg) !important; }
.mt-7 { margin-top: var(--space-xl) !important; }
.mb-1 { margin-bottom: var(--space-xxs) !important; }
.mb-2 { margin-bottom: var(--space-xs) !important; }
.mb-3 { margin-bottom: var(--space-sm) !important; }
.mb-4 { margin-bottom: var(--space-base) !important; }
.mb-5 { margin-bottom: var(--space-lg) !important; }
.me-1 { margin-inline-end: var(--space-xs) !important; }
.me-2 { margin-inline-end: var(--space-sm) !important; }
.me-3 { margin-inline-end: var(--space-base) !important; }
.ms-1 { margin-inline-start: var(--space-xs) !important; }
.ms-2 { margin-inline-start: var(--space-sm) !important; }
.ms-3 { margin-inline-start: var(--space-base) !important; }
.my-2 { margin-block: var(--space-sm) !important; }
.my-3 { margin-block: var(--space-base) !important; }
.mt-n2 { margin-top: calc(-1 * var(--space-xs)) !important; }
.mt-n4 { margin-top: calc(-1 * var(--space-base)) !important; }
.mt-n6 { margin-top: calc(-1 * var(--space-lg)) !important; }
.mt-n7 { margin-top: calc(-1 * var(--space-xl)) !important; }
.me-n4 { margin-inline-end: calc(-1 * var(--space-base)) !important; }
.me-n7 { margin-inline-end: calc(-1 * var(--space-xl)) !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: var(--space-sm) !important; }
.p-3 { padding: var(--space-base) !important; }
.px-0 { padding-inline: 0 !important; }
.px-2 { padding-inline: var(--space-sm) !important; }
.px-3 { padding-inline: var(--space-base) !important; }
.px-5 { padding-inline: var(--space-xl) !important; }
.px-6 { padding-inline: var(--space-xxl) !important; }
.px-xl-5 { padding-inline: var(--space-xl) !important; }
.py-2 { padding-block: var(--space-sm) !important; }
.py-3 { padding-block: var(--space-base) !important; }
.py-5 { padding-block: var(--space-xl) !important; }
.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: var(--space-xxs) !important; }
.pb-2 { padding-bottom: var(--space-sm) !important; }
.pb-3 { padding-bottom: var(--space-base) !important; }
.pb-5 { padding-bottom: var(--space-lg) !important; }
.pt-0 { padding-top: 0 !important; }
.pt-3 { padding-top: var(--space-sm) !important; }
.pt-5 { padding-top: var(--space-lg) !important; }
.pt-7 { padding-top: var(--space-xl) !important; }

/* --- Position / misc --- */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-sticky { position: sticky !important; }
.position-fixed { position: fixed !important; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { inset-inline-start: 0 !important; }
.end-0 { inset-inline-end: 0 !important; }
.start-50 { inset-inline-start: 50% !important; }
.top-50 { top: 50% !important; }
.top-100 { top: 100% !important; }
.start-100 { inset-inline-start: 100% !important; }
.translate-middle { transform: translate(-50%, -50%) !important; }
.translate-middle-y { transform: translateY(-50%) !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }

.rounded { border-radius: var(--radius-sm) !important; }
.rounded-2 { border-radius: var(--radius-sm) !important; }
.rounded-3 { border-radius: var(--radius-md) !important; }
.rounded-4 { border-radius: var(--radius-lg) !important; }
.rounded-circle { border-radius: var(--radius-full) !important; }

.shadow-sm { box-shadow: 0 1px 4px rgba(26, 26, 46, 0.08); }
.shadow { box-shadow: var(--shadow-card); }
.shadow-lg { box-shadow: var(--shadow-card-hover); }

.bg-white { background: var(--color-canvas) !important; }
.bg-light { background: var(--color-surface-soft) !important; }
.bg-soft { background: var(--color-surface-soft) !important; }
.bg-primary { background: var(--color-primary) !important; }
.bg-dark { background: var(--color-surface-dark) !important; }
.bg-accent-blue-soft { background: var(--color-accent-blue-soft) !important; }
.bg-opacity-10 { background-color: rgba(222, 132, 53, 0.10) !important; }

.border { border: 1px solid var(--color-hairline-soft) !important; }
.border-0 { border: 0 !important; }
.border-bottom { border-bottom: 1px solid var(--color-hairline-soft) !important; }
.border-top { border-top: 1px solid var(--color-hairline-soft) !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.list-inline { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.list-inline-item { display: inline-flex; }

.cursor-pointer { cursor: pointer; }
.pointer_event_none { pointer-events: none; }

/* Responsive visibility helpers used in templates */
@media (max-width: 743.98px) {
  .d-lg-none, .d-xl-none { display: none !important; }
  .d-md-none { display: none !important; }
  .d-none-d-lg-block { display: none !important; }
}
@media (min-width: 1128px) {
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  min-height: 44px;
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              transform 0.15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.disabled { cursor: not-allowed; transform: none; }

.btn-sm { font-size: 14px; min-height: 38px; padding: 9px 20px; }
.btn-lg { font-size: 17px; min-height: 50px; padding: 13px 34px; }

.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--color-primary-active); color: #fff; }
.btn-primary:disabled, .btn-primary.disabled {
  background: var(--color-primary-disabled);
  color: var(--color-muted);
}

.btn-secondary {
  background: var(--color-canvas);
  color: var(--color-ink);
  border-color: var(--color-hairline);
}
.btn-secondary:hover { background: var(--color-surface-soft); border-color: var(--color-primary); color: var(--color-ink); }

.btn-dark { background: var(--color-surface-dark); color: #fff; }
.btn-dark:hover { background: #262645; color: #fff; }

.btn-ghost { background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(26, 26, 46, 0.06); }
.btn-ghost-dark { background: transparent; color: #fff; }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Pill variants (hero CTAs, promo banners) */
.btn-pill, .btn-pill-gold, .btn-pill-outline { border-radius: var(--radius-full); font-size: 14px; padding: 10px 24px; min-height: 40px; }
.btn-pill-gold { background: var(--color-primary); color: #fff; }
.btn-pill-gold:hover { background: var(--color-primary-active); color: #fff; }
.btn-pill-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-pill-outline:hover { background: rgba(222, 132, 53, 0.12); color: var(--color-primary-active); }
.on-dark .btn-pill-outline { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.on-dark .btn-pill-outline:hover { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }

/* Icon-only buttons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
  border-radius: var(--radius-full);
  font-size: 16px;
}
.btn-icon:hover { background: rgba(26, 26, 46, 0.08); color: inherit; transform: none; }
.btn-icon-dark:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- 6. BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  color: #fff;
  white-space: nowrap;
}
.badge-new, .badge-success { background: var(--color-badge-green); color: #fff; }
.badge-sale, .badge-danger { background: var(--color-badge-red); color: #fff; }
.badge-category {
  background: var(--color-accent-blue-soft);
  color: var(--color-ink);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12px;
}
.badge-gold { background: var(--color-accent-gold-light); color: var(--color-primary-active); }

/* ---------- 7. FORMS ---------- */
.form-control, .form-select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-body);
  background: var(--color-canvas);
  border: 2px solid var(--color-hairline-soft);
  border-radius: var(--radius-full);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-control::placeholder { color: var(--color-muted-soft); }
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(222, 132, 53, 0.18);
}
.form-control.is-invalid { border-color: var(--color-badge-red); }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: var(--space-xs);
}
.form-text { font-size: 12px; color: var(--color-muted); }
.form-check-input {
  appearance: none;
  width: 18px; height: 18px;
  border: 2px solid var(--color-hairline);
  border-radius: var(--radius-xs);
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.form-check-input:checked { background: var(--color-primary) border-box; border-color: var(--color-primary); }
.form-check-input:checked::after {
  content: "";
  position: absolute;
  inset-inline-start: 4px; top: 0px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
label { cursor: pointer; }

/* Search bar (nav + standalone) */
.search-box { position: relative; display: flex; align-items: center; }
.search-box .form-control {
  padding-inline-start: 20px;
  padding-inline-end: 48px;
  background: var(--color-canvas);
  border-color: transparent;
}
.search-box .search-btn {
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-ink);
}
.search-box .search-btn:hover { background: var(--color-surface-soft); color: var(--color-primary); }
.search-box .search-results {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  z-index: var(--z-header);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  max-height: 320px;
  overflow: auto;
  padding: var(--space-sm);
}
.search-box .search-results:empty { display: none; }
.search-result a { display: flex; gap: var(--space-sm); align-items: center; padding: var(--space-sm); border-radius: var(--radius-sm); }
.search-result a:hover { background: var(--color-surface-soft); }
.search-result img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-xs); }

/* ---------- 8. TABS / PILLS (nav-tabs, nav-pills markup) ---------- */
.nav { display: flex; }
.nav-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-surface-soft);
  border-radius: var(--radius-full);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.nav-item { display: flex; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px 22px;
  min-height: 42px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-body);
  border-radius: var(--radius-full);
  border: 0;
  background: transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-link:hover { color: var(--color-primary); background: rgba(222, 132, 53, 0.08); }
.nav-link.active { background: var(--color-primary); color: #fff; }
a.nav-link { color: var(--color-body); }

.tab-content { width: 100%; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- 9. PRODUCT CARD ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface-card);
  border: 1px solid var(--color-hairline-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: rgba(222, 132, 53, 0.35);
  color: inherit;
}
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-base);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__badges {
  position: absolute;
  top: var(--space-sm);
  inset-inline-start: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-start;
}
.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-base);
  flex-grow: 1;
}
.product-card__title {
  margin: 0;
  font-size: var(--text-title-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-ink);
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.product-card__price .price-final {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
}
.product-card__price .price-final .toman { font-size: 12px; font-weight: 500; color: var(--color-primary-active); }
.product-card__price .price-old {
  font-size: 12px;
  color: var(--color-muted-soft);
  text-decoration: line-through;
}
.product-card__cta { margin-top: auto; width: 100%; }

/* ---------- 10. BLOG CARD ---------- */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface-card);
  border: 1px solid var(--color-hairline-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.blog-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-accent-blue-soft);
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.06); }
.blog-card__badge {
  position: absolute;
  bottom: var(--space-sm);
  inset-inline-start: var(--space-sm);
}
.blog-card__body { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-base); flex-grow: 1; }
.blog-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.5;
}
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--color-primary); }
.blog-card__excerpt { font-size: 13px; color: var(--color-muted); }
.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--color-muted-soft);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-hairline-soft);
}

/* ---------- 11. CATEGORY CARD (circular) ---------- */
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-base);
  color: var(--color-body);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cat-card:hover { color: var(--color-primary-active); background: var(--color-surface-soft); }
.cat-card .img {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-full);
  background: var(--color-accent-blue-soft);
  padding: 6px;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.cat-card .img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-full); }
.cat-card:hover .img { transform: translateY(-4px); background: var(--color-accent-gold-light); }
.cat-card p, .cat-card span { font-size: 13px; font-weight: 500; margin: 0; text-align: center; }

/* ---------- 12. COUNTDOWN ---------- */
.countdown { display: flex; gap: var(--space-sm); justify-content: center; }
.countdown .time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 64px;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}
.countdown .time-box span { font-size: 24px; font-weight: 700; line-height: 1; }
.countdown .time-box label, .countdown .time-box small { font-size: 11px; opacity: 0.75; margin-top: 2px; }
.countdown-container { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }

/* ---------- 13. SITE HEADER (dark band) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-surface-dark);
  color: var(--color-on-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 30px rgba(26, 26, 46, 0.25);
}
.topbar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  height: var(--nav-h);
}
.topbar-brand img { max-height: 44px; width: auto; margin-inline: auto; }
.topbar-brand { display: inline-flex; align-items: center; }
.topbar-brand:hover img { opacity: 0.92; }

/* Main nav links */
.main-nav { display: flex; align-items: center; gap: var(--space-xs); }
.main-nav .nav-link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  min-height: 44px;
}
.main-nav .nav-link:hover { color: var(--color-primary); background: rgba(255, 255, 255, 0.06); }
.main-nav .nav-link.active { color: var(--color-primary); background: transparent; }

/* Category trigger (angular, per design) */
.cat-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--radius-xs);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cat-trigger:hover, .cat-trigger[aria-expanded="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.cat-trigger .caret { transition: transform 0.2s var(--ease); font-size: 11px; }
.cat-trigger[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* Header actions */
.topbar-actions { display: flex; align-items: center; gap: var(--space-sm); margin-inline-start: auto; flex-shrink: 0; }
.topbar-search { width: 240px; flex-shrink: 1; min-width: 150px; transition: width 0.3s var(--ease); }
.topbar { flex-wrap: nowrap; }
.main-nav { flex-shrink: 1; min-width: 0; }
.main-nav .nav-link { padding: 10px 10px; white-space: nowrap; }
.topbar-brand { flex-shrink: 0; }
.topbar-brand img { max-height: 38px; max-width: 90px; object-fit: contain; }
.cat-trigger { flex-shrink: 0; padding: 10px 14px; }
.topbar-search .form-control { min-height: 40px; background: #fff; }
.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.topbar-phone:hover { color: var(--color-primary); border-color: var(--color-primary); }
.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 18px;
  transition: background-color 0.2s var(--ease);
}
.cart-btn:hover { background: rgba(255, 255, 255, 0.1); }
.cart-count {
  position: absolute;
  top: 2px;
  inset-inline-end: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
}
.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: #fff;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius-full);
  transition: background-color 0.2s var(--ease);
  flex-shrink: 0;
}
.profile-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.profile-btn .avatar {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.profile-btn span { font-size: 13px; font-weight: 500; }

/* Hamburger (mobile) */
.navbar-toggler {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: #fff;
}
.navbar-toggler:hover { background: rgba(255, 255, 255, 0.08); }
.navbar-toggler span.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: opacity 0.2s var(--ease);
}
.navbar-toggler span.bar::before, .navbar-toggler span.bar::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.navbar-toggler span.bar::before { top: -7px; }
.navbar-toggler span.bar::after { top: 7px; }

/* ---------- Dropdowns (menu.html mega menu) ---------- */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  z-index: var(--z-drawer);
  min-width: 220px;
  background: #fff;
  color: var(--color-body);
  border: 1px solid var(--color-hairline-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: var(--space-sm);
  display: none;
}
.dropdown-menu.show { display: block; }
.dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 9px 12px;
  min-height: 40px;
  font-size: 14px;
  color: var(--color-body);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.dropdown-menu .dropdown-item:hover { background: var(--color-surface-soft); color: var(--color-primary-active); }
.dropdown-menu .dropdown-item .bi, .dropdown-menu .dropdown-item .fas { width: 16px; }
.dropdown-menu .dropdown-divider { border: 0; height: 1px; background: var(--color-hairline-soft); margin: var(--space-sm) 0; }
.dropdown-menu-end { inset-inline-start: auto; inset-inline-end: 0; }

/* Stacked sub-menus (hover) */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu {
  top: -6px;
  inset-inline-start: 100%;
  inset-inline-end: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  pointer-events: none;
}
.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu,
.dropdown-submenu > .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.dropdown-submenu > .dropdown-item::after { content: "\203A"; color: var(--color-muted-soft); }
/* mega menu (category rail + panel) */
.cat-mega { position: relative; flex-shrink: 0; }
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: -8px;
  width: min(960px, calc(100vw - 32px));
  max-height: min(78vh, 620px);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  display: none;
  z-index: var(--z-drawer);
}
.mega-menu.show { display: flex; }
.mega-rail {
  list-style: none;
  margin: 0;
  padding: 8px;
  width: 224px;
  flex-shrink: 0;
  border-inline-end: 1px solid var(--color-hairline-soft);
  background: var(--color-surface-soft);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-rail__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.mega-rail__item:hover { background: rgba(255, 255, 255, 0.75); color: var(--color-ink); }
.mega-rail__item.is-active {
  background: #fff;
  color: var(--color-primary-active);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(222, 132, 53, 0.4);
}
.mega-rail__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--color-accent-blue-soft);
  color: var(--color-primary-active);
  border-radius: var(--radius-sm);
  font-size: 15px;
  overflow: hidden;
}
.mega-rail__item.is-active .mega-rail__icon { background: var(--color-accent-gold-light); }
.mega-rail__icon img { width: 100%; height: 100%; object-fit: cover; }
.mega-rail__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-body { flex: 1; min-width: 0; overflow-y: auto; padding: 18px 22px 22px; }
.mega-panel { display: none; }
.mega-panel.is-active { display: block; animation: mega-fade 0.22s var(--ease); }
@keyframes mega-fade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.mega-panel__all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--color-hairline-soft);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
}
.mega-panel__all i { color: var(--color-primary); font-size: 13px; transition: transform 0.2s var(--ease); }
.mega-panel__all:hover { color: var(--color-primary-active); }
.mega-panel__all:hover i { transform: translateX(-3px); }
.mega-panel__hint { color: var(--color-muted); font-size: 14px; padding: 8px 0; }

/* ---------- 14. MOBILE DRAWER ---------- */
.mobile-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(360px, 88vw);
  background: var(--color-surface-dark);
  color: #fff;
  z-index: calc(var(--z-drawer) + 1);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: var(--space-base);
  padding-bottom: calc(var(--space-xxl) + 70px);
}
[dir="rtl"] .mobile-drawer { transform: translateX(-100%); }
.mobile-drawer.open { transform: translateX(0) !important; }
.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: var(--space-base);
}
.mobile-drawer__nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer__nav a, .mobile-drawer__nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: 13px 10px;
  min-height: 48px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.mobile-drawer__nav a:hover, .mobile-drawer__nav button:hover { background: rgba(255, 255, 255, 0.07); color: var(--color-primary); }
.mobile-drawer__nav a.active { color: var(--color-primary); }
.drawer-cat-list { display: none; flex-direction: column; gap: 2px; padding-block: var(--space-xs); }
.drawer-cat-list.open { display: flex; }
.drawer-cat-list a { font-size: 14px !important; font-weight: 500 !important; color: #cfd2e8 !important; }
.drawer-sub { padding-inline-start: var(--space-base); }
.drawer-search { margin-block: var(--space-base); }
.drawer-phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 10px;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: var(--z-drawer);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.drawer-backdrop.show { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }

/* Mobile second row (search + actions) */
.topbar-mobile {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-base) var(--space-base);
  background: var(--color-surface-dark);
}
.topbar-mobile .search-box { flex-grow: 1; }
.topbar-mobile .search-box .form-control { min-height: 42px; background: #fff; }
.topbar-mobile .nav-search--mobile { width: 100%; flex: 1; min-width: 0; }

@media (max-width: 1127.98px) {
  .main-nav, .topbar-phone, .profile-btn span, .topbar .nav-search:not(.nav-search--mobile) { display: none; }
  .navbar-toggler { display: inline-flex; }
  .topbar-mobile { display: flex; }
}
@media (min-width: 1128px) {
  .mobile-drawer, .drawer-backdrop { display: none; }
}

/* ---------- 15. SITE FOOTER (dark band) ---------- */
.site-footer {
  background: var(--color-surface-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  padding: var(--space-xxl) var(--space-base) var(--space-base);
  margin-top: var(--space-section);
}
.site-footer a { color: var(--color-muted-soft); }
.site-footer a:hover { color: var(--color-primary); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-base);
}
@media (min-width: 744px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand img { max-height: 56px; width: auto; margin-bottom: var(--space-base); }
.footer-brand p { color: rgba(255, 255, 255, 0.65); font-size: 13px; line-height: 1.9; text-align: justify; }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-base); }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-social a:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-base);
  position: relative;
  padding-inline-start: 14px;
}
.footer-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  width: 4px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 2px;
}
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: 13px; min-height: 34px; }
.footer-contact p { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--space-base); font-size: 13px; }
.footer-contact .val { color: #fff; font-size: 14px; font-family: var(--font-latin); }
.footer-contact .val.fa-val { font-family: var(--font-body); }
.footer-badges { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.footer-badges img, .footer-badges a { border-radius: var(--radius-sm); }
.footer-badges img { max-height: 92px; width: auto; background: #fff; padding: 6px; }
.footer-bottom {
  max-width: var(--container-max);
  margin: var(--space-xl) auto 0;
  padding: var(--space-base) var(--space-base) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom .heart { color: var(--color-badge-red); }
.footer-divider { border: 0; height: 1px; background: rgba(255, 255, 255, 0.12); margin: var(--space-xl) 0; }

/* ---------- 16. MOBILE BOTTOM NAV ---------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: var(--z-float);
  background: #fff;
  border-top: 1px solid var(--color-hairline-soft);
  box-shadow: 0 -8px 30px rgba(26, 26, 46, 0.10);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bottom-nav .mnav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  max-width: 560px;
  margin-inline: auto;
}
.mobile-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 58px;
  padding: 6px 2px;
}
.mobile-bottom-nav__item a, .mobile-bottom-nav__item .mobile-bottom-nav__item-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  color: var(--color-muted);
  font-size: 20px;
  position: relative;
}
.mobile-bottom-nav__item a:hover { color: var(--color-primary); }
.mobile-bottom-nav__item p {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.2;
}
.mobile-bottom-nav__item.active a, .mobile-bottom-nav__item.active p { color: var(--color-primary); }
.mobile-bottom-nav__item .bakala-cart-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -10px;
  min-width: 17px;
  height: 17px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
}
@media (max-width: 743.98px) {
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 74px; }
}

/* ---------- 17. FLOATING PHONE ---------- */
.btn-floating.phone {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 52px;
  padding: 0 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(222, 132, 53, 0.45);
  font-weight: 700;
  font-family: var(--font-latin);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-floating.phone:hover { background: var(--color-primary-active); transform: translateY(-2px); color: #fff; }
.btn-floating.phone .icon { font-size: 18px; }
.btn-floating.phone span { font-size: 14px; letter-spacing: 0.3px; }
@media (max-width: 743.98px) {
  .btn-floating.phone { bottom: 86px; inset-inline-start: 16px; padding: 0; width: 52px; justify-content: center; }
  .btn-floating.phone span { display: none; }
}

/* ---------- 18. MINI CART DRAWER ---------- */
.deployform {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(400px, 94vw);
  z-index: var(--z-modal);
  background: #fff;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  visibility: hidden;
}
[dir="rtl"] .deployform { transform: translateX(-100%); }
.deployform.open { transform: translateX(0) !important; visibility: visible; }
.deployform > .icon {
  position: absolute;
  top: 14px;
  inset-inline-end: 16px;
  font-size: 18px;
  color: var(--color-muted);
  cursor: pointer;
  z-index: 2;
}
.deployform > .icon:hover { color: var(--color-ink); }
.deployform > #open_btn { inset-inline-start: 16px; inset-inline-end: auto; color: var(--color-ink); }
.deployform.open > #open_btn { display: none; }
.mini-cart-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--space-base);
  border-bottom: 1px solid var(--color-hairline-soft);
}
.mini-cart-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
}
.mini-cart-close {
  margin-inline-start: auto;
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.mini-cart-close:hover { color: var(--color-ink); background: var(--color-surface-soft); }
.miniCart {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-base);
}
.miniCart a[onclick*="openCart"], .miniCart > a {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-base);
}
.miniCart > a:hover { background: var(--color-primary-active); color: #fff; }
.miniCart button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-base);
}
.miniCart button:hover { background: var(--color-primary-active); }
/* Cart item rows (injected by API) */
#miniCartData .row { position: relative; margin-top: var(--space-lg); padding-top: var(--space-base); border-top: 1px solid var(--color-hairline-soft); }
#miniCartData img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); background: var(--color-surface-soft); }
#miniCartData .col-8 { padding-inline-start: var(--space-sm); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
#miniCartData .col-8 p { margin: 0; font-size: 13px; }
#miniCartData .col-8 p:first-child { font-weight: 600; color: var(--color-ink); }
#miniCartData .col-8 p:last-child { color: var(--color-primary); font-weight: 700; font-family: var(--font-latin); }
#miniCartData .removeCart {
  position: absolute;
  top: 6px;
  inset-inline-start: 4px;
  font-size: 13px;
  color: var(--color-muted-soft);
  cursor: pointer;
}
#miniCartData .removeCart:hover { color: var(--color-badge-red); }
#miniCartData hr { margin: var(--space-md) 0 0; }
#MiniCartCount {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-latin);
}
.deployform-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: calc(var(--z-modal) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.deployform-backdrop.show { opacity: 1; visibility: visible; }

/* ---------- 19. MODALS ---------- */
.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.modal-backdrop-custom.show { opacity: 1; visibility: visible; }
.modal { position: fixed; inset: 0; z-index: calc(var(--z-modal) + 1); display: none; align-items: flex-start; justify-content: center; padding: var(--space-base); overflow-y: auto; }
.modal.show { display: flex !important; }
/* Bootstrap JS injects inline "display:block" + a bare .modal-backdrop div (no Bootstrap CSS loaded).
   Force our layout and give the backdrop real styles. */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 32, 0.55);
  z-index: var(--z-modal); /* 1100, just below .modal (1101) */
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal-backdrop.show { opacity: 1; }
body.modal-open { overflow: hidden; }
.modal-dialog { margin: auto; width: 100%; max-width: 440px; }
.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: modalIn 0.28s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-base) var(--space-lg);
  background: var(--color-surface-dark);
}
.modal-header .modal-title { color: #fff; font-size: 17px; font-weight: 700; margin: 0; }
.modal-header .btn-close-custom {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
}
.modal-header .btn-close-custom:hover { background: var(--color-primary); }
.modal-body { padding: var(--space-lg); }
.modal-footer { padding: 0 var(--space-lg) var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.cm-logo { background: var(--color-accent-blue-soft); padding: var(--space-base); text-align: center; }
.cm-logo img { max-height: 64px; margin-inline: auto; }
.cm-body p { font-size: 14px; color: var(--color-body); }
.cm-body a { font-weight: 600; }
.cm-footer { display: flex; flex-wrap: wrap; gap: var(--space-sm); padding: 0 var(--space-lg) var(--space-lg); }
.cm-footer a {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 11px 14px;
  background: var(--color-surface-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-body);
}
.cm-footer a:hover { background: var(--color-accent-gold-light); color: var(--color-primary-active); }

/* OTP inputs */
.otp-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  row-gap: 8px;
  direction: ltr;
  margin-block: var(--space-base);
  margin-inline: auto;
  max-width: 100%;
}
.otp-wrapper input {
  flex: 1 1 0;
  min-width: 26px;
  max-width: 44px;
  height: 46px;
  text-align: center;
  padding: 0;
  font-family: var(--font-latin);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
  background: #fff;
  border: 1.5px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  appearance: textfield;
  -moz-appearance: textfield;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.otp-wrapper input::-webkit-outer-spin-button,
.otp-wrapper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.otp-wrapper input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(222, 132, 53, 0.18); }
.otp-wrapper input:disabled { background: var(--color-surface-soft); border-color: var(--color-hairline-soft); color: var(--color-muted-soft); }
#phoneForm p, #otpForm p { font-size: 14px; color: var(--color-muted); }
#message { font-size: 13px; color: var(--color-badge-red); min-height: 1.2em; }

/* Coupons */
.coupones { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) 0; }
.coupones span { flex: 1; font-family: var(--font-latin); font-weight: 700; color: var(--color-primary); letter-spacing: 0.5px; cursor: pointer; }
.coupones p { margin: 0; font-size: 13px; color: var(--color-body); cursor: pointer; }
.coupones i { color: var(--color-muted-soft); cursor: pointer; }
.coupones i:hover { color: var(--color-primary); }

/* ---------- 20. BACK TO TOP / PRELOADER / MISC ---------- */
.back-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-surface-dark);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.2s;
  box-shadow: var(--shadow-pop);
}
.back-top:hover { background: var(--color-primary); color: #fff; }
.back-top.back-top-show { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 743.98px) { .back-top { bottom: 86px; } }

.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-surface-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader.done .ring { animation: none; }
.preloader .ring {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--color-primary);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.preloader .pre-brand { position: absolute; bottom: 12%; font-size: 13px; letter-spacing: 2px; color: rgba(255,255,255,0.4); font-weight: 700; }

/* Toasts (sweetalert2 positioning) */
.swal2-container { z-index: var(--z-toast) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-surface-soft); }
::-webkit-scrollbar-thumb { background: var(--color-hairline); border-radius: 6px; border: 2px solid var(--color-surface-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted-soft); }

/* ---------- 21. TINY SLIDER (product rows) ---------- */
.tns-outer { position: relative; }
.tns-nav { display: none; }
.tiny-slider .tns-outer { padding-bottom: var(--space-sm); }
/* Live region: neutralize the -10000em offset (it stretches the page) */
.tns-liveregion,
.tns-outer .tns-visually-hidden {
  position: absolute !important;
  top: 0 !important;
  left: auto !important;
  right: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
/* Arrows */
.tns-controls { opacity: 1; }
.tns-controls button {
  width: 42px !important;
  height: 42px !important;
  border-radius: var(--radius-full) !important;
  background: #fff !important;
  color: var(--color-ink) !important;
  border: 1px solid var(--color-hairline-soft) !important;
  box-shadow: var(--shadow-card) !important;
  font-size: 15px !important;
  opacity: 1 !important;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  position: static !important;
}
.tns-controls button:hover { background: var(--color-primary) !important; color: #fff !important; transform: scale(1.06); }
.tns-controls button:disabled { opacity: 0.4 !important; cursor: not-allowed; transform: none; }
/* Arrow placement: vertically centered on the end side of the row */
.tiny-slider .tns-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 8px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 3;
}

/* Keen slider (hero) */
.keen-slider { position: relative; }
.keen-slider__slide img { width: 100%; height: auto; }
.keen--prev, .keen--next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: rgba(26, 26, 46, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 3;
  transition: background-color 0.2s var(--ease);
}
.keen--prev { inset-inline-start: 16px; }
.keen--next { inset-inline-end: 16px; }
.keen--prev:hover, .keen--next:hover { background: var(--color-primary); }
@media (max-width: 743.98px) {
  .keen--prev, .keen--next { display: none; }
}

/* Show-more / hideContent (home SEO block) */
.hideContent { position: relative; overflow: hidden; max-height: 120px; transition: max-height 0.4s var(--ease); }
.hideContent.expanded { max-height: 2000px; }
.hideContent .body-post { font-size: 14px; color: var(--color-body); line-height: 2; }
.show-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-sm);
}
.show-more span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px dashed var(--color-hairline);
}
.show-more span:hover { border-color: var(--color-primary); background: rgba(222, 132, 53, 0.06); }

/* Section header pattern (titles + "view all") */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-base);
  margin-bottom: var(--space-lg);
}
.section-head h2 {
  margin: 0;
  font-size: var(--text-display-md);
  font-weight: 800;
  color: var(--color-ink);
  position: relative;
  padding-inline-start: 16px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8%;
  bottom: 8%;
  width: 5px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent-gold-light));
  border-radius: 3px;
}
.section-head .all-products {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}
.section-head .all-products:hover { color: var(--color-link-hover); }
.section-head .section-sub { width: 100%; margin: 4px 0 0; font-size: 13px; color: var(--color-muted); }

/* ---------- 22. ACCESSIBILITY / MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .mobile-bottom-nav, .btn-floating, .back-top, .deployform { display: none !important; }
}

/* ---------- 23. MEGA MENU (panel grid) ---------- */
.mega-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 4px 28px;
}
.mega-group { min-width: 0; }
.mega-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
.mega-group__title::before {
  content: "";
  width: 4px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--color-primary);
}
.mega-group__title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-group__title i { margin-inline-start: auto; font-size: 11px; color: var(--color-muted-soft); }
.mega-group__title:hover { color: var(--color-primary-active); }
.mega-group__list {
  list-style: none;
  margin: 2px 0 12px;
  padding: 0 0 0 12px;
  border-inline-start: 2px solid var(--color-hairline-soft);
  margin-inline-start: 2px;
}
.mega-group__list a {
  display: block;
  padding: 6px 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-body);
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s var(--ease);
}
.mega-group__list a:hover { color: var(--color-primary-active); }

/* ---------- 24. LIVE SEARCH (nav / mobile / drawer) ---------- */
.nav-search { position: relative; width: 300px; min-width: 170px; flex-shrink: 1; flex-grow: 0; }
.nav-search__form {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 4px 4px 4px 8px;
  background: var(--color-canvas);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-search__form:focus-within,
.nav-search.is-open .nav-search__form {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(222, 132, 53, 0.14);
}
.nav-search__icon { color: var(--color-muted); font-size: 15px; flex-shrink: 0; }
.nav-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-body);
  -webkit-appearance: none;
  appearance: none;
}
.nav-search__input:focus { outline: none; box-shadow: none; }
.nav-search__input::-webkit-search-cancel-button { display: none; }
.nav-search__input::placeholder { color: var(--color-muted-soft); }
.nav-search__clear {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-surface-soft);
  color: var(--color-muted);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-search__clear:hover { background: var(--color-accent-gold-light); color: var(--color-primary-active); }
.nav-search__submit {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.nav-search__submit:hover { background: var(--color-primary-active); transform: scale(1.05); }
.nav-search__spinner {
  display: none;
  position: absolute;
  inset: 5px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: var(--radius-full);
}
.nav-search.is-busy .nav-search__spinner { display: block; animation: nav-search-spin 0.7s linear infinite; }
.nav-search.is-busy .nav-search__submit > i { visibility: hidden; }
@keyframes nav-search-spin { to { transform: rotate(360deg); } }

.nav-search__panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 0;
  z-index: var(--z-header);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.nav-search__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 380px;
  overflow-y: auto;
}
.nav-search__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s var(--ease);
}
.nav-search__row:hover,
.nav-search__row.is-active { background: var(--color-surface-soft); }
.nav-search__media {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--color-surface-soft);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 15px;
  overflow: hidden;
}
.nav-search__media img { width: 100%; height: 100%; object-fit: cover; }
.nav-search__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-search__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-search__price { font-size: 12.5px; color: var(--color-muted); white-space: nowrap; }
.nav-search__price .num { color: var(--color-primary-active); font-weight: 700; }
.nav-search__price .num-old { color: var(--color-muted-soft); font-weight: 500; text-decoration: line-through; }
.nav-search__arrow { color: var(--color-muted-soft); font-size: 12px; flex-shrink: 0; }
.nav-search__empty { margin: 0; padding: 22px 16px; text-align: center; font-size: 14px; color: var(--color-muted); }
.nav-search__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-hairline-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-search__more:hover { background: var(--color-surface-soft); color: var(--color-primary-active); }

/* Variants */
.nav-search--mobile { width: 100%; }
.nav-search--drawer .nav-search__form { background: rgba(255, 255, 255, 0.96); }
.nav-search--drawer .nav-search__panel { border-radius: var(--radius-md); }

/* Mobile drawer: category lists indented, no popups */
.drawer-cat-list .dropdown-menu,
.drawer-cat-list .dropdown-submenu > .dropdown-menu {
  display: block;
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  min-width: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 0 0 0 var(--space-base);
  margin: 0 0 4px;
  max-height: none;
  overflow: visible;
  border-inline-start: 2px solid rgba(255, 255, 255, 0.12);
  margin-inline-start: 10px;
}
.drawer-cat-list .dropdown-item {
  white-space: normal;
  font-size: 14px;
  font-weight: 500;
  color: #cfd2e8;
  min-height: 42px;
}
.drawer-cat-list .dropdown-submenu > .dropdown-item { font-weight: 700; color: #fff; font-size: 15px; }
.drawer-cat-list .dropdown-submenu > .dropdown-item::after { content: "\203A"; color: var(--color-muted-soft); }

/* Fallback grid when tiny-slider is not initialized (progressive enhancement) */
.tiny-slider-inner:not(.tns-slider) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-base);
}
@media (min-width: 744px) {
  .tiny-slider-inner:not(.tns-slider) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1128px) {
  .tiny-slider-inner:not(.tns-slider) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .tiny-slider-inner:not(.tns-slider) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
