/* Shared storefront topline + search (subset of app-catalog.css). */
.catalog-topline__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  border-radius: 3px;
  border: 1px solid #d94642;
  min-width: 192px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
  will-change: transform;
}
.catalog-topline__trigger-top {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.catalog-topline__trigger--with-section {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.catalog-topline__trigger-section {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.92;
  padding-top: 5px;
  margin-top: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-topline__trigger-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: calc(13px * 1.05);
  font-weight: 700;
  line-height: 1.15;
}
.catalog-topline__trigger:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.catalog-topline__trigger:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: none;
}
.catalog-topline__trigger small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 22px;
  height: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  opacity: 1;
  padding: 3px 7px;
}
.catalog-topline__trigger-top > span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  font-size: 1.05rem;
  transform: translateY(0.5px);
}
.catalog-topline__search {
  display: block;
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, #3a3f52 0%, #323746 100%);
  border: 1px solid #4a4d5d;
  border-radius: 12px;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.catalog-topline__search-main {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 46px;
  margin: 3px;
  background: linear-gradient(180deg, #4a5068 0%, #42485c 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 2px 8px rgba(0, 0, 0, 0.18);
}
.catalog-topline__search:focus-within {
  border-color: rgba(158, 203, 255, 0.9);
  box-shadow:
    0 0 0 3px rgba(134, 179, 209, 0.32),
    0 4px 20px rgba(0, 0, 0, 0.2);
}
.catalog-topline__search:focus-within .catalog-topline__search-main {
  border-color: rgba(200, 230, 255, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 0 0 1px rgba(158, 203, 255, 0.25) inset;
}
.catalog-topline__search-main > input[type="text"],
.catalog-topline__search-main > input[name="q"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  background: transparent;
  border: 0;
  outline: none;
  color: #f8f9ff;
  padding: 13px 6px 13px 14px;
  font-size: 13px;
  border-radius: 9px 0 0 9px;
}
.catalog-topline__search-main > input[type="text"]::placeholder,
.catalog-topline__search-main > input[name="q"]::placeholder {
  color: #d4dae8;
}
.catalog-topline__live-count {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  align-self: stretch;
  max-width: min(200px, 46vw);
  padding: 0 6px 0 2px;
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  color: #c5cad8;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.catalog-topline__live-count.is-loading {
  color: #9aa3b8;
  font-weight: 500;
}
.catalog-topline__search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  min-width: 46px;
  margin: 0;
  border: 0;
  border-radius: 0 11px 11px 0;
  background: rgba(255, 255, 255, 0.04);
  color: #a8b0c8;
  cursor: pointer;
  z-index: 2;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}
.catalog-topline__search-submit:hover {
  background: rgba(134, 179, 209, 0.18);
  color: #e8ecff;
}
.catalog-topline__search-submit:active {
  transform: scale(0.96);
}
.catalog-topline__search-submit:focus-visible {
  outline: 2px solid rgba(134, 179, 209, 0.95);
  outline-offset: 2px;
}
.catalog-topline__search-icon {
  display: block;
  width: 19px;
  height: 19px;
}
.catalog-search-suggest {
  position: absolute;
  left: -1px;
  right: -1px;
  top: calc(100% + 6px);
  background: #2b3040;
  border: 1px solid #4a4d5d;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
  max-height: 380px;
  overflow: auto;
  z-index: 60;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 220ms ease;
}
.catalog-search-suggest.is-open {
  opacity: 1;
  transform: translateY(0);
}
.catalog-search-suggest__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 8px 10px;
  align-items: center;
  padding: 9px 10px;
  color: #edf1ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.catalog-search-suggest__link {
  display: contents;
  text-decoration: none;
  color: inherit;
}
.catalog-search-suggest__item:last-child {
  border-bottom: 0;
}
.catalog-search-suggest__item:has(+ .catalog-search-suggest__more) {
  border-bottom: 0;
}
.catalog-search-suggest__more {
  display: block;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #9ecbff;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.catalog-search-suggest__more:hover {
  color: #cfe6ff;
  background: rgba(134, 179, 209, 0.12);
}
.catalog-search-suggest__item:hover,
.catalog-search-suggest__item.is-active {
  background: rgba(134, 179, 209, 0.18);
}
.catalog-search-suggest__img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
}
.catalog-search-suggest__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.catalog-search-suggest__body {
  display: grid;
  gap: 2px;
}
.catalog-search-suggest__name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-search-suggest__meta {
  color: #b9c6df;
  font-size: 11px;
}
.catalog-search-suggest__price {
  white-space: nowrap;
  color: var(--price-on-dark);
  font-size: 12px;
  font-weight: 700;
}
.catalog-search-suggest__cart {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  min-height: 0;
}
.catalog-topline__links {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 44px;
  overflow: visible;
}
.catalog-topline__phone {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  text-decoration: none;
  color: #f4f6ff;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.catalog-topline__phone:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.catalog-topline__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  color: inherit;
}
.catalog-topline__phone-icon svg {
  display: block;
  width: 30px;
  height: 30px;
}
.catalog-topline__phone-handset {
  transform-origin: 18px 8px;
}
.catalog-topline__phone-wave {
  opacity: 0.35;
}
@keyframes catalog-topline-phone-ring {
  0%,
  100% {
    transform: rotate(0deg);
  }
  12% {
    transform: rotate(-10deg);
  }
  24% {
    transform: rotate(8deg);
  }
  36% {
    transform: rotate(-6deg);
  }
  48% {
    transform: rotate(4deg);
  }
  60% {
    transform: rotate(0deg);
  }
}
@keyframes catalog-topline-phone-wave {
  0%,
  100% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
  70% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .catalog-topline__phone-handset {
    animation: catalog-topline-phone-ring 1.6s ease-in-out infinite;
  }
  .catalog-topline__phone-wave--1 {
    animation: catalog-topline-phone-wave 1.6s ease-in-out infinite;
  }
  .catalog-topline__phone-wave--2 {
    animation: catalog-topline-phone-wave 1.6s 0.2s ease-in-out infinite;
  }
}
.catalog-topline__phone-number {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.catalog-topline__link--icon-only {
  min-width: 44px;
  padding-left: 10px;
  padding-right: 10px;
  z-index: 2;
  overflow: visible;
}
.catalog-topline__link--icon-only .catalog-topline__icon {
  font-size: 20px;
}
.catalog-topline__link {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  color: #eceffa;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(180deg, #2f3444 0%, #292d3a 100%);
  box-shadow: none;
  transition: transform 180ms ease, color 180ms ease, filter 180ms ease, box-shadow 220ms ease;
  will-change: transform;
}
.catalog-topline__link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
.catalog-topline__link:active {
  transform: translateY(0);
  filter: brightness(0.96);
}
.catalog-topline__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
  line-height: 1;
}
.catalog-topline__link--cart {
  align-items: center;
  gap: 6px;
}
.catalog-topline__hint,
.catalog-topline__cabinet-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  top: auto;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: 6px;
  background: #1e293b;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  max-width: min(240px, calc(100vw - 24px));
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}
.catalog-topline__hint::after,
.catalog-topline__cabinet-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}
.catalog-topline__link--icon-only:hover,
.catalog-topline__link--icon-only:focus-visible {
  z-index: 40;
  filter: none;
}
.catalog-topline__link--icon-only:hover .catalog-topline__hint,
.catalog-topline__link--icon-only:focus-visible .catalog-topline__hint,
.catalog-topline__link--icon-only:hover .catalog-topline__cabinet-hint,
.catalog-topline__link--icon-only:focus-visible .catalog-topline__cabinet-hint,
#catalogCabinetLink:hover .catalog-topline__cabinet-hint,
#catalogCabinetLink:focus-visible .catalog-topline__cabinet-hint {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 900px) {
  .catalog-topline__hint,
  .catalog-topline__cabinet-hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-topline__hint,
  .catalog-topline__cabinet-hint {
    transition: none;
  }
  .catalog-topline__link--icon-only:hover .catalog-topline__hint,
  .catalog-topline__link--icon-only:focus-visible .catalog-topline__hint,
  .catalog-topline__link--icon-only:hover .catalog-topline__cabinet-hint,
  .catalog-topline__link--icon-only:focus-visible .catalog-topline__cabinet-hint,
  #catalogCabinetLink:hover .catalog-topline__cabinet-hint,
  #catalogCabinetLink:focus-visible .catalog-topline__cabinet-hint {
    transform: translateX(-50%);
  }
}
.catalog-topline__cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  min-width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0 4px;
}
@media (max-width: 1300px) and (min-width: 901px) {
  .catalog-topline {
    grid-template-columns: 204px minmax(260px, 1.5fr) auto auto;
  }
  .catalog-topline__links {
    row-gap: 8px;
  }
}

@media (max-width: 1220px) and (min-width: 901px) {
  .topbar__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }
  .topbar__left {
    flex: 0 1 auto;
    width: 100%;
    max-width: 920px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
  .topbar-track {
    text-align: center;
  }
  .topbar-support {
    justify-content: center;
  }
  .topnav {
    flex: 0 1 auto;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 0;
    margin-inline-start: 0;
  }
  .catalog-topline {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    justify-items: center;
    gap: 10px;
  }
  .catalog-topline__trigger {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 420px;
    min-width: 0;
    justify-self: center;
  }
  .catalog-topline__search {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
  .catalog-topline__phone {
    width: 100%;
    max-width: 420px;
    justify-self: center;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
  }
  .catalog-topline__links {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 960px;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

.catalog-topline__icon--compare {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(1.25rem * 1.1);
  height: calc(1.25rem * 1.1);
}
.catalog-topline__icon--compare::before {
  content: "\21c4";
  font-size: calc(14px * 1.1);
  line-height: 1;
  opacity: 0.92;
}
.catalog-topline__link[href*="favorites"] .catalog-topline__icon {
  font-size: calc(17px * 1.1);
}

/* theme-forest topline (configurator) */
.theme-forest .catalog-topline {
  background: #ffffff;
  border-color: #d2d2d7;
}
.theme-forest .catalog-topline__phone {
  background: #fff5f5;
  border-color: rgba(200, 51, 47, 0.35);
  color: var(--forest-cta);
}
.theme-forest .catalog-topline__phone:hover {
  background: #ffecec;
  border-color: var(--forest-cta);
  color: var(--forest-cta-hover);
}
.theme-forest .catalog-topline__phone-number {
  color: #1d1d1f;
}
.theme-forest .catalog-topline__search {
  background: #ffffff;
  border: 2px solid var(--forest-cta-border);
  box-shadow:
    0 0 0 1px rgba(200, 51, 47, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 8px 22px rgba(200, 51, 47, 0.12);
}
.theme-forest .catalog-topline__search:focus-within {
  border-color: var(--forest-cta);
  box-shadow:
    0 0 0 3px rgba(200, 51, 47, 0.22),
    0 8px 24px rgba(200, 51, 47, 0.16);
}
.theme-forest .catalog-topline__search-main {
  background: #ffffff;
  border-color: rgba(200, 51, 47, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 1px 5px rgba(0, 0, 0, 0.06);
}
.theme-forest .catalog-topline__search:focus-within .catalog-topline__search-main {
  border-color: rgba(200, 51, 47, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(200, 51, 47, 0.18) inset;
}
.theme-forest .catalog-topline__trigger {
  background: var(--forest-cta);
  border-color: var(--forest-cta-border);
  color: #fff;
  font-weight: 700;
}
.theme-forest .catalog-topline:not(.catalog-topline--shared) .catalog-topline__trigger {
  background: var(--forest-cta) !important;
  border-color: var(--forest-cta-border) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.theme-forest .catalog-topline:not(.catalog-topline--shared) .catalog-topline__trigger:hover {
  background: var(--forest-cta-hover) !important;
  border-color: var(--forest-cta-hover) !important;
  color: #fff !important;
}
.theme-forest .catalog-topline:not(.catalog-topline--shared) .catalog-topline__trigger-title {
  flex: 0 1 auto;
  min-width: 0;
}
.theme-forest .catalog-topline:not(.catalog-topline--shared) .catalog-topline__trigger small {
  margin-left: 0;
  background: var(--forest-cta-badge);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.theme-forest .catalog-topline__link {
  color: #1d1d1f;
  border: none;
  background: #fff5f5;
  box-shadow: none;
}
.theme-forest .catalog-topline__link:hover {
  background: #ffeaea;
  box-shadow: 0 6px 16px rgba(180, 35, 24, 0.12);
}
.theme-forest .catalog-topline__link:active {
  background: #ffe0e0;
  box-shadow: none;
}
.theme-forest .catalog-topline__hint,
.theme-forest .catalog-topline__cabinet-hint {
  background: #1d1d1f;
  color: #fff;
}
.theme-forest .catalog-topline__hint::after,
.theme-forest .catalog-topline__cabinet-hint::after {
  border-top-color: #1d1d1f;
  border-bottom-color: transparent;
}
.theme-forest .catalog-topline__cart-count {
  background: var(--forest-cta) !important;
  color: #fff;
}
.theme-forest .catalog-topline__search-main input[type="text"],
.theme-forest .catalog-topline__search-main input[name="q"] {
  color: #1d1d1f;
}
.theme-forest .catalog-topline__search-main input[type="text"]::placeholder,
.theme-forest .catalog-topline__search-main input[name="q"]::placeholder {
  color: #636366;
}
.theme-forest .catalog-topline__live-count {
  color: #515154;
  border-left-color: rgba(200, 51, 47, 0.18);
}
.theme-forest .catalog-topline__live-count.is-loading {
  color: #86868b;
}
.theme-forest .catalog-topline__search-submit {
  background: var(--forest-cta);
  color: #ffffff;
  border-radius: 0 8px 8px 0;
}
.theme-forest .catalog-topline__search-submit:hover {
  background: var(--forest-cta-hover);
  color: #ffffff;
}
.theme-forest .catalog-topline__search-submit:focus-visible {
  outline-color: var(--forest-cta);
}
