.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:has(a[href^='/enkeltvarer'][aria-current]) > summary,
.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-browse-groups {
  display: grid;
  padding: 12px 22px;
  gap: 12px 24px;
}
.shop-browse-groups > div { min-width: 0; }
.shop-browse-groups:has(.shop-brands):has(.shop-category-list) {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.shop-browse-groups h2 {
  margin: 4px 0;
  color: inherit;
  font: 650 .92rem/1.45 'DM Sans', Arial, sans-serif;
  letter-spacing: normal;
}
.shop-browse-groups ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.shop-category-list:has(> li:nth-child(7)) {
  columns: 2;
  column-gap: 28px;
}
.shop-browse-groups li {
  break-inside: avoid;
}
.shop-category-panel a {
  display: inline-block;
  padding: 7px 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.shop-category-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 22px;
  padding: 6px 22px;
  font-size: 0.88rem;
}
.shop-browse-groups + .shop-category-footer {
  border-top: 1px solid var(--line, #d9dfd9);
}
.mast:has(.shop-browse) {
  position: relative;
  z-index: 8;
}
@media (min-width: 800px) {
  .shop-category-panel:has(.shop-brands):has(.shop-category-list) {
    width: min(42rem, 60vw);
    left: auto;
    right: 0;
    transform: none;
  }
  .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: 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-browse-groups,
  .shop-category-footer {
    padding-inline: 18px;
  }
  .mast .support-site-nav,
  .mast .list-nav {
    flex-wrap: nowrap;
    gap: 12px;
    font-size: 0.85rem;
  }
}
@media (max-width: 520px) {
  .shop-browse-groups:has(.shop-brands):has(.shop-category-list) {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 359px) {
  .shop-browse {
    min-width: 0;
    gap: 4px;
    font-size: .85rem;
  }
  .shop-disclosure > summary { gap: 4px; }
}
@media print {
  .shop-browse {
    display: none;
  }
}
