/* ═══════════════════════════════════════════════════════
   lx-home.css — Homepage styles
   (Blog sidebar, Hero, Search bar, Category grid)
   ═══════════════════════════════════════════════════════ */

/* ── Blog / Sidebar ───────────────────────────────────── */
.lx-homeBlog {
  margin: 0 0 18px;
}

.lx-homeBlog__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.lx-homeBlog__title {
  margin-bottom: 0;
}

.lx-homeBlog__cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

.lx-homeBlog__cta:hover {
  text-decoration: none;
}

.lx-homeBlog__list {
  display: grid;
  gap: 10px;
}

.lx-homeBlogItem {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--lx-line);
  background: var(--lx-card);
}

.lx-homeBlogItem__cover {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(34, 197, 94, 0.12));
  text-decoration: none;
}

.lx-homeBlogItem__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lx-homeBlogItem__cover.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
}

.lx-homeBlogItem__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(31, 42, 68, 0.80);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lx-homeBlogItem__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.lx-homeBlogItem__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lx-homeBlogItem__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.10);
  color: rgba(21, 128, 61, 0.95);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lx-homeBlogItem__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(31, 42, 68, 0.56);
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
}

.lx-homeBlogItem__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--lx-ink);
  font-size: 16px;
  line-height: 1.28;
  font-weight: 600;
  text-decoration: none;
}

.lx-homeBlogItem__title:hover {
  color: rgba(21, 128, 61, 0.95);
}

.lx-homeBlogItem__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.lx-homeBlogItem__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: rgba(31, 42, 68, 0.58);
  font-size: 12px;
  line-height: 1.35;
}

.lx-homeBlogItem__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.16);
  color: rgba(21, 128, 61, 0.95);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lx-homeBlogItem__more:hover {
  background: rgba(34, 197, 94, 0.15);
  color: rgba(21, 128, 61, 0.95);
}

.lx-homeSidebar .lx-blogStickyStack,
.lx-homeSidebarMobile .lx-blogStickyStack {
  display: grid;
  gap: 16px;
}

.lx-homeSidebarSticky {
  width: 100%;
}

.lx-homeSidebar .lx-blogPromoCard,
.lx-homeSidebarMobile .lx-blogPromoCard {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 214px;
  padding: 22px 26px;
  border-radius: 26px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 26px 46px rgba(15, 23, 42, 0.16);
  isolation: isolate;
}

.lx-homeSidebar .lx-blogPromoCard::before,
.lx-homeSidebar .lx-blogPromoCard::after,
.lx-homeSidebarMobile .lx-blogPromoCard::before,
.lx-homeSidebarMobile .lx-blogPromoCard::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  z-index: 0;
}

.lx-homeSidebar .lx-blogPromoCard::before,
.lx-homeSidebarMobile .lx-blogPromoCard::before {
  width: 210px;
  height: 210px;
  right: -58px;
  top: -26px;
}

.lx-homeSidebar .lx-blogPromoCard::after,
.lx-homeSidebarMobile .lx-blogPromoCard::after {
  width: 132px;
  height: 132px;
  right: 46px;
  bottom: -30px;
}

.lx-homeSidebar .lx-blogPromoCard--loan,
.lx-homeSidebarMobile .lx-blogPromoCard--loan {
  background: linear-gradient(135deg, #15cf41 0%, #16c56a 58%, #18d0bb 100%);
}

.lx-homeSidebar .lx-blogPromoCard--credit,
.lx-homeSidebarMobile .lx-blogPromoCard--credit {
  background: linear-gradient(135deg, #1294da 0%, #32b0f6 55%, #44b6f0 100%);
}

.lx-homeSidebar .lx-blogPromoCard__badge,
.lx-homeSidebar .lx-blogPromoCard__title,
.lx-homeSidebar .lx-blogPromoCard__text,
.lx-homeSidebar .lx-blogPromoCard__cta,
.lx-homeSidebarMobile .lx-blogPromoCard__badge,
.lx-homeSidebarMobile .lx-blogPromoCard__title,
.lx-homeSidebarMobile .lx-blogPromoCard__text,
.lx-homeSidebarMobile .lx-blogPromoCard__cta {
  position: relative;
  z-index: 1;
}

.lx-homeSidebar .lx-blogPromoCard__badge,
.lx-homeSidebarMobile .lx-blogPromoCard__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lx-homeSidebar .lx-blogPromoCard__title,
.lx-homeSidebarMobile .lx-blogPromoCard__title {
  max-width: 210px;
  margin-top: 16px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lx-homeSidebar .lx-blogPromoCard__text,
.lx-homeSidebarMobile .lx-blogPromoCard__text {
  max-width: 220px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.3;
}

.lx-homeSidebar .lx-blogPromoCard__cta,
.lx-homeSidebarMobile .lx-blogPromoCard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: inherit;
  font-size: 16px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.lx-homeSidebar .lx-blogPromoCard--loan .lx-blogPromoCard__cta,
.lx-homeSidebarMobile .lx-blogPromoCard--loan .lx-blogPromoCard__cta {
  color: #18c64b;
}

.lx-homeSidebar .lx-blogPromoCard--credit .lx-blogPromoCard__cta,
.lx-homeSidebarMobile .lx-blogPromoCard--credit .lx-blogPromoCard__cta {
  color: #1698e4;
}

.lx-homeSidebar .lx-blogPromoCard__cta::after,
.lx-homeSidebarMobile .lx-blogPromoCard__cta::after {
  content: "→";
  margin-left: 8px;
  line-height: 1;
}

.lx-homeSidebar .lx-blogPromoCard:hover,
.lx-homeSidebarMobile .lx-blogPromoCard:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 30px 52px rgba(15, 23, 42, 0.18);
}

@media (min-width: 1101px) {
  .lx-homeSidebar {
    display: grid;
    gap: 12px;
    align-content: start;
    overflow: visible;
    position: relative;
  }

  .lx-homeSidebar .lx-homeSidebarSticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .lx-homeBlog {
    margin-bottom: 16px;
  }

  .lx-homeBlog__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .lx-homeBlog__cta {
    align-self: start;
  }

  .lx-homeBlogItem {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .lx-homeBlogItem__title {
    font-size: 15px;
  }

  .lx-homeBlogItem__fallback {
    min-height: 26px;
    padding: 0 8px;
    font-size: 10px;
  }

  .lx-homeBlogItem__footer {
    align-items: stretch;
  }

  .lx-homeBlogItem__more {
    width: 100%;
    box-sizing: border-box;
  }

  .lx-homeSidebarMobile .lx-blogPromoCard__cta {
    width: 100%;
    box-sizing: border-box;
  }

  .lx-homeSidebarMobile .lx-blogPromoCard,
  .lx-homeSidebar .lx-blogPromoCard {
    min-height: 190px;
    padding: 18px 20px;
  }

  .lx-homeSidebarMobile .lx-blogPromoCard__title,
  .lx-homeSidebar .lx-blogPromoCard__title {
    font-size: 24px;
  }
}

/* ── Header center stays hidden only when empty ───────────────────── */
.lx-header__center:empty { display: none !important; }

/* ═══════════════════════════════════════════════════════
   Premium Hero 2.0
   ═══════════════════════════════════════════════════════ */
.lx-gHero {
  position: relative;
  padding: 20px 0 20px;
  background: #f9fafb;
  overflow: visible;
}

.lx-gHero__bg  { display: none; }
.lx-gHero__orb { display: none; }

.lx-gHero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lx-gHero__pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.lx-gHero__pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(75,88,124,.13);
  color: #374151;
  box-shadow: 0 1px 4px rgba(31,42,68,.07);
}

.lx-gHero__pill--smart {
  background: linear-gradient(135deg, rgba(79,70,229,.11), rgba(59,130,246,.09));
  border-color: rgba(99,102,241,.26);
  color: #4338ca;
}

.lx-gHero__ctaBtn {
  height: 38px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 38px !important;
}

.lx-gHero__activity {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.lx-gHero__activityLabel {
  flex: 0 0 auto;
  color: #17ab13;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lx-gHero__sellers {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0 2px 0 0;
  list-style: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.lx-gHero__sellerItem {
  min-width: 0;
}

.lx-gHero__sellerItem + .lx-gHero__sellerItem {
  margin-left: -7px;
}

.lx-gHero__seller {
  --lx-heroAvatarRing: rgba(118, 168, 226, 0.36);
  --lx-heroAvatarShadow: rgba(118, 168, 226, 0.17);
  --lx-heroAvatarHover: rgba(118, 168, 226, 0.24);
  --lx-heroAvatarStart: #e4f1ff;
  --lx-heroAvatarEnd: #cfdef3;
  --lx-heroAvatarText: #203b5d;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.96);
  background: linear-gradient(135deg, var(--lx-heroAvatarStart), var(--lx-heroAvatarEnd));
  box-shadow: 0 0 0 1px var(--lx-heroAvatarRing), 0 10px 24px var(--lx-heroAvatarShadow);
  color: #334155;
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lx-gHero__seller:hover {
  z-index: 2;
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 1px var(--lx-heroAvatarRing), 0 14px 30px var(--lx-heroAvatarHover);
  text-decoration: none;
}

.lx-gHero__sellerAvatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lx-gHero__sellerMark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: var(--lx-heroAvatarText);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--lx-heroAvatarStart), var(--lx-heroAvatarEnd));
}

.lx-gHero__sellerItem:nth-child(6n + 1) .lx-gHero__seller {
  --lx-heroAvatarRing: rgba(121, 172, 231, 0.37);
  --lx-heroAvatarShadow: rgba(121, 172, 231, 0.17);
  --lx-heroAvatarHover: rgba(121, 172, 231, 0.24);
  --lx-heroAvatarStart: #e4f1ff;
  --lx-heroAvatarEnd: #cfdef3;
  --lx-heroAvatarText: #203b5d;
}

.lx-gHero__sellerItem:nth-child(6n + 2) .lx-gHero__seller {
  --lx-heroAvatarRing: rgba(184, 166, 223, 0.37);
  --lx-heroAvatarShadow: rgba(184, 166, 223, 0.17);
  --lx-heroAvatarHover: rgba(184, 166, 223, 0.24);
  --lx-heroAvatarStart: #eee8fb;
  --lx-heroAvatarEnd: #dfd6f3;
  --lx-heroAvatarText: #443966;
}

.lx-gHero__sellerItem:nth-child(6n + 3) .lx-gHero__seller {
  --lx-heroAvatarRing: rgba(129, 183, 226, 0.37);
  --lx-heroAvatarShadow: rgba(129, 183, 226, 0.17);
  --lx-heroAvatarHover: rgba(129, 183, 226, 0.24);
  --lx-heroAvatarStart: #e1effe;
  --lx-heroAvatarEnd: #cfe2f7;
  --lx-heroAvatarText: #23415f;
}

.lx-gHero__sellerItem:nth-child(6n + 4) .lx-gHero__seller {
  --lx-heroAvatarRing: rgba(135, 165, 222, 0.37);
  --lx-heroAvatarShadow: rgba(135, 165, 222, 0.17);
  --lx-heroAvatarHover: rgba(135, 165, 222, 0.24);
  --lx-heroAvatarStart: #dfe8fb;
  --lx-heroAvatarEnd: #cad9f2;
  --lx-heroAvatarText: #223b59;
}

.lx-gHero__sellerItem:nth-child(6n + 5) .lx-gHero__seller {
  --lx-heroAvatarRing: rgba(137, 197, 176, 0.37);
  --lx-heroAvatarShadow: rgba(137, 197, 176, 0.17);
  --lx-heroAvatarHover: rgba(137, 197, 176, 0.24);
  --lx-heroAvatarStart: #e4f3ec;
  --lx-heroAvatarEnd: #d0e8de;
  --lx-heroAvatarText: #234c42;
}

.lx-gHero__sellerItem:nth-child(6n + 6) .lx-gHero__seller {
  --lx-heroAvatarRing: rgba(218, 194, 132, 0.37);
  --lx-heroAvatarShadow: rgba(218, 194, 132, 0.17);
  --lx-heroAvatarHover: rgba(218, 194, 132, 0.24);
  --lx-heroAvatarStart: #f9f1df;
  --lx-heroAvatarEnd: #ecdfb7;
  --lx-heroAvatarText: #554420;
}

/* ── Hero Search Bar ── */
.lx-gHero__search {
  position: relative;
  z-index: 200;
}

.lx-heroSearchWrap {
  position: relative;
  z-index: 200;
}

.lx-heroSearchWrap .custom-search {
  position: relative;
  width: 100% !important;
}

/* Magnifying glass icon on the left */
.lx-heroSearchWrap .custom-search::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23a0aec0' stroke-width='2'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%23a0aec0' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  z-index: 2;
  pointer-events: none;
  transition: opacity .15s;
}

.lx-heroSearchWrap .custom-search:focus-within::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%2317ab13' stroke-width='2'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%2317ab13' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.lx-heroSearchWrap .custom-search input.form-control {
  height: 58px !important;
  line-height: 58px !important;
  font-size: 16px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 14px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04) !important;
  padding: 0 155px 0 52px !important;
  color: #1f2937 !important;
  transition: border-color .2s, box-shadow .2s !important;
}

.lx-heroSearchWrap .custom-search input.form-control::placeholder {
  color: #b0b8c4 !important;
  font-weight: 400 !important;
}

.lx-heroSearchWrap .custom-search input.form-control:focus {
  border-color: #17ab13 !important;
  box-shadow: 0 4px 22px rgba(23,171,19,.16), 0 1px 4px rgba(0,0,0,.05) !important;
  outline: none !important;
}

/* Button — pill inside pill */
.lx-heroSearchWrap .custom-search .search-button {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 28px !important;
  border-radius: 999px !important;
  background: #17ab13 !important;
  border: none !important;
  cursor: pointer !important;
  transition: background .15s, box-shadow .15s !important;
  font-size: 0 !important;
}

.lx-heroSearchWrap .custom-search .search-button::before {
  content: "Найти";
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #fff !important;
  letter-spacing: .01em;
  font-family: inherit;
  white-space: nowrap;
}

.lx-heroSearchWrap .custom-search .search-button svg,
.lx-heroSearchWrap .custom-search .search-button img,
.lx-heroSearchWrap .custom-search .search-button .icon,
.lx-heroSearchWrap .custom-search .search-button .ico-search-icon,
.lx-heroSearchWrap .custom-search .search-button .lx-heroSearchBtn {
  display: none !important;
}

.lx-heroSearchWrap .custom-search .search-button:hover {
  background: #149910 !important;
  box-shadow: 0 3px 14px rgba(23,171,19,.4) !important;
}

/* ── Dropdown ── */
.lx-heroSearchWrap .custom-search .dropdown {
  position: absolute;
  left: 0 !important;
  right: 0 !important;
  top: 66px !important;
  background: #fff !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06) !important;
  border: 1px solid #e9ecef !important;
  overflow: hidden !important;
  z-index: 300 !important;
}

.lx-heroSearchWrap .custom-search .suggestions-header {
  padding: 12px 16px 6px !important;
}

.lx-heroSearchWrap .custom-search .suggestions-header div {
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #9ca3af !important;
}

.lx-heroSearchWrap .custom-search .suggestions {
  padding: 6px 8px 8px !important;
  max-height: min(60vh, 380px) !important;
  overflow-y: auto !important;
}

.lx-heroSearchWrap .custom-search .suggestion {
  display: flex !important;
  align-items: center !important;
  padding: 9px 10px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: background .12s !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  color: #1f2937 !important;
}

.lx-heroSearchWrap .custom-search .suggestion:hover,
.lx-heroSearchWrap .custom-search .suggestion.selected {
  background: #f0fdf4 !important;
}

.lx-heroSearchWrap .custom-search .suggestion .lx-sugRow {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.lx-heroSearchWrap .custom-search .suggestion .lx-sugRow--stack {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
}

.lx-heroSearchWrap .custom-search .suggestion .lx-sugTitle {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  font-weight: 400 !important;
  color: #1f2937 !important;
}

.lx-heroSearchWrap .custom-search .suggestion .lx-sugTitle b {
  font-weight: 700 !important;
  color: #111827 !important;
}

/* Badge pill: "Поиск" / "Категория" / "Запрос" */
.lx-heroSearchWrap .custom-search .suggestion .lx-sugMeta {
  flex: 0 0 auto !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  color: #6b7280 !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.lx-heroSearchWrap .custom-search .suggestion .lx-sugSub {
  display: block !important;
  font-size: 12px !important;
  color: #9ca3af !important;
  font-weight: 400 !important;
  margin-top: 1px !important;
}

/* ── Auth search block (above recent listings) ── */
.lx-authSearch {
  padding: 16px 0 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 6px;
}

.lx-authSearch__bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.lx-authSearch__bar .lx-gHero__activity {
  flex: 0 1 auto;
  justify-content: flex-start;
  gap: 0;
}

.lx-authSearch__bar .lx-gHero__activityLabel {
  display: none;
}

.lx-authSearch__bar .lx-gHero__sellers {
  justify-content: flex-start;
}

.lx-authSearch__bar .lx-gHero__ctaBtn {
  margin-left: auto;
}

/* ── Chips ── */
.lx-gHero__chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  margin-top: 8px;
  /* padding-top gives room for hover translateY without overflow-y clipping */
  padding-top: 4px;
  padding-bottom: 4px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lx-gHero__chips::-webkit-scrollbar { display: none; }

.lx-gChip { flex-shrink: 0; }

.lx-gChip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(75,88,124,.13);
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(31,42,68,.05);
  transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .12s;
}

.lx-gChip:hover {
  background: #fff;
  border-color: rgba(23,171,19,.35);
  color: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(31,42,68,.09);
}

/* ═══════════════════════════════════════════════════════
   Category Grid — Colorful Cards
   ═══════════════════════════════════════════════════════ */
.lx-gCats {
  background: #f3f4f6;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(75,88,124,.09);
  border-bottom: 1px solid rgba(75,88,124,.09);
}

.lx-gCats__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.lx-gCat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid rgba(75,88,124,.10);
  text-decoration: none;
  min-width: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(31,42,68,.06);
  transition:
    transform .2s cubic-bezier(.34,1.56,.64,1),
    box-shadow .2s ease,
    border-color .2s ease;
}

.lx-gCat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.55), transparent 60%);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.lx-gCat:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(31,42,68,.13);
}

.lx-gCat:hover::after { opacity: 1; }

.lx-gCat__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.lx-gCat__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.lx-gCat__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.lx-gCat__name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lx-gCat__sub {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lx-gCat__arr {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  transition: color .15s, transform .15s;
  position: relative;
  z-index: 1;
  color: #d1d5db;
}

.lx-gCat:hover .lx-gCat__arr { transform: translateX(3px); }

/* ── Icon background gradients ── */
.lx-gCat__icon--auto    { background: linear-gradient(145deg, #d9f0ff, #6ec2ff); }
.lx-gCat__icon--build   { background: linear-gradient(145deg, #f6efde, #d7bd8d); }
.lx-gCat__icon--biz     { background: linear-gradient(145deg, #e3e9ff, #98b0ff); }
.lx-gCat__icon--cloth   { background: linear-gradient(145deg, #d5fbef, #5ad8b4); }
.lx-gCat__icon--hobby   { background: linear-gradient(145deg, #d9f6ff, #72d4f6); }
.lx-gCat__icon--animal  { background: linear-gradient(145deg, #e8fbef, #9cd7a8); }
.lx-gCat__icon--equip   { background: linear-gradient(145deg, #eef2f6, #bec9d4); }
.lx-gCat__icon--electro { background: linear-gradient(145deg, #f0eaff, #c9b3ff); }
.lx-gCat__icon--home2   { background: linear-gradient(145deg, #d8f8e4, #49cb8c); }
.lx-gCat__icon--spare   { background: linear-gradient(145deg, #e7efff, #a6bbdf); }
.lx-gCat__icon--kids    { background: linear-gradient(145deg, #eef4ff, #b8caf4); }
.lx-gCat__icon--furn    { background: linear-gradient(145deg, #edf1f7, #bcc9dd); }
.lx-gCat__icon--shoes   { background: linear-gradient(145deg, #eef9ce, #badf68); }
.lx-gCat__icon--beauty  { background: linear-gradient(145deg, #f6edff, #d7b4ef); }

/* ── Colorful card tints — each category gets its own colour ── */
.lx-gCat:has(.lx-gCat__icon--auto)    { background: #eef9ff; border-color: #abdfff; }
.lx-gCat:has(.lx-gCat__icon--build)   { background: #fcf7ef; border-color: #e4d2ac; }
.lx-gCat:has(.lx-gCat__icon--biz)     { background: #f2f5ff; border-color: #c6d4ff; }
.lx-gCat:has(.lx-gCat__icon--cloth)   { background: #effdf9; border-color: #a5f1d9; }
.lx-gCat:has(.lx-gCat__icon--hobby)   { background: #f0fbff; border-color: #b0e9fb; }
.lx-gCat:has(.lx-gCat__icon--animal)  { background: #f5fff7; border-color: #bde8c6; }
.lx-gCat:has(.lx-gCat__icon--equip)   { background: #fafbfd; border-color: #d7dee8; }
.lx-gCat:has(.lx-gCat__icon--electro) { background: #f8f4ff; border-color: #dfd1ff; }
.lx-gCat:has(.lx-gCat__icon--home2)   { background: #eefcf3; border-color: #99e2b7; }
.lx-gCat:has(.lx-gCat__icon--spare)   { background: #f5f8ff; border-color: #c9d8f0; }
.lx-gCat:has(.lx-gCat__icon--kids)    { background: #f7faff; border-color: #d7e2f8; }
.lx-gCat:has(.lx-gCat__icon--furn)    { background: #f6f7fb; border-color: #d6dcec; }
.lx-gCat:has(.lx-gCat__icon--shoes)   { background: #f8fde9; border-color: #d7e9aa; }
.lx-gCat:has(.lx-gCat__icon--beauty)  { background: #fcf7ff; border-color: #e6d2f7; }

/* Hover: stronger accent border matching each category colour */
.lx-gCat:has(.lx-gCat__icon--auto):hover    { border-color: #2597dd; }
.lx-gCat:has(.lx-gCat__icon--build):hover   { border-color: #b4884d; }
.lx-gCat:has(.lx-gCat__icon--biz):hover     { border-color: #5d79f0; }
.lx-gCat:has(.lx-gCat__icon--cloth):hover   { border-color: #19b887; }
.lx-gCat:has(.lx-gCat__icon--hobby):hover   { border-color: #0891b2; }
.lx-gCat:has(.lx-gCat__icon--animal):hover  { border-color: #4ca56a; }
.lx-gCat:has(.lx-gCat__icon--equip):hover   { border-color: #7b8a9f; }
.lx-gCat:has(.lx-gCat__icon--electro):hover { border-color: #8b5cf6; }
.lx-gCat:has(.lx-gCat__icon--home2):hover   { border-color: #0f9f63; }
.lx-gCat:has(.lx-gCat__icon--spare):hover   { border-color: #5879b8; }
.lx-gCat:has(.lx-gCat__icon--kids):hover    { border-color: #7e9fe0; }
.lx-gCat:has(.lx-gCat__icon--furn):hover    { border-color: #66789d; }
.lx-gCat:has(.lx-gCat__icon--shoes):hover   { border-color: #7cb518; }
.lx-gCat:has(.lx-gCat__icon--beauty):hover  { border-color: #ad63d5; }

/* Hover arrow colour per category */
.lx-gCat:has(.lx-gCat__icon--auto):hover    .lx-gCat__arr { color: #2597dd; }
.lx-gCat:has(.lx-gCat__icon--build):hover   .lx-gCat__arr { color: #b4884d; }
.lx-gCat:has(.lx-gCat__icon--biz):hover     .lx-gCat__arr { color: #5d79f0; }
.lx-gCat:has(.lx-gCat__icon--cloth):hover   .lx-gCat__arr { color: #19b887; }
.lx-gCat:has(.lx-gCat__icon--hobby):hover   .lx-gCat__arr { color: #0891b2; }
.lx-gCat:has(.lx-gCat__icon--animal):hover  .lx-gCat__arr { color: #4ca56a; }
.lx-gCat:has(.lx-gCat__icon--equip):hover   .lx-gCat__arr { color: #7b8a9f; }
.lx-gCat:has(.lx-gCat__icon--electro):hover .lx-gCat__arr { color: #8b5cf6; }
.lx-gCat:has(.lx-gCat__icon--home2):hover   .lx-gCat__arr { color: #0f9f63; }
.lx-gCat:has(.lx-gCat__icon--spare):hover   .lx-gCat__arr { color: #5879b8; }
.lx-gCat:has(.lx-gCat__icon--kids):hover    .lx-gCat__arr { color: #7e9fe0; }
.lx-gCat:has(.lx-gCat__icon--furn):hover    .lx-gCat__arr { color: #66789d; }
.lx-gCat:has(.lx-gCat__icon--shoes):hover   .lx-gCat__arr { color: #7cb518; }
.lx-gCat:has(.lx-gCat__icon--beauty):hover  .lx-gCat__arr { color: #ad63d5; }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .lx-gHero__activity {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .lx-authSearch__bar .lx-gHero__activity {
    width: auto;
    flex: 0 1 auto;
    justify-content: flex-start;
    gap: 0;
  }

  .lx-gHero__activityLabel {
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  .lx-gCats__grid { gap: 8px; }
  .lx-gCat { padding: 11px 10px; gap: 8px; }
  .lx-gCat__icon img { width: 30px; height: 30px; }
  .lx-gCat__name { font-size: 12.5px; }
}

@media (max-width: 960px) {
  .lx-gCats__grid { grid-template-columns: repeat(4, 1fr); }

  .lx-gHero__sellers {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 2px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .lx-gHero__sellers::-webkit-scrollbar { display: none; }
}

@media (max-width: 520px) {
  .lx-gHero { padding: 14px 0 16px; }
  .lx-gHero__bar,
  .lx-authSearch__bar {
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .lx-gHero__pill { height: 28px; padding: 0 11px; font-size: 12px; }
  .lx-gHero__ctaBtn {
    height: 32px !important;
    line-height: 32px !important;
    padding: 0 12px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
  }
  .lx-gHero__activity { display: none; }
  .lx-gHero__activityLabel { display: none; }
  .lx-gHero__sellers { display: none; }
  .lx-authSearch__bar .lx-gHero__ctaBtn { margin-left: 0; }
  .lx-gCats__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lx-gCat { padding: 11px 10px; }
  .lx-gCat__sub { display: none; }
}
