/* AhanTik ÃÂ¢ÃÂÃÂ brand palette */
:root {
  /* Keep: chrome blue + chat green (momentNews / mobile topbar / call FAB) */
  --ab-blue: #0057b8;
  --ab-blue-dark: #003f87;
  --ab-chat: #25d366;
  --ab-green: #22c55e;

  /* Brand palette (user) — طلایی بنر اسلایدر ≈ #c89236 */
  --ab-sand: #cdcdc3;
  --ab-yellow-soft: #caa45d;
  --ab-yellow: #c89236;
  --ab-yellow-deep: #b87f24;
  --ab-navy-mid: #1e3957;
  --ab-navy: #0a2749;
  --ab-navy-deep: #0f1f2f;
  --ab-navy-soft: #1e3957;

  --ab-red: #e11d2e;
  --ab-muted: #6b7280;
  --ab-border: #d6d6ce;
  --ab-page: #ecece6;
  --ab-surface: #ffffff;
  --ab-surface-2: #f4f4ef;
  --sticky-news-h: 52px;
  --mobile-nav-h: 64px;
}

html[data-theme="dark"] {
  /* Dark from palette ÃÂ¢ÃÂÃÂ muted navy, not pure black */
  --ab-page: #0f1f2f;
  --ab-surface: #1e3957;
  --ab-surface-2: #243f5f;
  --ab-surface-3: #2a4a6b;
  --ab-border: #35506e;
  --ab-muted: #a8b8c9;
  --ab-text: #ecece6;
  --ab-text-soft: #cdcdc3;
  --ab-link: #8eb8e8;
  --ab-accent-soft: #2a4a6b;
  --ab-navy-soft: #1e3957;
  --ab-yellow: #caa45d;
  --ab-yellow-soft: #cc922f;
  --ab-yellow-deep: #caa45d;
}

/* اسکرول‌بار هم‌رنگ برند */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--ab-blue) var(--ab-sand);
}

html[data-theme="dark"] {
  scrollbar-color: var(--ab-blue) var(--ab-navy-deep);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--ab-sand);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ab-blue) 0%, var(--ab-blue-dark) 100%);
  border-radius: 999px;
  border: 2px solid var(--ab-sand);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--ab-blue-dark);
  border: 2px solid var(--ab-sand);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: var(--ab-sand);
}

html[data-theme="dark"] *::-webkit-scrollbar-track,
html[data-theme="dark"] *::-webkit-scrollbar-corner {
  background: var(--ab-navy-deep);
}

html[data-theme="dark"] *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a6fd0 0%, var(--ab-blue-dark) 100%);
  border-color: var(--ab-navy-deep);
}

html[data-theme="dark"] *::-webkit-scrollbar-thumb:hover {
  background: var(--ab-blue);
  border-color: var(--ab-navy-deep);
}

/* Sync Tailwind CDN utility colors with CSS tokens */
.text-ab-yellow {
  color: var(--ab-yellow) !important;
}

.bg-ab-yellow {
  background-color: var(--ab-yellow) !important;
}

.border-ab-yellow {
  border-color: var(--ab-yellow) !important;
}

.fill-ab-yellow {
  fill: var(--ab-yellow) !important;
}

.hover\:text-ab-yellow:hover {
  color: var(--ab-yellow) !important;
}

.text-ab-navy {
  color: var(--ab-navy) !important;
}

.bg-ab-navy {
  background-color: var(--ab-navy) !important;
}

.border-ab-navy {
  border-color: var(--ab-navy) !important;
}

.from-ab-navy {
  --tw-gradient-from: var(--ab-navy) !important;
}

.to-ab-navy {
  --tw-gradient-to: var(--ab-navy) !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Top page-load / navigation progress line */
#ab-page-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10000;
  pointer-events: none;
  background: transparent;
  opacity: 1;
  transition: opacity 0.45s ease;
  visibility: visible;
}

#ab-page-progress>i {
  display: block;
  height: 100%;
  width: 0;
  background: #0fffa0;
  box-shadow: none;
  transition: width 0.22s ease-out;
}

#ab-page-progress.is-done {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

body {
  font-family: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  background: var(--ab-page);
  color: #1f2937;
  padding-bottom: calc(var(--sticky-news-h) + 8px);
  overflow-x: hidden;
}

@media (max-width: 1023px) {
  body {
    padding-bottom: calc(var(--sticky-news-h) + var(--mobile-nav-h) + 8px);
  }
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Sticky header ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ab-surface);
  box-shadow: 0 1px 0 var(--ab-border), 0 4px 16px rgba(10, 39, 73, 0.06);
}

.ab-header nav {
  /* Desktop dropdowns (ابزارها / محتوا) need visible overflow;
     clipping was hiding .ab-nav-dd__menu under the bar. */
  overflow: visible !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ab-header nav::-webkit-scrollbar {
  display: none;
}

.ab-header .nav,
.ab-header .nav>.mx-auto,
.ab-header .nav>.mx-auto>.flex {
  overflow: visible;
}

.ab-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  transition: color 0.15s;
}

.ab-nav-link:hover {
  color: var(--ab-blue);
}

.ab-nav-link.is-hot {
  color: var(--ab-red);
  font-weight: 700;
}

/* Nav dropdown groups */
.ab-nav-dd {
  position: relative;
}

.ab-nav-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.ab-nav-dd__btn i,
.ab-nav-dd__btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.15s;
}

.ab-nav-dd.is-open .ab-nav-dd__btn i,
.ab-nav-dd.is-open .ab-nav-dd__btn svg {
  transform: rotate(180deg);
}

.ab-nav-dd__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 11.5rem;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--ab-border);
  background: var(--ab-surface, #fff);
  box-shadow: 0 12px 28px rgba(15, 31, 47, 0.12);
  display: none;
  z-index: 80;
}

.ab-nav-dd.is-open .ab-nav-dd__menu {
  display: grid;
  gap: 0.15rem;
}

.ab-nav-dd__menu a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ab-text, #334155);
  white-space: nowrap;
}

.ab-nav-dd__menu a:hover {
  background: rgba(0, 87, 184, 0.08);
  color: var(--ab-blue);
}

html[data-theme="dark"] .ab-nav-dd__menu {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-nav-dd__menu a {
  color: var(--ab-text-soft);
}

html[data-theme="dark"] .ab-nav-dd__menu a:hover {
  background: rgba(142, 184, 232, 0.12);
  color: var(--ab-link);
}

html[data-theme="dark"] .ab-header .nav .ab-nav-link {
  color: var(--ab-text-soft);
}

html[data-theme="dark"] .ab-header .nav .ab-nav-link:hover {
  color: var(--ab-link);
}

html[data-theme="dark"] .ab-header .nav .ab-nav-link.is-hot {
  color: var(--ab-link);
}

html[data-theme="dark"] .ab-header .nav .text-ab-navy {
  color: var(--ab-text) !important;
}

html[data-theme="dark"] .ab-header .nav .text-ab-blue {
  color: var(--ab-link) !important;
}

html[data-theme="dark"] .ab-header .nav a.hidden.sm\:inline,
html[data-theme="dark"] .ab-header .nav .text-slate-600 {
  color: var(--ab-text-soft) !important;
}

.ab-btn-blue {
  background: var(--ab-blue);
  color: #fff;
}

.ab-btn-blue:hover {
  background: var(--ab-blue-dark);
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: var(--ab-page) !important;
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-header,
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] article:not(.ab-cat-card),
html[data-theme="dark"] section.bg-white,
html[data-theme="dark"] .ab-news-card,
html[data-theme="dark"] .ab-chart-wrap,
html[data-theme="dark"] .ab-modal-panel,
html[data-theme="dark"] .rounded-xl.border,
html[data-theme="dark"] .rounded-2xl.border,
html[data-theme="dark"] main .bg-white {
  background-color: var(--ab-surface) !important;
  color: var(--ab-text);
}

html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-slate-50\/80,
html[data-theme="dark"] .ab-price-today-card,
html[data-theme="dark"] .ab-chat-messages,
html[data-theme="dark"] .ab-quote-row,
html[data-theme="dark"] .ab-price-page-table thead th {
  background-color: var(--ab-surface-2) !important;
}

html[data-theme="dark"] .text-ab-navy,
html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-slate-800,
html[data-theme="dark"] .text-slate-700 {
  color: var(--ab-text) !important;
}

html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .text-slate-400 {
  color: var(--ab-muted) !important;
}

html[data-theme="dark"] .text-ab-blue {
  color: var(--ab-link) !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-t,
html[data-theme="dark"] .border-b,
html[data-theme="dark"] .border-y,
html[data-theme="dark"] .border-slate-100,
html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-slate-300 {
  border-color: var(--ab-border) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--ab-surface-3) !important;
  border-color: var(--ab-border) !important;
  color: var(--ab-text) !important;
}

html[data-theme="dark"] .ab-theme-toggle {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: var(--ab-text) !important;
}

html[data-theme="dark"] .ab-header .nav .ab-theme-toggle {
  background: var(--ab-surface-3) !important;
  border-color: var(--ab-border) !important;
  color: var(--ab-text) !important;
}

/* Mobile top bar — only below lg (do not use display:!important that fights Tailwind)
   Visual LTR: [logo] [phone box] [theme] …… [menu] */
.ab-mobile-topbar {
  display: none;
  direction: ltr;
  /* تلفن · دارک‌مود · فاصله · لوگو · همبرگر (لوگو چپِ منو) */
  grid-template-columns: auto auto 1fr auto auto;
  grid-template-areas: "phone theme . logo menu";
  align-items: center;
  gap: 8px;
  background: var(--ab-blue);
  color: #fff;
  padding: 8px 10px;
}

@media (max-width: 1023px) {
  .ab-mobile-topbar {
    display: grid;
  }
}

/* Hard-hide on desktop even if a leftover utility forces grid */
@media (min-width: 1024px) {
  .ab-mobile-topbar {
    display: none !important;
  }
}

.ab-mobile-topbar__btn {
  grid-area: menu;
}

.ab-mobile-topbar .ab-theme-toggle--mobile {
  grid-area: theme;
}

.ab-mobile-topbar__btn,
.ab-theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  flex-shrink: 0;
}

.ab-header .nav .ab-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #334155;
}

.ab-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ab-header .nav .ab-theme-toggle:hover {
  background: #f1f5f9;
}

.ab-mobile-topbar__phone {
  grid-area: phone;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.ab-mobile-topbar__phone:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ab-mobile-topbar__phone-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.ab-mobile-topbar__logo {
  grid-area: logo;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .ab-mobile-topbar__phone {
    padding: 6px 8px;
    gap: 6px;
    font-size: 12px;
  }

  .ab-mobile-topbar__phone-ico {
    width: 24px;
    height: 24px;
  }
}

html[data-theme="dark"] .ab-price-page-table tbody td {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-price-page-table tbody tr:hover td {
  background: var(--ab-surface-3);
}

html[data-theme="dark"] .ab-assist-panel {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-account-nav a:hover {
  background: var(--ab-surface-3);
}

html[data-theme="dark"] .ab-account-nav a.is-active {
  background: var(--ab-accent-soft);
  color: var(--ab-link);
}

html[data-theme="dark"] .ab-procurement-hub {
  background: linear-gradient(180deg, var(--ab-surface) 0%, var(--ab-page) 100%);
}

html[data-theme="dark"] .ab-service-card {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-service-card strong {
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-spec-chip {
  background: var(--ab-accent-soft);
  border-color: #3d6a94;
  color: #cfe3f8;
}

/* Homepage theme surfaces stay explicit so utility classes cannot leak light panels. */
html[data-theme="dark"] #box-price-home,
html[data-theme="dark"] .ab-procurement-hub,
html[data-theme="dark"] .swing,
html[data-theme="dark"] #price-today,
html[data-theme="dark"] #encyclopedia,
html[data-theme="dark"] #reports,
html[data-theme="dark"] #factories,
html[data-theme="dark"] #weights {
  background: var(--ab-page) !important;
  color: var(--ab-text) !important;
}

html[data-theme="dark"] #encyclopedia .ab-news-card,
html[data-theme="dark"] #price-today .ab-price-today-card,
html[data-theme="dark"] #reports .ab-report,
html[data-theme="dark"] #weights .ab-tools-strip__inner,
html[data-theme="dark"] .ab-swing-card {
  background: var(--ab-surface) !important;
  border-color: var(--ab-border) !important;
}

html[data-theme="dark"] #price-today .ab-chart-wrap {
  background: var(--ab-surface-2) !important;
  border-color: var(--ab-border) !important;
}

html[data-theme="dark"] #price-today .ab-chart-wm {
  fill: #8ba3bc;
}

html[data-theme="dark"] #price-today .ab-chart-label {
  fill: var(--ab-muted);
}

html[data-theme="dark"] #price-today .ab-chart-value {
  fill: var(--ab-text);
}

html[data-theme="dark"] #price-today .ab-chart-axis {
  stroke: var(--ab-border);
}

html[data-theme="dark"] .ab-tile {
  background: var(--ab-surface) !important;
  border-color: var(--ab-border) !important;
}

html[data-theme="dark"] .ab-tile .text-slate-700 {
  color: var(--ab-text) !important;
}

html[data-theme="dark"] .ab-cat-card__head,
html[data-theme="dark"] .ab-swing-card__foot {
  background: var(--ab-surface-2) !important;
}

html[data-theme="dark"] #box-price-home .ab-cat-card__head {
  background: transparent !important;
}

html[data-theme="dark"] .ab-report__visual {
  background: #111820 !important;
}

html[data-theme="dark"] #encyclopedia h3,
html[data-theme="dark"] #encyclopedia p,
html[data-theme="dark"] #reports p,
html[data-theme="dark"] #factories p,
html[data-theme="dark"] #weights,
html[data-theme="dark"] #price-today p,
html[data-theme="dark"] .ab-swing-row,
html[data-theme="dark"] .ab-swing-card__title {
  color: var(--ab-text-soft) !important;
}

html[data-theme="dark"] .ab-header .nav {
  background: var(--ab-surface) !important;
}

html[data-theme="dark"] .ab-header {
  box-shadow: 0 1px 0 var(--ab-border), 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* Light mode: keep desktop nav on surface (never navy bar) */
.ab-header .nav {
  background: var(--ab-surface);
}

@media (max-width: 639px) {
  #encyclopedia .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #encyclopedia .ab-news-card__media {
    aspect-ratio: 1 / .72;
  }

  #encyclopedia .ab-news-card .p-4 {
    padding: 11px;
  }

  #encyclopedia .ab-news-card h3 {
    font-size: 11px;
    line-height: 1.8;
  }

  #encyclopedia .ab-news-card p {
    font-size: 10px;
    line-height: 1.8;
  }

  #encyclopedia .ab-news-card a {
    font-size: 10px;
  }
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Hero image slider ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
#slider.ab-slider {
  position: relative;
  background: var(--ab-navy);
  overflow: hidden;
  isolation: isolate;
}

/* Contained (not full-bleed) homepage banner */
.ab-slider-shell {
  width: 100%;
  max-width: 1200px !important;
  margin-inline: auto !important;
  padding-inline: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
  box-sizing: border-box;
}

.ab-slider--contained {
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 28px rgba(10, 39, 73, 0.18);
  border: 1px solid rgba(10, 39, 73, 0.12);
}

html[data-theme="dark"] .ab-slider--contained {
  border-color: var(--ab-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.ab-slider__viewport {
  position: relative;
  width: 100%;
  /* Mobile + tablet: square hero art */
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  max-height: none;
  background: var(--ab-navy);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

@media (min-width: 1024px) {
  .ab-slider__viewport {
    /* Desktop: wide banner (~3:1) — AhanTik logistics slide */
    aspect-ratio: 1024 / 351;
    min-height: 0;
    height: auto;
  }

  .ab-slider--contained .ab-slider__viewport {
    aspect-ratio: 1024 / 351;
    min-height: 0;
    height: auto;
  }
}

.ab-slider.is-dragging .ab-slider__viewport {
  cursor: grabbing;
}

.ab-slider.is-dragging .ab-slider__slide {
  pointer-events: none;
}

.ab-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-12px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  display: block;
  overflow: hidden;
}

.ab-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: translateX(0);
}

.ab-slider__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.ab-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 6.5s ease-out;
}

.ab-slider__slide.is-active img {
  transform: scale(1.045);
}

.ab-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(10, 39, 73, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.ab-slider__nav:hover {
  background: rgba(10, 39, 73, 0.78);
}

.ab-slider__nav--prev {
  right: 14px;
}

.ab-slider__nav--next {
  left: 14px;
}

.ab-slider__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.ab-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.ab-slider__dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--ab-yellow);
  box-shadow: 0 0 0 2px rgba(10, 39, 73, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .ab-slider__slide {
    transition: opacity 0.2s ease;
    transform: none;
  }

  .ab-slider__slide img,
  .ab-slider__slide.is-active img {
    transform: none;
    transition: none;
  }

  .ab-moment-track {
    animation: none !important;
  }

  .ab-mobile-nav__call {
    animation: none !important;
  }

  .ab-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Category price table page ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-price-page-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 13px;
}

@media (min-width: 1024px) {
  .ab-price-page-table {
    min-width: 860px;
  }

  /* Archive: shared column grid across mill cards ? no horizontal shift */
  .ab-archive-layout .ab-price-page-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .ab-archive-layout .ab-mill-table th:nth-child(1),
  .ab-archive-layout .ab-mill-table td:nth-child(1) {
    width: 28%;
  }

  .ab-archive-layout .ab-mill-table th:nth-child(2),
  .ab-archive-layout .ab-mill-table td:nth-child(2) {
    width: 8%;
  }

  .ab-archive-layout .ab-mill-table th:nth-child(3),
  .ab-archive-layout .ab-mill-table td:nth-child(3) {
    width: 12%;
  }

  .ab-archive-layout .ab-mill-table th:nth-child(4),
  .ab-archive-layout .ab-mill-table td:nth-child(4) {
    width: 16%;
  }

  .ab-archive-layout .ab-mill-table th:nth-child(5),
  .ab-archive-layout .ab-mill-table td:nth-child(5) {
    width: 12%;
  }

  .ab-archive-layout .ab-mill-table th:nth-child(6),
  .ab-archive-layout .ab-mill-table td:nth-child(6) {
    width: 24%;
  }

  .ab-archive-layout .ab-mill-table td:nth-child(1) a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }

  .ab-archive-layout .ab-price-main .overflow-x-auto,
  .ab-archive-layout .ab-price-main .ab-price-scroll {
    overflow-x: hidden;
  }

  .ab-archive-layout .ab-price-page-table thead th,
  .ab-archive-layout .ab-price-page-table tbody td {
    white-space: normal;
    padding: 8px 8px;
    font-size: 12.5px;
  }

  .ab-archive-layout .ab-price-page-table .ab-price-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.ab-price-page-table thead th {
  background: var(--ab-blue);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
}

.ab-price-page-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #eef2f7;
  background: var(--ab-surface);
}

.ab-price-page-table tbody tr:hover td {
  background: var(--ab-surface-2);
}

.ab-price-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.ab-price-scroll::before,
.ab-price-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.ab-price-scroll::before {
  right: 0;
  background: linear-gradient(to left, rgba(7, 17, 31, 0.12), transparent);
}

.ab-price-scroll::after {
  left: 0;
  background: linear-gradient(to right, rgba(7, 17, 31, 0.12), transparent);
}

.ab-price-scroll.is-scrollable::before,
.ab-price-scroll.is-scrollable::after {
  opacity: 1;
}

/* Mobile: stacked product cards — kill horizontal table scroll */
@media (max-width: 1023px) {

  /* غیرآرشیو: کارت‌های جدا (صفحات خاص) */
  .ab-price-main:not(.ab-archive-layout .ab-price-main) .overflow-x-auto,
  .ab-price-main:not(.ab-archive-layout .ab-price-main) .ab-price-scroll {
    overflow: visible !important;
    overflow-x: hidden !important;
    max-width: 100%;
    width: 100%;
  }

  .ab-price-main .ab-price-scroll::before,
  .ab-price-main .ab-price-scroll::after {
    display: none !important;
  }

  /* —— آرشیو موبایل: جدول فشرده بدون اسکرول افقی —— */
  .ab-archive-layout .ab-price-main .overflow-x-auto,
  .ab-archive-layout .ab-price-main .ab-price-scroll,
  .ab-archive-layout .ab-mill-card .ab-price-scroll {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    max-width: 100%;
    width: 100%;
  }

  .ab-archive-layout .ab-price-page-table,
  .ab-archive-layout .ab-mill-card .ab-price-page-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 11px;
  }

  .ab-archive-layout .ab-price-page-table thead,
  .ab-archive-layout .ab-mill-card .ab-price-page-table thead {
    display: table-header-group !important;
  }

  .ab-archive-layout .ab-price-page-table tbody,
  .ab-archive-layout .ab-mill-card .ab-price-page-table tbody {
    display: table-row-group !important;
    gap: 0;
  }

  .ab-archive-layout .ab-price-page-table tbody tr,
  .ab-archive-layout .ab-mill-card .ab-price-page-table tbody tr {
    display: table-row !important;
    width: auto !important;
    max-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .ab-archive-layout .ab-price-page-table tbody tr:nth-child(even) td {
    background: #faf8f4;
  }

  .ab-archive-layout .ab-price-page-table thead th {
    background: #f7f3ec !important;
    color: #334155 !important;
    font-size: 10.5px;
    font-weight: 800;
    padding: 8px 4px;
    border-bottom: 1px solid #e8e1d6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ab-archive-layout .ab-price-page-table tbody td,
  .ab-archive-layout .ab-mill-card .ab-price-page-table tbody td {
    display: table-cell !important;
    grid-template-columns: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 9px 4px;
    border-bottom: 1px solid #eeeae3;
    background: #fff;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    font-size: 11px;
  }

  .ab-archive-layout .ab-price-page-table tbody td::before,
  .ab-archive-layout .ab-mill-card .ab-price-page-table tbody td::before {
    display: none !important;
    content: none !important;
  }

  .ab-archive-layout .ab-price-page-table tbody td>* {
    justify-self: auto;
  }

  /*
   * Mill cards (mobile) ? match Pivan density:
   * Header = product/mill name; table = ???? | ????????? | ???? | ??????
   * NEVER show ????? column (it desyncs headers when th is hidden).
   */
  .ab-archive-layout .ab-mill-card .ab-mill-table {
    table-layout: fixed !important;
    width: 100% !important;
  }

  .ab-archive-layout .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(1),
  .ab-archive-layout .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(1),
  .ab-archive-layout .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(5),
  .ab-archive-layout .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(5) {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .ab-archive-layout .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(2),
  .ab-archive-layout .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(2),
  .ab-archive-layout .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(3),
  .ab-archive-layout .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(3),
  .ab-archive-layout .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(4),
  .ab-archive-layout .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(4),
  .ab-archive-layout .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(6),
  .ab-archive-layout .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(6) {
    display: table-cell !important;
  }

  /* ???? */
  .ab-archive-layout .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(2),
  .ab-archive-layout .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(2) {
    width: 18%;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    color: #0f172a;
  }

  /* ????????? */
  .ab-archive-layout .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(3),
  .ab-archive-layout .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(3) {
    width: 26%;
    text-align: center;
    color: #475569;
  }

  /* ???? */
  .ab-archive-layout .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(4),
  .ab-archive-layout .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(4),
  .ab-archive-layout .ab-mill-card .ab-mill-table td[data-price-cell] {
    width: 44%;
    text-align: center;
    white-space: nowrap !important;
    font-weight: 800;
    color: #0f172a;
    font-size: 13px;
    letter-spacing: -0.01em;
  }

  /* ?????? ? icon only */
  .ab-archive-layout .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(6),
  .ab-archive-layout .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(6) {
    width: 12%;
    padding-left: 2px;
    padding-right: 2px;
    text-align: center;
  }

  .ab-archive-layout .ab-mill-card .ab-price-actions .ab-btn-blue,
  .ab-archive-layout .ab-price-actions .ab-btn-blue {
    display: none !important;
  }

  .ab-archive-layout .ab-mill-card .ab-price-actions {
    justify-content: center;
    gap: 0;
  }

  .ab-archive-layout .ab-mill-card .ab-chart-btn {
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0.35rem;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* نوار بالا: فیلتر / VAT / وزن */
  .ab-archive-mobile-tools {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }

  .ab-archive-mobile-tools__btn,
  .ab-archive-mobile-tools__vat {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 42px;
    padding: 0.45rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #e2e0d8;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
  }

  .ab-archive-mobile-tools__vat {
    cursor: pointer;
  }

  .ab-archive-mobile-tools__vat input {
    width: 14px;
    height: 14px;
    accent-color: var(--ab-blue);
  }

  /* تولبار آرشیو شبیه آهن‌آنلاین */
  .ab-archive-layout .ab-archive-toolbar {
    background: #f3efe6;
    border-color: #e5dfd2;
    border-radius: 16px;
    padding: 0.85rem 0.9rem 0.75rem;
    gap: 0.55rem;
  }

  .ab-archive-layout .ab-archive-toolbar>div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ab-archive-layout .ab-archive-toolbar h1 {
    font-size: 1.05rem;
  }

  .ab-archive-layout .ab-archive-toolbar__count {
    display: none;
  }

  .ab-archive-layout .ab-archive-actions {
    margin-inline-start: auto;
  }

  .ab-archive-layout .ab-archive-actions [data-print-table] {
    display: none;
  }

  .ab-archive-layout .ab-archive-actions [data-export-excel] {
    border: 0;
    background: transparent;
    padding: 0.25rem;
    color: #15803d;
  }

  .ab-archive-layout .ab-archive-actions [data-export-excel] span,
  .ab-archive-layout .ab-archive-actions [data-export-excel]::after {
    /* فقط آیکن اکسل دیده شود */
  }

  .ab-archive-layout .ab-quick-tags {
    margin-top: 0.55rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .ab-archive-layout .ab-quick-tags::-webkit-scrollbar {
    display: none;
  }

  .ab-archive-layout .ab-quick-tags a {
    flex: 0 0 auto;
    background: #fff;
    border-color: #e5dfd2;
  }

  .ab-archive-layout .ab-quick-tags::before {
    content: "دسترسی سریع";
    flex: 0 0 auto;
    align-self: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    margin-inline-end: 0.15rem;
  }

  /* فیلتر داخل کارت جدول را جمع کن */
  .ab-archive-layout .ab-price-main .rounded-xl>.flex.flex-wrap.items-center.justify-between {
    display: none !important;
  }

  .ab-archive-layout .ab-brand-bar strong {
    color: #9f1239;
    font-size: 0.88rem;
  }

  .ab-archive-layout .ab-brand-bar span {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
  }

  /* دکمه واحد استعلام پایین جدول */
  /* نوار ثابت پایین مثل آهن‌آنلاین — بالای تیکر و منوی موبایل */
  .ab-price-mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--sticky-news-h, 40px) + var(--mobile-nav-h, 64px));
    z-index: 60;
    margin: 0;
    padding: 0.75rem 1rem 0.85rem;
    background: #fff;
    border-top: 1px solid #e8e1d6;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.1);
  }

  .ab-archive-layout .ab-price-main {
    padding-bottom: calc(7.5rem + var(--sticky-news-h, 40px) + var(--mobile-nav-h, 64px));
  }

  /* فاصله FAB از نوار استعلام ثابت */
  body:has(.ab-price-mobile-cta) .ab-assist-fab {
    bottom: calc(var(--sticky-news-h) + var(--mobile-nav-h) + 140px) !important;
  }

  .ab-price-mobile-cta__hint {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.72rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 0.65rem;
  }

  .ab-price-mobile-cta__btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: var(--ab-blue);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 87, 184, 0.28);
  }

  .ab-price-mobile-cta__btn:active {
    transform: translateY(1px);
  }

  /* پنل فیلتر موبایل */
  .ab-archive-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
  }

  .ab-archive-filter-sheet.is-open {
    display: block;
  }

  .ab-archive-filter-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
  }

  .ab-archive-filter-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 78vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px 18px 0 0;
    padding: 1rem 1rem 1.25rem;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  }

  .ab-archive-filter-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 800;
    color: var(--ab-navy);
  }

  html[data-theme="dark"] .ab-archive-layout .ab-archive-toolbar {
    background: var(--ab-surface-2) !important;
    border-color: var(--ab-border) !important;
  }

  html[data-theme="dark"] .ab-archive-mobile-tools__btn,
  html[data-theme="dark"] .ab-archive-mobile-tools__vat,
  html[data-theme="dark"] .ab-archive-layout .ab-quick-tags a,
  html[data-theme="dark"] .ab-archive-filter-sheet__panel {
    background: var(--ab-surface) !important;
    border-color: var(--ab-border) !important;
    color: var(--ab-text) !important;
  }

  html[data-theme="dark"] .ab-archive-layout .ab-price-page-table thead th {
    background: var(--ab-surface-2) !important;
    color: var(--ab-text) !important;
    border-color: var(--ab-border) !important;
  }

  html[data-theme="dark"] .ab-archive-layout .ab-price-page-table tbody td {
    background: var(--ab-surface) !important;
    border-color: var(--ab-border) !important;
    color: var(--ab-text-soft) !important;
  }

  html[data-theme="dark"] .ab-archive-layout .ab-price-page-table tbody tr:nth-child(even) td {
    background: var(--ab-surface-2) !important;
  }

  html[data-theme="dark"] .ab-archive-layout .ab-mill-table td[data-price-cell] {
    color: #f8fafc !important;
  }

  html[data-theme="dark"] .ab-price-mobile-cta__btn {
    background: #1a6fd0;
  }
}

@media (max-width: 1023px) {
  .ab-archive-layout {
    display: flex;
    flex-direction: column;
  }

  .ab-archive-layout>.ab-price-main {
    order: -1;
  }

  .ab-archive-aside .ab-vat-box,
  .ab-archive-aside .ab-side-card:has(.ab-filter-box),
  .ab-archive-aside .ab-weight-mini {
    display: none !important;
  }
}

@media (min-width: 1024px) {

  .ab-archive-mobile-tools,
  .ab-price-mobile-cta,
  .ab-archive-filter-sheet {
    display: none !important;
  }
}

/* کارت‌های جدا فقط برای جداول غیرآرشیو زیر ۱۰۲۴ */
@media (max-width: 1023px) {
  .ab-price-layout:not(.ab-archive-layout) .ab-price-page-table {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 12.5px;
    display: block !important;
  }

  .ab-price-layout:not(.ab-archive-layout) .ab-price-page-table thead {
    display: none !important;
  }

  .ab-price-layout:not(.ab-archive-layout) .ab-price-page-table tbody {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ab-price-layout:not(.ab-archive-layout) .ab-price-page-table tbody tr {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    border: 1px solid var(--ab-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--ab-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .ab-price-page-table tbody tr[data-state="empty"],
  .ab-price-page-table tbody tr#price-empty-row,
  .ab-price-page-table tbody tr#city-empty-row {
    box-shadow: none;
    border-style: dashed;
    padding: 14px;
    text-align: center;
  }

  .ab-price-page-table tbody tr[data-state="empty"] td,
  .ab-price-page-table tbody tr#price-empty-row td,
  .ab-price-page-table tbody tr#city-empty-row td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
  }

  .ab-price-page-table tbody tr[data-state="empty"] td::before,
  .ab-price-page-table tbody tr#price-empty-row td::before,
  .ab-price-page-table tbody tr#city-empty-row td::before {
    display: none !important;
  }

  .ab-price-layout:not(.ab-archive-layout) .ab-price-page-table tbody td {
    display: grid !important;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ab-border);
    text-align: start;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .ab-price-layout:not(.ab-archive-layout) .ab-price-page-table tbody td:last-child {
    border-bottom: 0;
  }

  .ab-price-layout:not(.ab-archive-layout) .ab-price-page-table tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: var(--ab-muted);
    white-space: nowrap;
  }

  .ab-price-layout:not(.ab-archive-layout) .ab-price-page-table tbody td>* {
    min-width: 0;
    max-width: 100%;
    justify-self: end;
  }

  .ab-price-layout:not(.ab-archive-layout) .ab-price-page-table tbody td:first-child {
    background: var(--ab-surface-2);
    font-weight: 800;
    color: var(--ab-navy);
  }

  html[data-theme="dark"] .ab-price-layout:not(.ab-archive-layout) .ab-price-page-table tbody td:first-child {
    color: var(--ab-text);
  }

  .ab-price-actions {
    width: auto;
    max-width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .ab-price-actions .ab-btn-blue {
    white-space: nowrap;
  }

  .ab-price-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
  }

  .ab-price-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .ab-price-main .rounded-xl.overflow-hidden,
  .ab-price-main>.rounded-xl {
    overflow-x: clip;
    max-width: 100%;
  }

  /* Filters stack cleanly on narrow screens */
  .ab-price-main #price-filter-form,
  .ab-price-main form.flex.flex-wrap {
    width: 100%;
  }

  .ab-price-main #price-filter-form input,
  .ab-price-main #price-filter-form select {
    width: 100%;
    min-width: 0;
  }

  .ab-price-main .flex.flex-wrap.items-center.justify-between {
    flex-direction: column;
    align-items: stretch;
  }
}

.ab-breadcrumb a:hover {
  color: var(--ab-blue);
}

/* legacy hero kept for partials compatibility */
.ab-hero {
  position: relative;
  background: linear-gradient(180deg, var(--ab-yellow-soft) 0%, var(--ab-yellow) 55%, #fff 100%);
  overflow: hidden;
  min-height: 280px;
}

.ab-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* —— Category price cards —— */
.ab-cat-card {
  position: relative;
  isolation: isolate;
  background-color: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  min-height: 200px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.ab-cat-card__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* فلیپ افقی؛ object-position راست → بعد از scaleX روی لبه چپ می‌نشیند و به داخل کادر می‌آید */
  object-position: right center;
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  -webkit-transform-origin: center center;
  transform-origin: center center;
  opacity: 0.28;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  background: transparent;
}

.ab-cat-card__shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  /* تصویر چپ؛ سفید روی متن راست برای خوانایی */
  background: linear-gradient(to right,
      transparent 0%,
      rgba(255, 255, 255, 0.15) 28%,
      rgba(255, 255, 255, 0.78) 52%,
      #ffffff 70%);
}

.ab-cat-card:hover {
  box-shadow: 0 10px 28px rgba(0, 87, 184, 0.14);
  transform: translateY(-2px);
  border-color: #9bb8d9;
}

.ab-cat-card:hover .ab-cat-card__bg {
  opacity: 0.4;
}

.ab-cat-card__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 14px 16px 8px;
  background: transparent;
  border-bottom: 0;
}

.ab-cat-card__title {
  color: #0a2749;
  font-weight: 800;
  font-size: 15px;
  text-shadow: none;
  margin: 0;
}

.ab-cat-card__title a {
  color: inherit;
}

.ab-cat-card__title a:hover {
  color: #0057b8;
  text-decoration: none;
}

.ab-cat-card__list {
  position: relative;
  z-index: 2;
  padding: 4px 16px 16px;
  margin: 0;
  list-style: none;
  flex: 1;
}

.ab-cat-card__list li+li {
  margin-top: 6px;
}

.ab-cat-card__list a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #3d5470;
}

.ab-cat-card__list a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #0057b8;
  opacity: 0.85;
  flex-shrink: 0;
}

.ab-cat-card__list a:hover {
  color: #0057b8;
}

.ab-cat-card .ab-product-mark {
  background: transparent;
  border: 0;
  color: #0057b8;
  width: 28px;
  height: 28px;
  border-radius: 0;
  box-shadow: none;
}

/* موبایل: تصویر سمت چپ باکس · متن راست (مثل مرجع) */
@media (max-width: 639px) {
  .ab-cat-grid {
    gap: 0.75rem;
  }

  .ab-cat-card {
    min-height: 132px;
    border-radius: 16px;
    background-color: #ffffff;
    padding-left: 38%;
  }

  .ab-cat-card__bg {
    inset: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 42%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    opacity: 0.38;
    background: transparent;
  }

  .ab-cat-card__shade {
    background: linear-gradient(to right,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 28%,
        rgba(255, 255, 255, 0.88) 48%,
        #ffffff 62%);
  }

  .ab-cat-card__head {
    padding: 12px 14px 4px;
    gap: 5px;
    justify-content: flex-start;
  }

  .ab-cat-card__list {
    padding: 0 14px 12px;
  }

  .ab-cat-card__list li:nth-child(n + 4) {
    display: none;
  }
}

/* دارک: کارت دسته سرمه‌ای + تصویر پس‌زمینه شفاف */
html[data-theme="dark"] #box-price-home .ab-cat-card,
html[data-theme="dark"] .ab-cat-card {
  background-color: #1e3957 !important;
  background-image: none !important;
  border-color: #3d5f85 !important;
  color: #e8eef8 !important;
}

html[data-theme="dark"] #box-price-home .ab-cat-card__bg,
html[data-theme="dark"] .ab-cat-card__bg {
  opacity: 0.42 !important;
  display: block !important;
  visibility: visible !important;
  -webkit-filter: none !important;
  filter: none !important;
  background: transparent !important;
}

html[data-theme="dark"] #box-price-home .ab-cat-card:hover .ab-cat-card__bg,
html[data-theme="dark"] .ab-cat-card:hover .ab-cat-card__bg {
  opacity: 0.55 !important;
}

html[data-theme="dark"] #box-price-home .ab-cat-card__shade,
html[data-theme="dark"] .ab-cat-card__shade {
  background: linear-gradient(to right,
      transparent 0%,
      rgba(30, 57, 87, 0.25) 30%,
      rgba(30, 57, 87, 0.85) 52%,
      rgba(30, 57, 87, 0.96) 68%) !important;
}

@media (max-width: 639px) {

  html[data-theme="dark"] #box-price-home .ab-cat-card__shade,
  html[data-theme="dark"] .ab-cat-card__shade {
    background: linear-gradient(to right,
        transparent 0%,
        rgba(30, 57, 87, 0.15) 28%,
        rgba(30, 57, 87, 0.82) 48%,
        #1e3957 62%) !important;
  }
}

html[data-theme="dark"] #box-price-home .ab-cat-card__head,
html[data-theme="dark"] .ab-cat-card__head {
  background: transparent !important;
}

html[data-theme="dark"] #box-price-home .ab-cat-card__title,
html[data-theme="dark"] #box-price-home .ab-cat-card__title a,
html[data-theme="dark"] .ab-cat-card__title,
html[data-theme="dark"] .ab-cat-card__title a {
  color: #e8eef8 !important;
}

html[data-theme="dark"] #box-price-home .ab-cat-card__list a,
html[data-theme="dark"] .ab-cat-card__list a {
  color: #c5d4e8 !important;
}

html[data-theme="dark"] #box-price-home .ab-cat-card__list a:hover,
html[data-theme="dark"] .ab-cat-card__list a:hover {
  color: #fff !important;
}

html[data-theme="dark"] #box-price-home .ab-cat-card .ab-product-mark,
html[data-theme="dark"] .ab-cat-card .ab-product-mark {
  background: transparent !important;
  border: 0 !important;
  color: #93c5fd !important;
}

html[data-theme="dark"] .ab-footer {
  background: #121925;
  color: var(--ab-text-soft);
}

html[data-theme="dark"] .ab-btn-blue {
  background: #1a6fd0;
}

html[data-theme="dark"] .ab-btn-blue:hover {
  background: #155bb0;
}

html[data-theme="dark"] .ab-slider--contained {
  border-color: var(--ab-border);
}

/* Mobile category tiles */
.ab-tile {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--ab-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 12px 8px 10px;
  text-align: center;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ab-tile:hover {
  box-shadow: 0 6px 16px rgba(0, 87, 184, 0.12);
  transform: translateY(-1px);
}

.ab-tile__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  color: var(--ab-blue);
}

.ab-tile__ico svg {
  width: 26px;
  height: 26px;
  display: block;
}

.ab-tile__ico [class^="icon-"],
.ab-tile__ico [class*=" icon-"] {
  font-size: 22px;
  line-height: 1;
  color: inherit;
}

.ab-tile__label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

html[data-theme="dark"] .ab-tile__ico {
  background: linear-gradient(180deg, var(--ab-surface-3), var(--ab-accent-soft));
  color: var(--ab-link);
}

html[data-theme="dark"] .ab-tile__label {
  color: var(--ab-text) !important;
}

.ab-tile .ab-product-mark {
  margin-inline: auto;
  margin-bottom: 0;
}

.ab-product-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--ab-blue);
  color: var(--ab-blue);
  flex-shrink: 0;
  background: #fff;
  line-height: 1;
  overflow: hidden;
}

.ab-product-mark [class^="icon-"],
.ab-product-mark [class*=" icon-"] {
  font-size: 18px !important;
  line-height: 1;
  color: inherit;
}

.ab-cat-card__head .ab-product-mark {
  width: 26px;
  height: 26px;
}

.ab-cat-card__head .ab-product-mark [class^="icon-"],
.ab-cat-card__head .ab-product-mark [class*=" icon-"] {
  font-size: 18px !important;
}

html[data-theme="dark"] .ab-product-mark {
  background: var(--ab-surface-2);
  border-color: var(--ab-link);
  color: var(--ab-link);
}

.ab-service-card {
  display: flex;
  min-height: 138px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  background: #fff;
  padding: 17px;
  text-align: right;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ab-service-card:hover {
  transform: translateY(-3px);
  border-color: var(--ab-link);
  box-shadow: 0 12px 28px rgba(0, 87, 184, .1);
}

.ab-service-card i,
.ab-service-card svg {
  width: 24px;
  color: var(--ab-blue);
}

.ab-service-card strong,
.ab-service-card small {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ab-service-card strong {
  color: var(--ab-navy);
  font-size: 13px;
  line-height: 1.8;
}

.ab-service-card small {
  min-height: 2.9em;
  color: #64748b;
  font-size: 10px;
  line-height: 1.8;
}

.ab-spec-chip {
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
  padding: 8px 12px;
  color: var(--ab-blue);
  font-size: 11px;
  font-weight: 700;
}

/* —— Procurement path hub (light default + dark overrides) —— */
.ab-procurement-hub {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0 3rem;
  background: #f3f5f7;
  color: var(--ab-navy);
}

.ab-procurement-hub__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.28) 45%, rgba(243, 245, 247, 0.75) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.7) 42%, rgba(255, 255, 255, 0.7) 58%, rgba(255, 255, 255, 0.12) 100%),
    url("../img/hub/procurement-bg-light.jpg") center / cover no-repeat;
  pointer-events: none;
}

.ab-procurement-hub__inner {
  position: relative;
  z-index: 1;
}

.ab-procurement-hub__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.ab-procurement-hub__topline h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-procurement-hub__topline p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #cc922f;
}

.ab-procurement-hub__layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.6fr);
  gap: 1.25rem 1.5rem;
  align-items: stretch;
}

.ab-procurement-cta {
  border: 1px solid rgba(0, 87, 184, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: 0 10px 28px rgba(15, 31, 47, 0.08);
}

.ab-procurement-cta h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ab-navy);
  line-height: 1.7;
}

.ab-procurement-cta p {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.85;
  color: #5b6b7c;
}

.ab-procurement-cta__btn {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: #caa45d;
  color: #0f1f2f;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.7rem 1.15rem;
}

.ab-procurement-cta__btn:hover {
  filter: brightness(1.05);
}

.ab-procurement-steps {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0.4rem 0.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  position: relative;
}

.ab-procurement-steps::before {
  content: "";
  position: absolute;
  top: 2.35rem;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 39, 73, 0.18), transparent);
  pointer-events: none;
}

.ab-procurement-steps li {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.25rem;
}

.ab-procurement-step-link {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: center;
  padding: 0;
  font: inherit;
}

.ab-procurement-steps .ab-step-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(10, 39, 73, 0.18);
  margin-bottom: 0.15rem;
}

.ab-procurement-steps .ab-step-ico {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(202, 164, 93, 0.55);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  color: var(--ab-navy);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.65), 0 6px 16px rgba(15, 31, 47, 0.08);
}

.ab-procurement-steps .ab-step-ico i,
.ab-procurement-steps .ab-step-ico svg {
  width: 20px;
  height: 20px;
}

.ab-procurement-steps strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ab-navy);
  margin-bottom: 0.25rem;
}

.ab-procurement-steps small {
  display: block;
  font-size: 0.68rem;
  line-height: 1.7;
  color: #64748b;
}

.ab-procurement-hub__meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.65rem;
  color: rgba(71, 85, 105, 0.85);
}

.ab-procurement-hub__glyphs {
  display: flex;
  gap: 0.85rem;
  opacity: 0.45;
  font-size: 1.1rem;
  color: var(--ab-navy);
}

@media (max-width: 980px) {
  .ab-procurement-hub__layout {
    grid-template-columns: 1fr;
  }

  .ab-procurement-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 0.75rem;
  }

  .ab-procurement-steps::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .ab-procurement-steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Tools strip (#weights) —— */
.ab-tools-strip {
  padding: 1.5rem 0;
  background: linear-gradient(180deg, #f4f7fb 0%, #fff 100%);
  border-block: 1px solid var(--ab-border);
}

.ab-tools-strip__inner {
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 18px;
  box-sizing: border-box;
}

.ab-tools-strip__head {
  text-align: center;
  margin-bottom: 1.1rem;
}

.ab-tools-strip__head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-tools-strip__head p {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--ab-muted);
}

.ab-tools-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.ab-tools-strip__card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--ab-border);
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 31, 47, 0.04);
  transition: border-color 0.15s, transform 0.15s;
}

.ab-tools-strip__card:hover {
  border-color: rgba(0, 87, 184, 0.35);
  transform: translateY(-2px);
}

.ab-tools-strip__card i,
.ab-tools-strip__card svg {
  width: 22px;
  height: 22px;
  color: var(--ab-blue);
}

.ab-tools-strip__card strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-tools-strip__card span {
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--ab-muted);
}

html[data-theme="dark"] .ab-tools-strip {
  background: var(--ab-page);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-tools-strip__inner {
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .ab-tools-strip__head h2,
html[data-theme="dark"] .ab-tools-strip__card strong {
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-tools-strip__card {
  background: var(--ab-surface-2);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-tools-strip__card i,
html[data-theme="dark"] .ab-tools-strip__card svg {
  color: var(--ab-link);
}

@media (max-width: 900px) {
  .ab-tools-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-tools-strip__inner {
    padding: 1.15rem 1rem 1.25rem;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .ab-tools-strip__grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .ab-procurement-hub {
  background: #0c1826 !important;
  color: #e8eef5 !important;
}

html[data-theme="dark"] .ab-procurement-hub__bg {
  background:
    linear-gradient(90deg, rgba(8, 16, 28, 0.82) 12%, rgba(8, 16, 28, 0.55) 48%, rgba(8, 16, 28, 0.82) 88%),
    url("../img/hub/procurement-bg.jpg") center / cover no-repeat;
}

html[data-theme="dark"] .ab-procurement-hub__topline h2 {
  color: #fff;
}

html[data-theme="dark"] .ab-procurement-hub__topline p {
  color: #caa45d;
}

html[data-theme="dark"] .ab-procurement-cta {
  border-color: rgba(142, 184, 232, 0.35);
  background: rgba(10, 22, 38, 0.72);
  box-shadow: 0 0 0 1px rgba(0, 87, 184, 0.12), 0 16px 40px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .ab-procurement-cta h3 {
  color: #fff;
}

html[data-theme="dark"] .ab-procurement-cta p {
  color: #b7c7d9;
}

html[data-theme="dark"] .ab-procurement-steps::before {
  background: linear-gradient(90deg, transparent, #caa45d 12%, #caa45d 88%, transparent);
  height: 2px;
  right: 8%;
  left: 8%;
  opacity: 0.85;
}

html[data-theme="dark"] .ab-procurement-steps .ab-step-num {
  color: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .ab-procurement-steps .ab-step-ico {
  border-color: rgba(202, 164, 93, 0.45);
  background: rgba(12, 24, 38, 0.85);
  color: #e8eef5;
  box-shadow: 0 0 0 4px rgba(12, 24, 38, 0.65);
}

html[data-theme="dark"] .ab-procurement-steps strong {
  color: #fff;
}

html[data-theme="dark"] .ab-procurement-steps small {
  color: #9eb0c4;
}

html[data-theme="dark"] .ab-procurement-hub__meta {
  color: rgba(183, 199, 217, 0.7);
}

html[data-theme="dark"] .ab-procurement-hub__glyphs {
  color: #e8eef5;
  opacity: 0.55;
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Swing / fluctuation cards ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-swing-track,
.ab-drag-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  touch-action: pan-y;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.ab-swing-track::-webkit-scrollbar,
.ab-drag-scroll::-webkit-scrollbar {
  display: none;
  height: 0;
}

.ab-swing-track.is-dragging,
.ab-drag-scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.ab-swing-track.is-dragging *,
.ab-drag-scroll.is-dragging * {
  pointer-events: none;
}

.ab-swing-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--ab-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.ab-swing-card__title {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--ab-blue);
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.ab-swing-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  font-size: 12px;
  border-bottom: 1px solid #f8fafc;
}

.ab-swing-card__foot {
  background: #eff6ff;
  color: var(--ab-blue);
  font-size: 11px;
  padding: 8px 14px;
  text-align: center;
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Chart ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-chart-wrap {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--ab-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 8px 4px 4px;
  width: 100%;
}

.ab-apex-chart {
  width: 100%;
  min-height: 320px;
}

.ab-chart-range {
  display: inline-flex;
  gap: 6px;
  background: #eef4fb;
  padding: 4px;
  border-radius: 999px;
}

.ab-chart-range button {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.ab-chart-range button.is-active {
  background: var(--ab-blue);
  color: #fff;
}

html[data-theme="dark"] .ab-chart-range {
  background: var(--ab-surface-2);
}

html[data-theme="dark"] .ab-chart-range button {
  color: var(--ab-muted);
}

html[data-theme="dark"] .ab-chart-range button.is-active {
  background: var(--ab-blue);
  color: #fff;
}

.ab-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.ab-price-today-card {
  transition: background-color 0.2s, border-color 0.2s;
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ News cards ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ab-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.ab-news-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ab-news-card__media {
  aspect-ratio: 16/10;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ab-news-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 10px;
  background: transparent;
}

html[data-theme="dark"] .ab-news-card__media {
  background: linear-gradient(180deg, var(--ab-surface-2), var(--ab-page));
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ About ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-about {
  background: var(--ab-navy);
  color: #fff;
}

.ab-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 12px;
  max-width: 120px;
}

.ab-feature__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #fff;
  color: var(--ab-blue);
  display: grid;
  place-items: center;
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Reports ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-report {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--ab-border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 160px;
}

.ab-report--daily {
  border-inline-start: 4px solid var(--ab-yellow-deep);
}

.ab-report--weekly {
  border-inline-start: 4px solid var(--ab-blue);
}

.ab-report__visual {
  width: 148px;
  min-height: 100%;
  background: linear-gradient(160deg, var(--ab-sand), var(--ab-yellow-soft));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ab-report__visual--photo {
  background: linear-gradient(180deg, #f8fafc, #e8eef5);
  padding: 10px;
}

.ab-report__visual img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ab-report--daily .ab-report__visual--photo {
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
}

.ab-report--weekly .ab-report__visual {
  background: linear-gradient(160deg, #dbeafe, var(--ab-link));
}

.ab-report--weekly .ab-report__visual--photo {
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
}

html[data-theme="dark"] .ab-report__visual--photo {
  background: linear-gradient(180deg, var(--ab-surface-2), var(--ab-page)) !important;
}

.ab-social-btn {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.15s;
}

.ab-social-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ab-trust-badge {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-size: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* —— Footer —— */
.ab-footer {
  background: var(--ab-navy);
  color: #cbd5e1;
}

.ab-footer a:hover {
  color: #fff;
}

.ab-footer-acc {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
}

.ab-footer-acc__chevron {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.ab-footer-acc[aria-expanded="true"] .ab-footer-acc__chevron {
  transform: rotate(225deg);
}

.ab-footer-col--social .ab-footer-social-row,
.ab-footer-col--social .ab-footer-trust-row {
  display: flex;
}

@media (max-width: 639px) {
  .ab-footer-col--acc {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.35rem;
  }

  .ab-footer-acc {
    display: flex;
  }

  .ab-footer-acc__panel {
    margin-top: 0.75rem;
  }

  .ab-footer-acc__panel.is-collapsed,
  .ab-footer-acc__panel[hidden] {
    display: none !important;
  }

  .ab-footer-col--social {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ab-footer-col--social .ab-footer-social-row,
  .ab-footer-col--social .ab-footer-trust-row {
    justify-content: center;
  }
}

@media (min-width: 640px) {
  .ab-footer-acc {
    display: none !important;
  }

  .ab-footer-acc__panel,
  .ab-footer-acc__panel.is-collapsed,
  .ab-footer-acc__panel[hidden] {
    display: block !important;
  }

  .ab-footer-acc__panel.space-y-2 {
    display: block !important;
  }
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Moment news sticky bar ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
#momentNews {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--ab-blue);
  color: #fff;
  height: var(--sticky-news-h);
}

@media (max-width: 1023px) {
  #momentNews {
    bottom: var(--mobile-nav-h);
  }
}

.ab-moment-label {
  background: var(--ab-navy);
  min-width: 140px;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  font-size: 12px;
  line-height: 1.3;
}

.ab-moment-marquee {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.ab-moment-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  direction: ltr;
  animation: ab-marquee 40s linear infinite;
  font-size: 13px;
  white-space: nowrap;
  will-change: transform;
}

.ab-moment-track .h2-ticker__seg {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  gap: 48px;
  padding-inline-end: 48px;
}

.ab-moment-marquee:hover .ab-moment-track,
.ab-moment-marquee.is-paused .ab-moment-track {
  animation-play-state: paused;
}

@keyframes ab-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 400px) {
  .ab-moment-label {
    min-width: 108px;
    padding: 0 8px;
  }

  .ab-moment-label strong {
    font-size: 11px;
  }
}

/* —— Unified support hub (chat + AI tabs) —— */
.ab-assist-fab {
  position: fixed;
  bottom: calc(var(--sticky-news-h) + 16px);
  left: 16px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ab-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(11, 28, 51, 0.35);
  cursor: pointer;
}

.ab-assist-fab__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ab-chat);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
  flex: 0 0 auto;
}

.ab-assist-panel {
  position: fixed;
  bottom: calc(var(--sticky-news-h) + 80px);
  left: 16px;
  z-index: 95;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(10, 39, 73, 0.25);
}

.ab-assist-panel[hidden] {
  display: none;
}

.ab-assist-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 10px 10px 10px 12px;
  background: var(--ab-navy);
  color: #fff;
}

.ab-assist-tabs {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.ab-assist-tabs [role="tab"] {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  padding: 0.45rem 0.5rem;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.ab-assist-tabs [role="tab"][aria-selected="true"] {
  background: #fff;
  color: var(--ab-navy);
}

.ab-assist-panel__head>button[data-assist-close] {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ab-assist-pane[hidden] {
  display: none;
}

.ab-assist-pane__meta {
  padding: 12px 14px 0;
}

.ab-assist-pane__meta strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-assist-pane__meta small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.ab-chat-status {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 4px;
  border-radius: 50%;
  background: var(--ab-green, var(--ab-chat));
}

.ab-chat-messages,
.ab-ai-messages {
  min-height: 170px;
  max-height: 280px;
  overflow-y: auto;
  padding: 14px;
  background: #f8fafc;
}

.ab-chat-messages p,
.ab-ai-messages p {
  width: fit-content;
  max-width: 85%;
  margin: 0 0 9px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.8;
}

.ab-chat-messages .is-agent,
.ab-ai-messages .is-bot {
  margin-inline-end: auto;
  background: #fff;
  border: 1px solid var(--ab-border);
}

.ab-chat-messages .is-user,
.ab-ai-messages .is-user {
  margin-inline-start: auto;
  background: #dbeafe;
  color: #1e3a8a;
}

.ab-ai-messages .is-hint {
  width: 100%;
  max-width: none;
  background: rgba(0, 87, 184, 0.06);
  border: 1px dashed rgba(0, 87, 184, 0.25);
  color: #334155;
  font-size: 11px;
}

.ab-chat-form,
.ab-ai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--ab-border);
}

.ab-chat-form input,
.ab-ai-form input {
  min-width: 0;
  border: 1px solid var(--ab-border);
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 12px;
}

.ab-chat-form button,
.ab-ai-form button {
  border: 0;
  border-radius: 9px;
  background: var(--ab-blue);
  color: #fff;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ab-chat-note,
.ab-ai-note {
  padding: 0 12px 9px;
  color: #94a3b8;
  font-size: 9px;
  line-height: 1.6;
}

.ab-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
}

.ab-ai-chips button {
  border: 1px solid var(--ab-border);
  border-radius: 999px;
  background: #fff;
  padding: 0.3rem 0.7rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--ab-navy);
  cursor: pointer;
}

.ab-ai-chips button:hover {
  border-color: var(--ab-blue);
  color: var(--ab-blue);
}

html[data-theme="dark"] .ab-assist-panel {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-assist-pane__meta strong {
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-chat-messages,
html[data-theme="dark"] .ab-ai-messages {
  background: var(--ab-page);
}

html[data-theme="dark"] .ab-chat-messages .is-agent,
html[data-theme="dark"] .ab-ai-messages .is-bot,
html[data-theme="dark"] .ab-ai-chips button {
  background: var(--ab-surface);
  border-color: var(--ab-border);
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-chat-messages .is-user,
html[data-theme="dark"] .ab-ai-messages .is-user {
  background: var(--ab-accent-soft);
  color: #dbeafe;
}

@media (max-width: 1023px) {
  .ab-assist-fab {
    bottom: calc(var(--sticky-news-h) + var(--mobile-nav-h) + 16px);
    left: auto;
    right: 16px;
  }

  .ab-assist-panel {
    bottom: calc(var(--sticky-news-h) + var(--mobile-nav-h) + 80px);
    left: auto;
    right: 16px;
  }
}

/* Admin AI assistant page */
.ab-admin-ai {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1rem;
  min-height: 560px;
}

.ab-admin-ai__main {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.ab-admin-ai__thread {
  flex: 1;
  padding: 1rem;
  background: #f8fafc;
  overflow-y: auto;
  min-height: 360px;
}

.ab-admin-ai__thread .bubble {
  max-width: 85%;
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.8;
}

.ab-admin-ai__thread .bubble.is-ai {
  background: #fff;
  border: 1px solid var(--ab-border);
}

.ab-admin-ai__thread .bubble.is-staff {
  margin-inline-start: auto;
  background: #dbeafe;
  color: #1e3a8a;
}

.ab-admin-ai__tools {
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
}

.ab-admin-ai__tools h2 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-admin-ai__tools button {
  display: block;
  width: 100%;
  text-align: right;
  margin-bottom: 0.45rem;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ab-navy);
  cursor: pointer;
}

.ab-admin-ai__tools button:hover {
  border-color: var(--ab-blue);
  color: var(--ab-blue);
}

@media (max-width: 900px) {
  .ab-admin-ai {
    grid-template-columns: 1fr;
  }
}

/* —— Mobile bottom nav —— */
.ab-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 65;
  height: var(--mobile-nav-h);
  background: var(--ab-blue);
  color: #fff;
  display: none;
}

@media (max-width: 1023px) {
  .ab-mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding-bottom: 6px;
  }
}

.ab-mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #dbeafe;
  padding-top: 8px;
}

.ab-mobile-nav__call {
  width: 56px;
  height: 56px;
  margin: -22px auto 0;
  border-radius: 999px;
  background: var(--ab-chat);
  color: #fff !important;
  display: grid !important;
  place-items: center;
  align-content: center;
  justify-items: center;
  padding: 0 !important;
  gap: 0 !important;
  flex-direction: row !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
  border: 3px solid #fff;
  line-height: 0;
  animation: ab-call-pulse 2.8s ease-out infinite;
}

.ab-mobile-nav__call svg,
.ab-mobile-nav__call i {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
  stroke-width: 2.25;
}

@keyframes ab-call-pulse {
  0% {
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.45);
  }

  70% {
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Mobile drawer ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.ab-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ab-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  z-index: 90;
  background: var(--ab-navy);
  color: #fff;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ab-drawer::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.ab-drawer.is-open {
  transform: translateX(0);
}

.ab-drawer__close {
  background: var(--ab-yellow);
  color: var(--ab-navy-deep);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.ab-drawer-box {
  margin: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.ab-drawer-box__head {
  background: var(--ab-blue);
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.ab-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #fff;
}

.ab-drawer-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ab-drawer-link {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #fff;
}

.ab-drawer-link.is-hot {
  color: var(--ab-yellow);
  font-weight: 700;
}

/* Categories dropdown */
.ab-mega {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(980px, 94vw);
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  padding: 16px 18px;
  display: none;
  z-index: 60;
}

.ab-mega.is-open {
  display: block;
}

.ab-mega__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 16px;
}

.ab-mega__title {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8eef5;
  font-size: 12px;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-mega__col a {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ab-blue);
}

.ab-mega__col a:hover {
  background: #f1f5f9;
}

/* Product icons via icomoon */
.ab-mega__col a [class^="icon-"],
.ab-mega__col a [class*=" icon-"],
.ab-cat-sidebar__link [class^="icon-"],
.ab-cat-sidebar__link [class*=" icon-"] {
  font-size: 18px;
  line-height: 1;
  color: var(--ab-blue);
  flex-shrink: 0;
}

.ab-cat-sidebar__link [class^="icon-"],
.ab-cat-sidebar__link [class*=" icon-"] {
  font-size: 16px;
  margin-inline-end: 0.35rem;
}

html[data-theme="dark"] .ab-mega {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-mega__title {
  color: var(--ab-text);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-mega__col a {
  color: var(--ab-link);
}

html[data-theme="dark"] .ab-mega__col a:hover {
  background: var(--ab-surface-3);
}

@media (max-width: 1100px) {
  .ab-mega__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.badge-up {
  color: #059669;
}

.badge-down {
  color: var(--ab-red);
}

.badge-flat {
  color: #6b7280;
}

/* Shared data-state vocabulary for static fixtures and future responses. */
.ab-state {
  border-radius: 10px;
}

.ab-state--loading {
  color: #475569;
  background: #f8fafc;
}

.ab-state--empty {
  color: #64748b;
  background: #f8fafc;
}

.ab-state--error {
  color: #991b1b;
  background: #fef2f2;
}

.ab-state--stale {
  color: #92400e;
  background: #fffbeb;
}

.ab-state--success {
  color: #166534;
  background: #f0fdf4;
}

.ab-state--forbidden,
.ab-state--unauthenticated {
  color: #334155;
  background: #f1f5f9;
}

/* Commerce lifecycle uses the visual language of a load dispatch sheet. */
.ab-commerce-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  background: var(--ab-border);
}

.ab-commerce-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 0 8px;
  min-height: 68px;
  padding: 10px 12px;
  background: #fff;
  color: #64748b;
}

.ab-commerce-steps li>span {
  grid-row: span 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.ab-commerce-steps strong {
  font-size: 12px;
  color: var(--ab-navy);
}

.ab-commerce-steps small {
  font-size: 10px;
}

.ab-commerce-steps .is-done {
  background: #f0fdf4;
  color: #166534;
}

.ab-commerce-steps .is-done>span {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.ab-commerce-steps .is-current {
  background: #eff6ff;
  color: var(--ab-blue);
  box-shadow: inset 0 -3px var(--ab-blue);
}

.ab-commerce-steps .is-current>span {
  border-color: var(--ab-blue);
  background: var(--ab-blue);
  color: #fff;
}

.ab-quote-row {
  display: grid;
  grid-template-columns: 34px minmax(140px, .9fr) minmax(220px, 1.5fr) minmax(210px, 1fr) 34px;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  background: #fbfdff;
}

.ab-quote-row label>span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
}

.ab-quote-row input,
.ab-quote-row select {
  width: 100%;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  font-size: 13px;
}

.ab-quote-row label .flex input {
  border-radius: 0 8px 8px 0;
}

.ab-quote-row label .flex select {
  width: 88px;
  border-right: 0;
  border-radius: 8px 0 0 8px;
}

.ab-quote-row__index {
  align-self: center;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--ab-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ab-quote-row__remove {
  align-self: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: #be123c;
  background: #fff1f2;
  font-size: 20px;
}

.ab-quote-row__remove:disabled {
  opacity: .3;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .ab-commerce-steps {
    grid-template-columns: 1fr;
  }

  .ab-commerce-steps li {
    min-height: 54px;
  }

  .ab-quote-row {
    grid-template-columns: 30px 1fr 34px;
  }

  .ab-quote-row label {
    grid-column: 1 / -1;
  }

  .ab-quote-row__index {
    grid-column: 1;
    grid-row: 1;
  }

  .ab-quote-row__remove {
    grid-column: 3;
    grid-row: 1;
  }
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Account / print ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-account-nav a.is-active {
  background: #eff6ff;
  color: var(--ab-blue);
  font-weight: 700;
}

@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
    padding-bottom: 0 !important;
  }

  #momentNews,
  .ab-mobile-nav,
  .ab-assist-fab,
  .ab-assist-panel {
    display: none !important;
  }
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Modal + toast (shared UI chrome) ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ab-modal-root.is-open {
  display: flex !important;
}

.ab-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 39, 73, 0.55);
}

.ab-modal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(10, 39, 73, 0.25);
  padding: 20px 20px 16px;
}

.ab-modal-panel h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-toast {
  position: fixed;
  bottom: calc(var(--sticky-news-h) + var(--mobile-nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 90;
  background: #0a2749;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* دارک‌مود / پنل ادمین: کنتراست قطعی متن و پس‌زمینه */
html[data-theme="dark"] .ab-toast,
body.fi-body .ab-toast,
body.fi-body #ab-toast {
  background: #0057b8 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 14px 36px rgba(0, 20, 60, 0.55) !important;
}

@media (min-width: 1024px) {
  .ab-toast {
    bottom: calc(var(--sticky-news-h) + 20px);
  }

  body.fi-body .ab-toast,
  body.fi-body #ab-toast {
    bottom: 1.5rem;
  }
}

.ab-price-main {
  min-width: 0;
  max-width: 100%;
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Price page layout + category sidebar ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-price-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
}

/* Mobile: table first, sidebar below */
@media (max-width: 1023px) {
  .ab-price-layout.ab-archive-layout>.ab-price-main {
    order: 1;
  }

  .ab-price-layout.ab-archive-layout>.ab-archive-aside {
    order: 2;
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 1024px) {
  .ab-price-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.25rem;
  }

  .ab-price-layout.ab-archive-layout {
    /* RTL: first child = right. Aside is first in DOM → 300px sidebar right */
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
  }

  .ab-price-layout.ab-archive-layout>.ab-archive-aside {
    grid-column: auto;
    position: static;
    align-self: start;
    max-height: none;
    overflow: visible;
  }

  .ab-price-layout.ab-archive-layout>.ab-price-main {
    grid-column: auto;
    min-width: 0;
  }
}

.ab-cat-sidebar {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ab-cat-sidebar__title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ab-navy);
  margin: 0 0 0.5rem;
  padding: 0 0.35rem;
}

.ab-cat-sidebar__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  overflow: visible;
  padding-bottom: 0;
}

@media (min-width: 480px) {
  .ab-cat-sidebar__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ab-cat-sidebar__nav {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
}

.ab-cat-sidebar__link {
  display: block;
  flex: none;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  white-space: normal;
  text-align: center;
  line-height: 1.45;
  transition: background 0.15s, color 0.15s;
}

@media (min-width: 1024px) {
  .ab-cat-sidebar__link {
    font-size: 0.8125rem;
    text-align: right;
    white-space: nowrap;
    padding: 0.55rem 0.75rem;
  }
}

.ab-cat-sidebar__link:hover {
  background: #f1f5f9;
  color: var(--ab-blue);
}

.ab-cat-sidebar__link.is-active {
  background: rgba(0, 87, 184, 0.1);
  color: var(--ab-blue);
}

html[data-theme="dark"] .ab-cat-sidebar {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-cat-sidebar__title {
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-cat-sidebar__link {
  color: var(--ab-text-soft);
}

html[data-theme="dark"] .ab-cat-sidebar__link:hover,
html[data-theme="dark"] .ab-cat-sidebar__link.is-active {
  background: rgba(0, 87, 184, 0.22);
  color: var(--ab-link);
}

.ab-price-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ab-chart-btn {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--ab-blue);
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ab-chart-btn:hover {
  background: rgba(0, 87, 184, 0.08);
  border-color: var(--ab-blue);
}

html[data-theme="dark"] .ab-chart-btn {
  background: var(--ab-surface-3);
  border-color: var(--ab-border);
  color: var(--ab-link);
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Product chart modal ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ab-chart-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ab-chart-modal[hidden] {
  display: none !important;
}

.ab-chart-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 39, 73, 0.55);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.ab-chart-modal.is-open .ab-chart-modal__backdrop {
  opacity: 1;
}

.ab-chart-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--ab-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  padding: 1rem 1rem 1.25rem;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
}

.ab-chart-modal.is-open .ab-chart-modal__panel {
  transform: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {

  .ab-chart-modal,
  .ab-chart-modal__backdrop,
  .ab-chart-modal__panel {
    transition: none !important;
  }

  .ab-chart-modal__panel {
    transform: none !important;
    opacity: 1 !important;
  }
}

.ab-chart-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ab-chart-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.65rem 0 0.85rem;
}

.ab-chart-modal__stat {
  flex: 1 1 140px;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ab-chart-modal__stat span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.ab-chart-modal__stat strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: right;
}

.ab-chart-modal__stat.is-up strong {
  color: #059669;
}

.ab-chart-modal__stat.is-down strong {
  color: #dc2626;
}

.ab-chart-modal__stat.is-flat strong {
  color: #64748b;
}

html[data-theme="dark"] .ab-chart-modal__stat {
  background: var(--ab-surface-2, #132033);
  border-color: var(--ab-border, #24344d);
}

html[data-theme="dark"] .ab-chart-modal__stat span {
  color: var(--ab-muted, #93a4bd);
}

html[data-theme="dark"] .ab-chart-modal__stat strong {
  color: var(--ab-text, #e8eef8);
}

.ab-chart-modal__close {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.25rem;
  line-height: 1;
}

.ab-chart-modal__close:hover {
  background: #e2e8f0;
}

.ab-chart-modal__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

html[data-theme="dark"] .ab-chart-modal__panel {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-chart-modal__close {
  background: var(--ab-surface-3);
  color: var(--ab-text-soft);
}

html[data-theme="dark"] #ab-chart-modal-title {
  color: var(--ab-text) !important;
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Market analysis ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-market-panel {
  transition: background-color 0.2s, border-color 0.2s;
}

html[data-theme="dark"] .ab-market-panel {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-market-filters {
  background: rgba(16, 31, 50, 0.9) !important;
  border-color: var(--ab-border) !important;
}

html[data-theme="dark"] .ab-market-filters select {
  background: var(--ab-surface-3);
  border-color: var(--ab-border);
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-market-panel .bg-white {
  background: var(--ab-surface) !important;
}

html[data-theme="dark"] .ab-market-panel .bg-slate-100 {
  background: var(--ab-surface-3) !important;
}

.ab-nav-link.is-active {
  color: var(--ab-blue);
  font-weight: 700;
}

/* ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ Freight / shipping rate table ÃÂ¢ÃÂÃÂÃÂ¢ÃÂÃÂ */
.ab-freight-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.ab-freight-table thead th {
  background: var(--ab-navy);
  color: #fff;
  font-weight: 700;
  padding: 14px 12px;
  white-space: nowrap;
}

.ab-freight-table thead th:first-child {
  text-align: right;
  padding-inline-start: 18px;
}

.ab-freight-table tbody th {
  text-align: right;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--ab-navy);
  background: #f8fafc;
  border-bottom: 1px solid var(--ab-border);
  white-space: nowrap;
}

.ab-freight-table tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--ab-border);
  font-variant-numeric: tabular-nums;
  color: #334155;
}

.ab-freight-table tbody tr:hover td,
.ab-freight-table tbody tr:hover th {
  background: #eff6ff;
}

html[data-theme="dark"] .ab-freight-table thead th {
  background: var(--ab-surface-2);
}

html[data-theme="dark"] .ab-freight-table tbody th {
  background: var(--ab-surface-2);
  color: var(--ab-text);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-freight-table tbody td {
  color: var(--ab-text-soft);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-freight-table tbody tr:hover td,
html[data-theme="dark"] .ab-freight-table tbody tr:hover th {
  background: var(--ab-surface-3);
}

/* ÃÂÃÂ Live search overlay ÃÂÃÂ */
.ab-live-search {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: start center;
  padding: 4.5rem 1rem 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.ab-live-search.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ab-live-search[hidden] {
  display: none !important;
}

.ab-live-search.is-open[hidden] {
  display: grid !important;
}

.ab-live-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 39, 73, 0.55);
}

.ab-live-search__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(78vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--ab-border);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
  padding: 1rem 1rem 0.85rem;
  transform: translateY(-10px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ab-live-search.is-open .ab-live-search__panel {
  transform: none;
}

.ab-live-search__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ab-live-search__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.25rem;
  line-height: 1;
}

.ab-live-search__field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
}

.ab-live-search__field input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.9375rem;
  color: var(--ab-navy);
}

.ab-live-search__results {
  margin-top: 0.85rem;
  min-height: 8rem;
}

.ab-live-search__foot {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ab-border);
  text-align: center;
}

.ab-live-search__foot a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ab-blue);
}

.ab-search-empty {
  padding: 0.35rem 0.15rem 0.5rem;
}

.ab-search-empty__title {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ab-navy);
  margin-bottom: 0.55rem;
}

.ab-search-empty__hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--ab-muted);
  line-height: 1.7;
}

.ab-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ab-search-chip {
  cursor: pointer;
  border: 0;
}

.ab-search-hit {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.55rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.ab-search-hit:hover {
  background: #f1f5f9;
}

.ab-search-hit__main {
  flex: 1;
  min-width: 0;
}

.ab-search-hit__main strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ab-navy);
}

.ab-search-hit__main small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  color: var(--ab-muted);
}

.ab-search-hit__arrow {
  color: #94a3b8;
  flex-shrink: 0;
}

.ab-page-search-results {
  margin-top: 1rem;
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  background: #fff;
  padding: 0.75rem;
  min-height: 12rem;
}

/* ÃÂÃÂ Hot / demand badge ÃÂÃÂ */
.ab-product-cell__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ab-hot-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 0;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  cursor: help;
  background: rgba(225, 29, 46, 0.1);
  color: #e11d2e;
  vertical-align: middle;
}

.ab-hot-badge--views {
  background: rgba(0, 87, 184, 0.12);
  color: var(--ab-blue);
}

.ab-hot-badge--demand {
  background: rgba(204, 146, 47, 0.16);
  color: #a06d16;
}

.ab-hot-badge::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: max(180px, 100%);
  max-width: 220px;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: var(--ab-navy);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  pointer-events: none;
  z-index: 5;
  text-align: right;
  white-space: normal;
}

.ab-hot-badge:hover::after,
.ab-hot-badge:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: none;
}

html[data-theme="dark"] .ab-hot-badge,
html[data-theme="dark"] .ab-hot-badge--hot,
html[data-theme="dark"] .ab-hot-badge--views,
html[data-theme="dark"] .ab-hot-badge--demand {
  background: rgba(142, 184, 232, 0.16);
  color: var(--ab-link);
}

/* ÃÂÃÂ Swing product links ÃÂÃÂ */
.ab-swing-row a {
  color: var(--ab-navy);
  font-weight: 700;
  text-decoration: none;
}

.ab-swing-row a:hover {
  color: var(--ab-blue);
  text-decoration: underline;
}

/* ÃÂÃÂ Experts + team ÃÂÃÂ */
.ab-experts {
  background: linear-gradient(180deg, var(--ab-surface) 0%, var(--ab-page) 100%);
}

.ab-expert-card {
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  background: #fff;
  padding: 1.1rem 1rem 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.ab-expert-card__avatar {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: #fff;
  background: linear-gradient(145deg, var(--ab-blue), var(--ab-navy));
}

.ab-expert-card h3 {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-expert-card p {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--ab-muted);
}

.ab-expert-card a {
  display: inline-flex;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ab-blue);
}

.ab-team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.ab-team-card {
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  background: #fff;
  padding: 1.15rem;
}

.ab-team-card__role {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--ab-blue);
  background: rgba(0, 87, 184, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

html[data-theme="dark"] .ab-live-search__panel,
html[data-theme="dark"] .ab-page-search-results,
html[data-theme="dark"] .ab-expert-card,
html[data-theme="dark"] .ab-team-card {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-live-search__field {
  background: var(--ab-surface-2);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-live-search__field input,
html[data-theme="dark"] .ab-search-hit__main strong,
html[data-theme="dark"] .ab-expert-card h3,
html[data-theme="dark"] #ab-live-search-title {
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-search-hit:hover {
  background: var(--ab-surface-3);
}

html[data-theme="dark"] .ab-live-search__close {
  background: var(--ab-surface-3);
  color: var(--ab-text-soft);
}

html[data-theme="dark"] .ab-swing-row a {
  color: var(--ab-text);
}

/* ÃÂÃÂ Consultants carousel (??????? ????) ÃÂÃÂ */
.ab-experts {
  background: var(--ab-page);
  border-top: 1px solid var(--ab-border);
}

.ab-experts__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ab-experts__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-experts__title::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--ab-blue);
}

.ab-consult-track {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  -webkit-scroll-snap-type: x mandatory;
  padding: 0.35rem 0.15rem 1rem;
  cursor: grab;
  scrollbar-width: none;
}

.ab-consult-track::-webkit-scrollbar {
  display: none;
}

.ab-consult-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  -webkit-scroll-snap-type: none;
}

.ab-consultant-card {
  -webkit-flex: 0 0 280px;
  flex: 0 0 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
  -webkit-scroll-snap-align: start;
  display: -webkit-flex;
  display: flex;
  /* متن اول در DOM؛ روی دسکتاپ عکس بالا می‌آید */
  -webkit-flex-direction: column-reverse;
  flex-direction: column-reverse;
  -webkit-align-items: center;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  /* روشن: سفید → نقره‌ای روشن */
  background: linear-gradient(165deg, #ffffff 0%, #f3f4f6 48%, #e5e7eb 100%);
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 1.25rem 1.1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(15, 31, 47, 0.08);
  min-height: 320px;
  box-sizing: border-box;
}

.ab-consultant-card>div {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.ab-consultant-card__photo {
  width: 168px;
  height: 168px;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d1d5db;
  padding: 0.35rem;
  -webkit-filter: none;
  filter: none;
}

/* آواتار پیش‌فرض: خیلی کمرنگ */
.ab-consultant-card__photo.is-default,
.ab-consultant-card__photo[src*="profile-men-default"],
.ab-consultant-card__photo[src*="profile-women-default"] {
  opacity: 0.22;
  -webkit-filter: grayscale(35%) saturate(0.55) brightness(1.08);
  filter: grayscale(35%) saturate(0.55) brightness(1.08);
}

html[data-theme="dark"] .ab-consultant-card__photo.is-default,
html[data-theme="dark"] .ab-consultant-card__photo[src*="profile-men-default"],
html[data-theme="dark"] .ab-consultant-card__photo[src*="profile-women-default"] {
  opacity: 0.16;
  -webkit-filter: grayscale(40%) saturate(0.5) brightness(0.95);
  filter: grayscale(40%) saturate(0.5) brightness(0.95);
}

.ab-consultant-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-consultant-card__role {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.6;
}

.ab-consultant-card__contacts {
  margin-top: 0.85rem;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.ab-consultant-card__contacts a {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ab-blue);
  direction: ltr;
  -webkit-justify-content: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .ab-consultant-card {
    -webkit-flex-basis: 300px;
    flex-basis: 300px;
    min-height: 360px;
    padding: 1.4rem 1.2rem 1.3rem;
  }

  .ab-consultant-card__photo {
    width: 196px;
    height: 196px;
  }

  .ab-consultant-card h3 {
    font-size: 1.12rem;
  }
}

/* موبایل/تبلت باریک: عریض افقی، زیر هم، بدون کاروسل */
@media (max-width: 767px) {

  .ab-consult-track,
  .ab-consult-track.ab-drag-scroll {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    overflow: visible !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    -webkit-scroll-snap-type: none !important;
    cursor: default !important;
    gap: 0.75rem;
    padding: 0.1rem 0 0.25rem;
    touch-action: pan-y;
  }

  .ab-consult-track.is-dragging {
    cursor: default !important;
  }

  .ab-consultant-card {
    -webkit-flex: 0 0 auto !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    scroll-snap-align: unset;
    -webkit-flex-direction: row !important;
    flex-direction: row !important;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    text-align: right;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
  }

  .ab-consultant-card>div {
    -webkit-align-items: flex-start !important;
    align-items: flex-start !important;
    text-align: right;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  .ab-consultant-card__photo {
    width: 112px !important;
    height: 112px !important;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
  }

  .ab-consultant-card__contacts {
    -webkit-align-items: flex-start !important;
    align-items: flex-start !important;
  }

  .ab-consultant-card__contacts a {
    -webkit-justify-content: flex-start !important;
    justify-content: flex-start !important;
  }

  .ab-consult-dots {
    display: none !important;
  }
}

.ab-consult-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.ab-consult-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--ab-blue);
  background: transparent;
  padding: 0;
}

.ab-consult-dots button.is-active {
  width: 22px;
  background: var(--ab-blue);
}

/* —— Category archive (sidebar + toolbar) —— */
.ab-archive-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.ab-archive-aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ab-archive-aside .ab-cat-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ab-archive-aside .ab-cat-sidebar__link {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ab-side-card {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.ab-side-card__head {
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ab-navy);
  border-bottom: 1px solid var(--ab-border);
  background: var(--ab-surface-2);
}

.ab-side-expert {
  padding: 1rem 1rem 1.1rem;
  text-align: center;
}

.ab-side-expert__photo {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  border: none;
  padding: 0;
  filter: none;
  display: block;
}

.ab-side-expert h3 {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-side-expert p {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--ab-muted);
}

.ab-side-expert__nav {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.ab-side-expert__nav button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 0;
  border-radius: 8px;
  border: 1px solid var(--ab-border);
  background: #fff;
  color: var(--ab-blue);
}

.ab-side-expert__nav button svg,
.ab-side-expert__nav button i {
  width: 14px;
  height: 14px;
  display: block;
  margin: 0;
}

.ab-side-expert__contacts {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.ab-side-expert__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 8px;
  border: 1px solid var(--ab-border);
  padding: 0.35rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ab-navy);
}

.ab-side-expert__contacts a.is-wa {
  color: #128c7e;
  border-color: #b7e4d8;
}

.ab-vat-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ab-navy);
  cursor: pointer;
}

.ab-vat-box input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--ab-blue);
}

/* —— Archive weight mini calculator —— */
.ab-weight-mini {
  margin-top: 0;
}

.ab-weight-mini__card {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  padding: 1rem 1.05rem 0.9rem;
}

.ab-weight-mini__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-weight-mini__title i {
  color: var(--ab-blue);
}

.ab-weight-mini__form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ab-weight-mini__row {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.35fr);
  align-items: center;
  gap: 0.45rem;
}

.ab-weight-mini__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ab-text);
}

.ab-weight-mini__field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.ab-weight-mini__field input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
  background: var(--ab-page, #f8fafc);
  color: var(--ab-text);
}

.ab-weight-mini__field select {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font-size: 0.72rem;
  background: var(--ab-page, #f8fafc);
  color: var(--ab-text);
}

.ab-weight-mini__field em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ab-muted);
  white-space: nowrap;
}

.ab-weight-mini__btn {
  margin-top: 0.35rem;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--ab-blue);
  cursor: pointer;
}

.ab-weight-mini__btn:hover {
  background: var(--ab-blue-dark, #003f87);
}

.ab-weight-mini__result {
  margin: 0.7rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 87, 184, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ab-navy);
}

.ab-weight-mini__note {
  margin: 0.45rem 0 0;
  font-size: 0.65rem;
  color: var(--ab-muted);
}

html[data-theme="dark"] .ab-weight-mini__card {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-weight-mini__title {
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-weight-mini__title i,
html[data-theme="dark"] .ab-weight-mini__btn {
  color: #fff;
}

html[data-theme="dark"] .ab-weight-mini__title i {
  color: var(--ab-link);
}

html[data-theme="dark"] .ab-weight-mini__btn {
  background: var(--ab-link);
  color: #0a1a2a;
}

html[data-theme="dark"] .ab-weight-mini__field input {
  background: var(--ab-page);
  border-color: var(--ab-border);
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-weight-mini__field select {
  background: var(--ab-page);
  border-color: var(--ab-border);
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-weight-mini__result {
  background: rgba(142, 184, 232, 0.12);
  color: var(--ab-text);
}

/* —— Parent category hub (e.g. انواع ورق) —— */
.ab-parent-hub.ab-archive-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1023px) {
  .ab-parent-hub.ab-archive-layout>.ab-price-main {
    order: 1;
  }

  .ab-parent-hub.ab-archive-layout>.ab-archive-aside {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .ab-parent-hub.ab-archive-layout {
    /* RTL: first DOM child (aside) sits on the right */
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1.25rem;
  }

  .ab-parent-hub.ab-archive-layout>.ab-archive-aside {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }

  .ab-parent-hub.ab-archive-layout .ab-cat-sidebar__nav {
    display: flex;
    flex-direction: column;
  }
}

.ab-parent-intro,
.ab-parent-faq {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
}

.ab-parent-intro h1 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-parent-intro p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--ab-muted);
  text-align: justify;
}

.ab-parent-faq {
  margin-top: 1rem;
}

.ab-parent-faq h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-parent-faq details {
  border-top: 1px solid var(--ab-border);
  padding: 0.7rem 0;
}

.ab-parent-faq summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ab-text);
  list-style: none;
}

.ab-parent-faq summary::-webkit-details-marker {
  display: none;
}

.ab-parent-faq details p {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--ab-muted);
}

.ab-parent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ab-parent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 7.5rem;
  padding: 1.25rem 1rem;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ab-parent-card:hover {
  border-color: rgba(0, 87, 184, 0.35);
  box-shadow: 0 8px 24px rgba(15, 31, 47, 0.06);
}

.ab-parent-card strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-parent-card span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ab-blue);
}

html[data-theme="dark"] .ab-parent-intro,
html[data-theme="dark"] .ab-parent-faq,
html[data-theme="dark"] .ab-parent-card {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-parent-intro h1,
html[data-theme="dark"] .ab-parent-faq h2,
html[data-theme="dark"] .ab-parent-card strong {
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-parent-card span {
  color: var(--ab-link);
}

@media (max-width: 900px) {
  .ab-parent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ab-parent-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Factory detail profile —— */
.ab-factory-detail {
  border: 1px solid var(--ab-border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.ab-factory-detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1.15rem;
  background: linear-gradient(135deg, #0b1c33 0%, #0057b8 100%);
  color: #fff;
}

.ab-factory-detail__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #93c5fd;
}

.ab-factory-detail__head h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
}

.ab-factory-detail__meta {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #dbeafe;
  line-height: 1.7;
}

.ab-factory-detail__head .ab-btn-blue {
  background: #caa45d;
  color: #0f1f2f;
}

.ab-factory-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.9fr);
  gap: 0;
}

.ab-factory-detail__grid>section,
.ab-factory-detail__grid>aside {
  padding: 1.25rem 1.35rem 1.4rem;
}

.ab-factory-detail__grid>aside {
  border-inline-start: 1px solid var(--ab-border);
  background: #f8fafc;
}

.ab-factory-detail h2 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-factory-detail p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--ab-muted);
  text-align: justify;
}

.ab-factory-detail__note {
  margin-top: 0.85rem !important;
  font-size: 0.75rem !important;
  color: #94a3b8 !important;
}

.ab-factory-specs {
  display: grid;
  gap: 0.45rem;
}

.ab-factory-spec {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ab-border);
  font-size: 0.75rem;
}

.ab-factory-spec span {
  color: var(--ab-muted);
}

.ab-factory-spec strong {
  color: var(--ab-navy);
  font-weight: 800;
}

.ab-factory-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ab-factory-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--ab-border);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ab-blue);
}

.ab-factory-link:hover {
  border-color: rgba(0, 87, 184, 0.4);
}

.ab-factory-card h2 a {
  color: inherit;
}

.ab-factory-card h2 a:hover {
  color: var(--ab-blue);
}

html[data-theme="dark"] .ab-factory-detail,
html[data-theme="dark"] .ab-factory-spec,
html[data-theme="dark"] .ab-factory-link {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-factory-detail__grid>aside {
  background: var(--ab-page);
}

html[data-theme="dark"] .ab-factory-detail h2,
html[data-theme="dark"] .ab-factory-spec strong {
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-factory-link {
  color: var(--ab-link);
}

@media (max-width: 860px) {
  .ab-factory-detail__grid {
    grid-template-columns: 1fr;
  }

  .ab-factory-detail__grid>aside {
    border-inline-start: 0;
    border-top: 1px solid var(--ab-border);
  }
}

.ab-filter-box {
  padding: 0.85rem 1rem 1rem;
}

.ab-filter-box__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ab-navy);
  margin-bottom: 0.65rem;
}

.ab-filter-acc {
  border-top: 1px solid var(--ab-border);
}

.ab-filter-acc>summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ab-navy);
  display: flex;
  justify-content: space-between;
}

.ab-filter-acc>summary::-webkit-details-marker {
  display: none;
}

.ab-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-bottom: 0.7rem;
}

.ab-filter-chips label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--ab-border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  cursor: pointer;
}

.ab-archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
}

/* —— جداول قیمت به تفکیک کارخانه (الگوی آهن‌آنلاین) —— */
.ab-mill-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ab-mill-card {
  background: #fff;
  border: 1.5px solid #ded8cf;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.ab-mill-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f2ece3;
  background: #fff;
}

.ab-mill-card__head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #9f1239;
}

.ab-mill-card__head time {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ab-mill-table thead th {
  background: #f7f3ec !important;
  color: #334155 !important;
  font-size: 0.72rem;
  font-weight: 800;
  border-bottom: 1px solid #e8e1d6;
}

.ab-mill-table tbody tr:nth-child(even) td {
  background: #faf8f4;
}

.ab-mill-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--ab-muted);
  border: 1px dashed var(--ab-border);
  border-radius: 12px;
  background: #fff;
}

html[data-theme="dark"] .ab-mill-card,
html[data-theme="dark"] .ab-mill-card__head {
  background: var(--ab-surface) !important;
  border-color: var(--ab-border) !important;
}

html[data-theme="dark"] .ab-mill-card__head h2 {
  color: #f9a8d4 !important;
}

html[data-theme="dark"] .ab-mill-card__head time {
  color: #86efac !important;
}

html[data-theme="dark"] .ab-mill-table thead th {
  background: var(--ab-surface-2) !important;
  color: var(--ab-text) !important;
  border-color: var(--ab-border) !important;
}

html[data-theme="dark"] .ab-mill-table tbody tr:nth-child(even) td {
  background: var(--ab-surface-2) !important;
}

/* —— کاروسل دسته‌های قیمت (هوم) —— */
.ab-cat-carousel {
  position: relative;
  padding: 1.25rem 0 0.5rem;
  margin-bottom: 0.5rem;
}

/* موبایل/تبلت باریک: کاروسل افقی مخفی — کارت‌ها و جدول مهم می‌مانند */
@media (max-width: 767px) {
  .ab-cat-carousel {
    display: none !important;
  }

  #box-price-home .ab-cat-grid,
  .box-price-home .ab-cat-grid {
    margin-top: 0;
  }

  /*
   * ?????? ? ????? ?????:
   * ???? + ????????? + ???? + ??????  (?????/????? ????? ????? ???? = ???)
   */
  .ab-mill-table,
  .ab-price-page-table,
  .h2-price-table {
    min-width: 0 !important;
  }

  .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(1),
  .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(1),
  .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(5),
  .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(5) {
    display: none !important;
  }

  .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(2),
  .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(2),
  .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(3),
  .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(3),
  .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(4),
  .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(4),
  .ab-mill-card .ab-mill-table > thead > tr > th:nth-child(6),
  .ab-mill-card .ab-mill-table > tbody > tr > td:nth-child(6) {
    display: table-cell !important;
  }

  /* other price tables: مخفی استاندارد در صورت وجود */
  .ab-price-page-table:not(.ab-mill-table):not(.h2-price-table) th:nth-child(3),
  .ab-price-page-table:not(.ab-mill-table):not(.h2-price-table) td:nth-child(3) {
    display: none !important;
  }

  /*
   * h2 ???? ? ?????? ??? ?????:
   * ?? = ????? ???? ????? (?????? 10) ???? ???? (10) ?????? ???.
   * ?????: ???? | ??????? | ???? | ?????
   */
  .h2-price-table > thead > tr > th:nth-child(1),
  .h2-price-table > tbody > tr > td:nth-child(1),
  .h2-price-table > thead > tr > th:nth-child(6),
  .h2-price-table > tbody > tr > td:nth-child(6) {
    display: none !important;
  }

  .h2-price-table > thead > tr > th:nth-child(2),
  .h2-price-table > tbody > tr > td:nth-child(2),
  .h2-price-table > thead > tr > th:nth-child(3),
  .h2-price-table > tbody > tr > td:nth-child(3),
  .h2-price-table > thead > tr > th:nth-child(4),
  .h2-price-table > tbody > tr > td:nth-child(4),
  .h2-price-table > thead > tr > th:nth-child(5),
  .h2-price-table > tbody > tr > td:nth-child(5) {
    display: table-cell !important;
  }

  .ab-price-actions {
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
  }

  /* موبایل: فقط آیکن نمودار — استعلام داخل مودال نمودار */
  .ab-price-actions .ab-btn-blue,
  .h2-row-cta {
    display: none !important;
  }

  .ab-chart-btn {
    border: 0;
    background: transparent;
    color: var(--ab-blue, #0057b8);
    padding: 0.35rem;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.ab-chart-modal__foot {
  padding: 0 1rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: stretch;
  gap: 0.5rem;
}

.ab-chart-modal__inquiry {
  flex: 1 1 auto;
  text-align: center;
  border-radius: 0.65rem;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  font-weight: 800;
}

.ab-chart-modal__product-link {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ab-blue, #0057b8);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.4rem 0.25rem;
}

.ab-cat-carousel__track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0.15rem 0.85rem;
  scrollbar-width: none;
}

.ab-cat-carousel__track::-webkit-scrollbar {
  display: none;
}

.ab-cat-carousel__card {
  flex: 0 0 clamp(132px, 28vw, 168px);
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, #e8f1fb 0%, #f3f7fc 100%);
  border: 1px solid rgba(0, 87, 184, 0.12);
  text-decoration: none;
  padding: 0.85rem 0.65rem 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ab-cat-carousel__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 87, 184, 0.12);
}

.ab-cat-carousel__card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 0.65rem;
  background: transparent;
}

.ab-cat-carousel__card h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ab-navy);
  text-align: center;
}

.ab-cat-carousel__cta {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ab-blue);
}

/* دارک: همان تن ملایم آبی */
html[data-theme="dark"] .ab-cat-carousel__card {
  background: linear-gradient(165deg, #1a3350 0%, #152a42 100%) !important;
  border-color: rgba(147, 197, 253, 0.16) !important;
}

html[data-theme="dark"] .ab-cat-carousel__card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .ab-cat-carousel__card h3 {
  color: #f0f4fa !important;
}

html[data-theme="dark"] .ab-cat-carousel__cta {
  color: #93c5fd !important;
}

.ab-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.ab-reveal.is-in {
  opacity: 1;
  transform: none;
}

.ab-archive-toolbar h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-archive-toolbar__count {
  font-size: 0.75rem;
  color: var(--ab-muted);
  margin-top: 0.2rem;
}

.ab-archive-actions {
  display: flex;
  gap: 0.4rem;
}

tr.ab-filter-hide {
  display: none !important;
}

.ab-archive-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--ab-border);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ab-navy);
}

.ab-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.35rem;
}

.ab-quick-tags a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--ab-border);
  background: #f1f5f9;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
}

.ab-quick-tags a [class^="icon-"],
.ab-quick-tags a [class*=" icon-"] {
  font-size: 14px;
  line-height: 1;
  color: var(--ab-blue);
}

.ab-brand-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ab-border);
}

.ab-brand-bar strong {
  color: #b91c1c;
  font-size: 0.9rem;
}

.ab-brand-bar span {
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ÃÂÃÂ Inquiry builder polish ÃÂÃÂ */
.ab-inquiry-hero {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.ab-inquiry-box {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.ab-inquiry-addrow {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .ab-inquiry-addrow {
    grid-template-columns: minmax(0, 1.6fr) 160px auto;
    align-items: end;
  }
}

.ab-inquiry-suggest {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 4px);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  max-height: 220px;
  overflow: auto;
}

.ab-inquiry-suggest button {
  display: block;
  width: 100%;
  text-align: right;
  padding: 0.65rem 0.85rem;
  border: 0;
  background: transparent;
  color: #0b1c33;
  font-size: 0.8125rem;
  font-weight: 600;
}

.ab-inquiry-suggest button:hover {
  background: #f8fafc;
  color: #0057b8;
}

html[data-theme="dark"] .ab-inquiry-suggest {
  background: var(--ab-surface);
  border-color: var(--ab-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .ab-inquiry-suggest button {
  color: var(--ab-text);
  background: transparent;
}

html[data-theme="dark"] .ab-inquiry-suggest button:hover {
  background: var(--ab-surface-3);
  color: #93c5fd;
}

html[data-theme="dark"] .ab-inquiry-qty {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-inquiry-qty button {
  background: var(--ab-surface-2);
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-inquiry-qty input {
  background: var(--ab-surface);
  color: var(--ab-text);
}

.ab-inquiry-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  overflow: hidden;
}

.ab-inquiry-qty button {
  width: 2rem;
  height: 2.4rem;
  border: 0;
  background: #f8fafc;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-inquiry-qty input {
  width: 4.5rem;
  border: 0;
  text-align: center;
  height: 2.4rem;
  -moz-appearance: textfield;
  appearance: textfield;
}

.ab-inquiry-qty input::-webkit-outer-spin-button,
.ab-inquiry-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ab-inquiry-filebanner {
  margin-top: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--ab-blue), var(--ab-dark));
  color: #fff;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ab-inquiry-filebanner strong {
  font-size: 1.1rem;
}

.ab-inquiry-filebanner label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: var(--ab-blue);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}

/* ÃÂÃÂ Careers page ÃÂÃÂ */
.ab-career-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 87, 184, 0.35), transparent 50%),
    linear-gradient(145deg, #0a2749 0%, #1e3957 45%, #0f1f2f 100%);
  color: #fff;
  padding: 3.5rem 1rem 3rem;
  text-align: center;
}

.ab-career-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.7;
}

.ab-career-hero p {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: #c8d5e4;
  font-size: 0.9rem;
  line-height: 1.9;
}

.ab-career-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.ab-career-step {
  background: #fff;
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  padding: 0.9rem 0.7rem;
  text-align: center;
}

.ab-career-step span {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--ab-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.ab-career-step strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--ab-navy);
}

.ab-job-card {
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  background: #fff;
  padding: 0.95rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ab-job-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ab-navy);
}

.ab-job-card span {
  font-size: 0.72rem;
  color: var(--ab-muted);
}

html[data-theme="dark"] .ab-consultant-card,
html[data-theme="dark"] .ab-side-card,
html[data-theme="dark"] .ab-vat-box,
html[data-theme="dark"] .ab-archive-toolbar,
html[data-theme="dark"] .ab-inquiry-box,
html[data-theme="dark"] .ab-career-step,
html[data-theme="dark"] .ab-job-card {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-consultant-card {
  background: #1e3957 !important;
  border-color: #3d5f85 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .ab-consultant-card h3,
html[data-theme="dark"] .ab-side-expert h3,
html[data-theme="dark"] .ab-archive-toolbar h1,
html[data-theme="dark"] .ab-experts__title {
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-consultant-card__role {
  color: #a8b8c9;
}

html[data-theme="dark"] .ab-quick-tags a {
  background: var(--ab-surface-2);
  color: var(--ab-text-soft);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-quick-tags a [class^="icon-"],
html[data-theme="dark"] .ab-quick-tags a [class*=" icon-"] {
  color: var(--ab-link);
}

html[data-theme="dark"] .ab-experts {
  background: var(--ab-page);
  border-top-color: var(--ab-border);
}

html[data-theme="dark"] .ab-expert-card {
  background: var(--ab-surface);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-consultant-card__contacts a {
  color: var(--ab-link);
}

html[data-theme="dark"] .ab-consult-dots button {
  border-color: var(--ab-border);
  background: transparent;
}

html[data-theme="dark"] .ab-consult-dots button.is-active {
  background: var(--ab-blue);
  border-color: var(--ab-blue);
}

html[data-theme="dark"] .ab-consultant-card__photo {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .ab-side-expert__photo {
  background: transparent;
  border: none;
  filter: none;
  opacity: 1;
}

/* —— Archive / price category dark mode —— */
html[data-theme="dark"] .ab-archive-layout .rounded-xl.border,
html[data-theme="dark"] .ab-archive-layout .bg-white,
html[data-theme="dark"] .ab-archive-toolbar,
html[data-theme="dark"] .ab-side-card,
html[data-theme="dark"] .ab-vat-box,
html[data-theme="dark"] .ab-cat-sidebar {
  background: var(--ab-surface) !important;
  border-color: var(--ab-border) !important;
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-archive-toolbar h1,
html[data-theme="dark"] .ab-side-card__head,
html[data-theme="dark"] .ab-side-expert h3,
html[data-theme="dark"] .ab-filter-acc>summary,
html[data-theme="dark"] .ab-filter-box__title,
html[data-theme="dark"] .ab-archive-layout .text-slate-900,
html[data-theme="dark"] .ab-archive-layout .font-medium.text-slate-900,
html[data-theme="dark"] .ab-archive-layout h2 {
  color: var(--ab-text) !important;
}

html[data-theme="dark"] .ab-archive-toolbar__count,
html[data-theme="dark"] .ab-side-expert p,
html[data-theme="dark"] .ab-archive-layout .text-slate-500,
html[data-theme="dark"] .ab-archive-layout .text-slate-600,
html[data-theme="dark"] .ab-breadcrumb {
  color: var(--ab-muted) !important;
}

html[data-theme="dark"] .ab-archive-layout .border-slate-200,
html[data-theme="dark"] .ab-archive-layout .border-slate-100,
html[data-theme="dark"] .ab-archive-layout .border-b {
  border-color: var(--ab-border) !important;
}

html[data-theme="dark"] .ab-brand-bar {
  background: var(--ab-surface-2);
  border-color: var(--ab-border);
}

/* Accent colors → link blue in dark mode only */
html[data-theme="dark"] .ab-brand-bar strong,
html[data-theme="dark"] .ab-brand-bar span,
html[data-theme="dark"] .ab-archive-layout .text-amber-700,
html[data-theme="dark"] .ab-archive-layout [data-price-freshness],
html[data-theme="dark"] .ab-nav-link.is-hot,
html[data-theme="dark"] .ab-drawer-link.is-hot,
html[data-theme="dark"] .ab-archive-layout .text-ab-blue,
html[data-theme="dark"] .ab-archive-layout a.text-ab-blue,
html[data-theme="dark"] .ab-cat-sidebar__link [class^="icon-"],
html[data-theme="dark"] .ab-cat-sidebar__link [class*=" icon-"],
html[data-theme="dark"] .ab-quick-tags a [class^="icon-"],
html[data-theme="dark"] .ab-quick-tags a [class*=" icon-"],
html[data-theme="dark"] .ab-side-expert__nav button,
html[data-theme="dark"] .ab-side-expert__contacts a,
html[data-theme="dark"] .ab-side-expert__contacts a.is-wa {
  color: var(--ab-link) !important;
}

html[data-theme="dark"] .ab-side-expert__nav button,
html[data-theme="dark"] .ab-side-expert__contacts a,
html[data-theme="dark"] .ab-side-expert__contacts a.is-wa {
  background: var(--ab-surface-2) !important;
  border-color: var(--ab-border) !important;
}

html[data-theme="dark"] .ab-side-card__head {
  background: var(--ab-surface-2);
  border-color: var(--ab-border);
}

html[data-theme="dark"] .ab-archive-actions button,
html[data-theme="dark"] .ab-quick-tags a,
html[data-theme="dark"] .ab-filter-chips label,
html[data-theme="dark"] .ab-archive-layout input,
html[data-theme="dark"] .ab-archive-layout select,
html[data-theme="dark"] .ab-archive-layout textarea {
  background: var(--ab-surface-2) !important;
  border-color: var(--ab-border) !important;
  color: var(--ab-text) !important;
}

html[data-theme="dark"] .ab-archive-layout .hover\:bg-slate-50:hover,
html[data-theme="dark"] .ab-price-page-table tbody tr:hover td {
  background: var(--ab-surface-3) !important;
}

html[data-theme="dark"] .ab-vat-box {
  color: var(--ab-text);
}

html[data-theme="dark"] .ab-cat-sidebar__link {
  color: var(--ab-text-soft);
}

html[data-theme="dark"] .ab-cat-sidebar__link.is-active,
html[data-theme="dark"] .ab-cat-sidebar__link:hover {
  background: var(--ab-surface-3);
  color: var(--ab-link);
}

html[data-theme="dark"] .ab-archive-aside .ab-cat-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}


/* ── Admin bar (WordPress-style, front when admin logged in) ── */
:root {
  --ab-admin-bar-h: 0px;
}

body.ab-admin-bar-on {
  --ab-admin-bar-h: 32px;
  padding-top: var(--ab-admin-bar-h);
}

.ab-admin-bar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100000;
  height: var(--ab-admin-bar-h, 32px);
  background: #1d2327;
  color: #f0f0f1;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.ab-admin-bar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  padding-inline: 8px;
  gap: 4px;
}

.ab-admin-bar__start,
.ab-admin-bar__end {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

.ab-admin-bar__brand,
.ab-admin-bar__link,
.ab-admin-bar__logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 100%;
  color: #f0f0f1;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.ab-admin-bar__brand:hover,
.ab-admin-bar__link:hover,
.ab-admin-bar__logout:hover {
  background: #2c3338;
  color: #72aee6;
}

.ab-admin-bar__link--accent {
  color: #72aee6;
}

.ab-admin-bar__logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 2px;
}

.ab-admin-bar__user {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #a7aaad;
  font-size: 12px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ab-admin-bar__dd {
  position: relative;
}

.ab-admin-bar__dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 160px;
  background: #1d2327;
  border: 1px solid #3c434a;
  border-radius: 0 0 4px 4px;
  padding: 4px 0;
  z-index: 100001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.ab-admin-bar__dd.is-open .ab-admin-bar__dd-menu {
  display: block;
}

.ab-admin-bar__dd-menu a {
  display: block;
  padding: 8px 12px;
  color: #f0f0f1;
  text-decoration: none;
  font-size: 13px;
}

.ab-admin-bar__dd-menu a:hover {
  background: #2c3338;
  color: #72aee6;
}

@media (max-width: 782px) {
  body.ab-admin-bar-on {
    --ab-admin-bar-h: 46px;
  }

  .ab-admin-bar .hide-sm {
    display: none !important;
  }

  .ab-admin-bar__brand span {
    display: none;
  }
}
/* Page-builder section display (responsive visibility) */
.ab-pb-hide-mobile { display: contents; }
.ab-pb-hide-desktop { display: contents; }
@media (max-width: 767.98px) {
  .ab-pb-hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
  .ab-pb-hide-desktop { display: none !important; }
}

/* —— RFQ / order-request —— */
.ab-rfq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.ab-rfq-tabs button {
  border: 1px solid #dbe3ef;
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #334155;
}
.ab-rfq-tabs button.is-active {
  background: #0057b8;
  border-color: #0057b8;
  color: #fff;
}
.ab-rfq-drop__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px dashed #94a3b8;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
}
.ab-rfq-drop__box strong { font-size: 0.9rem; color: #0f172a; }
.ab-rfq-drop__box span { font-size: 0.75rem; color: #64748b; }
.ab-rfq-cascade {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .ab-rfq-cascade { grid-template-columns: 1fr 1fr 1.4fr; }
}
.ab-rfq-cascade label span,
.ab-rfq-cascade label > span { display: block; font-size: 0.75rem; color: #64748b; margin-bottom: 0.25rem; }
.ab-rfq-cascade select,
.ab-rfq-cascade input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  background: #fff;
}
.ab-rfq-picker {
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fff;
}
.ab-rfq-picker__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.9rem;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.8125rem;
}
.ab-rfq-picker__list { max-height: 280px; overflow: auto; }
.ab-rfq-result {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  text-align: right;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}
.ab-rfq-result:hover { background: #f8fafc; }
.ab-rfq-result__name { font-size: 0.8125rem; font-weight: 700; color: #0f172a; grid-column: 1; }
.ab-rfq-result__meta { font-size: 0.7rem; color: #64748b; grid-column: 1; }
.ab-rfq-result__cta {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #0057b8;
}
