/* Gloock-overskrift på kategoribannere med bilde */
body .gc-category-page .gc-category-hero--has-image h1,
body .gc-category-page .gc-category-hero--has-image h1 span {
  font-family: gloock, Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
}

/* Valgfritt toppbanner fra Intro > Bilde på test-kategorier */
body .gc-category-page .gc-category-hero--has-image {
  position: relative;
  min-height: clamp(360px, 38vw, 520px);
  display: flex;
  align-items: center;
  background-image: var(--gc-category-hero-image) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
  overflow: hidden;
}
body .gc-category-page .gc-category-hero--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.40), rgba(0,0,0,.10));
  pointer-events: none;
}
body .gc-category-page .gc-category-hero--has-image > * {
  position: relative;
  z-index: 1;
  width: 100%;
}
body .gc-category-page .gc-category-hero--has-image > section .bg-no-repeat {
  background-image: none !important;
}
@media (max-width: 767px) {
  body .gc-category-page .gc-category-hero--has-image { min-height: 360px; }
  body .gc-category-page .gc-category-hero--has-image::before { background: rgba(0,0,0,.34); }
}

/* Produktkort: tre kolonner på test-kategorisidene */
body .gc-category-page .gc-test-list__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
}



/* Kontaktprodukt: samme sorte handlingsknapp som de andre kortene */
body .gc-category-page .gc-test-card__purchase a.btn.highlight-bg {
  color: #fff !important;
  background: #111 !important;
  border-color: #111 !important;
}
body .gc-category-page .gc-test-card__purchase a.btn.highlight-bg:hover,
body .gc-category-page .gc-test-card__purchase a.btn.highlight-bg:focus-visible {
  color: #111 !important;
  background: #fff !important;
}

/* Behold kun én delestrek før tilvalgsseksjonen */
body .gc-category-page .gc-category-related-products::before {
  content: none !important;
  display: none !important;
}
/*
   TESTKATEGORIER – kort med bilde, sentrert tekst og knapp
   Gjelder bare nye kategori- og menyoversikter.
   ========================================================= */

body .gc-category-page .gc-test-list__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
}

body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]) {
  position: relative !important;
  min-height: 420px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #111 !important;
}

body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]) .gc-test-card__link {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  height: 100% !important;
  color: #fff !important;
  overflow: hidden !important;
}

body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]) .gc-test-card__image,
body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]) .gc-test-card__image picture,
body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]) .gc-test-card__image img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .35s ease !important;
}

body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href])::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.48) 52%, rgba(0,0,0,.72)) !important;
  transition: background .25s ease !important;
}

body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]) .gc-test-card__content {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem 1.5rem 5.25rem !important;
  color: #fff !important;
  text-align: center !important;
}

body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]) .gc-test-card__title {
  margin: 0 !important;
  color: #fff !important;
  font-family: "gloock", Georgia, serif !important;
  font-size: clamp(2rem, 3vw, 2.6rem) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -.025em !important;
}

body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]) .gc-test-card__description {
  max-width: 310px !important;
  margin: .8rem auto 0 !important;
  color: rgba(255,255,255,.92) !important;
  font-family: "mundial", "museo-sans", Arial, sans-serif !important;
  font-size: .95rem !important;
  font-weight: 300 !important;
  line-height: 1.45 !important;
}

body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]) .gc-test-card__footer {
  position: absolute !important;
  left: 50% !important;
  bottom: 25% !important;
  z-index: 3 !important;
  width: max-content !important;
  transform: translate(-50%, 50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]) .gc-test-card__footer .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: .72rem 1.1rem !important;
  color: #fff !important;
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.9) !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
}

body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]):hover .gc-test-card__image img {
  transform: scale(1.04) !important;
}

body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]):hover::after {
  background: linear-gradient(180deg, rgba(0,0,0,.24), rgba(0,0,0,.55) 52%, rgba(0,0,0,.78)) !important;
}

body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]):hover .gc-test-card__footer .btn {
  color: #111 !important;
  background: #fff !important;
}

/* Menyoversikten: diskret heading slik at kortene får hovedfokus. */
body .gc-menu-overview-page .gc-menu-overview-hero h1 {
  font-family: "mundial", "museo-sans", Arial, sans-serif !important;
  font-size: clamp(1.75rem, 2.1vw, 2.25rem) !important;
  line-height: 1 !important;
  font-weight: 100 !important;
  letter-spacing: 0 !important;
}

/* Vanlige kategorioverskrifter beholder egen, større størrelse. */
body .gc-menu-hero-simple h1,
body .gc-category-hero h1,
body .gc-category-hero h1 span {
  font-family: "mundial", "museo-sans", Arial, sans-serif !important;
  font-size: clamp(3rem, 5vw, 4.75rem) !important;
  line-height: .98 !important;
  font-weight: 300 !important;
  letter-spacing: -.035em !important;
}

@media (max-width: 1000px) {
  body .gc-category-page .gc-test-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 650px) {
  body .gc-category-page .gc-test-list__grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]) {
    min-height: 350px !important;
    aspect-ratio: 4 / 3 !important;
  }

  body .gc-category-page .gc-test-card:has(.gc-test-card__footer > a.btn[href]) .gc-test-card__title {
    font-size: clamp(2rem, 10vw, 2.8rem) !important;
  }

  body .gc-menu-overview-page .gc-menu-overview-hero h1 {
    font-size: clamp(1.65rem, 7vw, 1.9rem) !important;
  }

  body .gc-menu-hero-simple h1,
  body .gc-category-hero h1,
  body .gc-category-hero h1 span {
    font-size: clamp(2.4rem, 12vw, 3.5rem) !important;
    line-height: 1 !important;
  }
}
/* Produktkort – lys og kompakt testkategori */

body .gc-category-page .gc-category-list {
  background: #f3f0ea !important;
  color: #111111 !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href])) {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  overflow: hidden !important;
  background: #ffffff !important;
  color: #111111 !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__link {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  color: #111111 !important;
  text-decoration: none !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__image {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #edeae4 !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__image img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: opacity .32s ease, transform .45s ease !important;
}

body .gc-category-page .gc-test-card__image-primary {
  z-index: 1 !important;
  opacity: 1 !important;
}

body .gc-category-page .gc-test-card__image-secondary {
  z-index: 2 !important;
  opacity: 0 !important;
}

body .gc-category-page .gc-test-card:hover .gc-test-card__image--has-secondary
  .gc-test-card__image-primary,
body .gc-category-page .gc-test-card__link:hover .gc-test-card__image--has-secondary
  .gc-test-card__image-primary {
  opacity: 0 !important;
}

body .gc-category-page .gc-test-card:hover .gc-test-card__image--has-secondary
  .gc-test-card__image-secondary,
body .gc-category-page .gc-test-card__link:hover .gc-test-card__image--has-secondary
  .gc-test-card__image-secondary {
  opacity: 1 !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__content {
  padding: 1rem 1.1rem .65rem !important;
  background: #ffffff !important;
  color: #111111 !important;
  text-align: left !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__title {
  color: #111111 !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__description {
  color: rgba(17, 17, 17, .68) !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__purchase {
  margin-top: auto !important;
  padding: 0 1.1rem 1.25rem !important;
  background: #ffffff !important;
  color: #111111 !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__price {
  color: #111111 !important;
}

body .gc-category-page .gc-test-card__purchase .flex {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
}

body .gc-category-page .gc-test-card__purchase input[type="number"] {
  min-height: 48px !important;
  margin: 0 !important;
  color: #111111 !important;
  background: #ffffff !important;
  border: 1px solid #111111 !important;
  border-radius: 0 !important;
}

body .gc-category-page .gc-test-card__purchase button.btn,
body .gc-category-page .gc-test-card__purchase button.highlight-bg {
  min-height: 48px !important;
  margin: 0 0 0 8px !important;
  color: #ffffff !important;
  background: #111111 !important;
  border: 1px solid #111111 !important;
  border-radius: 0 !important;
}

body .gc-category-page .gc-test-card__purchase button.btn:hover,
body .gc-category-page .gc-test-card__purchase button.highlight-bg:hover {
  color: #111111 !important;
  background: #ffffff !important;
}

body .gc-category-page .gc-related-products {
  background: #f3f0ea !important;
  color: #111111 !important;
}

body .gc-category-page .gc-related-product-card {
  background: #ffffff !important;
  color: #111111 !important;
}

body .gc-category-page .gc-related-product-card h3,
body .gc-category-page .gc-related-product-card h3 a,
body .gc-category-page .gc-related-product-card__price {
  color: #111111 !important;
}

body .gc-category-page .gc-related-product-card__actions > a,
body .gc-category-page .gc-related-product-card__link {
  color: #111111 !important;
  background: #ffffff !important;
  border-color: #111111 !important;
}

body .gc-category-page .gc-related-product-card__actions > a:hover,
body .gc-category-page .gc-related-product-card__link:hover {
  color: #ffffff !important;
  background: #111111 !important;
}

body .gc-category-page .gc-related-product-card__actions button,
body .gc-category-page .gc-related-product-card__actions button.highlight-bg {
  color: #ffffff !important;
  background: #111111 !important;
  border-color: #111111 !important;
}

body .gc-category-page .gc-related-product-card__actions button:hover,
body .gc-category-page .gc-related-product-card__actions button.highlight-bg:hover {
  color: #111111 !important;
  background: #ffffff !important;
}

/* Kompakt produktkortoppsett */

body .gc-category-page .gc-category-list {
  padding-top: 5rem !important;
  padding-bottom: 3rem !important;
}

body .gc-category-page .gc-category-list__inner {
  width: calc(100% - 4rem) !important;
  max-width: 1400px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__link {
  flex: 0 0 auto !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__image {
  aspect-ratio: 4 / 3 !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__content {
  min-height: 96px !important;
  padding: 1.15rem 1.25rem .75rem !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__title {
  margin: 0 0 .35rem !important;
  font-family: "museo-sans", Arial, sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__description {
  margin: 0 !important;
  font-size: .9rem !important;
  line-height: 1.4 !important;
}

body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
  .gc-test-card__purchase {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: .5rem 1.25rem 1.25rem !important;
}

body .gc-category-page .gc-test-card__purchase .gc-test-card__prices {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body .gc-category-page .gc-test-card__purchase .gc-test-card__price {
  margin: 0 !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  line-height: 48px !important;
  white-space: nowrap !important;
}

body .gc-category-page .gc-test-card__purchase > .flex,
body .gc-category-page .gc-test-card__purchase [x-data] {
  display: flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  gap: 0 !important;
}

body .gc-category-page .gc-test-card__purchase input[type="number"] {
  flex: 0 0 56px !important;
  width: 56px !important;
  min-width: 56px !important;
  margin: 0 !important;
}

body .gc-category-page .gc-test-card__purchase button.btn,
body .gc-category-page .gc-test-card__purchase button.highlight-bg {
  flex: 0 0 auto !important;
  min-width: 68px !important;
  margin: 0 !important;
  padding-right: .7rem !important;
  padding-left: .7rem !important;
}

body .gc-category-page .gc-related-products {
  padding-top: 3rem !important;
}

@media (max-width: 767px) {
  body .gc-category-page .gc-category-list {
    padding-top: 2.5rem !important;
  }

  body .gc-category-page .gc-category-list__inner {
    width: calc(100% - 2rem) !important;
  }

  body .gc-category-page .gc-test-card:not(:has(.gc-test-card__footer > a.btn[href]))
    .gc-test-card__purchase {
    align-items: center !important;
  }
}

/* Tilvalgskort og delestrek */

body .gc-category-page,
body .gc-category-page .gc-category-list,
body .gc-category-page .gc-related-products,
body .gc-category-page .gc-category-related-products {
  background-color: #f3f0ea !important;
}

body .gc-category-page .gc-related-products__inner {
  width: calc(100% - 4rem) !important;
  max-width: 1400px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-top: 4rem !important;
  border-top: 1px solid rgba(17, 17, 17, .22) !important;
}

body .gc-category-page .gc-related-products__header {
  margin-bottom: 2rem !important;
}

body .gc-category-page .gc-related-products__grid {
  gap: 1.25rem !important;
}

body .gc-category-page .gc-related-product-card {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #ffffff !important;
  color: #111111 !important;
  text-align: left !important;
}

body .gc-category-page .gc-related-product-card__image {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
}

body .gc-category-page .gc-related-product-card__image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body .gc-category-page .gc-related-product-card__content {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  padding: 1rem 1.1rem 1.25rem !important;
  background: #ffffff !important;
  color: #111111 !important;
  text-align: left !important;
}

body .gc-category-page .gc-related-product-card h3 {
  margin: 0 0 .45rem !important;
  font-family: "museo-sans", Arial, sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

body .gc-category-page .gc-related-product-card h3 a {
  color: #111111 !important;
  text-decoration: none !important;
}

body .gc-category-page .gc-related-product-card__price {
  margin: 0 0 1rem !important;
  color: rgba(17, 17, 17, .68) !important;
  font-size: .82rem !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

body .gc-category-page .gc-related-product-card__actions {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 48px !important;
  margin-top: auto !important;
}

body .gc-category-page .gc-related-product-card__details {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 96px !important;
  min-height: 48px !important;
  padding: .6rem .75rem !important;
  color: #111111 !important;
  background: #ffffff !important;
  border: 1px solid #111111 !important;
  font-size: .65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

body .gc-category-page .gc-related-product-card__details:hover {
  color: #ffffff !important;
  background: #111111 !important;
}

body .gc-category-page .gc-related-product-card__cart,
body .gc-category-page .gc-related-product-card__cart > .flex {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: stretch !important;
  min-width: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

body .gc-category-page .gc-related-product-card__cart input[type="number"] {
  flex: 0 0 56px !important;
  width: 56px !important;
  min-width: 56px !important;
  min-height: 48px !important;
  margin: 0 !important;
  color: #111111 !important;
  background: #ffffff !important;
  border: 1px solid #111111 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  text-align: center !important;
}

body .gc-category-page .gc-related-product-card__cart button,
body .gc-category-page .gc-related-product-card__cart button.highlight-bg {
  flex: 1 1 auto !important;
  min-width: 68px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: .6rem .65rem !important;
  color: #ffffff !important;
  background: #111111 !important;
  border: 1px solid #111111 !important;
  border-radius: 0 !important;
}

body .gc-category-page .gc-related-product-card__cart button:hover,
body .gc-category-page .gc-related-product-card__cart button.highlight-bg:hover {
  color: #111111 !important;
  background: #ffffff !important;
}

@media (max-width: 767px) {
  body .gc-category-page .gc-related-products__inner {
    width: calc(100% - 2rem) !important;
    padding-top: 2.5rem !important;
  }
}

/* =========================================================
   LUNSJFILTER – kun filtrerbar testkategori
   ========================================================= */

body .gc-category-page .gc-category-list--filterable .gc-test-card[hidden] {
  display: none !important;
}

body .gc-category-page .gc-category-filter {
  margin: 0 0 2.5rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid rgba(17, 17, 17, .22);
}

body .gc-category-page .gc-category-filter__label {
  margin: 0 0 .8rem;
  color: #555 !important;
  opacity: 1 !important;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body .gc-category-page .gc-category-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

body .gc-category-page .gc-category-filter__button {
  appearance: none;
  min-height: 42px;
  padding: .65rem 1.25rem;
  color: #111 !important;
  background: transparent !important;
  border: 1px solid #111 !important;
  border-radius: 0;
  opacity: 1 !important;
  cursor: pointer;
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}

body .gc-category-page .gc-category-filter__button:hover,
body .gc-category-page .gc-category-filter__button:focus-visible,
body .gc-category-page .gc-category-filter__button.is-active {
  color: #fff !important;
  background: #111 !important;
  border-color: #111 !important;
}

body .gc-category-page .gc-category-filter__count {
  margin: .9rem 0 0;
  color: #555 !important;
  opacity: 1 !important;
  font-size: .82rem;
}

@media (max-width: 767px) {
  body .gc-category-page .gc-category-filter__buttons {
    flex-wrap: nowrap;
    margin-right: -1rem;
    padding-right: 1rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  body .gc-category-page .gc-category-filter__button {
    flex: 0 0 auto;
  }
}

/* Sentrert kategorifilter */
body .gc-category-page .gc-category-filter { text-align:center; }
body .gc-category-page .gc-category-filter__buttons { justify-content:center; }
@media (max-width:767px) { body .gc-category-page .gc-category-filter__buttons { justify-content:flex-start; } }

/* Sentrert filter på alle skjermstørrelser */
@media (max-width:767px) {
  body .gc-category-page .gc-category-filter__buttons {
    flex-wrap:wrap;
    justify-content:center;
    margin-right:0;
    padding-right:0;
    overflow:visible;
  }
}
