.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: var(--vcom-header-bg);
  color: var(--vcom-header-text);

  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--vcom-border);
}

/* Plats för header */
body {
  padding-top: var(--vcom-header-h, 72px);
}

/* =========================
   Layout-rad
========================= */

.header-inner {
  height: var(--vcom-header-h, 72px);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle { order: -1; }
.branding      { order: 0; }
.primary-nav {
  order: 1;
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.header-actions{ order: 2; margin-left: auto; }

.menu--primary {
  display: inline-flex;
}

/* =========================
   Branding
========================= */

.branding img {
  max-height: 48px;
  width: auto;
}

.site-title {
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

/* =========================
   Mobile toggle
========================= */

.mobile-toggle {
  display: none;
  font-size: 1.6rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 1;
  color: var(--vcom-header-text);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

.mobile-toggle path {
  stroke: currentColor;
}

@media (max-width: 960px) {
  .mobile-toggle { display: inline-flex; }
}

/* =========================
   Admin bar offset
========================= */

@media (min-width: 783px) {
  body.admin-bar .site-header { top: 32px; }
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* =========================
   Header – Cart link
========================= */

.header-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 8px;
  border-radius: 8px;

  text-decoration: none;
  color: inherit;

  position: relative;
}

.header-cart-link:hover,
.header-cart-link:focus-visible {
  background: var(--vcom-header-hover-bg);
  text-decoration: none;
}

.header-cart__icon {
  font-size: 20px;
  line-height: 1;
  display: block;
  transition: transform .15s ease;
}

.header-cart-link:hover .header-cart__icon {
  transform: translateY(-1px);
}

.header-cart__count {
  min-width: 18px;
  height: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: 600;

  background: var(--vcom-header-cart-bg);
  color: var(--vcom-header-cart-text);

  border-radius: 999px;
  padding: 0 5px;
  line-height: 1;
}

/* =========================
   Header actions (links)
========================= */

.header-actions a,
.header-actions a:hover,
.header-actions a:focus {
  text-decoration: none;
}

/* =========================
   Topbar
========================= */

.topbar {
  background: var(--vcom-topbar-bg);
  color: var(--vcom-topbar-text);
  font-size: 0.95rem;
  position: relative;
  z-index: 10;
}

.topbar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  padding: 0 1rem;
}

.topbar__msg {
  font-weight: 500;
  text-align: center;
  width: 100%;
  pointer-events: none;
}

/* =========================
   A11y
========================= */

.skip-link:focus {
  top: 0;
}

/* =========================
   Header search
========================= */

.header-search {
  flex: 1;
  max-width: 420px;
  margin-left: 2rem;
}

/* 3rd-party (Ajax Search Pro) */
.header-search .asp_m {
  height: 40px;
  border-radius: 6px;
}