﻿.wh-header {
  background: #ffffff;
  border-bottom: 0;
}

.wh-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 32px 5px;
  border-bottom: 1px solid #eceef2;
}

.wh-meta-list {
  display: flex;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

.wh-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid #e8e9ee;
}

.wh-meta-item:first-child {
  padding-left: 0;
}

.wh-meta-item:last-child {
  border-right: 0;
}

.wh-meta-item img {
  width: 18px;
  height: 18px;
  opacity: 0.76;
}

.wh-meta-item strong {
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  color: #3a465e;
  font-weight: 700;
}

.wh-meta-item span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
  color: #6f7a90;
}

.wh-rating {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wh-rating-badge {
  width: 40px;
  height: auto;
  display: block;
}

.wh-rating-stars {
  color: #f6b82e;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 1.3px;
}

.wh-rating-text {
  margin-top: 3px;
  font-size: 14px;
  color: #68748c;
  white-space: nowrap;
}

.wh-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 6px 32px 8px;
}

.wh-brand {
  display: inline-flex;
  align-items: center;
  min-width: 360px;
  overflow: hidden;
  margin-left: -15px;
}

.wh-brand-image {
  width: 365px;
  height: auto;
  display: block;
  clip-path: inset(30px 0 30px 0);
  margin-top: -30px;
  margin-bottom: -30px;
}

.wh-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 30;
}

.wh-nav-item {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  z-index: 31;
}

.wh-nav-item.has-submenu {
}

.wh-nav-item.has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.wh-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  min-height: 42px;
  padding: 0 6px;
  border-radius: 999px;
  color: #202f49;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.wh-nav-link > span {
  display: inline-flex;
  align-items: center;
  line-height: 1.05;
  transform: translateY(-0.5px);
}

.wh-nav-link img {
  width: 15px;
  height: 15px;
  display: block;
  align-self: center;
}

.wh-nav-link.wh-nav-link-home {
  min-width: 42px;
  padding: 0 6px;
  gap: 6px;
}

.wh-nav-link:hover,
.wh-nav-link.is-active {
  background: #fdeaf2;
  color: #df3a7c;
}

.wh-caret {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1;
  margin-top: 0;
  transform: translateY(-0.5px);
  opacity: 0.72;
}

.wh-nav-link.no-submenu .wh-caret.is-disabled {
  opacity: 0.32;
}

.wh-nav-link.no-submenu {
  cursor: pointer;
}

.wh-nav-item.no-submenu .wh-caret.is-disabled {
  opacity: 0.32;
}

.wh-submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid #e4e8f0;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(19, 33, 68, 0.12);
  padding: 8px;
  display: none;
  z-index: 50;
}

.wh-submenu-link {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: #25344f;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.wh-nav-item.is-multi-column .wh-submenu {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  width: min(720px, 90vw);
  background: #f5f6f8;
  columns: 2;
  column-gap: 8px;
}

.wh-nav-item.is-multi-column:hover .wh-submenu,
.wh-nav-item.is-multi-column:focus-within .wh-submenu {
  display: block;
}

.wh-nav-item.is-multi-column .wh-submenu .wh-submenu-link {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.wh-submenu-link:hover,
.wh-submenu-link.is-active {
  background: #f2f6ff;
  color: #21488c;
}

.wh-nav-item.has-submenu:hover .wh-submenu,
.wh-nav-item.has-submenu:focus-within .wh-submenu {
  display: block;
}

.wh-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wh-action-circle {
  min-width: 78px;
  height: 58px;
  border-radius: 22px;
  border: 1px solid #e5e8ef;
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f6fa 100%);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  color: #5c6982;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(19, 33, 68, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  padding: 0 10px;
}

.wh-action-circle img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.wh-action-circle span {
  line-height: 1.1;
}

.wh-action-circle:hover {
  border-color: #d8deea;
  box-shadow: 0 12px 24px rgba(19, 33, 68, 0.09);
  transform: translateY(-1px);
}

.wh-cart {
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec3d80 0%, #e73379 100%);
  color: #ffffff;
  padding: 0 16px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 22px rgba(231, 51, 121, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wh-cart img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.wh-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(231, 51, 121, 0.28);
}

.wh-cart-count.badge-dot {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #e8387b;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wh-logout {
  height: 38px;
  border-radius: 999px;
  border: 1px solid #e9ebf0;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.wh-logout img {
  width: 15px;
  height: 15px;
}

.wh-mobile-row {
  display: none;
}

.wh-search-row {
  display: flex;
  justify-content: center;
  padding: 8px 32px 14px;
}

.wh-search-input {
  width: 50%;
  min-width: 280px;
  height: 48px;
  border: 1px solid #dce2eb;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 18px;
  font-size: 15px;
  color: #24324a;
  box-shadow: 0 8px 18px rgba(19, 33, 68, 0.05);
}

.wh-search-input::placeholder {
  color: #98a3b7;
}

.wh-search-input:focus {
  outline: none;
  border-color: #d76091;
  box-shadow: 0 10px 24px rgba(223, 58, 124, 0.12);
}

/* Produktseite bleibt bewusst luftiger als die restlichen Seiten */
body[data-page="product"] .wh-meta {
  padding-top: 22px;
}

@media (max-width: 1180px) {
  .wh-meta {
    padding: 0px 16px 5px;
    flex-wrap: wrap;
  }

  .wh-meta-list {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .wh-main {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 6px 16px 8px;
  }

  .wh-search-row {
    padding: 8px 16px 12px;
  }

  .wh-search-input {
    width: min(560px, 100%);
  }

  .wh-brand {
    min-width: 0;
  }

  .wh-brand-image {
    width: min(345px, 100%);
  }

  .wh-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
  }
}

@media (max-width: 860px) {
  .wh-meta {
    display: none;
  }

  .wh-main {
    gap: 10px;
    padding: 8px 14px 10px;
  }

  .wh-brand {
    min-width: 0;
    justify-content: center;
    margin-left: 0;
  }

  .wh-brand-image {
    width: min(295px, 100%);
  }

  .wh-nav {
    display: none;
  }

  .wh-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .wh-action-circle {
    min-width: 0;
    width: 100%;
    height: 54px;
    font-size: 12px;
    border-radius: 20px;
    gap: 6px;
    padding: 0 8px;
    justify-content: center;
  }

  .wh-action-circle span {
    min-width: 0;
    text-align: center;
  }

  .wh-cart {
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 13px;
    justify-content: center;
  }

  .wh-cart > span:not(.wh-cart-count) {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wh-logout {
    display: none;
  }

  .wh-mobile-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 14px 12px;
    border-top: 1px solid #eceef2;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .wh-mobile-row::-webkit-scrollbar {
    display: none;
  }

  .wh-search-row {
    padding: 8px 14px 12px;
  }

  .wh-search-input {
    width: 100%;
    min-width: 0;
    height: 44px;
  }

  .wh-mobile-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: #27344d;
    white-space: nowrap;
    background: #f7f8fb;
    scroll-snap-align: start;
  }

  .wh-mobile-link.wh-mobile-link-home {
    width: 36px;
    justify-content: center;
    padding: 0;
  }

  .wh-mobile-link.wh-mobile-link-home img {
    width: 15px;
    height: 15px;
    display: block;
  }

  .wh-mobile-link.is-active {
    color: #df3a7c;
    background: #fdeaf2;
  }
}

@media (max-width: 640px) {
  .wh-main {
    padding: 8px 10px 10px;
  }

  .wh-brand-image {
    width: min(255px, 100%);
  }

  .wh-actions {
    gap: 6px;
  }

  .wh-action-circle {
    height: 48px;
    border-radius: 16px;
    gap: 5px;
    padding: 0 6px;
    font-size: 11px;
  }

  .wh-action-circle img {
    width: 18px;
    height: 18px;
  }

  .wh-cart {
    height: 48px;
    padding: 0 10px;
    gap: 6px;
    font-size: 12px;
  }

  .wh-cart img {
    width: 20px;
    height: 20px;
  }

  .wh-cart-count.badge-dot {
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .wh-mobile-row {
    gap: 6px;
    padding: 0 10px 10px;
  }

  .wh-mobile-link {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .wh-mobile-link.wh-mobile-link-home {
    width: 34px;
  }

  .wh-search-row {
    padding: 6px 10px 12px;
  }

  .wh-search-input {
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }
}

