/* Homepage — final Homepage.png */

.home-page {
  background: #f7f7f9;
  padding-bottom: 3.5rem;
}

.home-wrap {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

/* ——— Final white hero ——— */
.home-hero-final {
  background: #fff;
  padding: 1.5rem 0 0.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.hero-grid.is-full {
  grid-template-columns: 1fr;
  gap: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b4bb7;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: #111827;
}

.hero-copy h1 em {
  font-style: normal;
  color: #111827;
}

.hero-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #6b7280;
  font-weight: 500;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-grid.is-full .hero-visual {
  justify-content: flex-end;
}

.hero-visual img {
  width: min(100%, 560px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(17, 24, 39, 0.12));
}

.hero-slider {
  position: relative;
  width: min(100%, 560px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.12);
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.hero-grid:not(.is-full) .hero-visual img,
.hero-grid:not(.is-full) .hero-slider {
  width: min(100%, 560px);
}

.hero-slider:active {
  cursor: grabbing;
}

.hero-slider-sizer {
  display: block;
  width: 100% !important;
  height: auto;
  visibility: hidden;
  pointer-events: none;
  filter: none !important;
}

.hero-slide {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: scale(1.045) translate3d(3.5%, 0, 0);
  filter: none;
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.hero-slider.is-dir-prev .hero-slide:not(.is-on):not(.is-leaving) {
  transform: scale(1.045) translate3d(-3.5%, 0, 0);
}

.hero-slide.is-on {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  transform: scale(1) translate3d(0, 0, 0);
}

.hero-slide.is-prep {
  transition: none !important;
}

.hero-slide.is-enter {
  opacity: 0;
  transform: scale(1.06) translate3d(4.5%, 0, 0);
}

.hero-slider.is-dir-prev .hero-slide.is-enter {
  transform: scale(1.06) translate3d(-4.5%, 0, 0);
}

.hero-slide.is-leaving {
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transform: scale(0.985) translate3d(-4%, 0, 0);
}

.hero-slider.is-dir-prev .hero-slide.is-leaving {
  transform: scale(0.985) translate3d(4%, 0, 0);
}

.hero-slide img {
  display: block;
  width: 100% !important;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: center;
  filter: none !important;
  -webkit-user-drag: none;
  transform: scale(1);
  transform-origin: 50% 45%;
}

.hero-slide.is-on img {
  animation: heroKenBurns 5.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.hero-slide.is-leaving img {
  animation: none;
}

.hero-slider-flare {
  position: absolute;
  inset: -8% -20%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.08) 44%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.1) 56%,
    transparent 64%
  );
  mix-blend-mode: soft-light;
}

.hero-slider.is-animating .hero-slider-flare {
  animation: heroFlare 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroKenBurns {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.6%, -0.8%, 0);
  }
}

@keyframes heroFlare {
  0% {
    opacity: 0;
    transform: translate3d(-35%, 0, 0) skewX(-12deg);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(35%, 0, 0) skewX(-12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.28s ease;
    transform: none !important;
    filter: none !important;
  }

  .hero-slide.is-on img,
  .hero-slider.is-animating .hero-slider-flare {
    animation: none !important;
  }

  .hero-slider-flare {
    display: none;
  }
}

.hero-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  z-index: 5;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(85, 63, 174, 0.38);
  background: color-mix(in srgb, var(--primary, #553fae) 38%, transparent);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.22);
  cursor: pointer;
  transition:
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    transform 0.3s ease;
}

.hero-slider-dot.is-on {
  background: var(--primary, #553fae);
  width: 22px;
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.hero-slider-nav:hover,
.hero-slider-nav:focus-visible {
  background: transparent;
  color: #000;
}

.hero-slider-nav.is-prev {
  left: 0.5rem;
}

.hero-slider-nav.is-next {
  right: 0.5rem;
}

.hero-slider-nav svg {
  display: block;
}

@media (min-width: 981px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
    text-align: left;
  }

  .hero-copy {
    max-width: 42rem;
  }

  .hero-visual,
  .hero-grid.is-full .hero-visual {
    width: 100%;
    justify-content: stretch;
  }

  .hero-visual > img,
  .hero-slider,
  .hero-grid:not(.is-full) .hero-visual img,
  .hero-grid:not(.is-full) .hero-slider {
    width: 100%;
    max-width: none;
    height: clamp(300px, 22vw, 360px);
    filter: none;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 18px 30px rgba(17, 24, 39, 0.12);
  }

  .hero-slider-sizer {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .hero-slide img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* ——— Dark quick search ——— */
.home-quick-search {
  background: var(--dark);
  color: var(--text-on-dark);
  padding: 1.15rem 0 1.35rem;
  margin-top: 0.55rem;
}

.hqs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.hqs-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #fff;
}

.hqs-head h2 em {
  font-style: normal;
  color: #fff;
}

.hqs-bar {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  min-height: 48px;
}

.hqs-input {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
  padding: 0 0.3rem 0 0.95rem;
}

.hqs-ico {
  color: #9ca3af;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  line-height: 0;
}

.hqs-ico svg {
  display: block;
}

.hqs-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 500;
  color: #111827;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.hqs-input input::placeholder {
  color: #9ca3af;
}

.hqs-input input[data-ph-animating]::placeholder,
.browse-qs-input input[data-ph-animating]::placeholder,
.market-search input[data-ph-animating]::placeholder,
.seller-search input[data-ph-animating]::placeholder,
#hf-q[data-ph-animating]::placeholder {
  color: #8b93a7;
}

.hqs-go {
  border: 0;
  background: var(--primary);
  color: var(--text-on-primary);
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  margin: 4px 4px 4px 0;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background 0.15s var(--ease);
}

.hqs-go svg {
  display: block;
}

.hqs-go:hover {
  background: var(--primary-hover);
  filter: none;
}

.hqs-go:active {
  background: var(--primary-active);
}

.hqs-popular-wrap {
  position: relative;
}

.hqs-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  color: #d4d4d8;
  font-size: 0.85rem;
  font-weight: 500;
}

.hqs-popular-chev {
  display: none;
}

.hqs-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 600;
}

.hqs-tag:hover {
  color: var(--accent);
}

.home-quick-search .home-filter {
  margin-top: 1.15rem;
}

.home-quick-search .home-filter + .hqs-popular-wrap .hqs-popular {
  margin-top: 0.85rem;
}

/* ——— Filter panel ——— */
.home-filter {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  margin-top: 1.5rem;
  position: relative;
  z-index: var(--z-sticky);
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(var(--primary-rgb), 0.12), transparent 55%),
    radial-gradient(70% 60% at 100% 0%, rgba(160, 130, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #f4f0ff 0%, #faf8ff 38%, #ffffff 100%);
  border: 1px solid #e5dff5;
  border-radius: 18px;
  box-shadow:
    0 4px 6px rgba(88, 60, 180, 0.04),
    0 18px 40px rgba(88, 60, 180, 0.08);
  /* visible so model/fuel multiselect panels are not clipped */
  overflow: visible;
}

.hf-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  width: 100%;
  background: #ececef;
  border-right: 0;
  border-bottom: 1px solid var(--border);
  padding: 0;
  border-radius: 17px 17px 0 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.hf-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  border-right: 1px solid var(--border-strong);
  border-bottom: 0;
  border-left: 0;
  border-top: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #3f3f46;
  cursor: pointer;
  padding: 0.18rem 0.12rem 0.14rem;
  min-height: 54px;
  font-family: inherit;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
  position: relative;
  z-index: 0;
}

.hf-cat:last-child {
  border-right: 0;
}

.hf-cat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  right: -0.5px;
  width: 1px;
  background: var(--border-strong);
  pointer-events: none;
}

.hf-cat .ico {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  color: inherit;
  line-height: 0;
}

.hf-cat .ico svg,
.hf-cat .ico img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
}

.hf-cat:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #27272a;
}

.hf-cat.on {
  background: #fff;
  color: var(--accent);
  border-top-color: var(--accent);
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
  padding-bottom: calc(0.22rem + 1px);
  z-index: 2;
  box-shadow: none;
}

.hf-cat.on:hover {
  background: #fff;
  color: var(--accent);
}

.hf-main {
  padding: 1.25rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  height: auto;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 0 0 17px 17px;
  position: relative;
  z-index: 0;
}

.hf-subcats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 0.25rem;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  width: 100%;
}

.hf-subcats:empty {
  display: none;
}

.hf-subcat {
  flex: unset;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary, #171827);
  cursor: pointer;
  padding: 0.35rem 0.15rem 0.4rem;
  font-family: inherit;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.hf-subcat .ico {
  display: grid;
  place-items: center;
  line-height: 0;
  color: inherit;
  flex: 0 0 auto;
}

.hf-subcat .ico svg,
.hf-subcat .ico img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.hf-subcat .lbl {
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  max-width: 100%;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}

.hf-subcat:hover {
  color: var(--primary);
  background: var(--primary-soft, #f1edff);
}

.hf-subcat.on {
  color: var(--primary);
  background: var(--primary-soft, #f1edff);
}

.hf-sub-pills {
  display: none;
}

.hf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem 1.1rem;
  flex: 0 0 auto;
  align-items: start;
  align-content: start;
  height: auto;
  margin-bottom: 0.15rem;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.hf-field {
  display: grid;
  gap: 0;
  min-width: 0;
  align-content: start;
}

.hf-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hf-field select,
.hf-field input,
.hf-range select,
.hf-range input {
  width: 100%;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  background: #f3f2f7;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #18181b;
  appearance: auto;
  box-shadow: none;
  outline: none;
  transition: box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.hf-field select:focus,
.hf-field input:focus,
.hf-range select:focus,
.hf-range input:focus {
  background: #efeef5;
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.28);
}

.hf-field select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hf-field input::placeholder,
.hf-range select option[value=""] {
  color: #a1a1aa;
  font-weight: 500;
}

.hf-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem;
}

.hf-dash {
  color: #a1a1aa;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  user-select: none;
}

/* Multiselect dropdown — closed by default; open via .is-open + JS fixed pos */
.hf-multi-box {
  position: relative;
  min-width: 0;
  z-index: 1;
}

.hf-multi-box:has(.hf-multi-trigger[aria-expanded="true"]) {
  z-index: 80;
}

.hf-multi-trigger {
  width: 100%;
  height: 46px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  background: #f3f2f7;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #18181b;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}

.hf-multi-trigger:hover:not(:disabled),
.hf-multi-trigger[aria-expanded="true"] {
  background: #efeef5;
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.28);
}

.hf-multi-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hf-multi-summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.hf-multi-caret {
  color: #71717a;
  flex: 0 0 auto;
  font-size: 0.75rem;
}

.hf-multi-panel {
  display: none !important;
  flex-direction: column;
  max-height: min(280px, 50vh);
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(24, 24, 27, 0.18);
  padding: 0.4rem;
  border: 1px solid #e4e4e7;
  overscroll-behavior: contain;
}

.hf-multi-panel.is-open {
  display: flex !important;
}

.hf-multi-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.hf-multi-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #27272a;
  cursor: pointer;
  line-height: 1.35;
}

.hf-multi-opt:hover {
  background: #f4f4f5;
}

.hf-multi-opt input {
  margin-top: 0.15rem;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  accent-color: var(--primary);
}

.hf-multi-all {
  flex: 0 0 auto;
  border-bottom: 1px solid #f4f4f5;
  margin-bottom: 0.2rem;
  padding-bottom: 0.55rem;
  font-weight: 600;
}

.hf-sub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.hf-sub-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
}

.hf-sub-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hf-sub-pill.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.hf-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0;
  padding-top: 1.15rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 5;
}

.hf-advanced {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
}

.hf-advanced.has-adv {
  font-weight: 700;
}

.hf-adv-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.hf-advanced:hover {
  color: var(--accent-strong);
}

.hf-advanced svg {
  flex-shrink: 0;
}

.hf-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.6rem;
  border-radius: 14px;
  border: 0;
  color: var(--text-on-primary);
  background: var(--primary);
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.32);
  white-space: nowrap;
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease);
  pointer-events: auto;
  position: relative;
  z-index: 6;
}

.hf-go:disabled {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

.hf-go:hover {
  background: var(--primary-hover);
  filter: none;
}

.hf-go:active {
  background: var(--primary-active);
}

.hf-go svg {
  flex-shrink: 0;
}

/* ——— Stats ——— */
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 1.35rem 1rem;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 16px;
}

.hs-item {
  text-align: center;
  border-right: 1px solid #ececf1;
}

.hs-item:last-child {
  border-right: 0;
}

.hs-item strong {
  display: block;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.hs-item strong.accent {
  color: #111827;
}

.hs-item span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
}

a.hs-item-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

a.hs-item-link:hover,
a.hs-item-link:focus-visible {
  background: #faf9fc;
  outline: none;
}

a.hs-item-link:hover strong,
a.hs-item-link:focus-visible strong {
  color: var(--accent);
}

a.hs-item-link:hover span,
a.hs-item-link:focus-visible span {
  color: var(--accent);
}

/* ——— Sections ——— */
.home-section {
  margin-top: 2.25rem;
}

.home-h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-section-head .home-h2 {
  margin: 0;
}

.home-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Body pills */
.home-body-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.15rem 0 1.35rem;
}

.body-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-weight: 650;
  font-size: 0.9rem;
  color: #374151;
  font-family: inherit;
  cursor: pointer;
}

.body-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.body-pill.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.home-section-center {
  text-align: center;
}

.home-section-center .home-h2 {
  margin-bottom: 0.4rem;
}

.home-lead {
  margin: 0;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
}

.home-section-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.home-section-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
  min-height: 44px;
}

.home-section-foot .home-ads-nav {
  grid-column: 2;
  justify-self: center;
  margin: 0;
}

.home-section-foot .home-section-cta {
  grid-column: 3;
  justify-self: end;
  margin: 0;
}

.home-section-foot .home-ads-nav[hidden] + .home-section-cta,
.home-section-foot:not(:has(.home-ads-nav:not([hidden]))) .home-section-cta {
  grid-column: 1 / -1;
}

.home-section-foot .btn-home-wide {
  min-height: 44px;
  padding-inline: 0.35rem 0;
}

/* ——— Start here (lifestyle) ——— */
.home-start {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  padding: 1.5rem 0 0.25rem;
}

.home-start .home-lead {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.home-start-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.home-start-swipe,
.home-sellers-swipe {
  display: none;
}

.home-start-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 148px;
  padding: 1.15rem 0.75rem 1.05rem;
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}

.home-start-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
  transform: translateY(-2px);
  color: #fff;
}

.home-start-ico {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f4f1ff;
  color: var(--primary);
  margin-bottom: 0.15rem;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.home-start-card:hover .home-start-ico {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.home-start-card strong {
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.25;
  transition: color 0.15s var(--ease);
}

.home-start-card:hover strong {
  color: #fff;
}

.home-start-card span:last-child {
  font-size: 0.8rem;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.3;
  transition: color 0.15s var(--ease);
}

.home-start-card:hover span:last-child {
  color: rgba(255, 255, 255, 0.85);
}

.btn-home-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.75rem;
  border-radius: 14px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: none;
  transition: color 0.15s var(--ease);
}

.btn-home-wide:hover {
  filter: none;
  background: transparent;
  color: var(--primary);
}

/* Highlight */
.home-highlight {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.hh-media {
  min-width: 0;
}

.hh-main {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #eceef2;
  aspect-ratio: 16 / 10;
}

.hh-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hh-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.hh-thumbs a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eceef2;
}

.hh-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hh-info h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hh-price {
  margin-top: 0.45rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.hh-specs {
  width: 100%;
  margin: 1.1rem 0 1.25rem;
  border-collapse: collapse;
}

.hh-specs th,
.hh-specs td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  text-align: left;
}

.hh-specs th {
  width: 38%;
  color: var(--muted-2);
  font-weight: 600;
}

.hh-specs td {
  font-weight: 700;
  color: var(--ink);
}

.hh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hh-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
}

/* Promo */
.home-promo {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 2.25rem;
  border-radius: 0;
  background:
    radial-gradient(55% 80% at 90% 40%, rgba(var(--primary-rgb), 0.28), transparent 60%),
    var(--dark);
  color: #fff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(var(--site-gutter), calc((100vw - var(--site-max)) / 2 + var(--site-gutter)));
  padding-right: max(var(--site-gutter), calc((100vw - var(--site-max)) / 2 + var(--site-gutter)));
}

.hp-kicker {
  display: inline-block;
  color: #ff8c00;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.hp-copy h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hp-copy h2 em {
  font-style: normal;
  color: #fff;
}

.hp-text {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  line-height: 1.6;
  max-width: 36rem;
}

.hp-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.hp-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hp-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hp-actions .btn-primary {
  display: inline-flex;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 1.25rem;
  font-weight: 700;
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 650;
  background: transparent;
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.hp-cards {
  display: grid;
  gap: 0.75rem;
}

.hp-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}

.hp-card strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  flex: 0 0 auto;
}

.hp-card span {
  display: block;
  font-size: 0.9rem;
  color: #ff8c00;
  font-weight: 500;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hp-card strong.accent {
  color: #fff;
}

.hp-note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Sellers */
.home-sellers-head {
  position: relative;
  display: block;
  text-align: left;
  margin-bottom: 1.15rem;
}

.home-sellers-head .home-h2 {
  margin: 0;
  text-align: left;
  padding: 0;
}

.home-sellers-nav {
  display: none;
}

.hs-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s var(--ease), opacity 0.15s var(--ease), transform 0.15s var(--ease);
}

.hs-nav-btn:hover:not(:disabled) {
  background: var(--primary-hover);
}

.hs-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Ads carousel (deals / featured) */
.home-section-center.home-ads-head,
.home-ads-head {
  display: block;
  text-align: left;
  margin-bottom: 1.15rem;
}

.home-ads-head .home-h2 {
  margin: 0;
  text-align: left;
  padding: 0;
}

.home-ads-head .home-lead {
  margin-top: 0.55rem;
  padding: 0;
  text-align: left;
}

.home-new24-kicker {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary, #0b5fff);
  background: color-mix(in srgb, var(--primary, #0b5fff) 12%, transparent);
}

.home-ads-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 0.35rem;
}

.home-ads-nav[hidden] {
  display: none !important;
}

.home-ads-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s var(--ease), opacity 0.15s var(--ease), transform 0.15s var(--ease);
}

.home-ads-nav-btn:hover:not(:disabled) {
  background: var(--primary-hover);
}

.home-ads-nav-btn:active:not(:disabled) {
  background: var(--primary-active);
  transform: scale(0.97);
}

.home-ads-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.home-ads-rail {
  position: relative;
}

.home-ads-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0.1rem 0.05rem 0.35rem;
}

.home-ads-track::-webkit-scrollbar {
  display: none;
}

.home-ads-track > .ad-card.v2,
.home-ads-track > .market-skel {
  flex: 0 0 calc((100% - 2.55rem) / 4);
  max-width: calc((100% - 2.55rem) / 4);
  scroll-snap-align: start;
  min-width: 0;
}

.home-ads-track > .empty {
  flex: 1 1 100%;
}

/* Featured: 6×3 desktop / 2×3 mobile */
.home-featured-rail .home-feat-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0.1rem 0 0.35rem;
}

.home-featured-rail .home-feat-track::-webkit-scrollbar {
  display: none;
}

.home-feat-page {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  gap: 0.75rem;
  box-sizing: border-box;
  align-content: start;
}

.home-feat-page > .ad-card.v2,
.home-feat-page > .market-skel {
  min-width: 0;
  width: 100%;
  max-width: none;
}

.home-feat-page > .empty {
  grid-column: 1 / -1;
}

.home-page .home-feat-page .ad-card.v2 .media-fade {
  display: none;
}

.home-page .home-feat-page .ad-card.v2.featured .body,
.home-page .home-feat-page .ad-card.v2 .body {
  background: #fff;
}

.home-page .home-feat-page .ad-card.v2 {
  /* Featured look comes from .ad-card.v2.featured (shared with search) */
  display: block;
}

.home-page .home-feat-page .ad-card.v2 .media {
  aspect-ratio: 4 / 3;
  height: auto;
}

.home-page .home-feat-page .ad-card.v2.featured .card-label.feat,
.home-page .home-feat-page .ad-card.v2.featured .media::after,
.home-page .home-feat-page .ad-card .badges .pill.good {
  display: none;
}

@media (min-width: 901px) {
  .home-feat-page {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 0.7rem;
  }

  .home-page .home-feat-page .ad-card.v2 {
    border: 1px solid #ececf1;
    box-shadow: none;
    background: #fff;
  }

  .home-page .home-feat-page .ad-card.v2.featured {
    background: #fff;
    border: 1px solid #ececf1;
    box-shadow: none;
  }

  .home-page .home-feat-page .ad-card.v2.featured::before {
    display: none;
  }

  .home-page .home-feat-page .ad-card.v2.featured:hover {
    transform: none;
    box-shadow: none;
  }

  .home-page .home-feat-page .ad-card.v2.featured .body {
    background: #fff;
  }

  .home-page .home-feat-page .ad-card.v2 .media {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .home-page .home-feat-page .ad-card.v2 .body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.45rem 0.5rem 0.55rem;
  }

  .home-page .home-feat-page .ad-card.v2 .title:not(.title-mm) {
    display: none;
  }

  .home-page .home-feat-page .ad-card.v2 .title-mm {
    display: block;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-page .home-feat-page .ad-card.v2 .price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.3rem;
    margin: 0;
  }

  .home-page .home-feat-page .ad-card.v2 .price {
    font-size: 0.92rem;
    font-weight: 800;
    color: #111827;
  }

  .home-page .home-feat-page .ad-card.v2 .card-year {
    display: block;
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    white-space: nowrap;
  }

  .home-page .home-feat-page .ad-card.v2 .card-facts,
  .home-page .home-feat-page .ad-card.v2 .card-meta,
  .home-page .home-feat-page .ad-card.v2 .card-labels,
  .home-page .home-feat-page .ad-card.v2 .spec-line,
  .home-page .home-feat-page .ad-card.v2 .price-old {
    display: none !important;
  }

  .home-page .home-feat-page .ad-card.v2 .media-photos {
    display: inline-flex !important;
    right: 0.4rem;
    bottom: 0.4rem;
    height: 22px;
    padding: 0 0.42rem;
    font-size: 0.68rem;
    border-radius: 6px;
  }

  .home-page .home-feat-page .ad-card.v2 .fav,
  .home-page .home-feat-page .ad-card.v2 .cmp-btn {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
  }

  .home-page .home-feat-page .ad-card.v2 .cmp-btn {
    top: auto;
    right: auto;
    left: 0.4rem;
    bottom: 0.4rem;
  }
}

@media (max-width: 760px) {
  .home-feat-page {
    gap: 0.65rem;
  }
}

.home-page .home-ads-track .ad-card.v2 {
  display: block;
}

.home-page .home-ads-track .ad-card.v2 .media {
  aspect-ratio: 4 / 3;
  height: auto;
}

.home-page .home-deals .ad-card.v2 .media-fade {
  display: none;
}

.home-page .home-deals .ad-card.v2,
.home-page .home-deals .ad-card.v2.featured {
  background: #fff;
  border: 1px solid #ececf1;
  box-shadow: none;
}

.home-page .home-deals .ad-card.v2.featured::before {
  display: none;
}

.home-page .home-deals .ad-card.v2.featured:hover {
  transform: none;
  box-shadow: none;
}

.home-page .home-deals .ad-card.v2.featured .body,
.home-page .home-deals .ad-card.v2 .body {
  background: #fff;
}

@media (max-width: 1100px) {
  .home-ads-track > .ad-card.v2,
  .home-ads-track > .market-skel {
    flex-basis: calc((100% - 1.7rem) / 3);
    max-width: calc((100% - 1.7rem) / 3);
  }
}

@media (max-width: 760px) {
  .home-ads-track > .ad-card.v2,
  .home-ads-track > .market-skel {
    flex-basis: calc((100% - 0.85rem) / 2);
    max-width: calc((100% - 0.85rem) / 2);
  }

  .home-ads-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .home-ads-track > .ad-card.v2,
  .home-ads-track > .market-skel {
    flex-basis: min(78vw, 260px);
    max-width: min(78vw, 260px);
  }
}

.home-sellers-rail {
  position: relative;
  margin-inline: calc(-1 * var(--site-gutter, 0px));
  padding-inline: var(--site-gutter, 0px);
}

.home-sellers {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0.35rem 0.1rem 0.85rem;
}

.home-sellers[data-marquee="1"] {
  cursor: grab;
  scroll-snap-type: none;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: auto;
}

.home-sellers[data-marquee="1"] .home-seller-card {
  scroll-snap-align: none;
}

.home-sellers::-webkit-scrollbar {
  display: none;
}

.home-seller-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  flex: 0 0 calc((100% - 5 * 0.85rem) / 6);
  width: calc((100% - 5 * 0.85rem) / 6);
  max-width: none;
  min-width: 0;
  min-height: 148px;
  padding: 0.55rem 0.45rem 1.35rem;
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.home-seller-card:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: none;
  transform: translateY(-2px);
}

.hs-av {
  position: relative;
  width: min(88%, 104px);
  height: 78px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: transparent;
  color: var(--primary);
  border: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  overflow: visible;
  box-shadow: none;
}

.hs-av:not(:has(img)) {
  background: #f4f1ff;
}

.hs-av img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border-radius: 10px;
}

.hs-vbadge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2f80ed;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  color: #fff;
}

.home-seller-card strong {
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hs-ads {
  font-size: 0.8rem;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.3;
}

.hs-meta {
  position: absolute;
  right: 0.55rem;
  bottom: 0.42rem;
  max-width: 55%;
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

/* Brands — thin grid lines, no card frames */
.home-brands {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: #ececf1;
}

.brand-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  padding: 0.55rem 0.35rem 0.45rem;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s var(--ease);
}

.brand-tile:hover {
  background: #fafafa;
}

.bc-av {
  width: min(100%, 112px);
  height: 76px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 0;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.brand-tile:hover .bc-av {
  transform: none;
}

.bc-av .bc-letter {
  line-height: 1;
}

.bc-av .bc-logo {
  display: none;
}

.bc-av.has-logo {
  padding: 0;
  background-color: transparent;
}

.bc-name {
  margin-top: 0.28rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.home-page .market-grid.cols-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-page .market-grid .ad-card.v2 {
  display: block;
}

.home-page .home-bodytype .ad-card.v2 .body,
.home-page #home-body-ads .ad-card.v2 .body {
  background: #fff;
}

.home-page .market-grid .ad-card.v2 .media {
  aspect-ratio: 4 / 3;
  height: auto;
}

@media (max-width: 1100px) {
  .home-brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-page .market-grid.cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-start-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-seller-card {
    flex-basis: calc((100% - 2 * 0.85rem) / 3);
    width: calc((100% - 2 * 0.85rem) / 3);
  }
}

.hf-field.span-2 { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-grid.is-full {
    text-align: left;
  }

  .hero-visual {
    justify-content: center;
    order: -1;
  }

  .hero-grid.is-full .hero-visual {
    justify-content: flex-end;
    order: 0;
  }

  .hero-visual img {
    width: min(100%, 420px);
    max-height: none;
  }

  .hero-slider {
    width: min(100%, 420px);
  }

  .hero-slide img {
    max-height: none;
  }

  .hqs-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-promo {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* CMS ad banners */
.home-banners {
  margin: 1.25rem 0 1.75rem;
}

.home-banners--hero {
  margin: 0 0 1.5rem;
  padding: 0 1rem;
}

.home-banners-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}

.home-banner {
  flex: 0 0 min(100%, 920px);
  scroll-snap-align: start;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #0f1218;
  box-shadow: 0 8px 24px rgba(15, 18, 24, 0.08);
}

.home-banners-track:has(.home-banner:only-child) .home-banner {
  flex-basis: 100%;
  max-width: 100%;
}

.home-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 5;
  object-fit: cover;
  vertical-align: middle;
}

.home-banners--mid .home-banner,
.home-banners--bottom .home-banner {
  flex-basis: min(100%, 100%);
}

@media (max-width: 720px) {
  .home-banners--hero {
    padding: 0;
  }
  .home-banner img {
    aspect-ratio: 16 / 6;
  }
}

@media (max-width: 640px) {
  .home-page .market-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}

