/* ACSSER CSS 2.0 — shared design tokens & components */

:root {
  --ac-white: #ffffff;
  --ac-black: #000000;
  --ac-blue: #0088cc;
  --ac-deep-blue: #005b88;
  --ac-navy: #002d44;
  --ac-ink: #10212c;
  --ac-muted: #657581;
  --ac-subtle: #90a0ab;
  --ac-canvas: #f6f8fa;
  --ac-line: #e3e9ed;
  --ac-hover: #eff6fa;
  --ac-success: #167347;
  --ac-warning: #9b6514;
  --ac-danger: #b42318;
  --ac-radius-sm: 8px;
  --ac-radius-md: 12px;
  --ac-radius-lg: 16px;
  --ac-radius-xl: 22px;
  --ac-shadow: 0 8px 30px rgba(0, 45, 68, 0.06);
  --ac-shadow-strong: 0 12px 35px rgba(0, 45, 68, 0.07);
  --ac-container: 1240px;
  --ac-sidebar: 240px;
  --ac-font: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ac-body {
  margin: 0;
  color: var(--ac-ink);
  font-family: var(--ac-font);
  font-size: 15px;
  line-height: 1.55;
  background: var(--ac-white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button { cursor: pointer; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--ac-blue);
  outline-offset: 3px;
}

.ac-container {
  width: min(var(--ac-container), calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .ac-container { width: min(var(--ac-container), calc(100% - 3.5rem)); }
}

/* Typography */
.ac-eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 800;
  color: #57c2ee;
  margin: 0 0 15px;
  text-transform: uppercase;
}

.ac-h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: inherit;
  margin: 0;
}

.ac-h2 {
  font-size: clamp(22px, 2.5vw, 25px);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ac-ink);
}

.ac-muted { color: var(--ac-muted); }
.ac-subtle { color: var(--ac-subtle); }

.ac-link {
  color: var(--ac-deep-blue);
  font-weight: 700;
  font-size: 12px;
}
.ac-link:hover { text-decoration: underline; }

/* Buttons */
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--ac-radius-md);
  background: var(--ac-deep-blue);
  color: var(--ac-white);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease-out, transform 160ms ease-out;
}
.ac-btn:hover { background: #004a71; color: var(--ac-white); }
.ac-btn--ghost {
  background: transparent;
  color: var(--ac-ink);
  border: 1px solid var(--ac-line);
}
.ac-btn--ghost:hover { background: var(--ac-hover); color: var(--ac-ink); }
.ac-btn--danger {
  background: var(--ac-danger);
  color: var(--ac-white);
}
.ac-btn--danger:hover { background: #8f1c14; }
.ac-btn--sm { min-height: 36px; padding: 0 14px; font-size: 12px; border-radius: 10px; }

/* Brand logo */
.ac-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.ac-logo img {
  height: 28px;
  width: auto;
}
.ac-logo--lg img { height: clamp(2rem, 4vw, 2.75rem); }
.ac-logo--on-dark img {
  /* Wordmark is black+blue; invert black letters for navy surfaces while keeping readability */
  filter: brightness(0) invert(1);
}

/* Public header */
.ac-public-header {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--ac-line);
  background: var(--ac-white);
}
.ac-public-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
  font-size: 13px;
  font-weight: 700;
}
.ac-public-nav a:hover { color: var(--ac-deep-blue); }

.ac-selectors {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: stretch;
}

.ac-selector-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ac-selector-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding-left: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ac-subtle);
  line-height: 1;
}

.ac-selector-hint {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ac-blue);
  background: #e8f4fb;
  border-radius: 999px;
  padding: 2px 6px;
}

.ac-selector-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 1px 0 rgba(0, 45, 68, 0.03);
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out, background 140ms ease-out;
}

.ac-selector-shell:hover {
  border-color: #bcd7e5;
  box-shadow: 0 4px 14px rgba(0, 45, 68, 0.06);
}

.ac-selector-shell:focus-within {
  border-color: var(--ac-blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.16);
}

.ac-selector-shell--soft {
  background: linear-gradient(180deg, #fbfcfd 0%, #f3f7fa 100%);
}

.ac-selector-flag {
  position: absolute;
  left: 11px;
  z-index: 1;
  pointer-events: none;
  font-size: 14px;
  line-height: 1;
}

.ac-selector-flag--code {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ac-deep-blue);
  background: #e8f1f8;
  border-radius: 6px;
  padding: 4px 5px;
  left: 8px;
}

.ac-selector {
  width: 100%;
  min-width: 132px;
  max-width: 180px;
  border: 0;
  border-radius: 12px;
  padding: 10px 34px 10px 36px;
  font-size: 12px;
  font-weight: 750;
  background: transparent;
  color: var(--ac-ink);
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  min-height: 42px;
  cursor: pointer;
}

.ac-selector-shell--soft .ac-selector {
  padding-left: 52px;
}

.ac-selector:disabled {
  opacity: 1;
  color: var(--ac-ink);
  cursor: default;
}

.ac-selector-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ac-muted);
  border-bottom: 2px solid var(--ac-muted);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

@media (max-width: 767px) {
  .ac-public-header { height: auto; min-height: 64px; gap: 10px; padding: 10px 0; flex-wrap: wrap; }
  .ac-public-nav { display: none; }
  .ac-selectors { width: 100%; margin-left: auto; justify-content: flex-end; }
  .ac-selector { min-width: 112px; max-width: 148px; padding: 8px 30px 8px 32px; font-size: 11px; min-height: 38px; }
  .ac-selector-shell { min-height: 38px; }
  .ac-selector-shell--soft .ac-selector { padding-left: 48px; }
  .ac-selector-label { display: none; }
}

/* Hero */
.ac-hero {
  background: var(--ac-navy);
  border-radius: var(--ac-radius-xl);
  min-height: 320px;
  position: relative;
  overflow: hidden;
  color: var(--ac-white);
  padding: 48px 56px;
  margin: 24px 0 48px;
}
.ac-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  right: -160px;
  top: -220px;
  box-shadow:
    0 0 0 90px rgba(255, 255, 255, 0.025),
    0 0 0 180px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}
.ac-hero h1 { max-width: 18ch; margin: 0 0 12px; }
.ac-hero .ac-sub {
  font-size: 15px;
  color: #c1d4df;
  margin: 0 0 24px;
  max-width: 42ch;
}

@media (max-width: 767px) {
  .ac-hero {
    margin-top: 16px;
    margin-bottom: 36px;
    border-radius: 17px;
    padding: 32px 22px;
    min-height: 290px;
  }
  .ac-hero .ac-sub { font-size: 13px; }
}

/* Search shell */
.ac-search-shell {
  max-width: 740px;
  min-height: 62px;
  padding: 6px;
  background: var(--ac-white);
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.ac-search-shell__icon {
  margin-left: 14px;
  color: #6a899b;
  display: flex;
  flex-shrink: 0;
}
.ac-search-shell input {
  border: 0;
  min-width: 0;
  flex: 1;
  color: var(--ac-ink);
  outline: 0;
  font-size: 15px;
  background: transparent;
  min-height: 44px;
}
.ac-search-shell input:focus-visible { outline: 0; }
.ac-search-shell button {
  height: 50px;
  border: 0;
  background: var(--ac-deep-blue);
  color: var(--ac-white);
  border-radius: 9px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background 160ms ease-out;
}
.ac-search-shell button:hover { background: #004a71; }

@media (max-width: 600px) {
  .ac-search-shell { min-height: 56px; }
  .ac-search-shell button { height: 46px; padding: 0 14px; font-size: 12px; }
  .ac-search-shell input { font-size: 14px; }
  .ac-search-shell__icon { margin-left: 8px; }
}

/* Sections */
.ac-section { margin-bottom: 52px; }
.ac-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
}
.ac-section-heading p {
  margin: 0;
  font-size: 13px;
  color: var(--ac-muted);
}

/* Categories — soft count-led tiles */
.ac-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ac-cat {
  background: var(--ac-canvas);
  border-radius: var(--ac-radius-md);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: baseline;
  min-width: 0;
  color: var(--ac-ink);
  transition: background 140ms ease-out, transform 140ms ease-out;
}
.ac-cat:hover {
  background: #e7f2f8;
  transform: translateY(-1px);
}
.ac-cat__label {
  grid-column: 1;
  grid-row: 1;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ac-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-cat__count {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ac-deep-blue);
}
.ac-cat__meta {
  grid-column: 1;
  grid-row: 2;
  font-size: 11px;
  font-weight: 600;
  color: var(--ac-subtle);
}

@media (max-width: 800px) {
  .ac-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .ac-categories {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ac-cat { padding: 14px 16px; }
}

/* Category browse page — image-led tiles */
.ac-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ac-muted);
}
.ac-breadcrumb a {
  color: var(--ac-deep-blue);
}
.ac-breadcrumb a:hover { text-decoration: underline; }
.ac-breadcrumb [aria-current="page"] {
  color: var(--ac-ink);
}

.ac-cat-browse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ac-cat-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  background: var(--ac-white);
  color: var(--ac-ink);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out;
}
.ac-cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--ac-shadow);
  border-color: #bcd7e5;
}
.ac-cat-tile__img {
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, #eef2f5 0%, #f7f9fa 55%, #e8eef2 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ac-cat-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.ac-cat-tile__img img.is-loaded {
  opacity: 1;
}
.ac-cat-tile__img--empty {
  background:
    linear-gradient(145deg, #eef5f9 0%, #f7f9fa 55%, #e8eef2 100%);
}
.ac-cat-tile__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
}
.ac-cat-tile__label {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ac-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-cat-tile__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--ac-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .ac-cat-browse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ac-cat-browse { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ac-cat-tile__body { padding: 12px; }
}

/* Store grid (separate from categories) */
.ac-stores-page {
  padding-top: 28px;
  padding-bottom: 56px;
}
.ac-h2--page {
  font-size: clamp(28px, 3vw, 36px);
}
.ac-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.ac-store-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-lg);
  min-height: 124px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: var(--ac-ink);
  transition: background 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out;
}
.ac-store-card:hover {
  background: var(--ac-hover);
  border-color: #bcd7e5;
  box-shadow: var(--ac-shadow);
  transform: translateY(-2px);
}
.ac-store-card strong {
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ac-navy);
}
.ac-store-card .ac-muted { font-weight: 600; }
.ac-store-card small {
  margin-top: auto;
  color: var(--ac-muted);
  font-weight: 600;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Product grid / cards */
.ac-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.ac-product {
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  background: var(--ac-white);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out;
}
.ac-product:hover {
  transform: translateY(-3px);
  box-shadow: var(--ac-shadow-strong);
  border-color: #bcd7e5;
}
.ac-product__img {
  position: relative;
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, #e8eef2 0%, #f4f7f9 48%, #eef3f6 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ac-product__img::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  background:
    linear-gradient(45deg, rgba(16, 33, 44, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(16, 33, 44, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(16, 33, 44, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(16, 33, 44, 0.035) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  opacity: 0.55;
  pointer-events: none;
}
.ac-product__img.has-image::before,
.ac-product__img:has(img.is-loaded)::before {
  opacity: 0.18;
}
.ac-product__img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.ac-product__img img.is-loaded {
  opacity: 1;
}
.ac-product__img--fallback {
  color: var(--ac-subtle);
  font-size: 12px;
  font-weight: 700;
  background:
    linear-gradient(135deg, #eef3f6 0%, #f7f9fa 50%, #e8eef2 100%);
}
.ac-product__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ac-navy);
  color: var(--ac-white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ac-product__badge--muted {
  background: rgba(16, 33, 44, 0.55);
}
.ac-product__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ac-product__brand {
  color: var(--ac-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ac-product__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin: 8px 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  color: var(--ac-ink);
}
.ac-product__from {
  font-size: 11px;
  color: var(--ac-muted);
  margin: 0 0 2px;
}
.ac-product__price {
  font-size: 22px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ac-navy);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.ac-product__currency {
  font-size: 0.62em;
  font-weight: 750;
  letter-spacing: 0;
  color: var(--ac-muted);
}
.ac-product__was {
  font-size: 12px;
  color: var(--ac-subtle);
  text-decoration: line-through;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.ac-product__meta {
  font-size: 11px;
  color: var(--ac-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ac-line);
  margin-top: auto;
}
.ac-product__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ac-deep-blue);
  font-size: 12px;
  font-weight: 800;
  padding-top: 14px;
}

@media (max-width: 1100px) {
  .ac-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ac-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ac-product__body { padding: 12px; }
  .ac-product__price { font-size: 18px; }
  .ac-product__title { font-size: 12px; }
}

/* Filters bar (legacy inline) */
.ac-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 0 0 20px;
  padding: 14px;
  background: var(--ac-white);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-md);
}
.ac-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ac-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ac-filters label.grow { flex: 1 1 180px; }
.ac-filters input,
.ac-filters select {
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ac-ink);
  text-transform: none;
  letter-spacing: 0;
  min-height: 44px;
  background: var(--ac-white);
}

/* Results layout — 240px filter rail */
.ac-results-page { padding-top: 28px; padding-bottom: 48px; }
.ac-results-title { font-size: clamp(27px, 3vw, 36px); }
.ac-results {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.ac-results__rail { position: sticky; top: 88px; }
.ac-rail {
  background: var(--ac-canvas);
  border-radius: var(--ac-radius-lg);
  padding: 16px;
}
.ac-rail__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ac-rail__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ac-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ac-rail__field input,
.ac-rail__field select {
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ac-ink);
  text-transform: none;
  letter-spacing: 0;
  min-height: 44px;
  background: var(--ac-white);
}
.ac-rail .ac-btn,
.ac-rail .ac-btn--ghost { width: 100%; justify-content: center; }

.ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--ac-hover);
  border: 1px solid #d5e6ef;
  color: var(--ac-navy);
  font-size: 12px;
  font-weight: 700;
}
.ac-chip:hover { background: #e0eef6; }

.ac-filter-drawer { display: none; margin-bottom: 16px; }
.ac-filter-drawer > summary {
  list-style: none;
  width: fit-content;
  cursor: pointer;
}
.ac-filter-drawer > summary::-webkit-details-marker { display: none; }
.ac-filter-drawer[open] .ac-rail { margin-top: 12px; }

.ac-products--results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .ac-results { grid-template-columns: 1fr; }
  .ac-results__rail { display: none; }
  .ac-filter-drawer { display: block; }
  .ac-products--results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ac-products--results { grid-template-columns: 1fr; }
}

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

.ac-detail-shell {
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(0, 136, 204, 0.07), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #ffffff 42%, #ffffff 100%);
  border-top: 1px solid var(--ac-line);
}

.ac-detail-page { padding-top: 20px; padding-bottom: 64px; }

.ac-h2--section {
  font-size: clamp(20px, 2.4vw, 24px);
}

.ac-section--tight {
  margin-top: 8px;
}

.ac-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 48px;
}

.ac-detail__media {
  aspect-ratio: 1;
  background:
    linear-gradient(160deg, #eef3f6 0%, #f7f9fa 52%, #e8eef2 100%);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-xl);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--ac-shadow);
}

.ac-detail__media img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.ac-detail__media img.is-loaded {
  opacity: 1;
}

.ac-detail__media--empty {
  background: linear-gradient(145deg, #eef5f9 0%, #f7f9fa 55%, #e8eef2 100%);
  color: var(--ac-subtle);
  font-weight: 700;
}

.ac-detail__info {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 4px 0;
}

.ac-detail__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ac-detail__brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ac-deep-blue);
}

.ac-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #eef3f6;
  color: var(--ac-muted);
}

.ac-stock--in {
  background: #e8f6ee;
  color: var(--ac-success);
}

.ac-stock--out {
  background: #fdecea;
  color: var(--ac-danger);
}

.ac-stock--sm {
  padding: 3px 8px;
  font-size: 10px;
}

.ac-stock--in::before,
.ac-stock--out::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ac-detail__title {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ac-navy);
  margin: 0 0 10px;
  line-height: 1.18;
}

.ac-detail__merchant {
  margin: 0;
  color: var(--ac-muted);
  font-weight: 600;
  font-size: 14px;
}

.ac-detail__merchant-link {
  color: var(--ac-deep-blue);
  font-weight: 750;
}

.ac-detail__merchant-link:hover {
  text-decoration: underline;
}

.ac-detail__priceblock {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin: 18px 0 4px;
}

.ac-detail__price {
  font-size: clamp(1.7rem, 3vw, 2.05rem);
  font-weight: 800;
  color: var(--ac-navy);
  margin: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ac-detail__currency {
  font-size: 0.55em;
  font-weight: 750;
  color: var(--ac-muted);
  letter-spacing: 0;
  margin-left: 4px;
}

.ac-detail__was {
  color: var(--ac-subtle);
  text-decoration: line-through;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ac-sale-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8f1f8;
  color: var(--ac-deep-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ac-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ac-detail__desc {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ac-line);
}

.ac-detail__desc-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ac-muted);
}

.ac-detail__desc p {
  margin: 0;
  color: var(--ac-ink);
  font-size: 14px;
  line-height: 1.55;
}

.ac-detail__meta {
  margin: 22px 0 0;
  display: grid;
  gap: 0;
  font-size: 14px;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-lg);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.ac-detail__meta > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--ac-line);
}

.ac-detail__meta > div:first-child {
  border-top: 0;
}

.ac-detail__meta dt {
  margin: 0;
  color: var(--ac-muted);
  font-weight: 650;
  font-size: 12px;
}

.ac-detail__meta dd {
  margin: 0;
  font-weight: 700;
  color: var(--ac-ink);
  word-break: break-word;
}

.ac-offer-table-wrap {
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-xl);
  overflow: auto;
  background: var(--ac-white);
  box-shadow: var(--ac-shadow);
}

.ac-offer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ac-offer-table th {
  text-align: left;
  padding: 13px 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ac-muted);
  background: linear-gradient(180deg, #f8fbfd 0%, #f3f7fa 100%);
  border-bottom: 1px solid var(--ac-line);
}

.ac-offer-table td {
  padding: 16px;
  border-bottom: 1px solid var(--ac-line);
  vertical-align: middle;
}

.ac-offer-table tr:last-child td { border-bottom: 0; }
.ac-offer-table tr.is-current { background: #f3f9fc; }
.ac-offer-table tr.is-best td:first-child {
  box-shadow: inset 3px 0 0 var(--ac-blue);
}

.ac-offer-store {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ac-offer-store__name {
  font-weight: 800;
  color: var(--ac-navy);
  letter-spacing: -0.01em;
}

.ac-offer-store__name:hover {
  color: var(--ac-deep-blue);
  text-decoration: underline;
}

.ac-offer-store__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ac-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3f6;
  color: var(--ac-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ac-pill--best {
  background: #e6f5ec;
  color: var(--ac-success);
}

.ac-offer-price {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ac-navy);
}

.ac-offer-was {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ac-subtle);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.ac-offer-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 800px) {
  .ac-detail { grid-template-columns: 1fr; gap: 20px; }
  .ac-detail__info { position: static; }
  .ac-detail__media img { padding: 18px; }

  .ac-offer-table thead { display: none; }
  .ac-offer-table,
  .ac-offer-table tbody,
  .ac-offer-table tr,
  .ac-offer-table td {
    display: block;
    width: 100%;
  }
  .ac-offer-table tr {
    padding: 14px 14px 16px;
    border-bottom: 1px solid var(--ac-line);
  }
  .ac-offer-table tr:last-child { border-bottom: 0; }
  .ac-offer-table td {
    padding: 4px 0;
    border: 0;
  }
  .ac-offer-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ac-subtle);
    margin-bottom: 2px;
  }
  .ac-offer-table td:first-child::before { display: none; }
  .ac-offer-table__actions {
    justify-content: flex-start;
    margin-top: 10px;
  }
  .ac-offer-table tr.is-best td:first-child {
    box-shadow: none;
  }
  .ac-offer-table tr.is-best {
    background: #f3faf6;
  }
}

/* Empty state */
.ac-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  background: var(--ac-canvas);
  border: 1px dashed var(--ac-line);
  border-radius: var(--ac-radius-lg);
}
.ac-empty h3 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.ac-empty p { margin: 0 0 16px; color: var(--ac-muted); }
.ac-empty .ac-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Pager */
.ac-pager {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 8px 0 48px;
}
.ac-pager a,
.ac-pager span {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  background: var(--ac-white);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}
.ac-pager span { color: var(--ac-subtle); }

/* Footer */
.ac-footer {
  background: var(--ac-navy);
  color: var(--ac-white);
  padding: 40px 0 28px;
  margin-top: 24px;
}
.ac-footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.ac-footer p {
  font-size: 12px;
  color: #a8c1ce;
  margin: 10px 0 0;
}
.ac-footer-links {
  display: flex;
  gap: 20px;
  color: #bed1da;
  font-size: 12px;
  font-weight: 600;
}
.ac-footer-note {
  font-size: 11px;
  color: #7d9aa8;
  margin-top: 28px;
  border-top: 1px solid #285064;
  padding-top: 14px;
}

@media (max-width: 600px) {
  .ac-footer-wrap { flex-direction: column; align-items: flex-start; }
}

/* ========== Admin shell ========== */
body.ac-admin-body {
  margin: 0;
  background: var(--ac-canvas);
  font-family: var(--ac-font);
  color: var(--ac-ink);
}

.ac-admin-layout {
  display: grid;
  grid-template-columns: var(--ac-sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.ac-sidebar {
  background: var(--ac-navy);
  color: var(--ac-white);
  padding: 28px 14px;
  display: flex;
  flex-direction: column;
}
.ac-sidebar__brand {
  margin: 4px 12px 40px;
}
.ac-sidebar__brand img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
}
.ac-sidebar__caption {
  color: #87a7b8;
  font-size: 10px;
  letter-spacing: 1.6px;
  margin: 0 14px 12px;
  font-weight: 800;
}
.ac-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b5ccd7;
  border-radius: 10px;
  margin: 3px 0;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 650;
  transition: background 150ms ease-out, color 150ms ease-out;
}
.ac-side-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.ac-side-link.is-active {
  color: #fff;
  background: #10435e;
  box-shadow: inset 3px 0 var(--ac-blue);
}
.ac-side-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ac-sidebar__footer {
  margin-top: auto;
  color: #9eb6c5;
  font-size: 11px;
  padding: 24px 14px 8px;
}

.ac-admin-main { min-width: 0; display: flex; flex-direction: column; }
.ac-admin-top {
  height: 72px;
  background: var(--ac-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ac-line);
  padding: 0 32px;
  gap: 16px;
}
.ac-admin-top .ac-breadcrumb {
  font-size: 12px;
  color: var(--ac-muted);
  font-weight: 700;
}
.ac-admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}
.ac-avatar {
  background: #e5f1f8;
  color: var(--ac-deep-blue);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.ac-admin-content {
  max-width: 1190px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

.ac-admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ac-admin-title-row h1 {
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--ac-navy);
  margin: 0 0 4px;
  font-weight: 800;
}
.ac-admin-title-row p {
  font-size: 13px;
  color: var(--ac-muted);
  margin: 0;
}

.ac-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.ac-metric {
  background: var(--ac-white);
  border: 1px solid var(--ac-line);
  border-radius: 14px;
  padding: 18px 20px;
}
.ac-metric small {
  font-size: 11px;
  color: var(--ac-muted);
  font-weight: 700;
}
.ac-metric__value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ac-navy);
  margin: 10px 0 4px;
  font-variant-numeric: tabular-nums;
}
.ac-metric__note {
  font-size: 11px;
  color: var(--ac-muted);
}
.ac-metric__note.is-good { color: var(--ac-success); }
.ac-metric__note.is-bad { color: var(--ac-danger); }

.ac-panel {
  background: var(--ac-white);
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.ac-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--ac-line);
  flex-wrap: wrap;
}
.ac-panel__head h2 {
  font-size: 17px;
  margin: 0 0 4px;
  font-weight: 800;
}
.ac-panel__head p {
  margin: 0;
  color: var(--ac-muted);
  font-size: 12px;
}

.ac-table-scroll { overflow: auto; }
.ac-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
.ac-table th {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  font-weight: 800;
  color: #71828b;
  background: #fbfcfd;
  padding: 14px 22px;
  border-bottom: 1px solid var(--ac-line);
  white-space: nowrap;
}
.ac-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--ac-line);
  color: #4d616d;
  vertical-align: middle;
}
.ac-table td strong { color: var(--ac-ink); font-weight: 800; }
.ac-table tr:last-child td { border-bottom: 0; }

.ac-status {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 99px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ac-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.ac-status--good { background: #e9f8f1; color: var(--ac-success); }
.ac-status--warn { background: #fff4df; color: var(--ac-warning); }
.ac-status--bad { background: #feeeee; color: var(--ac-danger); }
.ac-status--muted { background: var(--ac-canvas); color: var(--ac-muted); }

.ac-flash {
  padding: 12px 16px;
  border-radius: var(--ac-radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--ac-line);
  background: var(--ac-white);
  font-size: 13px;
}
.ac-flash--ok { border-color: #b7ebc9; color: var(--ac-success); }
.ac-flash--bad { border-color: #f5c2c0; color: var(--ac-danger); }

.ac-mobile-nav-toggle {
  display: none;
  border: 1px solid var(--ac-line);
  background: var(--ac-white);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
}

@media (max-width: 900px) {
  .ac-admin-layout { grid-template-columns: 72px minmax(0, 1fr); }
  .ac-sidebar { padding: 24px 8px; }
  .ac-sidebar__brand { margin: 4px 2px 32px; text-align: center; }
  .ac-sidebar__brand img { height: 22px; margin-inline: auto; }
  .ac-sidebar__caption,
  .ac-sidebar__footer,
  .ac-side-link span { display: none; }
  .ac-side-link { justify-content: center; padding: 12px 4px; }
  .ac-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ac-admin-layout { display: block; }
  .ac-sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(260px, 85vw);
    z-index: 40;
    padding: 24px 14px;
  }
  body.ac-sidebar-open .ac-sidebar { display: flex; }
  body.ac-sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 45, 68, 0.45);
    z-index: 30;
  }
  .ac-sidebar__caption,
  .ac-sidebar__footer,
  .ac-side-link span { display: block; }
  .ac-side-link { justify-content: flex-start; padding: 12px 14px; }
  .ac-mobile-nav-toggle { display: inline-flex; }
  .ac-admin-top { padding: 0 16px; height: 60px; }
  .ac-admin-content { padding: 20px 14px 48px; }
  .ac-admin-title-row h1 { font-size: 24px; }
  .ac-metrics { gap: 10px; }
  .ac-metric__value { font-size: 22px; }
}

/* Legacy admin page helpers (feeds/merchants/offers/runs until full restyle) */
.ac-admin-content h1 { font-size: 28px; letter-spacing: -0.03em; color: var(--ac-navy); margin: 0 0 6px; }
.ac-admin-content > .muted,
.ac-admin-content .muted { color: var(--ac-muted); font-size: 13px; }
.ac-admin-content .btn,
.ac-admin-content button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--ac-deep-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.ac-admin-content .btn.secondary { background: #475569; }
.ac-admin-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 13px;
}
.ac-admin-content th,
.ac-admin-content td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ac-line);
  vertical-align: top;
}
.ac-admin-content th {
  background: #fbfcfd;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #71828b;
}
.ac-admin-content .toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  padding: 14px;
}
.ac-admin-content .toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--ac-muted);
  font-weight: 700;
}
.ac-admin-content .toolbar input,
.ac-admin-content .toolbar select {
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 40px;
}
.ac-admin-content .stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ac-admin-content .stat {
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 130px;
}
.ac-admin-content .stat b { display: block; font-size: 22px; color: var(--ac-navy); margin-top: 6px; }
.ac-admin-content .flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--ac-line);
  background: #fff;
}
.ac-admin-content .flash.ok { color: var(--ac-success); border-color: #b7ebc9; }
.ac-admin-content .flash.bad { color: var(--ac-danger); border-color: #f5c2c0; }

.ac-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.ac-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding: 16px;
}
.ac-admin-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--ac-muted);
  font-weight: 700;
}
.ac-admin-toolbar label.grow { flex: 1 1 220px; }
.ac-admin-toolbar input,
.ac-admin-toolbar select {
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 40px;
  background: #fff;
}
.ac-admin-thumb {
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Feed wizard */
.ac-wizard-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ac-wizard-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--ac-line);
  background: #fff;
  color: var(--ac-muted);
  font-size: 12px;
  font-weight: 750;
}
.ac-wizard-steps__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef3f6;
  color: var(--ac-muted);
  font-size: 11px;
}
.ac-wizard-steps li.is-current {
  border-color: #bcd7e5;
  background: #f3f9fc;
  color: var(--ac-navy);
}
.ac-wizard-steps li.is-current .ac-wizard-steps__num,
.ac-wizard-steps li.is-done .ac-wizard-steps__num {
  background: var(--ac-deep-blue);
  color: #fff;
}
.ac-wizard-steps li.is-done { color: var(--ac-ink); }

.ac-wizard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 20px 20px;
}
@media (max-width: 900px) {
  .ac-wizard-grid { grid-template-columns: 1fr; }
}

.ac-wizard-card,
.ac-wizard-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ac-wizard-card {
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-lg);
  padding: 18px;
  background: #fbfcfd;
}
.ac-wizard-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.ac-wizard-form { padding: 0 20px 20px; }
.ac-wizard-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 700px) {
  .ac-wizard-row { grid-template-columns: 1fr; }
}

.ac-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  color: var(--ac-muted);
}
.ac-field em {
  font-style: normal;
  font-weight: 600;
  color: var(--ac-subtle);
}
.ac-field input,
.ac-field select {
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  min-height: 42px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ac-ink);
  font-weight: 600;
}

.ac-fieldset {
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius-lg);
  padding: 14px 16px 16px;
  margin: 0;
}
.ac-fieldset legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ac-navy);
}
.ac-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.ac-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ac-ink);
}
.ac-check em {
  font-style: normal;
  color: var(--ac-subtle);
  font-weight: 700;
  font-size: 11px;
}
.ac-wizard-checks { display: grid; gap: 10px; }
