/**
 * Shared shell: Vergleich-Detail / PDP header row (Kategorien + search + profile).
 * Loaded by homepage (index.php) and via @import from catalog-product-page.css.
 */
:root{
  --max:1760px;
}

.site-header__inner{
  width:min(100%, var(--max));
  margin:0 auto;
  padding:0 20px;
}

.site-header__top{
  min-height:68px;
  padding:10px 0;
  display:flex;
  align-items:center;
  gap:16px;
}

.site-header__brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#0f172a;
  flex:0 0 auto;
  text-decoration:none;
}

.site-header__logo{
  width:28px;
  height:28px;
  object-fit:contain;
}

.site-header__brandText{
  font-size:24px;
  font-weight:800;
  letter-spacing:-0.05em;
  line-height:1;
}

.site-header__category{
  position:relative;
  flex:0 0 auto;
}

.site-header__categoryToggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:40px;
  padding:0 14px;
  border:1px solid rgba(15,23,42,0.08);
  border-radius:12px;
  background:#fff;
  color:#334155;
  font:inherit;
  font-size:14px;
  font-weight:500;
  line-height:1;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}

.site-header__categoryToggle:hover{
  border-color:rgba(15,23,42,0.16);
  color:#0f172a;
  box-shadow:0 1px 2px rgba(15,23,42,0.04);
}

.site-header__categoryToggle:focus-visible{
  outline:none;
  border-color:rgba(15,23,42,0.22);
  box-shadow:0 0 0 3px rgba(37,99,235,0.18);
  color:#0f172a;
}

.site-header__category.is-open .site-header__categoryToggle{
  border-color:rgba(15,23,42,0.18);
  color:#0f172a;
  box-shadow:0 1px 2px rgba(15,23,42,0.05);
}

.site-header__categoryIcon{
  color:#64748b;
  flex:0 0 auto;
  transition:color .18s ease;
}

.site-header__categoryToggle:hover .site-header__categoryIcon,
.site-header__category.is-open .site-header__categoryIcon{
  color:#334155;
}

.site-header__categoryToggleLabel{
  color:inherit;
  white-space:nowrap;
  letter-spacing:-0.005em;
}

.site-header__categoryPanel{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  z-index:60;
  min-width:280px;
  max-width:320px;
  padding:10px;
  background:#fff;
  border:1px solid rgba(15,23,42,0.04);
  border-radius:16px;
  box-shadow:
    0 2px 6px rgba(15,23,42,0.04),
    0 18px 40px rgba(15,23,42,0.10);
  opacity:0;
  transform:translateY(-6px) scale(0.985);
  transform-origin:top left;
  pointer-events:none;
  transition:opacity .18s cubic-bezier(.2,.7,.2,1), transform .18s cubic-bezier(.2,.7,.2,1);
}

.site-header__category.is-open .site-header__categoryPanel{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}

.site-header__categoryList{
  list-style:none;
  margin:0;
  padding:0;
}

.site-header__categoryItem{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:#1f2937;
  font-size:14px;
  font-weight:500;
  line-height:1.3;
  text-decoration:none;
  transform:translateX(0);
  transition:background .15s ease, color .15s ease, transform .15s ease;
}

.site-header__categoryItem:hover{
  background:#f8fafc;
  color:#0f172a;
  transform:translateX(2px);
}

.site-header__categoryItem:focus-visible{
  outline:none;
  background:#f1f5f9;
  color:#0f172a;
  box-shadow:0 0 0 2px rgba(37,99,235,0.18) inset;
}

.site-header__categoryAll{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:6px;
  padding:11px 12px 11px 12px;
  border-top:1px solid rgba(15,23,42,0.06);
  color:#1f2937;
  font-size:13px;
  font-weight:600;
  letter-spacing:-0.005em;
  text-decoration:none;
  text-align:left;
  transition:color .15s ease, background .15s ease;
  border-radius:0 0 10px 10px;
}

.site-header__categoryAll::after{
  content:"";
  margin-left:auto;
  width:14px;
  height:14px;
  background-color:currentColor;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M9 6l6 6-6 6'/></svg>") center/contain no-repeat;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M9 6l6 6-6 6'/></svg>") center/contain no-repeat;
  opacity:0.6;
  transition:transform .15s ease, opacity .15s ease;
}

.site-header__categoryAll:hover{
  color:#0f172a;
  background:#f8fafc;
}

.site-header__categoryAll:hover::after{
  transform:translateX(2px);
  opacity:0.9;
}

.site-header__categoryAll:focus-visible{
  outline:none;
  color:#0f172a;
  box-shadow:0 0 0 2px rgba(37,99,235,0.18) inset;
}

.site-header__search{
  flex:1 1 560px;
  min-width:220px;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:0 12px 0 16px;
  border:1px solid rgba(15,23,42,0.10);
  border-radius:14px;
  background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,0.04);
}

.site-header__searchInput{
  flex:1 1 auto;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#0f172a;
  font:inherit;
  font-size:14px;
}

.site-header__searchInput::placeholder{
  color:rgba(15,23,42,0.46);
}

.site-header__searchBtn{
  width:34px;
  height:34px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#64748b;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.site-header__actions{
  flex:0 0 auto;
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.site-header__profile{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,0.10);
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#0f172a;
  text-decoration:none;
}

.site-header__profileIcon{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
}
