/* MedClub UA — public site styles */

html, body {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #191b21;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: 'Unbounded', 'Montserrat', sans-serif;
  letter-spacing: -0.035em;
  font-weight: 700;
}

/* ---------- Aurora background for footer ---------- */
.bg-aurora {
  background-image:
    radial-gradient(at 12% 18%, #ecfeff 0%, transparent 55%),
    radial-gradient(at 78% 8%, #e0f7fa 0%, transparent 50%),
    radial-gradient(at 92% 88%, #f0f9ff 0%, transparent 55%),
    radial-gradient(at 30% 92%, #cffafe 0%, transparent 55%),
    linear-gradient(135deg, #fff 0%, #f8feff 35%, #effbfd 70%, #fff 100%);
  background-size: 220% 220%, 200% 200%, 220% 220%, 200% 200%, 200% 200%;
  animation: mc-aurora 22s ease-in-out infinite;
}
@keyframes mc-aurora {
  0%, 100% { background-position: 0% 50%, 100% 0%, 0% 100%, 100% 100%, 0% 50%; }
  50%      { background-position: 100% 50%, 0% 100%, 100% 0%, 0% 0%, 100% 50%; }
}

/* ---------- Soft hero blobs ---------- */
.bg-hero-soft {
  position: relative;
  background:
    radial-gradient(circle at 8% 10%, rgba(6,182,212,0.12) 0%, transparent 35%),
    radial-gradient(circle at 92% 8%, rgba(0,69,149,0.08) 0%, transparent 40%),
    radial-gradient(circle at 12% 90%, rgba(216,226,255,0.65) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f9f9ff 100%);
}

/* ---------- Material Symbols ---------- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: 999px;
  background: #004595; color: #fff; font-weight: 600;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover { background: #002f6a; box-shadow: 0 6px 20px rgba(0,47,106,0.18); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.55rem 1.15rem; border-radius: 999px;
  border: 1px solid #c3c6d3; color: #002f6a; font-weight: 600;
  transition: background .18s ease, border-color .18s ease;
}
.btn-outline:hover { background: #f3f3fa; border-color: #002f6a; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.85rem; border-radius: 999px;
  color: #434751; font-weight: 500;
  transition: background .18s ease;
}
.btn-ghost:hover { background: #f3f3fa; }

/* ---------- Forms (raised specificity so Tailwind Forms plugin doesn't override) ---------- */
input.input,
select.select,
textarea.textarea,
.input[type="text"],
.input[type="email"],
.input[type="tel"],
.input[type="password"],
.input[type="number"],
.input[type="search"],
.input[type="url"],
.input[type="date"] {
  width: 100% !important;
  height: 46px !important;
  padding: 0 1.1rem !important;
  border-radius: 999px !important;
  border: 1.5px solid #e7e7ef !important;
  background: #fff !important;
  color: #191b21;
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
.input::placeholder, .textarea::placeholder { color: #9aa1ad; }
textarea.textarea {
  height: auto !important;
  min-height: 110px !important;
  padding: 0.85rem 1.1rem !important;
  border-radius: 18px !important;
  resize: vertical;
}
.input:hover, .select:hover, .textarea:hover { border-color: #adc6ff !important; }
.input:focus, .select:focus, .textarea:focus,
input.input:focus, select.select:focus, textarea.textarea:focus {
  outline: none !important;
  border-color: #004595 !important;
  box-shadow: 0 0 0 4px rgba(0,69,149,0.12) !important;
}
.input[type="color"] { padding: 4px !important; height: 46px !important; border-radius: 999px !important; }
.input[type="file"] { padding: 0.55rem 1rem !important; height: auto !important; border-radius: 999px !important; }
input.input[type="checkbox"], input.input[type="radio"] { width: auto !important; height: auto !important; padding: 0 !important; border-radius: 4px !important; }
.label { display:block; font-size:.85rem; font-weight:600; color:#434751; margin-bottom:.4rem; padding-left: 0.25rem; }

/* Native select fallback (when JS hasn't enhanced it yet) */
select.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'><path d='M1 1L7 7L13 1' stroke='%23434751' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Phone input wrapper: prefix +380 sticky on left */
.phone-wrap { position: relative; }
.phone-wrap .input { padding-left: 3.4rem !important; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.phone-wrap .phone-flag {
  position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 19px; border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.12); pointer-events: none;
  background: #f3f3fa;
  z-index: 1;
}
.phone-wrap .phone-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-wrap .phone-other-toggle {
  position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; cursor: pointer;
  font-size: 11px; color: #434751;
  padding: 6px 10px; border-radius: 999px;
  transition: all .18s ease;
}
.phone-wrap .phone-other-toggle:hover { background: #f3f3fa; color: #002f6a; }
.phone-wrap[data-other="true"] .phone-other-toggle { background: #002f6a; color: #fff; }
.phone-wrap[data-other="true"] .phone-flag {
  background: linear-gradient(135deg, #06b6d4, #002f6a);
}
.phone-wrap[data-other="true"] .phone-flag img { display: none; }

/* ---------- Custom select (JS-enhanced) ---------- */
.cselect {
  position: relative;
  width: 100%;
}
.cselect__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.cselect__btn {
  width: 100%;
  height: 46px;
  padding: 0 2.6rem 0 1.1rem;
  border-radius: 999px;
  border: 1.5px solid #e7e7ef;
  background: #fff;
  color: #191b21;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
  display: flex; align-items: center; gap: 8px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.cselect__btn::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%; transform: translateY(-50%) rotate(0deg);
  width: 14px; height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'><path d='M1 1L7 7L13 1' stroke='%23434751' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .25s ease;
}
.cselect__btn:hover { border-color: #adc6ff; }
.cselect[data-open="true"] .cselect__btn { border-color: #004595; box-shadow: 0 0 0 4px rgba(0,69,149,0.12); }
.cselect[data-open="true"] .cselect__btn::after { transform: translateY(-50%) rotate(180deg); }
.cselect__label {
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cselect__label--placeholder { color: #9aa1ad; }
.cselect__panel {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 18px;
  box-shadow: 0 24px 48px -16px rgba(0,47,106,.28);
  padding: 6px;
  max-height: 280px; overflow-y: auto;
  z-index: 50;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.cselect[data-open="true"] .cselect__panel {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.cselect__search {
  width: 100%; height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #ededf5;
  background: #f3f3fa;
  font: inherit; font-size: 13px;
  margin-bottom: 4px;
  outline: none;
}
.cselect__search:focus { border-color: #adc6ff; background: #fff; }
.cselect__opt {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  color: #191b21;
  cursor: pointer;
  user-select: none;
  transition: background .12s ease, color .12s ease;
}
.cselect__opt:hover { background: #f3f3fa; color: #002f6a; }
.cselect__opt.is-selected { background: linear-gradient(135deg, #002f6a, #004595); color: #fff; font-weight: 600; }
.cselect__opt.is-disabled { color: #9aa1ad; cursor: not-allowed; }
.cselect__opt[hidden] { display: none; }
.cselect__empty { padding: 14px 12px; color: #9aa1ad; font-size: 13px; text-align: center; }

.cselect__panel::-webkit-scrollbar { width: 6px; }
.cselect__panel::-webkit-scrollbar-track { background: transparent; }
.cselect__panel::-webkit-scrollbar-thumb { background: #adc6ff; border-radius: 6px; }
.cselect__panel::-webkit-scrollbar-thumb:hover { background: #002f6a; }

@media (max-width: 640px) {
  .cselect__panel { max-height: 60vh; }
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid #ededf5;
  border-radius: 1.25rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  border-color: #c3c6d3;
  transform: translateY(-.5px);
  box-shadow: 0 10px 30px rgba(0,47,106,0.08);
}

/* ---------- Badges ---------- */
.badge { display:inline-flex; align-items:center; gap:.25rem; padding:.2rem .55rem; border-radius:999px; font-size:.7rem; font-weight:700; letter-spacing:.02em; }
.badge-top    { background:#fef3c7; color:#7c5e10; }
.badge-vip    {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(217,119,6,.35);
}

/* ---------- City autocomplete ---------- */
.city-ac { position: relative; }
.city-ac__wrap { position: relative; display: flex; align-items: center; }
.city-ac__input { padding-right: 60px !important; }
.city-ac__caret {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: #6b7280; font-size: 22px !important; pointer-events: auto; cursor: pointer;
  transition: transform .18s ease;
}
.city-ac--open .city-ac__caret { transform: translateY(-50%) rotate(180deg); }
.city-ac__clear {
  position: absolute; right: 36px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 999px;
  background: transparent; color: #6b7280;
  display: none; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; cursor: pointer; border: 0;
}
.city-ac__input:not(:placeholder-shown) + .city-ac__clear { display: inline-flex; }
.city-ac__clear:hover { background: #f1f5f9; color: #0f172a; }

.city-ac__dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  max-height: 280px; overflow-y: auto;
  box-shadow: 0 14px 32px -12px rgba(15,23,42,.18), 0 4px 8px rgba(15,23,42,.04);
  z-index: 30;
  padding: 4px;
}
.city-ac__row {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: #0f172a;
  background: transparent; border: 0; cursor: pointer;
  line-height: 1.35;
}
.city-ac__row:hover, .city-ac__row--active { background: #eff6ff; color: #1d4ed8; }
.city-ac__row-region { color: #94a3b8; font-size: 12px; margin-left: 4px; }
.city-ac__row-empty { font-weight: 600; }
.city-ac__empty { padding: 14px; text-align: center; color: #94a3b8; font-size: 13px; }

/* ---------- VIP card (premium) ---------- */
.vip-card {
  position: relative;
  border: 0 !important;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, #fbbf24 0%, #d97706 35%, #92400e 65%, #d97706 100%) border-box;
  border: 2px solid transparent !important;
  box-shadow: 0 8px 24px -10px rgba(217,119,6,.45), 0 2px 6px rgba(0,0,0,.04);
  overflow: hidden;
}
.vip-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, transparent 40%, rgba(251,191,36,.08) 50%, transparent 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.vip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -10px rgba(217,119,6,.55), 0 4px 12px rgba(0,0,0,.06);
}
.vip-card__ribbon {
  position: absolute; top: 0; right: 0;
  z-index: 3;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #92400e 100%);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .35rem .8rem .35rem .9rem;
  display: inline-flex; align-items: center; gap: .25rem;
  border-bottom-left-radius: 12px;
  box-shadow: 0 4px 12px -2px rgba(146,64,14,.45);
}
.vip-card__ribbon::after {
  content: '';
  position: absolute; bottom: -6px; right: 0;
  width: 6px; height: 6px;
  background: #78350f;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.vip-card--showcase .lc-img { aspect-ratio: 16 / 11; }

/* ---------- VIP slider ---------- */
.vip-slider { position: relative; }
.vip-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 24px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-left: 4px;
  padding: 4px 4px 16px;
  margin: -4px -4px 0;
  scrollbar-width: thin;
  scrollbar-color: #d4d4d8 transparent;
}
.vip-slider__track::-webkit-scrollbar { height: 8px; }
.vip-slider__track::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 999px; }
.vip-slider__track::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }
.vip-slider__slide { scroll-snap-align: start; min-width: 0; }
.vip-slider__slide .card { height: 100%; }

@media (max-width: 1024px) {
  .vip-slider__track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .vip-slider__track { grid-auto-columns: 82%; gap: 16px; }
}

.vip-slider__btn {
  position: absolute;
  top: calc(50% - 30px);
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px; border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #0f172a;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -8px rgba(15,23,42,.25), 0 2px 4px rgba(0,0,0,.04);
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.vip-slider__btn:hover { background: #fef3c7; transform: translateY(-50%) scale(1.06); }
.vip-slider__btn--prev { left: -18px; }
.vip-slider__btn--next { right: -18px; }
.vip-slider__btn[disabled] { opacity: 0; pointer-events: none; }
.vip-slider__btn .material-symbols-outlined { font-size: 24px; }
@media (max-width: 768px) {
  .vip-slider__btn { display: none; }
}

/* Compact slider variant — for catalog top strip */
.vip-strip {
  position: relative;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251,191,36,.08) 0%, rgba(217,119,6,.04) 100%);
  border: 1px solid rgba(251,191,36,.25);
  margin-bottom: 20px;
}
.vip-strip__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 10px;
}
.vip-strip__title {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 700; font-size: 13px; letter-spacing: .04em;
  color: #92400e; text-transform: uppercase;
}
.vip-strip__title .material-symbols-outlined { font-size: 16px; }
.vip-strip .vip-slider__track {
  grid-auto-columns: 220px;
  gap: 12px;
  padding: 2px 2px 8px;
}
.vip-strip .vip-card { box-shadow: 0 4px 12px -6px rgba(217,119,6,.35); }
.vip-strip .vip-card .lc-img { aspect-ratio: 4 / 3; }
.vip-strip .vip-card .lc-img img { object-fit: cover; }
.vip-strip .vip-card .p-4 { padding: 10px 12px; }
.vip-strip .vip-card h3 { font-size: 13px !important; min-height: 0 !important; -webkit-line-clamp: 2; }
.vip-strip .vip-card .font-display { font-size: 14px !important; }
.vip-strip .vip-card__ribbon {
  font-size: .6rem;
  padding: .2rem .55rem .2rem .65rem;
}

/* ---------- VIP showcase section ---------- */
.vip-showcase {
  position: relative;
}
.vip-showcase::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(251,191,36,.09), transparent 70%),
    radial-gradient(ellipse 50% 35% at 90% 100%, rgba(217,119,6,.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.vip-showcase > * { position: relative; z-index: 1; }
.vip-showcase__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.vip-showcase__pill {
  display: inline-flex; align-items: center; gap: .35rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px -2px rgba(217,119,6,.45);
}
.badge-new    { background:#ecfdf5; color:#065f46; }
.badge-used   { background:#f3f3fa; color:#434751; }
.badge-refurb { background:#e0f7fa; color:#0e7490; }
.badge-parts  { background:#fef3c7; color:#7c5e10; }

/* ---------- Brand strip grayscale logos ---------- */
.brand-tile img { filter: grayscale(100%); opacity:.7; transition: filter .25s, opacity .25s; max-height:48px; }
.brand-tile:hover img { filter: grayscale(0); opacity:1; }

/* ---------- Flash / Toast ---------- */
.flash-wrap, .toast-wrap {
  position: fixed; top: 1.2rem; right: 1.2rem;
  z-index: 80;
  display: flex; flex-direction: column; gap: .6rem;
  pointer-events: none;
  max-width: calc(100vw - 2.4rem);
}
.toast-wrap > *, .flash-wrap > * { pointer-events: auto; }
.flash, .toast {
  position: relative;
  padding: .9rem 2.5rem .9rem 1rem;
  border-radius: 16px;
  font-weight: 500; font-size: 14px;
  background: #fff;
  box-shadow: 0 18px 40px -12px rgba(15,23,42,0.22), 0 4px 12px -4px rgba(15,23,42,0.08);
  min-width: 260px; max-width: 380px;
  display: flex; align-items: center; gap: .6rem;
  border: 1px solid #ededf5;
  border-left-width: 4px;
  animation: toast-in .35s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
.toast::after, .flash::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 3px; width: 100%;
  background: currentColor;
  opacity: .25;
  animation: toast-bar 4s linear forwards;
  transform-origin: left;
}
.flash[data-leaving="true"], .toast[data-leaving="true"] { animation: toast-out .3s ease forwards; }
.flash > .material-symbols-outlined, .toast > .material-symbols-outlined {
  font-size: 22px;
  flex-shrink: 0;
}
.toast__close {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: .5;
  color: inherit;
  transition: opacity .15s ease, background .15s ease;
}
.toast__close:hover { opacity: 1; background: rgba(0,0,0,.05); }
.toast__close .material-symbols-outlined { font-size: 18px; }
.flash-success, .toast-success { color: #065f46; border-left-color: #10b981; }
.flash-success > .material-symbols-outlined, .toast-success > .material-symbols-outlined { color: #10b981; }
.flash-error, .toast-error { color: #9f1239; border-left-color: #ef4444; }
.flash-error > .material-symbols-outlined, .toast-error > .material-symbols-outlined { color: #ef4444; }
.flash-info, .toast-info, .flash-warning, .toast-warning { color: #1e40af; border-left-color: #06b6d4; }
.flash-info > .material-symbols-outlined, .toast-info > .material-symbols-outlined { color: #06b6d4; }
.flash-warning, .toast-warning { color: #7c5e10; border-left-color: #f59e0b; }
.flash-warning > .material-symbols-outlined, .toast-warning > .material-symbols-outlined { color: #f59e0b; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px) scale(.95); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}
@keyframes toast-bar {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ---------- Header active link underline ---------- */
.nav-link { position: relative; padding: .35rem 0; color: #434751; font-weight: 500; }
.nav-link.active, .nav-link:hover { color: #002f6a; }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: #06b6d4; border-radius: 2px;
}

/* ---------- Listing card image ---------- */
.lc-img { aspect-ratio: 16 / 10; background: #f3f3fa; overflow: hidden; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .lc-img img { transform: scale(1.04); }

/* ---------- Prose ---------- */
.prose-md p { margin: .85em 0; line-height: 1.7; }
.prose-md h2 { font-family: 'Unbounded', sans-serif; font-size: 1.6rem; margin: 1.4em 0 .6em; }
.prose-md h3 { font-family: 'Unbounded', sans-serif; font-size: 1.25rem; margin: 1.3em 0 .5em; }
.prose-md ul { padding-left: 1.5em; list-style: disc; }
.prose-md ol { padding-left: 1.5em; list-style: decimal; }
.prose-md a { color: #004595; text-decoration: underline; }

/* ---------- Mobile drawer ---------- */
.drawer { transform: translateX(-100%); transition: transform .25s ease; }
.drawer.open { transform: translateX(0); }
.drawer-backdrop { display: none; }
.drawer-backdrop.open { display: block; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: #ededf5; }
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* ---------- Footer payment + messenger icons ---------- */
.footer-pay-icon {
  height: 23px; width: auto;
  border-radius: 4px;
  background: #fff;
  padding: 3px 6px;
  border: 1px solid #e7e7ef;
  transition: transform .18s ease, box-shadow .18s ease;
}
.footer-pay-icon:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -4px rgba(0,47,106,.2); }
.footer-msg-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e7e7ef;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.footer-msg-icon img { width: 18px; height: 18px; object-fit: contain; }
.footer-msg-icon:hover { transform: translateY(-2px); box-shadow: 0 6px 16px -4px rgba(0,47,106,.25); border-color: #adc6ff; }
.footer-msg-icon--material { color: #002f6a; }
.footer-msg-icon--material .material-symbols-outlined { font-size: 20px; }

/* ---------- Sticky FAB (thumb-friendly contact button) ---------- */
.mc-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.mc-fab > * { pointer-events: auto; }
@media (min-width: 768px) {
  .mc-fab { right: 24px; bottom: 24px; }
}

.mc-fab__trigger {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #002f6a 0%, #004595 50%, #06b6d4 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 32px -8px rgba(0,47,106,.55), 0 2px 6px -1px rgba(0,0,0,.18);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.mc-fab__trigger:hover { transform: scale(1.06); box-shadow: 0 16px 36px -8px rgba(0,47,106,.6); }
.mc-fab__trigger:active { transform: scale(0.96); }

.mc-fab__icon {
  position: absolute; inset: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px;
  transition: opacity .25s ease, transform .25s ease;
}
.mc-fab__icon--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.mc-fab[data-open="true"] .mc-fab__icon--default { opacity: 0; transform: rotate(90deg) scale(.6); }
.mc-fab[data-open="true"] .mc-fab__icon--close   { opacity: 1; transform: rotate(0) scale(1); }

.mc-fab__pulse {
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(6,182,212,.55);
  animation: mc-fab-pulse 2.6s cubic-bezier(.4,0,.6,1) infinite;
  pointer-events: none;
}
.mc-fab[data-open="true"] .mc-fab__pulse { animation: none; opacity: 0; }
@keyframes mc-fab-pulse {
  0%   { transform: scale(.92); opacity: .85; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

.mc-fab__menu {
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
  opacity: 0; visibility: hidden;
  transform: translateY(8px) scale(.96); transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.mc-fab[data-open="true"] .mc-fab__menu {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}

.mc-fab__item {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -6px rgba(0,47,106,.45);
  border: 1px solid #ededf5;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.mc-fab__item img { width: 24px; height: 24px; object-fit: contain; }
.mc-fab__item:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 12px 24px -8px rgba(0,47,106,.55); }
.mc-fab__item--call { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; }
.mc-fab__item--call .material-symbols-outlined { font-size: 26px; }
.mc-fab__item--viber { background: #7360f2; }
.mc-fab__item--viber img { width: 30px; height: 30px; }

.mc-fab__item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%; transform: translateY(-50%);
  background: rgba(25,27,33,.92);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.mc-fab__item[data-tooltip]:hover::after { opacity: 1; }
@media (max-width: 768px) {
  .mc-fab__item[data-tooltip]::after { display: none; }
}

/* ---------- Categories tree page ---------- */
.cat-tree-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 640px)  { .cat-tree-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cat-tree-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .cat-tree-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cat-tree-card {
  position: relative;
}
.cat-tree-card__head {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 16px 16px;
  background: linear-gradient(180deg, #f3f3fa 0%, #ededf5 100%);
  border: 1px solid #e7e7ef;
  border-radius: 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #191b21;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.cat-tree-card__head:hover {
  background: linear-gradient(180deg, #fff 0%, #f3f3fa 100%);
  border-color: #adc6ff;
  box-shadow: 0 8px 24px -10px rgba(0,47,106,.25);
}
.cat-tree-card__icon {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  color: #fff;
  background: #002f6a;
}
.cat-tree-card__icon .material-symbols-outlined { font-size: 20px; }
.cat-tree-card__name { flex: 1; line-height: 1.25; }
.cat-tree-card__chev {
  flex: 0 0 auto;
  color: #434751;
  transition: transform .22s ease;
}
.cat-tree-card[data-open="true"] .cat-tree-card__chev { transform: rotate(180deg); }
.cat-tree-card[data-open="true"] .cat-tree-card__head {
  background: linear-gradient(180deg, #002f6a 0%, #004595 100%);
  color: #fff;
  border-color: #002f6a;
}
.cat-tree-card[data-open="true"] .cat-tree-card__chev { color: #fff; }
.cat-tree-card[data-open="true"] .cat-tree-card__icon { background: #fff; color: #002f6a; }

.cat-tree-card__panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 14px;
  box-shadow: 0 24px 48px -16px rgba(0,47,106,.28);
  z-index: 5;
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
}
.cat-tree-card[data-open="true"] .cat-tree-card__panel { display: block; }

.cat-tree-card__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #191b21;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  border-bottom: 1px solid transparent;
}
.cat-tree-card__sub:hover {
  background: #f3f3fa;
  color: #002f6a;
}
.cat-tree-card__sub--all {
  font-weight: 600;
  color: #06b6d4;
  border-top: 1px solid #ededf5;
  margin-top: 4px;
  justify-content: center;
}
.cat-tree-card__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #002f6a;
  color: #fff;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
  transition: background .15s ease;
}
.cat-tree-card__count.is-empty {
  background: #ededf5;
  color: #9aa1ad;
}
.cat-tree-card__sub:hover .cat-tree-card__count:not(.is-empty) {
  background: #06b6d4;
}

/* Custom scrollbar inside dropdown panel */
.cat-tree-card__panel::-webkit-scrollbar { width: 6px; }
.cat-tree-card__panel::-webkit-scrollbar-track { background: transparent; }
.cat-tree-card__panel::-webkit-scrollbar-thumb { background: #adc6ff; border-radius: 6px; }
.cat-tree-card__panel::-webkit-scrollbar-thumb:hover { background: #002f6a; }

/* ---------- Profile head: avatar + analytics ---------- */
.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-head__info { min-width: 0; flex: 1; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.profile-stat {
  display: flex; flex-direction: column;
  padding: 8px 10px;
  background: #f3f3fa;
  border-radius: 14px;
  line-height: 1.15;
}
.profile-stat__num {
  font-family: 'Unbounded','Montserrat',sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.profile-stat__lbl {
  font-size: 10.5px;
  color: #434751;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (max-width: 480px) {
  .profile-head { gap: 14px; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Avatar uploader (click to upload) ---------- */
.avatar-uploader {
  position: relative;
  display: inline-block;
  width: 96px;
  min-width: 96px;
  height: 96px;
  flex: 0 0 96px;          /* Don't let flex shrink it into an oval */
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  cursor: pointer;
  background: #f3f3fa;
  overflow: hidden;
  box-shadow: 0 4px 16px -6px rgba(0,47,106,.18);
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.avatar-uploader:hover { transform: scale(1.04); box-shadow: 0 8px 24px -8px rgba(0,47,106,.32); }
.avatar-uploader img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-uploader__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 700;
  background: linear-gradient(135deg, #002f6a 0%, #06b6d4 100%);
  color: #fff;
}
.avatar-uploader__overlay {
  position: absolute; inset: 0;
  background: rgba(0,47,106,.55);
  color: #fff;
  opacity: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  transition: opacity .2s ease;
}
.avatar-uploader:hover .avatar-uploader__overlay { opacity: 1; }
.avatar-uploader__overlay .material-symbols-outlined { font-size: 28px; }
.avatar-uploader__hint { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.avatar-uploader input[type="file"] { position: absolute; opacity: 0; pointer-events: none; }
.avatar-uploader[data-uploading="true"] { pointer-events: none; }
.avatar-uploader[data-uploading="true"]::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.6) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='none' stroke='%23002f6a' stroke-width='3' stroke-dasharray='30 30' stroke-linecap='round'><animateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.9s' repeatCount='indefinite'/></circle></svg>") center no-repeat;
}

/* ---------- Title suggester (compact dropdown under the input) ---------- */
.title-suggest { position: relative; }
.title-suggest__panel {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 18px;
  box-shadow: 0 18px 40px -16px rgba(0,47,106,.28);
  padding: 6px;
  z-index: 25;
  max-height: 300px; overflow-y: auto;
  animation: ts-pop .18s ease;
}
.title-suggest__panel[hidden] { display: none; }
.title-suggest__item {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 0; cursor: pointer;
  background: transparent;
  border-radius: 12px;
  font-size: 13.5px;
  color: #191b21;
  text-align: left;
  font: inherit;
  transition: background .12s ease;
}
.title-suggest__item:hover, .title-suggest__item.is-focused {
  background: #f3f3fa;
  color: #002f6a;
}
.title-suggest__item .material-symbols-outlined {
  font-size: 16px;
  color: #06b6d4;
  flex-shrink: 0;
}
.title-suggest__item mark {
  background: rgba(6,182,212,.18);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}
.title-suggest__empty {
  padding: 14px 12px;
  text-align: center;
  color: #9aa1ad;
  font-size: 12.5px;
}
@keyframes ts-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Notification badges (account dropdown / drawer / avatar) ---------- */
.notif-dot {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px; font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px -2px rgba(239,68,68,.6);
  animation: notif-pop .3s cubic-bezier(.34,1.56,.64,1);
}
.notif-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px; font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 4px -1px rgba(239,68,68,.4);
}
@keyframes notif-pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ---------- "Запропонувати ціну" CTA — soft amber, secondary CTA ---------- */
.btn-offer {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid #fcd34d;
  cursor: pointer;
  background: #fffbeb;
  color: #92400e;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-offer:hover { background: #fef3c7; border-color: #f59e0b; }
.btn-offer:active { transform: scale(.97); }
.btn-offer .material-symbols-outlined { font-size: 20px; color: #d97706; }

/* ---------- Listing contact messenger buttons (white bg, colored icons) ---------- */
.contact-msg-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  height: 68px;
  border-radius: 16px;
  font-size: 11px; font-weight: 700;
  text-decoration: none;
  color: #002f6a;
  background: #fff;
  border: 1.5px solid #ededf5;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.contact-msg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(0,47,106,.28);
}
.contact-msg-btn__icon {
  width: 28px; height: 28px;
  object-fit: contain;
  display: block;
}
.contact-msg-btn .material-symbols-outlined { font-size: 26px; }
/* Per-brand accent: border + label color tinted in brand palette */
.contact-msg-btn--whatsapp { border-color: #25D366; color: #128C7E; }
.contact-msg-btn--whatsapp:hover { border-color: #128C7E; }
.contact-msg-btn--viber    { border-color: #7360F2; color: #5347B8; }
.contact-msg-btn--viber:hover    { border-color: #5347B8; }
.contact-msg-btn--telegram { border-color: #2AABEE; color: #0088CC; }
.contact-msg-btn--telegram:hover { border-color: #0088CC; }
.contact-msg-btn--email    { border-color: #adc6ff; color: #002f6a; }
.contact-msg-btn--email:hover    { border-color: #002f6a; }
.contact-msg-btn--email .contact-msg-btn__icon { filter: none; }

/* ---------- Breadcrumbs: single-line horizontal scroll on mobile ---------- */
.breadcrumbs {
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge legacy */
  /* Soft fade on the right edge to hint scrollability */
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
}
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs > * { flex-shrink: 0; }
.breadcrumbs a, .breadcrumbs span { white-space: nowrap; }
/* Override any line-clamp inside breadcrumbs that would wrap text */
.breadcrumbs .line-clamp-1 {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
  vertical-align: middle;
}
@media (min-width: 768px) {
  /* On desktop, restore wrap & no fade so URLs look standard */
  .breadcrumbs { flex-wrap: wrap; overflow-x: visible; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Mobile sticky bottom bar on /listings/{slug} ---------- */
.listing-bottombar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid #ededf5;
  box-shadow: 0 -8px 24px -8px rgba(0,47,106,.15);
}
.listing-bottombar__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}
.listing-bottombar__title {
  flex: 1;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  color: #191b21;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listing-bottombar__price {
  flex-shrink: 0;
  font-family: 'Unbounded','Montserrat',sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #002f6a;
  letter-spacing: -0.02em;
}
.listing-bottombar__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.listing-bottombar__call {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, #004595 0%, #002f6a 100%);
  color: #fff;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 16px -4px rgba(0,47,106,.5);
  transition: transform .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.listing-bottombar__call:active { transform: scale(.97); filter: brightness(1.05); }
.listing-bottombar__call .material-symbols-outlined { font-size: 22px; }
.listing-bottombar__icon {
  flex: 0 0 50px;
  width: 50px; height: 50px;
  border: 0; border-radius: 50%;
  background: #f3f3fa;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.listing-bottombar__icon:active { transform: scale(.92); background: #ededf5; }
.listing-bottombar__icon img { width: 24px; height: 24px; object-fit: contain; }
.listing-bottombar__icon--chat { background: #002f6a; color: #fff; }
.listing-bottombar__icon--chat .material-symbols-outlined { font-size: 24px; }

/* Push page content above the bar so it doesn't hide the footer / similar listings on mobile. */
@media (max-width: 1023px) {
  body[data-page="listing"] { padding-bottom: 130px; }
  /* Hide the global FAB on listing pages — its job is taken by the bottom bar. */
  body[data-page="listing"] .mc-fab { display: none !important; }
}

/* ---------- Seller rating in card ---------- */
.seller-rating { padding-top: 12px; border-top: 1px solid #ededf5; }
.seller-rating__main { display: flex; align-items: center; gap: 12px; }
.seller-rating__score {
  font-family: 'Unbounded','Montserrat',sans-serif;
  font-size: 28px; font-weight: 800;
  color: #002f6a;
  line-height: 1;
}
.seller-rating__stars { color: #f59e0b; font-size: 14px; letter-spacing: .04em; }

/* ---------- Modal (message seller / report) ---------- */
.mc-modal {
  position: fixed; inset: 0;
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.mc-modal[hidden] { display: none; }
.mc-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  animation: mc-fade .25s ease;
}
.mc-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 32px 64px -16px rgba(0,47,106,.4);
  animation: mc-pop .3s cubic-bezier(.34,1.56,.64,1);
}
.mc-modal__close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: #f3f3fa;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.mc-modal__close:hover { background: #e7e7ef; }
@keyframes mc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mc-pop  { from { opacity: 0; transform: scale(.92) translateY(8px);} to { opacity: 1; transform: scale(1) translateY(0);} }

/* ---------- Star rating widget ---------- */
.star-rating { display: inline-flex; gap: 2px; }
.star-rating__btn {
  background: transparent; border: 0; cursor: pointer;
  padding: 0; line-height: 1;
  color: #d1d5db;
  transition: color .15s ease, transform .15s ease;
}
.star-rating__btn:hover { transform: scale(1.15); }
.star-rating__btn .material-symbols-outlined { font-size: 26px; }
.star-rating__btn.is-active { color: #f59e0b; }
.star-rating__btn.is-active .material-symbols-outlined { font-variation-settings: 'FILL' 1; }

/* ---------- Custom attribute rows ---------- */
.attr-row {
  display: grid;
  grid-template-columns: 1fr 1fr 40px;
  gap: 8px;
  align-items: center;
}
.attr-row__rm {
  width: 40px; height: 40px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: #fee2e2; color: #b91c1c;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.attr-row__rm:hover { background: #fecaca; transform: rotate(90deg); }
.attr-row__rm .material-symbols-outlined { font-size: 18px; }
@media (max-width: 640px) {
  .attr-row { grid-template-columns: 1fr 1fr 36px; }
}

/* ---------- Listing photo manager ---------- */
.mc-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f3fa;
  border: 2px solid transparent;
  cursor: grab;
}
.mc-photo:active { cursor: grabbing; }
.mc-photo__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-photo--cover { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.25); }
.mc-photo--drag { opacity: .4; }
.mc-photo--deleted { opacity: .35; filter: grayscale(1); }
.mc-photo__num {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}
.mc-photo__badge {
  position: absolute; bottom: 6px; left: 6px;
  background: #f59e0b; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 7px; border-radius: 999px;
}
.mc-photo__star, .mc-photo__rm {
  position: absolute; top: 6px;
  width: 28px; height: 28px; border: 0; cursor: pointer;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.9);
  transition: background .15s ease, transform .15s ease;
}
.mc-photo__star { right: 38px; color: #b8860b; }
.mc-photo__rm   { right: 6px;  color: #b91c1c; }
.mc-photo__star:hover { background: #fff;     transform: scale(1.08); }
.mc-photo__rm:hover   { background: #fee2e2;  transform: scale(1.08); }
.mc-photo--cover .mc-photo__star { background: #f59e0b; color: #fff; }
.mc-photo__star .material-symbols-outlined,
.mc-photo__rm .material-symbols-outlined { font-size: 18px; }
.mc-photo-add {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px dashed #c7c9d4; color: #434751;
  font-size: 14px; font-weight: 600;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.mc-photo-add:hover { border-color: #004595; color: #004595; background: #f5f8ff; }

/* ---------- Message bubbles in /dashboard/messages ---------- */
.msg-bubble {
  padding: 0px 14px 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.msg-bubble--mine   { background: linear-gradient(135deg, #002f6a, #004595); color: #fff; border-bottom-right-radius: 6px; }
.msg-bubble--theirs { background: #f3f3fa; color: #191b21; border-bottom-left-radius: 6px; }

/* ---------- Mobile filters: sticky toggle + bottom-sheet panel ---------- */
.mobile-filters-bar {
  position: sticky;
  top: 140px;
  z-index: 35;
  margin: 0 0 16px;
  padding: 8px 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mobile-filters-bar__btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 48px;
  padding: 0 18px;
  border: 0; cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(135deg, #002f6a 0%, #004595 60%, #06b6d4 140%);
  color: #fff;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 22px -8px rgba(0,47,106,.55);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-filters-bar__btn:active { transform: scale(.97); }
.mobile-filters-bar__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #002f6a;
  font-size: 11px; font-weight: 800;
}

@media (max-width: 1023px) {
  /* Panel hidden by default; opens as bottom sheet */
  [data-mobile-filters-panel] {
    position: fixed;
    inset: auto 0 0 0;
    height: 0;
    max-height: 88vh;
    background: #fff;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    box-shadow: 0 -16px 40px -10px rgba(0,47,106,.35);
    overflow-y: auto;
    z-index: 70;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), height 0s linear .28s;
    visibility: hidden;
    -webkit-overflow-scrolling: touch;
  }
  [data-mobile-filters-panel].is-open {
    height: 88vh;
    transform: translateY(0);
    visibility: visible;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), height 0s linear 0s;
  }
  /* Bottom sheet drag-handle look */
  [data-mobile-filters-panel]::before {
    content: '';
    position: sticky;
    top: 0;
    display: block;
    width: 44px; height: 4px;
    border-radius: 999px;
    background: #c3c6d3;
    margin: 8px auto 0;
  }
  [data-mobile-filters-panel] .card {
    border: 0;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
  }
  /* Header strip with title + close button */
  .filters-sheet__head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px 10px;
    background: #fff;
    border-bottom: 1px solid #ededf5;
  }
  .filters-sheet__close {
    width: 36px; height: 36px;
    border: 0; cursor: pointer;
    border-radius: 50%;
    background: #f3f3fa;
    display: inline-flex; align-items: center; justify-content: center;
    color: #002f6a;
    -webkit-tap-highlight-color: transparent;
  }
  .filters-sheet__close:active { background: #ededf5; transform: scale(.92); }

  .filters-sheet-backdrop {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.45);
    backdrop-filter: blur(2px);
    z-index: 65;
    opacity: 0;
    transition: opacity .25s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .filters-sheet-backdrop.is-open { opacity: 1; }
  body[data-filters-open="true"] { overflow: hidden; touch-action: none; }
}

/* User dropdown: ensure it stays inside viewport on tiny screens */
@media (max-width: 480px) {
  .user-menu {
    /* Pin the menu to the right edge of the viewport with safe padding. */
    position: fixed !important;
    right: 0.75rem !important;
    left: auto !important;
    top: 76px !important;
    width: calc(100vw - 1.5rem) !important;
    max-width: 320px;
  }
}

/* ---------- Promote button (eye-catching, animated) ---------- */
.btn-promote {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
  background-size: 200% 200%;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px -6px rgba(239,68,68,.55), 0 2px 6px -2px rgba(0,0,0,.15);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
  z-index: 0;
  animation: promote-glow 3s ease-in-out infinite, promote-shift 8s linear infinite;
}
.btn-promote::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: promote-shimmer 2.4s ease-in-out infinite;
  z-index: -1;
}
.btn-promote .material-symbols-outlined {
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}
.btn-promote:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px -8px rgba(239,68,68,.7), 0 4px 10px -2px rgba(0,0,0,.2);
}
.btn-promote:active { transform: translateY(0) scale(.98); }

/* Big variant for mobile listing cards */
.btn-promote--big {
  display: flex; justify-content: center;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.btn-promote--big .material-symbols-outlined { font-size: 22px; }

@keyframes promote-glow {
  0%, 100% { box-shadow: 0 8px 22px -6px rgba(239,68,68,.55), 0 2px 6px -2px rgba(0,0,0,.15); }
  50%      { box-shadow: 0 12px 28px -4px rgba(236,72,153,.7),  0 2px 6px -2px rgba(0,0,0,.18); }
}
@keyframes promote-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes promote-shimmer {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-promote, .btn-promote::before { animation: none !important; }
}

/* ---------- Soft action buttons (Edit/Sold/Delete in dashboard) ---------- */
.btn-soft {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f3fa;
  border: 1px solid transparent;
  color: #434751;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-soft:hover { background: #ededf5; border-color: #c3c6d3; color: #002f6a; }
.btn-soft:active { transform: scale(.97); }
.btn-soft .material-symbols-outlined { color: inherit; }
.btn-soft.text-secondary {
  background: #fef2f2;
  color: #b91c1c;
}
.btn-soft.text-secondary:hover { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }

/* ---------- Recent listings list (dashboard mobile) ---------- */
.recent-listing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
}
.recent-listing-row:active { background: #f9f9ff; }
.recent-listing-row__main { flex: 1; min-width: 0; }
.recent-listing-row__title {
  font-weight: 600;
  font-size: 14px;
  color: #191b21;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-listing-row__meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* ---------- My listings: mobile card layout ---------- */
.my-listing-card {
  background: #fff;
  border: 1px solid #ededf5;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 2px 8px -4px rgba(0,47,106,.08);
}
.my-listing-card__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.my-listing-card__cover {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: #f3f3fa;
  overflow: hidden;
  flex-shrink: 0;
}
.my-listing-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.my-listing-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: #191b21;
  text-decoration: none;
}
.my-listing-card__title:hover { color: #002f6a; }
.my-listing-card__price {
  font-family: 'Unbounded','Montserrat',sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #002f6a;
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.my-listing-card__meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f3fa;
}
.my-listing-card__sep { color: #c3c6d3; }
.my-listing-card__actions { margin-top: 12px; }
.my-listing-card__btnrow {
  display: grid;
  grid-template-columns: 1fr 1fr 44px;
  gap: 8px;
  margin-top: 14px;       /* Breathing room from the big TOP button above */
  align-items: stretch;
}
.my-listing-card__btnrow > form {
  display: flex;          /* Form wrapper expands to grid cell */
}
.btn-soft--row {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 999px;
  background: #f3f3fa;
  border: 1px solid transparent;
  color: #434751;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-soft--row:hover { background: #ededf5; border-color: #c3c6d3; color: #002f6a; }
.btn-soft--row:active { transform: scale(.97); }
.btn-soft--row.text-secondary { background: #fef2f2; color: #b91c1c; }
.btn-soft--row.text-secondary:hover { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.btn-soft--icon { padding: 0; }    /* Just the icon — no label */

/* Promote button + plan cards (legacy block, kept for promote.php) ---------- */

.promo-card {
  --accent: #002f6a;
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1.5px solid #ededf5;
  border-radius: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--accent);
  opacity: .9;
}
.promo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 36px -16px color-mix(in srgb, var(--accent) 45%, transparent);
}
.promo-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.promo-card__type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.promo-card__days {
  font-size: 12px;
  color: #434751;
  background: #f3f3fa;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.promo-card__title {
  font-family: 'Unbounded','Montserrat',sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  color: #191b21;
  margin-bottom: 6px;
}
.promo-card__desc {
  font-size: 13px;
  color: #434751;
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}
.promo-card__price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 8px 0 18px;
}
.promo-card__amount {
  font-family: 'Unbounded','Montserrat',sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
}
.promo-card__cur { font-size: 14px; color: #434751; font-weight: 600; }
.promo-card__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 44px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: filter .18s ease, transform .18s ease;
}
.promo-card__btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.promo-card__btn:active { transform: translateY(0); }

/* ---------- Brands page ---------- */
.brand-country-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 999px;
  font-size: 13px;
  color: #434751;
  text-decoration: none;
  transition: all .18s ease;
}
.brand-country-chip:hover { border-color: #adc6ff; color: #002f6a; }
.brand-country-chip.is-active {
  background: #002f6a; color: #fff; border-color: #002f6a;
}
.brand-country-chip.is-active .opacity-50 { opacity: .8; color: #adc6ff; }

.brand-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px)  { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px)  { .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.brand-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 12px 14px;
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 14px;
  text-decoration: none;
  color: #191b21;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-align: center;
  min-height: 168px;
}
.brand-card:hover {
  transform: translateY(-3px);
  border-color: #adc6ff;
  box-shadow: 0 14px 28px -14px rgba(0,47,106,.32);
}
.brand-card__logo {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  min-height: 70px;
  margin-bottom: 12px;
}
.brand-card__logo img {
  max-width: 100%; max-height: 70px;
  object-fit: contain;
  filter: grayscale(0.15);
  transition: filter .25s ease, transform .25s ease;
}
.brand-card:hover .brand-card__logo img { filter: none; transform: scale(1.04); }
.brand-card__placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #002f6a, #06b6d4);
  color: #fff;
  font-family: 'Unbounded','Montserrat',sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
}
.brand-card__name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  color: #002f6a;
  margin-top: auto;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brand-card__country {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px;
  font-size: 11px;
  color: #434751;
}
.brand-card__country img {
  width: 16px; height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
}
.brand-card__badge {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 12px;
  opacity: .8;
}

/* ---------- Password input with eye + strength ---------- */
.pwd-input-wrap { position: relative; }
.pwd-input-wrap .input { padding-right: 3rem !important; font-family: ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: 0.05em; }
.pwd-input-eye {
  position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #434751;
  transition: background .15s ease, color .15s ease;
}
.pwd-input-eye:hover { background: #f3f3fa; color: #002f6a; }
.pwd-input-eye .material-symbols-outlined { font-size: 20px; }

.pwd-strength { margin-top: 8px; }
.pwd-strength__bar {
  position: relative;
  height: 4px;
  background: #ededf5;
  border-radius: 999px;
  overflow: hidden;
}
.pwd-strength__fill {
  height: 100%;
  width: 0%;
  background: #ef4444;
  border-radius: 999px;
  transition: width .25s ease, background .25s ease;
}
.pwd-strength__label {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  text-align: right;
  letter-spacing: 0.02em;
  transition: color .25s ease;
}

/* ---------- SEO «Купуйте у вашому місті» blocks ---------- */
.seo-cat-block {
  min-width: 0;
}
.seo-cat-block__title {
  display: block;
  font-family: 'Unbounded', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: #002f6a;
  margin-bottom: 12px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color .15s ease;
  /* Allow up to 3 lines to fit long names like "Анестезіологічне обладнання / Реанімація" */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.seo-cat-block__title:hover { color: #06b6d4; }
.seo-cat-block__cities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.seo-cat-block__city {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: #434751;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.seo-cat-block__city:hover {
  background: #fff;
  color: #002f6a;
}
.seo-cat-block__city-icon {
  font-size: 16px !important;
  color: #06b6d4;
  flex-shrink: 0;
}
.seo-cat-block__city-name {
  flex: 1;
  font-weight: 500;
}
.seo-cat-block__city-count {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #adc6ff;
  padding: 1px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
  transition: background .15s ease;
}
.seo-cat-block__city:hover .seo-cat-block__city-count {
  background: #002f6a;
}

/* ---------- Brands slider on home ---------- */
.brand-slider {
  position: relative;
}
.brand-slider__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: #adc6ff transparent;
  -webkit-overflow-scrolling: touch;
}
.brand-slider__track::-webkit-scrollbar { height: 6px; }
.brand-slider__track::-webkit-scrollbar-track { background: transparent; }
.brand-slider__track::-webkit-scrollbar-thumb { background: #adc6ff; border-radius: 6px; }
.brand-slider__track::-webkit-scrollbar-thumb:hover { background: #002f6a; }

.brand-slider__item {
  position: relative;
  flex: 0 0 180px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 12px 14px;
  background: #fff;
  border: 1px solid #ededf5;
  border-radius: 16px;
  text-decoration: none;
  color: #191b21;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.brand-slider__item:hover {
  transform: translateY(-3px);
  border-color: #adc6ff;
  box-shadow: 0 14px 28px -14px rgba(0,47,106,.32);
}
.brand-slider__logo {
  position: relative;
  width: 100%; height: 70px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.brand-slider__logo img:not(.brand-slider__flag) {
  max-width: 100%; max-height: 64px;
  object-fit: contain;
  filter: grayscale(.15);
  transition: filter .25s ease, transform .25s ease;
}
.brand-slider__item:hover .brand-slider__logo img:not(.brand-slider__flag) { filter: none; transform: scale(1.05); }
.brand-slider__flag {
  position: absolute;
  bottom: -2px; right: 6px;
  width: 18px; height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.brand-slider__placeholder {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #002f6a, #06b6d4);
  color: #fff;
  font-family: 'Unbounded','Montserrat',sans-serif;
  font-weight: 700;
  font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  text-transform: uppercase;
}
.brand-slider__name {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  color: #002f6a;
  line-height: 1.2;
  margin-bottom: 6px;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}
.brand-slider__count {
  font-size: 11px;
  color: #06b6d4;
  font-weight: 600;
}
.brand-slider__count--empty { color: #9aa1ad; font-weight: 500; }

.brand-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: #fff;
  box-shadow: 0 8px 20px -6px rgba(0,47,106,.32);
  display: inline-flex; align-items: center; justify-content: center;
  color: #002f6a;
  transition: background .18s ease, transform .18s ease;
}
.brand-slider__nav:hover { background: #f3f3fa; transform: translateY(-50%) scale(1.06); }
.brand-slider__nav:active { transform: translateY(-50%) scale(.95); }
.brand-slider__nav--prev { left: -10px; }
.brand-slider__nav--next { right: -10px; }
.brand-slider__nav[disabled] { opacity: .35; pointer-events: none; }
@media (max-width: 768px) {
  .brand-slider__nav { display: none; }
  .brand-slider__item { flex-basis: 150px; }
}

/* ---------- Header live search suggester ---------- */
.suggest-panel {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: #fff;
  border: 1px solid #e7e7ef;
  border-radius: 18px;
  box-shadow: 0 24px 48px -16px rgba(0,47,106,.28);
  padding: 8px;
  max-height: 70vh; overflow-y: auto;
  z-index: 60;
}
.suggest-panel[hidden] { display: none; }
.suggest-section {
  padding: 6px 8px 4px;
}
.suggest-section__title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9aa1ad;
  padding: 4px 8px 6px;
}
.suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #191b21;
  transition: background .15s ease;
}
.suggest-item:hover, .suggest-item.is-focused {
  background: #f3f3fa;
  color: #002f6a;
}
.suggest-item__thumb {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #f3f3fa;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
}
.suggest-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest-item__thumb--logo img { object-fit: contain; padding: 4px; }
.suggest-item__body { flex: 1; min-width: 0; }
.suggest-item__title {
  font-size: 13.5px; font-weight: 600; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.suggest-item__meta {
  font-size: 11px;
  color: #434751;
  display: flex; align-items: center; gap: 6px;
}
.suggest-item__price {
  font-size: 13px; font-weight: 700; color: #002f6a;
  flex-shrink: 0;
}
.suggest-item__flag {
  width: 14px; height: auto;
  border-radius: 2px;
}
.suggest-empty {
  padding: 18px; text-align: center; color: #9aa1ad; font-size: 13px;
}
.suggest-loading {
  padding: 14px; text-align: center; color: #9aa1ad; font-size: 12px;
}
.suggest-see-all {
  display: block; text-align: center;
  padding: 10px;
  margin-top: 4px;
  border-top: 1px solid #ededf5;
  font-size: 13px; font-weight: 600; color: #06b6d4;
  text-decoration: none;
  border-radius: 0 0 18px 18px;
}
.suggest-see-all:hover { background: #f3f3fa; color: #002f6a; }

/* Lazy-load sentinel */
.brand-sentinel {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  margin-top: 24px;
  color: #434751;
  font-size: 14px;
  border: 1px dashed #c3c6d3;
  border-radius: 18px;
  background: #f8feff;
  transition: opacity .3s ease;
}
.brand-sentinel[data-state="done"] {
  border-style: solid;
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.brand-sentinel[data-state="done"] .brand-sentinel__spinner { display: none; }
.brand-sentinel__spinner {
  width: 18px; height: 18px;
  border: 2.5px solid #adc6ff;
  border-top-color: #002f6a;
  border-radius: 50%;
  animation: brand-spin 0.85s linear infinite;
}
@keyframes brand-spin { to { transform: rotate(360deg); } }
