.rt-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: #1b1f25;
  border-bottom: 1px solid #0f1318;
}

.rt-topbar {
  background: linear-gradient(90deg, #0f1318, #161b22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rt-topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #c8d0da;
  font-size: 0.82rem;
}

.rt-topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rt-bullet {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f2c94c;
  box-shadow: 0 0 0 4px rgba(242, 201, 76, 0.18);
}

.rt-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

.rt-topbar-right a {
  color: #c8d0da;
  text-decoration: none;
}

.rt-topbar-right a:hover {
  color: #f2c94c;
}

.rt-mainbar {
  background: #1f252d;
}

.rt-mainbar-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.rt-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.rt-brand img {
  height: 46px;
  width: auto;
  display: block;
}

.rt-brand-meta {
  flex-direction: column;
  line-height: 1.1;
}

.rt-brand-title {
  color: #f4f7fa;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rt-brand-subtitle {
  color: #9ba7b4;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rt-search {
  display: flex;
  align-items: stretch;
  height: 42px;
  position: relative;
}

.rt-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #2f3945;
  border-right: 0;
  background: #11161c;
  color: #eef2f7;
  border-radius: 8px 0 0 8px;
  padding: 0 0.85rem;
  font-size: 0.95rem;
}

.rt-search input::placeholder {
  color: #8693a2;
}

.rt-search input:focus {
  outline: none;
  border-color: #f2c94c;
}

.rt-search button {
  border: 1px solid #f2c94c;
  background: #f2c94c;
  color: #11161c;
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 1rem;
}

.rt-search button:hover {
  background: #ffd866;
  border-color: #ffd866;
}

.rt-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1080;
  background: #ffffff;
  border: 1px solid #d3d9e1;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(3, 8, 16, 0.18);
  max-height: 340px;
  overflow-y: auto;
}

.rt-search-suggestion-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e5e9ef;
  background: #ffffff;
  padding: 0.55rem 0.65rem;
  text-align: left;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.rt-search-suggestion-item:last-child {
  border-bottom: 0;
}

.rt-search-suggestion-item:hover,
.rt-search-suggestion-item.active {
  background: #f2f6fb;
}

.rt-search-suggestion-artnr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 700;
  color: #11161c;
}

.rt-search-suggestion-name {
  color: #1f2937;
}

.rt-search-suggestion-brand {
  color: #4b5563;
  font-size: 0.84rem;
}

.rt-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.rt-action-link {
  border: 1px solid #d6dbe2;
  background: #ffffff;
  color: #11161c;
  min-height: 38px;
  border-radius: 8px;
  padding: 0.42rem 0.62rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.rt-action-link:hover {
  color: #11161c;
  background: #f2c94c;
  border-color: #f2c94c;
}

.rt-action-link img {
  opacity: 1;
}

.rt-login-btn {
  border: 1px solid #f2c94c;
  background: transparent;
  color: #f2c94c;
  min-height: 38px;
  border-radius: 8px;
  padding: 0.48rem 0.95rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.rt-login-btn:hover {
  color: #11161c;
  background: #f2c94c;
}

.rt-cats {
  background: #12171d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.rt-cats-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}

.rt-cats-inner::-webkit-scrollbar {
  display: none;
}

.rt-main-nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
  min-width: 100%;
  overflow: visible;
  flex-wrap: nowrap;
}

.rt-main-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.rt-main-nav-list .rt-main-nav-link,
.rt-main-nav-list .tab.rt-main-nav-link {
  white-space: nowrap;
  border: 1px solid transparent !important;
  background: transparent;
  color: #d5dee8;
  min-height: 38px;
  border-radius: 7px;
  padding: 0.45rem 0.78rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.rt-main-nav-list .rt-main-nav-link:hover,
.rt-main-nav-list .tab.rt-main-nav-link:hover {
  color: #f2c94c;
  border-color: rgba(242, 201, 76, 0.38) !important;
  background: rgba(242, 201, 76, 0.08);
}

.rt-main-nav-list .rt-main-nav-link.active,
.rt-main-nav-list .tab.rt-main-nav-link.active {
  background: #f2c94c;
  color: #11161c;
  border-color: #f2c94c !important;
  border-bottom: 1px solid #f2c94c !important;
}

.rt-main-submenu {
  position: fixed;
  top: 128px;
  left: 20px;
  min-width: 320px;
  max-width: 460px;
  max-height: 60vh;
  overflow: auto;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem;
  border: 1px solid rgba(242, 201, 76, 0.35);
  border-radius: 10px;
  background: #0f141b;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  z-index: 1200;
}

.rt-main-nav-item:hover > .rt-main-submenu,
.rt-main-nav-item:focus-within > .rt-main-submenu {
  display: flex;
}

.rt-main-submenu-link {
  display: block;
  color: #d9e3ef;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 8px;
  padding: 0.42rem 0.56rem;
}

.rt-main-submenu-link:hover,
.rt-main-submenu-link.active {
  background: rgba(242, 201, 76, 0.14);
  color: #f2c94c;
}

#navbar-warenkorb-btn {
  line-height: 1;
}

#warenkorb-summe {
  font-size: 0.82rem;
  font-weight: 700;
  color: inherit;
}

.warenkorb-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.warenkorb-count-badge {
  position: absolute;
  top: -7px;
  left: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f2c94c;
  color: #11161c;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.icon-small {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: middle;
}

#warenkorbModal .wk-menge-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

#warenkorbModal .wk-qty-wrap {
  width: 92px;
}

#warenkorbModal .wk-menge-input {
  font-weight: 600;
  font-size: 0.95rem;
}

#warenkorbModal .wk-stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  border-radius: 999px;
  padding: 0.13rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  line-height: 1.2;
}

#warenkorbModal .wk-stock-pill.is-available {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

#warenkorbModal .wk-stock-pill.is-unavailable {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

@media (max-width: 991.98px) {
  .rt-mainbar-inner {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .rt-brand {
    justify-content: center;
  }

  .rt-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .rt-search {
    order: 3;
  }

  .rt-main-submenu {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    max-width: none;
    min-width: 0;
    max-height: 46vh;
  }
}

@media (max-width: 575.98px) {
  .rt-main-nav-link {
    min-height: 34px;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }

  .rt-action-link,
  .rt-login-btn {
    min-height: 34px;
    padding: 0.35rem 0.55rem;
  }
}
