.shop-browse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 36px);
  margin-inline: auto;
  font:
    500 0.95rem/1.35 'DM Sans',
    Arial,
    sans-serif;
  color: var(--ink);
}
.shop-browse a,
.shop-browse summary {
  color: inherit;
  text-decoration: none;
}
.shop-browse > a,
.shop-disclosure > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
.shop-browse a[aria-current],
.shop-browse a:hover,
.shop-disclosure > summary:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: currentColor;
}
.shop-browse :is(a, summary):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.shop-disclosure {
  position: relative;
}
.shop-disclosure > summary {
  gap: 8px;
  cursor: pointer;
  list-style: none;
}
.shop-disclosure > summary::-webkit-details-marker {
  display: none;
}
.shop-disclosure > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.shop-disclosure[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.shop-category-panel {
  position: absolute;
  z-index: 15;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 260px;
  max-width: min(44rem, 84vw);
  max-height: 65vh;
  max-height: 65dvh;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--paper, var(--soft, #fcfbf8));
  border: 1px solid var(--line, #d9dfd9);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(36, 48, 43, 0.12);
}
.shop-category-groups {
  display: flex;
  gap: 28px;
  padding: 20px 24px 12px;
}
.shop-category-group {
  flex: 1;
  min-width: 9rem;
}
.shop-category-group h2 {
  margin: 0 0 7px;
  font:
    550 0.94rem/1.4 'DM Sans',
    Arial,
    sans-serif;
}
.shop-category-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.shop-category-group a,
.shop-category-guides a {
  display: inline-block;
  padding: 7px 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.shop-category-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 8px 24px;
  font-size: 0.88rem;
}
.shop-category-groups + .shop-category-guides {
  border-top: 1px solid var(--line, #d9dfd9);
}
.mast:has(.shop-browse) {
  position: relative;
  z-index: 8;
}
@media (max-width: 374px) {
  .shop-browse > a[href="/startpakker"] { display: none; }
  .shop-category-groups { gap: 12px; padding-inline: 14px; }
  .shop-category-group { min-width: 0; }
}
@media (min-width: 800px) {
  .mast-inner:has(.shop-browse),
  .header-inner:has(.shop-browse) {
    gap: clamp(16px, 2.6vw, 38px);
  }
  .mast .support-site-nav,
  .mast .list-nav {
    gap: clamp(12px, 2vw, 26px);
  }
}
@media (max-width: 1090px) {
  .shop-browse > .shop-guide-link {
    display: none;
  }
}
@media (min-width: 1091px) {
  .shop-disclosure:not(:has(.shop-category-groups)) {
    display: none;
  }
}
@media (max-width: 799px) {
  .mast-inner:has(.shop-browse),
  .header-inner:has(.shop-browse) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 8px;
    min-height: 0;
    padding-block-start: 9px;
  }
  .mast-inner:has(.shop-browse) > .brand,
  .header-inner:has(.shop-browse) > .brand {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
  }
  .shop-browse {
    position: relative;
    order: 3;
    flex: 0 0 100%;
    justify-content: space-between;
    gap: 7px;
    margin: 3px 0 0;
    border-top: 1px solid var(--line, #d9dfd9);
  }
  .shop-browse > a,
  .shop-disclosure > summary {
    min-height: 43px;
  }
  .shop-disclosure {
    position: static;
  }
  .shop-category-panel {
    inset-inline: 0;
    width: auto;
    min-width: 0;
    max-width: none;
    transform: none;
  }
  .shop-category-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
    gap: 12px;
    padding: 16px 18px 8px;
  }
  .shop-category-group {
    min-width: 0;
  }
  .shop-category-guides {
    padding-inline: 18px;
  }
  .mast .support-site-nav,
  .mast .list-nav {
    flex-wrap: nowrap;
    gap: 12px;
    font-size: 0.85rem;
  }
}
@media print {
  .shop-browse {
    display: none;
  }
}
