  /* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Hide ONLY Add to Cart button on single product page */

/* Hide Quantity + Add to Cart ONLY on single product pages */

body.single-product .quantity,
body.single-product .single_add_to_cart_button {
    display: none !important;
}


/* Related products wishlist */
.related-products-slider .product-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-product-card .product-wishlist .tinv-wraper {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
	  inset: unset;
}

/* Favoritt-stjerne i produktkort (custom-simple-add-to-cart), ikke TI Wishlist */
.product-wishlist > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    width: 28px !important;
    height: 28px !important;
    background: #FAFAFA;
    border-radius: 4px;
    padding: 4px;
}
.product-wishlist > a.product-in-cart,
.product-wishlist > a:hover {
  background: #A91633;
}
.product-wishlist > a img{
  margin: 0 !important;
  fill: #FAFAFA;
}

.product-wishlist > a img {
    width: 100% !important;
    height: 100% !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

/* Override WooCommerce ul.products li.product a img { width:100% } */
.woocommerce ul.products li.product .product-wishlist a img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    margin: 0 !important;
}


/* Heart icon */
.related-products-slider .product-wishlist 
.tinvwl_add_to_wishlist_button:before {
    display: block !important;
    font-size: 24px !important;
    color: #000 !important;
}

.woocommerce .product #wpgs-gallery.wcgs-woocommerce-product-gallery {
  margin-right: 0;
}

/* Two-column layout: gallery | summary+related — sticky gallery spans full wrap height */
.woocommerce div.product .hcp-product-top {
  display: flow-root;
}

.woocommerce .product #wpgs-gallery {
  max-width: 50%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Beat WPGS inline max-width:50% when gallery lives in the product grid */
.woocommerce .product .hcp-product-top #wpgs-gallery {
  max-width: 100% !important;
  width: 100%;
}

/* Desktop: grid so gallery column is as tall as summary+related; sticky until related ends */
@media (min-width: 1025px) {
  .woocommerce div.product .hcp-product-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 0;
  }

  .woocommerce .product .hcp-product-top #wpgs-gallery {
    grid-column: 1;
    grid-row: 1 / -1;
    max-width: 100% !important;
    width: 100%;
    min-width: 0 !important;
    position: sticky;
    top: 0;
    align-self: start;
    z-index: 2;
  }

  .woocommerce .product .hcp-product-top .summary.entry-summary {
    grid-column: 2;
    grid-row: 1;
    max-width: 100% !important;
    width: 100%;
  }

  .woocommerce .product .hcp-product-top .related.products,
  .woocommerce .product .hcp-product-top .upsells.products {
    grid-column: 2;
    grid-row: auto;
    max-width: 100%;
    width: 100%;
    margin-left: 0 !important;
    clear: none;
  }
}

/* Main carousel */
.woocommerce .product #wpgs-gallery .wcgs-carousel {
  order: 1;
  position: relative;
}

.woocommerce .product #wpgs-gallery .wcgs-carousel .spswiper-wrapper {
  display: flex;
}

/* Do NOT force width – let the plugin calculate it */
.woocommerce .product #wpgs-gallery .wcgs-carousel .spswiper-slide {
  margin: 0 !important;
}

.woocommerce .product #wpgs-gallery .wcgs-slider-image {
  position: relative;
  width: 100%; 
  height: calc(100vh - 128px);
  max-height: 1015px; 
}
.woocommerce .product #wpgs-gallery .wcgs-slider-image-tag{}

.woocommerce .product #wpgs-gallery .wcgs-slider-image-tag {
  display: block;
  width: 100%;
  height: -webkit-fill-available;
  object-fit: cover;
}

/* Lightbox link – keep it for click, but don’t block hover zoom */
.woocommerce .product #wpgs-gallery .wcgs-slider-lightbox {
  position: absolute;
  inset: 0;
/*   z-index: 1;          /* lower than the .wcgs-photo zoom layer */ */
  /* pointer-events is left alone so the plugin can still open lightbox on click */
}

/* Thumbnail navigation (below main image) */
.woocommerce .product #wpgs-gallery .gallery-navigation-carousel-wrapper {
  order: 2;
  margin-top: 0.75rem;
  position: relative;
}

.woocommerce .product #wpgs-gallery .gallery-navigation-carousel {
  padding: 0;
}

.woocommerce .product #wpgs-gallery .gallery-navigation-carousel .spswiper-wrapper {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.woocommerce .product #wpgs-gallery .wcgs-thumb {
  width: 72px !important;
  height: 72px !important;
  overflow: hidden;
  opacity: 0.6;
  border: 2px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.woocommerce .product #wpgs-gallery .wcgs-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.woocommerce .product #wpgs-gallery .wcgs-thumb.spswiper-slide-thumb-active,
.woocommerce .product #wpgs-gallery .wcgs-thumb:hover {
  opacity: 1;
  border-color: #1a1a1a;
}

/* Hide default arrow buttons on thumbs */
.woocommerce .product #wpgs-gallery .wcgs-spswiper-button-next,
.woocommerce .product #wpgs-gallery .wcgs-spswiper-button-prev {
  display: none !important;
}

/* Pagination bullets */
.woocommerce .product #wpgs-gallery .spswiper-pagination {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  width: auto !important;
}

.woocommerce .product #wpgs-gallery .spswiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #FAFAFA;
  opacity: 1;
  margin: 0 !important;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.woocommerce .product #wpgs-gallery .spswiper-pagination-bullet-active {
  background-color: #A91633;
}

/* Preloader */
.woocommerce .product #wpgs-gallery .wcgs-gallery-preloader {
  display: none;
}

.woocommerce .product .entry-summary{
	max-width: 640px !important;
	margin-right: auto;
	padding: 3rem;
	padding-bottom: 0rem;
}
.post-type-archive-product .woocommerce-breadcrumb,
.post-type-archive-en_del_av .woocommerce-breadcrumb,
.woocommerce .product .entry-summary .woocommerce-breadcrumb {
	 font-family: 'Montserrat';
	font-size: 14px;
    font-style: normal;
    font-weight: 500;
	color : #1D1D1B;
	display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px 14px;
    flex-wrap: wrap;
	margin-bottom: 4rem;
}

.post-type-archive-product .woocommerce-breadcrumb::before,
.post-type-archive-en_del_av .woocommerce-breadcrumb::before,
.woocommerce .product .entry-summary .woocommerce-breadcrumb::before{content: unset;}
.post-type-archive-product .woocommerce-breadcrumb a,
.post-type-archive-en_del_av .woocommerce-breadcrumb a,
.woocommerce .product .entry-summary .woocommerce-breadcrumb a {
	color : #1D1D1B;
	text-decoration: none;
}
.post-type-archive-product .woocommerce-breadcrumb a:hover,
.post-type-archive-product .woocommerce-breadcrumb a:focus,
.post-type-archive-en_del_av .woocommerce-breadcrumb a:hover,
.post-type-archive-en_del_av .woocommerce-breadcrumb a:focus,
.woocommerce .product .entry-summary .woocommerce-breadcrumb a:hover,
.woocommerce .product .entry-summary .woocommerce-breadcrumb a:focus {
	text-decoration: none;
}

.kampanje-text {
	position: relative;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    color: #F5F5F5;
    text-transform: uppercase;
    /* Right padding = stripe band (~52px) + gray end cap (~10px), mirrors left padding feel */
    padding: 6px 62px 6px 16px;
    width: max-content;
    max-width: 100%;
    min-height: 1.75rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    box-sizing: border-box;
    border-radius: 4px;
    overflow: hidden;
    /* Full dark shape on both ends — same radius left and right */
    background-color: #2F2F2D;
	z-index: 1;
	isolation: isolate;
}
.kampanje-text::before {
	/* No slanted clip — gray fills the full rounded box including the right end */
	content: none;
}

.kampanje-text::after{
	content: "";
	position: absolute;
    top: 0;
    /* Inset from the right so the dark gray end-cap / border-radius stays visible */
    right: 2px;
    bottom: 0;
	display: block;
    height: 100%;
    width: 52px;
	/* Inline data-URI so stripes always paint (no separate asset fetch / cache quirks) */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 67 33' fill='%23A91633' preserveAspectRatio='none'%3E%3Cpath d='M6.494 33H0L19.503 0H26L6.494 33Z'/%3E%3Cpath d='M17.502 33H9L28.497 0H37L17.502 33Z'/%3E%3Cpath d='M30.936 33H20L39.063 0H50L30.936 33Z'/%3E%3Cpath d='M52.296 0L33 33h14.704L67 0H52.296Z'/%3E%3C/svg%3E");
	background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center right;
	z-index: 0;
	pointer-events: none;
}
.kampanje-text > span {
	position: relative;
	z-index: 1;
}
/* Funksjoner section */
.single-product.product-template-default main.site-main {
	max-width: 100%;
}
.feature-product-section {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.woocommerce .product .entry-summary .product_title {
	font-size: 3rem;
    color: #000;
	margin-block: 1.5rem;
}
.woocommerce .product .entry-summary .product-brand {
	margin-bottom: 1rem;
}
.woocommerce .product .entry-summary .product-brand a,
.woocommerce .product .entry-summary .price,
.woocommerce .product .entry-summary .woocommerce-product-details__short-description p strong{
	font-family: 'Montserrat';
	font-size: 20px;
    font-weight: 500;
    color: #000;
}
.woocommerce .product .entry-summary .product-brand a:is(foucs,hover){
	outline: none;
}
.woocommerce .product .entry-summary .woocommerce-product-details__short-description {
	margin-block: 3rem;
}
.woocommerce .product .entry-summary .woocommerce-product-details__short-description p{
	color: #1D1D1B;
	font-size: 16px;
}
.woocommerce .product .entry-summary .woocommerce-product-details__short-description p strong{
	font-weight: 500;
}
.product-action-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
}
.product-action-row .wishlist-col a.tinvwl_add_to_wishlist_button,
.product-action-row .contact-col a,
.product_catalog a{
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
	font-size: 14px; 
	font-weight: 600;
	color: #1D1D1B;
}
.product-action-row .wishlist-col a.tinvwl_add_to_wishlist_button{
	display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 12px;
	background-color: var(--e-global-color-accent);
	color: var(--e-global-color-2944d7b);
    border-style: solid;
    border-width: 2px 2px 2px 2px;
    border-color: var(--e-global-color-accent);
    border-radius: 4px 4px 4px 4px;
    padding: 0.5rem 1rem;
}
.technical-specifications-header a,
.product-action-row .contact-col a,
.product_catalog a{
	display: flex;
    align-items: center;
	gap: 12px;
}
.product-action-row .contact-col a:hover,
.product_catalog a:hover{
	opacity: 0.5;
}

/*CSS for modified custom atribute selection design, need to check and remove later*/

.variations_form.cart{
  display: none;
}
.custom-variation-wrapper{
    margin-block: 4rem;
}

h4.variation-title,
.variation-title{
    margin-top: 50px;
    margin-bottom: 24px;
}

.product_catalog {
    margin-top: 30px;
}
.product_catalog a span {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}
.product_catalog a img,
.technical-specifications-header a img.arrow-outward,
.technical-specifications-header a img {
    display: block;
    width: 16px;
    height: 16px;
    max-width: none;
}

.variation-cards{
    display:flex;
    gap: 16px;
    flex-wrap:wrap;
}

.variation-card{
    min-width: 121px;
    background: #f5f5f5;
    border-radius:8px;
    padding: 4px 8px 2px;
    cursor: pointer;
    transition:.25s;
    border:2px solid transparent;
	font-family: 'Montserrat';
    font-weight: 500;
}

.variation-card strong{
	font-family: 'Montserrat';
    font-weight: 500;
    display:block;
    font-size: 18px;
	color: #1D1D1B;
}

.variation-card span{
    display:block;
    margin-top:0px;
    color: #8E8E8D;
    font-size: 14px;
}

.variation-card:hover{
    border-color:#000;
}

.variation-card.active{
    border-color:#000;
}

/* Sibling series models (portal _hcp_variant_products) */
.hcp-series-models {
  margin-top: 1.5rem;
}
.hcp-series-models__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
a.hcp-series-models__card {
  text-decoration: none;
  color: inherit;
}
.hcp-series-models__card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  max-width: 280px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: .25s;
  border: 2px solid transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  box-sizing: border-box;
}
.hcp-series-models__card:hover {
  border-color: #1d1d1b;
}
.hcp-series-models__card.is-current {
  border-color: #8b1e1e;
  cursor: default;
}
.hcp-series-models__card:focus-visible {
  outline: 2px solid #8b1e1e;
  outline-offset: 2px;
}
.hcp-series-models__thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  background: #e8e8e6;
  display: block;
}
.hcp-series-models__thumb-img,
.hcp-series-models__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hcp-series-models__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hcp-series-models__text strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #1d1d1b;
  line-height: 1.25;
}
.hcp-series-models__text span {
  font-size: 13px;
  color: #8e8e8d;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/*====*/

.feature-heading {
  grid-column: 1 / -1;
}

.feature-product-section-item {
  background-color: #F5F5F5;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feature-product-section-content {
  padding: 1.5rem;
}

.feature-product-section-content h3 {
  margin: 0 0 0.75rem;
}

.feature-product-section-content p {
  margin: 0;
}

.feature-product-section-image {
  height: 328px;
  max-height: 328px;
}

.feature-product-section-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.product-details-section {
  max-width: 1440px;
  margin-inline: auto;
  margin-top: 24px;
  margin-bottom: 24px;
  padding-inline: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.product-details-section--specs-only {
  grid-template-columns: 1fr;
}

/* Single product: +50px before footer after teknisk seksjon */
body.single-product .product-details-section {
  margin-bottom: calc(24px + 50px);
}

.product-details-left {
  /* content styling only – no font rules */
}
.product-details-left br {
  display: none;
}


.product-details-heading {
  margin: 0 0 1.25rem;
}

.product-details-left p {
  margin: 0;
  line-height: 1.6;
}

.product-details-left strong {
  display: block;
  margin-bottom: 0.75rem;
}
.product-details-left,
.product-details-right{
	padding: 1.5rem;
	background-color: #F5F5F5;
	border-radius: 8px;
}

.product-details-header,
.technical-specifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 32px;
  margin-bottom: 1.5rem;
}

.product-details-header h4,
.technical-specifications-header h4 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: #000;
}

.technical-specifications-header a {
  text-decoration: none;
  white-space: nowrap;
  color: #1D1D1B;
}

.technical-specifications-list {
  display: flex;
  flex-direction: column;
}

.technical-specifications-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 0.85rem;
  border-top: 1px solid #565654;
}

.technical-specifications-label {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}
.technical-specifications-label,
.technical-specifications-value{
  font-family: 'Montserrat';
  font-style: normal;
  color :#1D1D1B;
}
.technical-specifications-value {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
/*   white-space: nowrap; */
}




/* Related products */
.related.products {
  display: block;
  max-width: 50%;
  margin-left: auto !important;
  padding-inline: 3rem;
  padding-right: 4px;
  margin-block: 1.5rem;
  clear: left;
}
.related.products .kampanje-text{display: none;}
.related.products > h2,
.related.products > h4 {
  margin: 0 0 1.5rem;
}
.related-products-slider{
  position: relative;
/* 	max-width: 50%;
	margin-left: auto !important; */
}

/* Hint arrow: white chevron only, no button chrome */
.related.products .related-products-next,
.related-products-slider > button.related-products-next {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  z-index: 6;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
  line-height: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}
.related.products .related-products-next svg,
.related-products-slider > button.related-products-next svg {
  display: block;
  width: 28px;
  height: 28px;
}
.related.products .related-products-next.spswiper-button-disabled,
.related-products-slider > button.related-products-next.spswiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.related.products ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.related.products ul.products li.product {
  margin: 4px;
  padding: 0;
  height: auto;
}

.woocommerce .product .entry-summary .product-summary-kampanje {
  margin: 0 0 0.75rem;
}

.woocommerce .product .feature-product-section {
  clear: both;
  margin-top: 0;
  /* Gap from gallery / related products down to Funksjoner (or Beskrivelse when empty). */
  padding-top: 80px;
}

/* When Produktseksjoner are empty: preserve the same top gap without a Funksjoner block. */
.woocommerce .product .feature-product-section--empty {
  display: block;
  grid-template-columns: unset;
  gap: 0;
  padding-inline: 0;
  padding-bottom: 0;
  margin: 0;
  min-height: 0;
  border: 0;
  pointer-events: none;
}

.custom-product-card {
  position: relative;
  background-color: #FAFAFA;
  border: 1px solid #41413F;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: background-color 0.2s ease;
  padding-bottom: 1.5rem;
  /* Keep radius while hovering — do not scale the card itself
     (transform on the rounded box drops the visible corner clip). */
  isolation: isolate;
}
.custom-product-card:hover {
  background-color: #E6E6E5;
}

.product-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #F5F5F5;
  border-radius: 8px 8px 0 0;
}

.product-image a {
  display: block;
  height: 100%;
  overflow: hidden;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.2s ease;
  transform-origin: center center;
}

.custom-product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  gap: 0.75rem;
}
.custom-product-card .product-static-text,
.custom-product-card .product-title,
.product-meta .product-brand {
  font-family: 'Montserrat';
  font-style: normal;
  color :#1D1D1B;
  font-size: 14px;
  font-weight: 500;
}

/* Brand name wrap: tight line box on narrow cards (e.g. CASE Construction Equipment) */
.custom-product-card .product-brand,
.product-meta .product-brand {
  line-height: 1.1;
}
.custom-product-card .product-title {
   font-size: 18px;
}

.product-wishlist img {
  display: block;
  width: 18px;
  height: 18px;
}

.product-title {
  margin: 0;
  padding: 0 1rem;
}

.product-title a {
  text-decoration: none;
  color: inherit;
}

.product-static-text {
  padding: 0.35rem 1rem 1rem;
  color: #666666;
}


/* Hide default WooCommerce variable product dropdowns but keep the form for JS functionality */
.woocommerce div.product form.cart table.variations {
    display: none !important;
}

/* Optional: hide variation labels if they remain visible */
.woocommerce div.product form.cart table.variations th,
.woocommerce div.product form.cart table.variations td {
    display: none !important;
}

/* =========================================
   Forhandler (Find dealer) section
   ========================================= */

.forhandler-wrapper {
  max-width: 1200px;
  margin-inline: auto;
  padding: 3rem;
  background-color: #F5F5F5;
  border-radius: 8px;
	margin-block: 4rem;
}

.forhandler-wrapper--compact {
  max-width: 100%;
  margin-block: 0;
  padding: 3rem;
}

/* Compact homepage widget only — Figma 347:4935 (sub1 20px Medium, 32px gap to search) */
.forhandler-wrapper--compact .forhandler-compact-title {
  margin: 0 0 2rem; /* scale/800 = 32px */
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem; /* sub1 = 20px */
  font-weight: 500;
  line-height: 1.3; /* sub1 line-height 26px */
  text-align: center;
  color: #3b3831;
}

.forhandler-wrapper--compact .forhandler-results {
  max-height: none;
  overflow: visible;
}

.forhandler-wrapper--compact .forhandler-count[hidden] {
  display: none;
}

.forhandler-wrapper--compact .forhandler-list {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.forhandler-wrapper--compact .forhandler-card {
  width: 100%;
  max-width: 100%;
}

.forhandler-compact-footer {
  /* Compact homepage: +12px below results vs prior 1.25rem */
  margin-top: calc(1.25rem + 12px);
}

/* Homepage Elementor: «Om våre forhandlere» → same outline as category «Les mer»
   (!important: Elementor post-43.css for 7e5e0e6 loads after the child theme) */
.elementor-43 .elementor-element.elementor-element-7e5e0e6 .elementor-button {
  background-color: transparent !important;
  color: var(--e-global-color-text, #1D1D1B) !important;
  fill: var(--e-global-color-text, #1D1D1B) !important;
  border-style: solid !important;
  border-width: 2px !important;
  border-color: var(--e-global-color-521f4f0, #41413F) !important;
  border-radius: 4px !important;
  padding: 12px 16px !important;
}
.elementor-43 .elementor-element.elementor-element-7e5e0e6 .elementor-button:hover,
.elementor-43 .elementor-element.elementor-element-7e5e0e6 .elementor-button:focus {
  background-color: var(--e-global-color-accent, #A91633) !important;
  color: var(--e-global-color-2944d7b, #FAFAFA) !important;
  border-color: var(--e-global-color-accent, #A91633) !important;
}
.elementor-43 .elementor-element.elementor-element-7e5e0e6 .elementor-button:hover svg,
.elementor-43 .elementor-element.elementor-element-7e5e0e6 .elementor-button:focus svg,
.elementor-43 .elementor-element.elementor-element-7e5e0e6 .elementor-button:hover svg *,
.elementor-43 .elementor-element.elementor-element-7e5e0e6 .elementor-button:focus svg *,
.elementor-43 .elementor-element.elementor-element-7e5e0e6 svg * {
  fill: currentColor !important;
}

/* Homepage: Landbruksmaskiner split — 48px gap image↔content on tablet */
@media (max-width: 1024px) and (min-width: 768px) {
  .elementor-43 .elementor-element.elementor-element-e055ba4 {
    --gap: 48px !important;
    gap: 48px !important;
  }
}

/* Homepage hero: rotating word (Maskiner / Redskaper / Traktorer)
   Width follows the current word — no reserved min-width (avoids sentence gap). */
.hcp-hero-rotate {
  display: inline;
  vertical-align: baseline;
  transition: opacity 0.35s ease;
}

.hcp-hero-rotate.is-fading {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hcp-hero-rotate {
    transition: none;
  }
}

/* Never show WooCommerce "Vis handlekurv" — favorites use a custom popup */
a.added_to_cart.wc-forward {
  display: none !important;
}

/* Favorites added modal — Figma Designsystem 2369:25991 (664×685) */
body.hcp-favorites-modal-open {
  overflow: hidden;
}

.hcp-favorites-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.hcp-favorites-modal[hidden] {
  display: none !important;
}

.hcp-favorites-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 27, 0.45);
}

.hcp-favorites-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(664px, 100%);
  max-height: min(90vh, 900px);
  overflow: hidden;
  background: #fafafa !important;
  border: 1.5px solid #1d1d1b !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 24px !important;
  font-family: "Montserrat", sans-serif;
  color: #1d1d1b;
  box-sizing: border-box;
}

/* Beat Elementor / theme heading + button globals inside this modal only */
.hcp-favorites-modal h2.hcp-favorites-modal__title,
.hcp-favorites-modal .hcp-favorites-modal__title {
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 30px !important;
  font-weight: 500 !important;
  line-height: 36px !important;
  letter-spacing: 0 !important;
  color: #000000 !important;
  text-transform: none !important;
}

.hcp-favorites-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  width: 100%;
}

.hcp-favorites-modal button.hcp-favorites-modal__close,
.hcp-favorites-modal .hcp-favorites-modal__close {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid #2f2f2d !important;
  border-radius: 4px !important;
  background: #f5f5f5 !important;
  background-color: #f5f5f5 !important;
  box-shadow: none !important;
  color: #1d1d1b !important;
  cursor: pointer;
  box-sizing: border-box !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.hcp-favorites-modal .hcp-favorites-modal__close img,
.hcp-favorites-modal .hcp-favorites-modal__close svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  margin: 0 !important;
  filter: none !important;
}

.hcp-favorites-modal .hcp-favorites-modal__close:hover,
.hcp-favorites-modal .hcp-favorites-modal__close:focus-visible {
  background: #e6e6e5 !important;
  background-color: #e6e6e5 !important;
  color: #1d1d1b !important;
}

.hcp-favorites-modal__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: auto;
}

.hcp-favorites-modal__empty {
  margin: 0;
  color: #8e8e8d;
  font-family: "Quicksand", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.hcp-favorites-modal__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background: #f5f5f5;
  box-sizing: border-box;
}

.hcp-favorites-modal__thumb {
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.hcp-favorites-modal__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hcp-favorites-modal__meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  align-self: stretch;
}

.hcp-favorites-modal__name,
.hcp-favorites-modal .hcp-favorites-modal__name {
  margin: 0 !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 31.2px !important;
  color: #1d1d1b !important;
}

.hcp-favorites-modal__name a {
  color: inherit !important;
  text-decoration: none !important;
}

.hcp-favorites-modal__name a:hover,
.hcp-favorites-modal__name a:focus-visible {
  text-decoration: underline !important;
}

.hcp-favorites-modal__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #8e8e8d;
}

.hcp-favorites-modal__desc {
  margin: 0 !important;
  font-family: "Quicksand", "Montserrat", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 22.4px !important;
  color: #8e8e8d !important;
}

.hcp-favorites-modal__options {
  margin: 0 !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 19.6px !important;
  color: #8e8e8d !important;
}

.hcp-favorites-modal button.hcp-favorites-modal__remove,
.hcp-favorites-modal .hcp-favorites-modal__remove {
  appearance: none !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #1d1d1b !important;
  cursor: pointer;
  line-height: 1 !important;
}

.hcp-favorites-modal .hcp-favorites-modal__remove img,
.hcp-favorites-modal .hcp-favorites-modal__remove svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  filter: none !important;
}

.hcp-favorites-modal .hcp-favorites-modal__remove:hover,
.hcp-favorites-modal .hcp-favorites-modal__remove:focus-visible {
  opacity: 0.7;
  background: transparent !important;
}

.hcp-favorites-modal .hcp-favorites-modal__remove:disabled {
  opacity: 0.4;
  cursor: wait;
}

.hcp-favorites-modal__actions {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
  width: 100%;
}

.hcp-favorites-modal .hcp-favorites-modal__btn,
.hcp-favorites-modal a.hcp-favorites-modal__btn,
.hcp-favorites-modal button.hcp-favorites-modal__btn {
  appearance: none !important;
  display: inline-flex !important;
  flex: 1 1 0 !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  border-radius: 4px !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 19.6px !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
  box-sizing: border-box !important;
}

.hcp-favorites-modal .hcp-favorites-modal__btn--ghost,
.hcp-favorites-modal button.hcp-favorites-modal__btn--ghost {
  background: transparent !important;
  background-color: transparent !important;
  border: 2px solid #41413f !important;
  color: #1d1d1b !important;
}

.hcp-favorites-modal .hcp-favorites-modal__btn--ghost:hover,
.hcp-favorites-modal .hcp-favorites-modal__btn--ghost:focus-visible,
.hcp-favorites-modal button.hcp-favorites-modal__btn--ghost:hover,
.hcp-favorites-modal button.hcp-favorites-modal__btn--ghost:focus-visible {
  background: #1d1d1b !important;
  background-color: #1d1d1b !important;
  border-color: #1d1d1b !important;
  color: #fafafa !important;
}

.hcp-favorites-modal .hcp-favorites-modal__btn--primary,
.hcp-favorites-modal a.hcp-favorites-modal__btn--primary {
  background: #a91633 !important;
  background-color: #a91633 !important;
  border: 2px solid #a91633 !important;
  color: #fafafa !important;
}

.hcp-favorites-modal .hcp-favorites-modal__btn--primary:hover,
.hcp-favorites-modal .hcp-favorites-modal__btn--primary:focus-visible,
.hcp-favorites-modal a.hcp-favorites-modal__btn--primary:hover,
.hcp-favorites-modal a.hcp-favorites-modal__btn--primary:focus-visible {
  background: #7e1026 !important;
  background-color: #7e1026 !important;
  border-color: #7e1026 !important;
  color: #fafafa !important;
}

@media (max-width: 600px) {
  .hcp-favorites-modal__dialog {
    padding: 16px !important;
    gap: 16px;
  }

  .hcp-favorites-modal h2.hcp-favorites-modal__title,
  .hcp-favorites-modal .hcp-favorites-modal__title {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }

  .hcp-favorites-modal__item {
    gap: 12px;
    padding: 12px;
  }

  .hcp-favorites-modal__thumb {
    width: 72px;
    height: 72px;
  }

  .hcp-favorites-modal__name,
  .hcp-favorites-modal .hcp-favorites-modal__name {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  .hcp-favorites-modal__meta {
    gap: 8px;
  }

  .hcp-favorites-modal__actions {
    flex-direction: column;
    gap: 12px;
  }

  .hcp-favorites-modal .hcp-favorites-modal__btn,
  .hcp-favorites-modal a.hcp-favorites-modal__btn,
  .hcp-favorites-modal button.hcp-favorites-modal__btn {
    width: 100% !important;
    flex: none !important;
  }
}

.forhandler-more-results {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #1D1D1B;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: color 150ms ease-out;
}

.forhandler-more-results:hover,
.forhandler-more-results:focus-visible {
  color: #1D1D1B80;
}

.forhandler-more-results__icon {
  display: inline-flex;
  line-height: 0;
}

.forhandler-more-results__icon svg {
  display: block;
  fill: currentColor;
}

.forhandler-wrapper--compact .forhandler-brand-filter {
  gap: 0.5rem 1rem;
}

.forhandler-wrapper--compact .forhandler-brand-label span {
  font-size: 13px;
}

/* Search */
.forhandler-search {
  position: relative;
  margin-bottom: 1.5rem;
}

.forhandler-search input[type="text"] {
  width: 100%;
  padding: 0.313rem 2.25rem;
  border: 2px solid #E6E6E5;
  border-radius: 4px;
  background-color: #ffffff;
  outline: none;
}

.forhandler-search input[type="text"]::placeholder {
  color: #8E8E8D;
}

/* Optional search icon (add via ::before if needed) */
.forhandler-search::before,
.forhandler-search::after{
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231D1D1B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  filter: brightness(0.5);
	cursor:pointer;
}
.forhandler-search::after {
  filter: unset;
  left: auto;
  right: 10px;
  background-image: url("./assets/images/near_me.svg");
}

/* Brand / Country filters – custom checkbox style */
.forhandler-filter-heading {
  width: 100%;
  margin: 0 0 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6b68;
}

.forhandler-country-filter,
.forhandler-merke-filter {
  margin-bottom: 1.25rem;
}

.forhandler-brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.forhandler-brand-filter label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-family: 'Montserrat';
  font-size: 14px;
  font-weight: 600;
  color: #1D1D1B;
}

/* Hide native checkbox */
.forhandler-brand-filter input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid #2F2F2D;
  border-radius: 0px;
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

/* Checked state */
.forhandler-brand-filter input[type="checkbox"]:checked {
  /* background-color: #A91633;
  border-color: #A91633; */
}

/* Checkmark */
.forhandler-brand-filter input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border: solid #ffffff;
  border-width: 0;
  background-color: #A91633;
  transform: translate(-50%, -50%);
}

/* Hover */
.forhandler-brand-filter input[type="checkbox"]:checked::after:hover {
   background-color: #A91633;
}

/* Focus for accessibility */
.forhandler-brand-filter input[type="checkbox"]:focus-visible {
  outline: 2px solid #A91633;
  outline-offset: 2px;
}

/* Merke filter uses radio (single selection) */
.forhandler-merke-filter .forhandler-brand-filter input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid #2F2F2D;
  border-radius: 50%;
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.forhandler-merke-filter .forhandler-brand-filter input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #A91633;
  transform: translate(-50%, -50%);
}

.forhandler-merke-filter .forhandler-brand-filter input[type="radio"]:focus-visible {
  outline: 2px solid #A91633;
  outline-offset: 2px;
}

/* Count */
.forhandler-count {
  font-family: 'Montserrat';
	font-size: 14px;
  font-weight: 600;
  color: #000;
  padding-bottom: .75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #41413F;
}

.forhandler-nearest-banner {
  grid-column: 1 / -1;
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d8dee6;
  background: #f5f7fa;
  color: #1a2b3c;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.forhandler-distance {
  margin: 0.35rem 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4a5d73;
}

/* List – 2 columns */
.forhandler-list {
  font-family: 'Montserrat';
  font-weight: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); */
  gap: 0;
  overflow: hidden;
  gap: 1.5rem 3rem;
}

.forhandler-load-more-row {
  display: flex;
  justify-content: center;
  grid-column: 1 / -1;
  margin-top: 1.5rem;
}

.forhandler-load-more-row[hidden] {
  display: none !important;
}

.forhandler-load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border: 1px solid #1D1D1B;
  border-radius: 0;
  background: transparent;
  color: #1D1D1B;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}

.forhandler-load-more-button:hover,
.forhandler-load-more-button:focus-visible {
  background-color: #1D1D1B;
  color: #fff;
}

.forhandler-load-more-button:disabled,
.forhandler-load-more-button.is-loading {
  opacity: 0.55;
  cursor: wait;
}

/* Individual card — entire row is the link */
.forhandler-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem 0.875rem 1rem;
  border-bottom: 1px solid #41413F;
  transition: background-color 150ms ease-out;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.forhandler-card:hover,
.forhandler-card:focus-visible {
  background-color: #E2ABB6;
  outline: none;
}

/* .forhandler-card:nth-last-child(-n+2) {
  border-bottom: none;
} */

.forhandler-left h3 {
	font-size: 16px;
	font-weight: 600;
  margin: 0;
  color: #1D1D1B;
}

/* Inline flow so the flag sits after the last word — not at the end of a
   full-width flex row when the name wraps to multiple lines. */
.forhandler-title-row {
  display: block;
  margin-bottom: 0.25rem;
}

.forhandler-title-row h3 {
  display: inline;
}

.forhandler-title-row .forhandler-country-image {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 0.5rem;
  line-height: 0;
}

.forhandler-title-row .forhandler-country-image img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.forhandler-left p {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  color: #1D1D1B;
}

.forhandler-right .forhandler-cta,
.forhandler-right a {
	font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #1D1D1B;
  text-decoration: none;
  white-space: nowrap;
  transition: all 150ms ease-out;
}
.forhandler-card:hover .forhandler-cta,
.forhandler-card:hover a {
  transform: translateX(8px);
}
.forhandler-right .forhandler-cta img,
.forhandler-right a img{
  max-width: 11.33px;
}

.forhandler-card:is(:hover,:focus-visible) .forhandler-cta {
  opacity: 0.85;
}
/* =========================================
   Checkbox loader (per country)
   ========================================= */

.forhandler-country-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hide loader by default */
.forhandler-checkbox-loader {
  display: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

/* Show loader when label has .is-loading */
.forhandler-country-label.is-loading .forhandler-checkbox-loader {
  display: inline-flex;
}

/* Optional: hide the real checkbox while loading */
.forhandler-country-label.is-loading input[type="checkbox"] {
  display: none;
}

/* Spinner inside the loader */
.forhandler-checkbox-loader .forhandler-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #dddddd;
  border-top-color: #A91633;
  border-radius: 50%;
  animation: forhandler-checkbox-spin 0.7s linear infinite;
}

@keyframes forhandler-checkbox-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =========================================
   Alle produkter – Filter + Grid Layout
   ========================================= */

.archive.post-type-archive.post-type-archive-product .site-main{
  max-width: 1440px;
  padding-inline: 3rem;
}

.post-type-archive-product .woocommerce-breadcrumb,
.post-type-archive-en_del_av .woocommerce-breadcrumb{
  margin-top: 4rem;
  margin-bottom: 0rem;
}
 
.woocommerce-products-header {
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.woocommerce-products-header .page-title {
  font-size: 46px;
}

.custom-wc-filter-layout {
  max-width: 1440px;
  margin-inline: auto;
/*   padding-inline: 3rem; */
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
  /* 48px — space under «Alle produkter» / archive title */
  margin-top: 3rem;
  margin-bottom: 4rem;
}

/* ---------- Sidebar (desktop) ---------- */
.custom-product-filter {
  position: sticky;
  /* --hcp-header-offset = max(admin bar, visible header bottom); keep 1.5rem gap */
  top: calc(var(--hcp-header-offset, var(--hcp-header-height, 7.875rem)) + 1.5rem);
  /* No top transition: lag caused filter to sit under header / flush to chrome */
}

.custom-wc-filter-drawer-header,
.custom-wc-filter-drawer-footer,
.custom-wc-mobile-filter-toggle {
  display: none; /* only for mobile — legacy drawer toggles */
}

/* Mobile filter bar + sheet: hidden on desktop (≥1025); shown ≤1024 */
.hcp-mobile-filter-bar,
.hcp-mobile-filter-sheet,
.hcp-mobile-filter-overlay {
  display: none;
}

/* Filter header */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-inline: 1rem;
}


.filter-header h3 {
  font-family: "Montserrat";
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #1D1D1B;
}


/* Filter groups */
.filter-group {
  border-top: 1px solid #565654;
  padding-top: 1rem;
  margin-top: 1rem;
  padding-inline: 1rem;
}

.filter-group:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}


.elementor-default.elementor-kit-17 .custom-filter-inner button,
.elementor-default.elementor-kit-17 .custom-selected-filters button.selected-clear-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #1D1D1B !important;
  font-size: 16px;
	margin-bottom: 20px;
}
.elementor-default.elementor-kit-17 .custom-filter-inner button {
  width : 100%;
}
.elementor-default.elementor-kit-17 .custom-filter-inner .filter-item-row button {
  width : 10px;
	margin-bottom: 0px;
	display: block;
}
.elementor-default.elementor-kit-17 .custom-filter-inner button:is(:hover,:focus) {
	outline: none;
}

.elementor-default.elementor-kit-17 .filter-header button.filter-reset.custom-clear-filters,
.elementor-default.elementor-kit-17 .custom-selected-filters button.selected-clear-all{
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #A91633 !important;
  text-decoration: none;
  font-size: 14px;
}

.elementor-default.elementor-kit-17 .filter-header button.filter-reset.custom-clear-filters {
  width: auto;
  display: inline-flex;
}

.elementor-default.elementor-kit-17 .filter-reset.custom-clear-filters:hover {
  color: #1D1D1B;
}
.elementor-default.elementor-kit-17 .custom-filter-inner .filter-group > button{
  margin-bottom: 1rem;
}
.elementor-default.elementor-kit-17 .custom-filter-inner .filter-group  button img{
  transition: all 0.3s ease;
}
.elementor-default.elementor-kit-17 .custom-filter-inner .filter-group > button .arrow-up img,
.elementor-default.elementor-kit-17 .custom-filter-inner .filter-group button .icon-open img {
  transform: rotate(90deg);
}


.custom-filter-group-title {
  font-weight: 500;
}

.custom-filter-group-arrow {
  font-size: 0.85em;
  color: #8E8E8D;
}


/* Filter items */
.filter-term-item {
  margin-bottom: 0.5rem;
}
/* Negative indent only on desktop sidebar; tablet/mobile sheet must not overflow */
@media (min-width: 1025px) {
  .filter-term-item > .filter-item-row:has(.filter-toggle-child) {
    margin-left: -1rem;
  }
}
.filter-term-item > .filter-children .filter-item-row{
  margin-left: 0rem;
}
.filter-term-item > .filter-children .filter-term-item .filter-children{
	margin-left: 2rem;
}
.filter-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.filter-item-row:nth-last-child(-n+1) {
  margin-bottom: 0rem;
}

.filter-term-item .filter-children {
  margin-left: 1rem;
}
/* Smooth accordion for nested categories */
.filter-children {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, 
              opacity 0.25s ease,
              margin 0.25s ease;
  margin-top: 0;
}

/* Open state – add this class with JS instead of style="display:block" */
.filter-children.is-open {
  max-height: 1200px;   /* large enough for deep nesting */
  opacity: 1;
  margin-top: 0.35rem;
}
/* temp */
.filter-children {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease,
              opacity 0.25s ease,
              margin 0.25s ease;
  margin-top: 0;
}

.filter-children.is-open {
  max-height: 1200px;   /* increase if you have very deep nesting */
  opacity: 1;
  margin-top: 0.35rem;
}

/* Optional: rotate the chevron */
.filter-toggle-icon {
  display: inline-flex;
  transition: all 0.150ms ease;
}

.filter-toggle-child[aria-expanded="true"] .filter-toggle-icon {
/*   transform: rotate(90deg); */
}



.filter-toggle-placeholder,
.filter-toggle-child {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #8E8E8D;
  font-size: 14px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  cursor: pointer;
  margin: 0;
}
.filter-toggle-placeholder{display: none;}

.filter-item input[type="checkbox"] {
  width: 24px;
    height: 24px;
    accent-color: #A91633;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid #8E8E8D;
}

.filter-name {
  flex: 1;
  color: #1D1D1B;
}
.filter-name,
.filter-count {
  font-family: "Montserrat";
  font-size: 14px;
  color: #1D1D1B;
}

/* Nested children */
.filter-children {
  margin-top: 0.25rem;
}

.filter-level-1 .filter-name,
.filter-level-2 .filter-name {
  font-weight: 400;
}

/* ---------- Products content ---------- */
.custom-wc-products-content {
  min-width: 0; /* prevent grid overflow */
}

.custom-wc-search-results-header {
    display: flex;
    align-items: center;
    gap: 10px;   
}
/* Result count + ordering */
.custom-wc-search-results-header,
.woocommerce-result-count {
  font-family: 'Montserrat';
  font-size: 14px;
  color: #000000;
  float: left;
  clear: left;
}
.woocommerce .woocommerce-result-count {
    margin: 0 0 0em;
}

.woocommerce-ordering {
  margin-bottom: 1.25rem;
  clear: inline-end;
  margin-top: -24px !important;
  margin-bottom: 2rem !important;
}

.woocommerce-ordering select.orderby {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid #565654;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1D1D1B;
  cursor: pointer;
  min-width: 180px;
  font-weight: 600;
}

/* Selected / active filter chips */
.custom-selected-filters {
  margin-bottom: 1.5rem;
	clear: both;
}

.selected-filter-inner,
.selected-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
	align-items: center;
}
.selected-filter-inner{
	gap: 1.5rem;
}
.elementor-default.elementor-kit-17 .selected-filter-list .selected-filter-chip {
   background-color: none;
  border: 0px solid #B8B8B7;
}
.elementor-default.elementor-kit-17 .selected-filter-list .selected-filter-chip:is(:hover,:focus) {
  background-color: none;
  border: 0px solid #B8B8B7;
}
.selected-filter-list .selected-filter-chip,
.custom-selected-filters .filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background-color: #B8B8B7;
  border: 1px solid #B8B8B7;
  border-radius: 6px;
  color: #1D1D1B;
  font-size: 14px;
  font-weight: 600;
}
.selected-filter-list .selected-filter-chip .selected-filter-remove{
  font-size: 30px;
  font-weight: 400;
  line-height: 0;
}
.woocommerce-result-count {
  color: #000;
}

.selected-filter-list .selected-filter-chip button,
.custom-selected-filters .filter-chip .remove {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #8E8E8D;
  font-size: 1.1em;
  line-height: 1;
}

/* Product grid (cards already styled) */
.custom-wc-products-content ul.products:before{
	content: unset;
}
.custom-wc-products-content ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.woocommerce .custom-wc-products-content ul.products li.product {
  margin: 0;
  padding: 0;
  width: 100%;
 float: unset;
 
}
.woocommerce .custom-wc-products-content ul.products li.product .custom-product-card {
	border-color: #41413F;
}
.custom-product-card .kampanje-text {
	position: absolute;
	top: 1rem;
	left: 1rem;
	/* Keep Figma ::before / ::after stripes — do not flatten to a plain pill */
	z-index: 2;
}

/* Load more */
.custom-wc-load-more-row {
  margin-top: 1rem;
  text-align: center;
}

.custom-wc-load-more-progress {
  color: #1D1D1B;
  font-size: 16px;
  margin-bottom: 1rem;
}


/* Custom search bar – collapsed underline; open = single gray pill (Figma Variant3) */

/* Kill Elementor shortcode/widget chrome that paints a white outer pill */
.elementor-location-header .elementor-widget-shortcode:has(.search-products-ajax),
.elementor-location-header .elementor-widget-shortcode:has(.search-products-ajax) > .elementor-widget-container,
.elementor-location-header .elementor-shortcode:has(.search-products-ajax) {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 430px;
}

.elementor-location-header .elementor-shortcode:has(.search-products-ajax) {
  display: block;
  width: 100%;
}

.search-products-ajax {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 87px;
  width: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: max-width 0.3s ease, background-color 0.25s ease;
}

/* Expand wrapper — gray field (Figma Variant3: #F5F5F5, radius 4px, no stroke) */
.search-products-ajax:focus-within,
.search-products-ajax.is-open {
  max-width: 430px;
  width: 100%;
  background-color: #F5F5F5;
  background-image: url("./assets/images/sokefelt-bg.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  border: none !important;
  outline: none !important;
  border-radius: 4px;
  box-shadow: none !important;
  /* Horizontal only — vertical padding grew the header vs closed 36px state */
  padding: 0 8px;
}

.search-products-ajax .search-products-input {
  width: 100%;
  height: 36px;
  padding: 0 10px 0 36px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #8E8E8D;
  background-color: transparent;
  background-image: none;
  border: none;
  border-bottom: 2px solid #565654;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-radius 0.2s ease,
    max-width 0.3s ease;
  box-sizing: border-box;
}

/* Search icon */
.search-products-ajax::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238E8E8D'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
  transition: background-image 0.2s ease;
}

.search-products-input::placeholder {
  color: #8E8E8D;
  opacity: 1;
}

.search-products-ajax:not(:focus-within):not(.is-open) .search-products-input:hover {
  background-color: #565654;
  color: #8E8E8D;
}

/* Open state: input is transparent; wrapper is the only gray surface */
.search-products-input:focus,
.search-products-input:focus-visible,
.search-products-ajax.is-open .search-products-input,
.search-products-ajax:focus-within .search-products-input {
  background-color: transparent !important;
  background-image: none !important;
  color: #1D1D1B;
  border: none !important;
  border-bottom: none !important;
  border-radius: 4px;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.search-products-ajax:focus-within::before,
.search-products-ajax.is-open::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231D1D1B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
}

/* Clear button */
.search-products-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #1D1D1B;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.15s ease;
  z-index: 2;
}

.search-products-clear:hover {
  opacity: 1;
}

/* Show clear button only when there is text */
.search-products-input:not(:placeholder-shown) + .search-products-clear {
  display: flex;
}
.search-products-ajax .search-products-clear {
  display: none;
}

/* Suggestions */
.search-products-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 430px;                   /* keep suggestions full width */
  background: #F5F5F5;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  z-index: 100;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}

.search-products-ajax.is-open .search-products-suggestions,
.search-products-ajax:focus-within .search-products-suggestions {
  display: block;
}
/* Hide native search clear button (WebKit/Blink) */
.search-products-input::-webkit-search-cancel-button,
.search-products-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Extra safety for some browsers */
.search-products-input[type="search"]::-webkit-search-cancel-button {
  display: none !important;
}

/* ===== Search Results Dropdown ===== */
.search-products-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 430px;               /* matches the expanded search bar */
  background: #F5F5F5;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  max-height: 380px;
  overflow-y: auto;
  padding: 12px 0;
  font-family: "Montserrat", sans-serif;
}

.search-suggestion-empty{
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #1D1D1B;
}

/* Label "Hva leter du etter?" */
.search-suggestion-source,
.search-suggestion-label {
  padding: 6px 20px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #8E8E8D;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.search-suggestion-source {
  line-height: 1;
  padding-inline: 5px;
}


/* Individual suggestion items */
.search-suggestion-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  text-decoration: none;
  color: #1D1D1B;
  transition: background-color 0.15s ease;
}

.search-suggestion-item:hover {
  color: #A91633;
  background-color: #EBEBEB;
}

/* Title text */
.search-suggestion-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* "Se alle resultater" item */
.search-suggestion-item.search-suggestion-all {
  margin-top: 6px;
  border-top: 1px solid #E0E0E0;
  padding-top: 14px;
  font-weight: 600;
  color: #1D1D1B;
}

.search-suggestion-item.search-suggestion-all:hover {
  background-color: #EBEBEB;
}

.search-suggestion-item.search-suggestion-all .search-suggestion-title {
  font-weight: 600;
}


/* Product-category -  Aktive kampanjer style */
.category-kampanjer-section {
  margin-bottom: 1.5rem;
}
.category-kampanjer-title {
  margin: 0 0 0.75rem;
  padding: 0;
  font-family: var(--e-global-typography-cba6195-font-family, "Montserrat"), sans-serif;
  /* Same as subcategory titles (.hcp-category-group-title); beat Elementor h2 kit size */
  font-size: 24px !important;
  font-weight: var(--e-global-typography-cba6195-font-weight, 600);
  line-height: var(--e-global-typography-cba6195-line-height, 1.3);
  color: var(--e-global-color-secondary, #1d1d1b);
}
.category-kampanjer-list {}
.category-kampanjer-list .kampanjer-item{
  background: #7E1026;
}

.category-kampanjer-list .kampanjer-item .kampanjer-end-date{ 
  color: #E2ABB6;
}
.category-kampanjer-list .kampanjer-item .kampanjer-title,
.category-kampanjer-list .kampanjer-item .kampanjer-content *{
  color: #FAFAFA;
}
/* Product-category -  Aktive kampanjer style */

/* category-latest-products: layout handled by kampanjer-slider (JS page size) */


/* Kategorier og merker Link/button style */
.display-all-child-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 1rem;
}
.display-all-child-category-links .elementor-button.product-child-category-link {
  position: relative;
  font-family: "Montserrat";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 1;
  max-width: calc(33.333% - 1rem);
  padding: 1.25rem 1.7rem 1.232rem 2rem;
}
.display-all-child-category-links .elementor-button.product-child-category-link img{width: 13.33px;}

.display-all-child-category-links .elementor-button.product-child-category-link:is(:hover,:focus) {
  background-color: #7E1026;
  border-color: #7E1026;
}
.display-all-child-category-links .elementor-button.product-child-category-link::after {
  content: "";
  position: absolute;
  display: block;
  height: 100%;
  width: 100%;
  background-image: url("./assets/images/link-button.svg");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
  inset: 0px;
  background-position: right center;
}
.display-all-child-category-links .elementor-button.product-child-category-link:is(:hover,:focus)::after {
   background-image: url("./assets/images/link-button-hover.svg");
}
.display-all-child-category-links .elementor-button.product-child-category-link:nth-child(n + 7) {
  width: 100%;
  max-width: calc(25% - 1rem);
}
/* Kategorier og merker Link/button style */

/* ============================================================
   TABLET – max-width: 1024px
   ============================================================ */
@media (max-width: 1024px) {
   
  /* Gallery becomes full width and sits on top */
  .woocommerce .product #wpgs-gallery {
    max-width: 100% !important;
    width: 100%;
  }
  .woocommerce .product #wpgs-gallery .wcgs-slider-image {
    height: auto !important;
    max-height: min(70vh, 900px) !important;
    aspect-ratio: 1 / 1;
  }
  .woocommerce .product #wpgs-gallery .wcgs-slider-image-tag,
  .woocommerce .product #wpgs-gallery .wcgs-slider-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: auto !important;
  }
	.woocommerce .product #wpgs-gallery .wcgs-slider-image-tag {
		    aspect-ratio: auto;
	}
  /* Summary also full width */
  .woocommerce .product .entry-summary {
    max-width: 100% !important;
    margin-right: 0;
    padding: 1rem 1.5rem 0;
	  margin-bottom: 0;
  }

  /* Slightly smaller title */
  .woocommerce .product .entry-summary .product_title {
    font-size: 2.5rem;
    margin-block: 1.25rem;
  }

  /* Reduce some vertical spacing */
  .woocommerce .product .entry-summary .woocommerce-breadcrumb {
    margin-bottom: 2.5rem;
  }

  .woocommerce .product .entry-summary .woocommerce-product-details__short-description {
    margin-block: 2rem;
  }

  .custom-variation-wrapper {
    margin-block: 3rem;
  }
  .technical-specifications-header {
    /* flex-direction: column;
    align-items: flex-start; */
  }
  /* Feature cards – 2 columns on tablet */
  .feature-product-section {
    grid-template-columns: repeat(2, 1fr);
    padding-inline: 1.5rem;
  }

  /* Variation cards stay in a row but can wrap */
  .variation-cards {
    gap: 12px;
  }

  .variation-card {
    min-width: 110px;
  }
	.related.products {
    max-width: 100% !important;
    width: 100%;
    float: none;
    clear: both;
    padding-inline: 1.5rem;
    margin-bottom: 2rem;
  }
	.product-details-section{
		padding-inline: 1.5rem;
    grid-template-columns: 1fr;
    gap: 24px;
	}
  
  .forhandler-wrapper {
   padding: 1.5rem;
   margin-block: 2rem;
  }

  .forhandler-wrapper--compact {
    padding: 3rem;
    margin-block: 0;
  }

  .forhandler-list {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .forhandler-card {
    flex-wrap: wrap;
    gap: 0.5rem;

  }
  .archive.post-type-archive.post-type-archive-product .site-main {
    padding-inline: 2rem;
  }
  .custom-wc-products-content ul.products { 
    grid-template-columns: repeat(2, 1fr);
  }
  
  .woocommerce .woocommerce-ordering, .woocommerce-page .woocommerce-ordering {
    margin-top: 0 !important;
  }
  .woocommerce .woocommerce-ordering, .woocommerce-page .woocommerce-ordering,
  .woocommerce .woocommerce-result-count, .woocommerce-page .woocommerce-result-count {
    float: none;
    margin-bottom: 1rem !important;
  }
  .custom-wc-filter-layout {
    margin-top: 3rem;
    margin-bottom: 4rem;
    /* Tablet: drop 280px sidebar column — same chrome as mobile filter bar */
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
    min-width: 0;
  }

  .custom-product-filter,
  .custom-wc-mobile-filter-toggle,
  .custom-wc-filter-drawer-overlay,
  .custom-wc-filter-drawer-header,
  .custom-wc-filter-drawer-footer {
    display: none !important;
  }

  .hcp-mobile-filter-bar {
    display: block;
    margin-bottom: 1rem;
    max-width: 100%;
    min-width: 0;
  }

  .hcp-mobile-cat-scroller {
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .hcp-mobile-cat-chip {
    flex: 0 0 auto;
    font-family: Montserrat, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid #A91633;
    background: #fff;
    color: #A91633;
    cursor: pointer;
    white-space: nowrap;
  }
  .hcp-mobile-cat-chip.is-active,
  .hcp-mobile-cat-chip[aria-pressed="true"] {
    background: #A91633;
    color: #fff;
  }

  .hcp-mobile-filter-sort-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 100%;
    min-width: 0;
  }

  .hcp-mobile-filter-open {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    font-family: Montserrat, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1.5px solid #A91633;
    background: #fff;
    color: #A91633;
    cursor: pointer;
  }

  .hcp-mobile-ordering {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .hcp-mobile-ordering .woocommerce-ordering {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    float: none;
    width: 100%;
  }
  .hcp-mobile-ordering .woocommerce-ordering select.orderby {
    width: 100%;
    max-width: 100%;
    min-width: 8rem;
    flex: 1;
    font-family: Montserrat, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 44px;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #9a9a98;
    background-color: #fff;
    color: #1D1D1B;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231D1D1B' d='M1.4 1.4 6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 12px 8px;
    margin-top: 3px;
  }

  .custom-wc-products-content > .woocommerce-result-count,
  .custom-wc-products-content > .woocommerce-ordering {
    display: none !important;
  }

  .hcp-mobile-filter-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(29, 29, 27, 0.45);
    z-index: 100040;
  }
  .hcp-mobile-filter-overlay[hidden] {
    display: none !important;
  }

  .hcp-mobile-filter-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100050;
    max-height: 85vh;
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
    transform: translateY(110%);
    transition: transform 0.28s ease;
  }
  .hcp-mobile-filter-sheet[hidden] {
    display: none !important;
  }
  body.hcp-mobile-filters-open .hcp-mobile-filter-sheet {
    transform: translateY(0);
  }
  body.hcp-mobile-filters-open {
    overflow: hidden;
  }

  .hcp-mobile-filter-sheet__handle {
    width: 2.5rem;
    height: 0.28rem;
    border-radius: 999px;
    background: #cfcfcd;
    margin: 0.65rem auto 0.35rem;
  }
  .hcp-mobile-filter-sheet__header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.5rem 1rem 0.75rem;
  }
  .hcp-mobile-filter-sheet__header h2 {
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #A91633;
  }
  .hcp-mobile-filter-sheet__close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #1D1D1B;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 0.25rem 0.4rem;
  }
  .hcp-mobile-filter-sheet__body {
    overflow-y: auto;
    padding: 0.25rem 1.25rem 1rem;
    flex: 1 1 auto;
  }
  .hcp-mobile-filter-section__title {
    margin: 0 0 0.75rem;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1D1D1B;
  }
  .hcp-mobile-brand-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .hcp-mobile-brand-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: Montserrat, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1D1D1B;
    cursor: pointer;
    min-height: 44px;
  }
  .hcp-mobile-brand-checkbox {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: #A91633;
    flex-shrink: 0;
  }
  .hcp-mobile-brand-count {
    color: #565654;
    font-weight: 500;
  }
  .hcp-mobile-filter-sheet__footer {
    flex: 0 0 auto;
    padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e8e8e6;
    background: #fff;
  }
  .hcp-mobile-filter-apply {
    display: block;
    width: 100%;
    border: none;
    border-radius: 999px;
    background: #A91633;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    min-height: 44px;
    padding: 0.9rem 1rem;
    cursor: pointer;
  }

  /* Prevent header search suggestions from forcing horizontal scroll */
  .search-products-suggestions {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .search-products-ajax {
    max-width: 100%;
    min-width: 0;
  }

  .post-type-archive-product .woocommerce-breadcrumb,
  .post-type-archive-en_del_av .woocommerce-breadcrumb{
   margin-top: 4rem;
   margin-bottom: 0rem;
  }
}
@media (max-width: 768px) {
  .related.products ul.products li.product {
    margin: 4px;
    padding: 0;
    height: auto;
    width: calc(50% - 8px);
    max-width: calc(50% - 8px);
    float: unset !important;
  }
  /* Kategorier og merker Link/button style */
  .display-all-child-category-links .elementor-button.product-child-category-link {
    max-width: calc(50% - 1rem);
  }

  .display-all-child-category-links .elementor-button.product-child-category-link:nth-child(n + 7) {
    max-width: calc(50% - 1rem);
  }
  /* Kategorier og merker Link/button style */
}
/* ============================================================
   MOBILE – max-width: 767px
   ============================================================ */
@media (max-width: 767px) {

  /* Gallery: edge-to-edge, shorter square-ish slider (not near-full viewport height) */
  .woocommerce .product #wpgs-gallery {
    min-width: 100vw !important;
    max-width: 100vw !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    position: relative;
    left: auto;
    right: auto;
  }

  .woocommerce .product #wpgs-gallery .wcgs-carousel,
  .woocommerce .product #wpgs-gallery .wcgs-carousel .spswiper-wrapper,
  .woocommerce .product #wpgs-gallery .wcgs-carousel .spswiper-slide {
    width: 100% !important;
    max-width: 100% !important;
  }

  .woocommerce .product #wpgs-gallery .wcgs-slider-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
  }

  .woocommerce .product #wpgs-gallery .wcgs-slider-image-tag,
  .woocommerce .product #wpgs-gallery .wcgs-slider-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    aspect-ratio: auto !important;
  }

  /* Hide thumb strip on mobile — keep main slider + pagination dots */
  .woocommerce .product #wpgs-gallery .gallery-navigation-carousel-wrapper {
    display: none !important;
  }

  /* Summary full width + tighter padding */
  .woocommerce .product .entry-summary {
    max-width: 100% !important;
    padding: 0rem 0.5rem 0;
  }

  /* Title size for mobile */
  .woocommerce .product .entry-summary .product_title {
    font-size: 2rem;
    margin-block: 1rem;
  }

  .woocommerce .product .entry-summary .product-brand a,
  .woocommerce .product .entry-summary .price,
  .woocommerce .product .entry-summary .woocommerce-product-details__short-description p strong {
    font-size: 18px;
  }

  /* Breadcrumb tighter */
  .woocommerce .product .entry-summary .woocommerce-breadcrumb {
    margin-bottom: 1.5rem;
    gap: 4px 8px;
    font-size: 13px;
  }

  /* Short description */
  .woocommerce .product .entry-summary .woocommerce-product-details__short-description {
    margin-block: 1.5rem;
  }

  .woocommerce .product .entry-summary .woocommerce-product-details__short-description p {
    font-size: 15px;
  }

  /* Action buttons – stack on very small screens */
  .product-action-row {
    gap: 1rem;
  }

  .product-action-row .wishlist-col a.tinvwl_add_to_wishlist_button,
  .product-action-row .contact-col a {
    justify-content: center;
    width: 100%;
  }

  /* Variation section */
  .custom-variation-wrapper {
    margin-block: 2rem;
  }

  .variation-title {
    margin-bottom: 16px;
  }

  .variation-cards {
    gap: 10px;
  }

  .variation-card {
    min-width: 100px;
    padding: 4px 6px 2px;
  }

  .variation-card strong {
    font-size: 16px;
  }

  .variation-card span {
    font-size: 13px;
  }

  /* Feature cards – single column on mobile */
  .feature-product-section {
    grid-template-columns: 1fr;
    padding-inline: 0.5rem;
    gap: 24px;
  }

  /* Thumbnails a bit smaller on mobile */
  .woocommerce .product #wpgs-gallery .wcgs-thumb {
    width: 56px !important;
    height: 56px !important;
  }

  /* Pagination dots slightly smaller */
  .woocommerce .product #wpgs-gallery .spswiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .woocommerce .product #wpgs-gallery .spswiper-pagination {
    bottom: 12px;
    gap: 6px;
  }
	.related.products {
    max-width: 100%;
    width: 100%;
    float: none;
    clear: both;
		padding-inline: 0.5rem;
  }
	.product-details-section {
    padding-inline: 0.5rem;
  }
  .product-details-left, .product-details-right {
    padding: 1rem;
  }
  .forhandler-wrapper {
    padding: 1rem;
  }

  .forhandler-wrapper--compact {
    padding: 1.5rem;
    margin-block: 0;
  }
  .forhandler-count{
    margin-bottom: 1rem;
  }
  .forhandler-list {
    gap: 0;
    grid-template-columns: 1fr;
  }
  .forhandler-card {
    padding-inline: 0.5rem 1rem;
  }
	.custom-product-filter{position: static;}
	.custom-wc-filter-layout {
		grid-template-columns: 1fr;
	}
	.custom-wc-products-content ul.products{
		grid-template-columns: 1fr 1fr;
	}

  /* ---- Mobile filter UI (chips + bottom sheet) ---- */
  .custom-product-filter,
  .custom-wc-mobile-filter-toggle,
  .custom-wc-filter-drawer-overlay,
  .custom-wc-filter-drawer-header,
  .custom-wc-filter-drawer-footer {
    display: none !important;
  }

  .hcp-mobile-filter-bar {
    display: block;
    margin-bottom: 1rem;
    max-width: 100%;
    min-width: 0;
  }

  .hcp-mobile-cat-scroller {
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .hcp-mobile-cat-scroller::-webkit-scrollbar {
    height: 3px;
  }
  .hcp-mobile-cat-scroller::-webkit-scrollbar-thumb {
    background: #cfcfcd;
    border-radius: 999px;
  }

  .hcp-mobile-cat-chip {
    flex: 0 0 auto;
    font-family: Montserrat, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid #A91633;
    background: #fff;
    color: #A91633;
    cursor: pointer;
    white-space: nowrap;
  }
  .hcp-mobile-cat-chip.is-active,
  .hcp-mobile-cat-chip[aria-pressed="true"] {
    background: #A91633;
    color: #fff;
  }

  .hcp-mobile-filter-sort-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 100%;
    min-width: 0;
  }

  .hcp-mobile-filter-open {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    font-family: Montserrat, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1.5px solid #A91633;
    background: #fff;
    color: #A91633;
    cursor: pointer;
  }
  .hcp-mobile-filter-open__icon {
    display: block;
  }

  .hcp-mobile-ordering {
    flex: 1 1 auto;
    min-width: 0;
  }
  .hcp-mobile-ordering .woocommerce-ordering {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    float: none;
    width: 100%;
  }
  .hcp-mobile-ordering .woocommerce-ordering select.orderby {
    width: 100%;
    max-width: 100%;
    min-width: 8rem;
    flex: 1;
    font-family: Montserrat, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 44px;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #9a9a98;
    background-color: #fff;
    color: #1D1D1B;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231D1D1B' d='M1.4 1.4 6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 12px 8px;
    margin-top: 3px;
  }

  /* Hide desktop result count + ordering inside products column on mobile */
  .custom-wc-products-content > .woocommerce-result-count,
  .custom-wc-products-content > .woocommerce-ordering {
    display: none !important;
  }

  .hcp-mobile-filter-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(29, 29, 27, 0.45);
    z-index: 100040;
  }
  .hcp-mobile-filter-overlay[hidden] {
    display: none !important;
  }

  .hcp-mobile-filter-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100050;
    max-height: 85vh;
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
    transform: translateY(110%);
    transition: transform 0.28s ease;
  }
  .hcp-mobile-filter-sheet[hidden] {
    display: none !important;
  }
  body.hcp-mobile-filters-open .hcp-mobile-filter-sheet {
    transform: translateY(0);
  }
  body.hcp-mobile-filters-open {
    overflow: hidden;
  }

  .hcp-mobile-filter-sheet__handle {
    width: 2.5rem;
    height: 0.28rem;
    border-radius: 999px;
    background: #cfcfcd;
    margin: 0.65rem auto 0.35rem;
  }
  .hcp-mobile-filter-sheet__header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.5rem 1rem 0.75rem;
  }
  .hcp-mobile-filter-sheet__header h2 {
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #A91633;
  }
  .hcp-mobile-filter-sheet__close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #1D1D1B;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 0.25rem 0.4rem;
  }
  .hcp-mobile-filter-sheet__body {
    overflow-y: auto;
    padding: 0.25rem 1.25rem 1rem;
    flex: 1 1 auto;
  }
  .hcp-mobile-filter-section__title {
    margin: 0 0 0.75rem;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1D1D1B;
  }
  .hcp-mobile-brand-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .hcp-mobile-brand-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: Montserrat, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1D1D1B;
    cursor: pointer;
  }
  .hcp-mobile-brand-checkbox {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: #A91633;
    flex-shrink: 0;
  }
  .hcp-mobile-brand-count {
    color: #565654;
    font-weight: 500;
  }
  .hcp-mobile-filter-sheet__footer {
    flex: 0 0 auto;
    padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e8e8e6;
    background: #fff;
  }
  .hcp-mobile-filter-apply {
    display: block;
    width: 100%;
    border: none;
    border-radius: 999px;
    background: #A91633;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 1rem;
    cursor: pointer;
  }

  .technical-specifications-header {
    flex-wrap: wrap;
  }
  .product-details-header h4,
  .technical-specifications-header h4{
    margin:0;
    font-size: 24px;
  }
  .feature-product-section-content {
    padding: 1rem;
  }
  .technical-specifications-value{
    white-space: normal;
  }
  .archive.post-type-archive.post-type-archive-product .site-main {
    padding-inline: 1rem;
  }
  .custom-wc-filter-layout {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

  /* Header search must not force document overflow on narrow phones */
  .search-products-suggestions {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
  }
  .search-products-ajax {
    max-width: 100%;
    min-width: 0;
  }

  /* Search + Mine favoritter row (Elementor d01ef18).
     Closed: side-by-side. Open: full row width, keep ~10px dark padding above/below
     (Elementor padding lives on the search widget; absolute would otherwise sit flush). */
  .elementor-location-header .elementor-element-d01ef18 {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    box-sizing: border-box;
    min-height: 56px; /* 36px field + 10px + 10px */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  /* Let absolute open-search use d01ef18 as containing block — do NOT force width:100% (that wrapped favorites). */
  .elementor-location-header .elementor-element-d01ef18 .elementor-element-6acd913,
  .elementor-location-header .elementor-element-d01ef18 .elementor-widget-shortcode:has(.search-products-ajax),
  .elementor-location-header .elementor-element-d01ef18 .elementor-widget-shortcode:has(.search-products-ajax) > .elementor-widget-container,
  .elementor-location-header .elementor-element-d01ef18 .elementor-shortcode:has(.search-products-ajax) {
    position: static !important;
    max-width: none !important;
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
    z-index: auto;
  }
  .elementor-location-header .elementor-element-d01ef18 .elementor-element-189bcc8 {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
  }
  /* Open: expand over favorites; inset 10px so dark bottom-header padding remains */
  .elementor-location-header .elementor-element-d01ef18 .search-products-ajax:focus-within,
  .elementor-location-header .elementor-element-d01ef18 .search-products-ajax.is-open {
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;
    bottom: auto;
    transform: none;
    height: 36px;
    width: 100%;
    max-width: none !important;
    z-index: 40;
    box-sizing: border-box;
  }
  /* Keep favorites space so row height stays stable; hide visually while search overlays */
  .elementor-location-header .elementor-element-d01ef18:has(.search-products-ajax.is-open) .elementor-element-189bcc8,
  .elementor-location-header .elementor-element-d01ef18:has(.search-products-ajax:focus-within) .elementor-element-189bcc8 {
    visibility: hidden;
    pointer-events: none;
  }
  .elementor-location-header .elementor-element-d01ef18 .search-products-ajax.is-open .search-products-suggestions,
  .elementor-location-header .elementor-element-d01ef18 .search-products-ajax:focus-within .search-products-suggestions {
    min-width: 100% !important;
    width: 100% !important;
    max-width: none !important;
    left: 0;
    right: 0;
  }

  /* Kontakt: hide logo image above kontaktinformasjon */
  .elementor-1325 .elementor-element.elementor-element-44e6bed {
    display: none !important;
  }
  /* Kontaktinformasjon card: image hidden on mobile — drop column-reverse
     (was for image-above-text); equal inner padding top/bottom. */
  .elementor-1325 .elementor-element.elementor-element-48ff604 {
    --flex-direction: column;
    --padding-top: 2.5rem;
    --padding-bottom: 2.5rem;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Footer: hide diagonal stripe / background graphic on mobile */
  .elementor-206 .elementor-element.elementor-element-ec6d1a6,
  .elementor-location-footer .elementor-element-ec6d1a6 {
    background-image: none !important;
  }
  .elementor-206 .elementor-element.elementor-element-ec6d1a6:not(.elementor-motion-effects-element-type-background),
  .elementor-206 .elementor-element.elementor-element-ec6d1a6 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
  .elementor-location-footer .elementor-element-ec6d1a6:not(.elementor-motion-effects-element-type-background),
  .elementor-location-footer .elementor-element-ec6d1a6 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: none !important;
  }
  .elementor-location-footer .elementor-background-overlay {
    background-image: none !important;
    opacity: 0 !important;
  }

  .woocommerce-products-header {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }
  .post-type-archive-product .woocommerce-breadcrumb,
  .post-type-archive-en_del_av .woocommerce-breadcrumb{
    margin-top: 3rem;
    margin-bottom: 0rem;
  }
  
  /* Kategorier og merker Link/button style */
  .display-all-child-category-links {
    gap: 1rem;
  }
   .display-all-child-category-links .elementor-button.product-child-category-link,
  .display-all-child-category-links .elementor-button.product-child-category-link:nth-child(n + 7) {
    max-width: 100%;
  }
  /* Kategorier og merker Link/button style */
}


@media (max-width: 480px) {
  .forhandler-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .custom-wc-products-content ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.elementor.elementor .elementor-widget-n-menu.e-n-menu-tablet .e-n-menu-toggle,
.elementor.elementor .elementor-widget-n-menu.e-n-menu-tablet .e-n-menu-toggle:hover,
.elementor.elementor .elementor-widget-n-menu.e-n-menu-tablet .e-n-menu-toggle:focus{
    background-color: transparent;
    border-style: none;
    border-width: 0;
    border-color: transparent;
    padding: 0;
}
/* HCP language switcher (no/dk/fi) */
.hcp-lang-switcher {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 0 1rem;
}
.hcp-lang-switcher--global {
  /* Header-adjacent sticky chrome (above sticky header stacking). */
  display: inline-flex;
  position: fixed;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 10050;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d7d7d4;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.hcp-lang-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1b;
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.hcp-lang-link.is-active,
.hcp-lang-link:hover {
  background: #2f2f2d;
  color: #f5f5f5;
}

/* =========================================================
   Sticky header: hide on scroll down, show on scroll up
   Keep Elementor header (#112) colors intact — avoid transform
   on the whole location (creates containing block / washes bg).
   ========================================================= */
.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  /* Opaque fallback behind semi-transparent Elementor layers (match #112) */
  background-color: #2f2f2d;
  transition: top 0.28s ease;
  /* Avoid transform: it creates a containing block and washes nested header colors */
  transform: none !important;
}
.elementor-location-header.hcp-header--hidden {
  top: var(--hcp-header-hide-offset, -120px);
}
@media (prefers-reduced-motion: reduce) {
  .elementor-location-header {
    transition: none;
  }
}

/* Header divider between top + mega row: 1.5px (Elementor kit still sets --border-top-width: 2px) */
.elementor-112 .elementor-element.elementor-element-5dae86c {
  border-width: 1.5px 0 0 0;
  --border-top-width: 1.5px;
  --border-right-width: 0px;
  --border-bottom-width: 0px;
  --border-left-width: 0px;
}

/*
 * Do NOT use content-visibility on mega-menu panels.
 * Elementor desktop mega menus open via CSS :hover; content-visibility:auto
 * on closed panels can leave dropdowns empty / non-interactive when JS is late
 * or fails (symptoms: hover does nothing, only main links clickable).
 */

/* Portal header-menu DnD: CSS order on titles / .e-n-menu-item */
.elementor-location-header .e-n-menu-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

/* =========================================================
   Mega-menu active item (desktop): red plate + white bottom border
   Elementor sets bg + border-width on .e-current but omits border-color.
   ========================================================= */
.elementor-location-header .e-n-menu-heading .e-n-menu-item > .e-n-menu-title.e-current,
.elementor-location-header .e-n-menu-heading .e-n-menu-item > .e-n-menu-title:hover {
  background-color: var(--e-global-color-accent, #a91633) !important;
  border-style: solid !important;
  border-width: 0 0 4px 0 !important;
  border-color: transparent transparent #ffffff transparent !important;
}
@media (max-width: 1024px) {
  /* Mobile accordion already uses accent bg for all items — keep white underline on current only */
  .elementor-location-header .e-n-menu-heading .e-n-menu-item > .e-n-menu-title.e-current {
    border-color: transparent transparent #ffffff transparent !important;
  }
}

/* =========================================================
   Footer address (maps link): Hello reset sets a { color:#c36 },
   which overrides the Text/Light color on the text-editor widget.
   ========================================================= */
.elementor-location-footer .elementor-widget-text-editor a,
.elementor-location-footer .elementor-widget-text-editor a:hover,
.elementor-location-footer .elementor-widget-text-editor a:focus,
.elementor-location-footer .elementor-widget-text-editor a:visited {
  color: #ffffff;
}

/* =========================================================
   Category archive: subtle prev/next on Elementor BG slideshow
   (no plate — Elementor kit paints all <button> with accent red)
   ========================================================= */
.elementor-element.hcp-has-bg-slideshow {
  position: relative;
}
.elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav,
body.elementor-kit-17 .elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.55) !important;
  fill: rgba(255, 255, 255, 0.55) !important;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease, opacity 0.2s ease, fill 0.2s ease;
  opacity: 1;
}
.elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav:hover,
.elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav:focus-visible,
body.elementor-kit-17 .elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav:hover,
body.elementor-kit-17 .elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
  fill: rgba(255, 255, 255, 0.92) !important;
  outline: none;
}
.elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav--prev {
  left: 10px;
}
.elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav--next {
  right: 10px;
}
.elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav svg {
  width: 28px;
  height: 28px;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
@media (max-width: 767px) {
  .elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav {
    width: 36px;
    height: 52px;
    color: rgba(255, 255, 255, 0.45) !important;
  }
  .elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav svg {
    width: 24px;
    height: 24px;
  }
  .elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav--prev {
    left: 4px;
  }
  .elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav--next {
    right: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .elementor-element.hcp-has-bg-slideshow > .hcp-bg-slideshow-nav {
    transition: none;
  }
}

/* =========================================================
   Forhandler single (Figma)
   ========================================================= */
.hcp-dealer-single {
  --hcp-red: #a91633;
  --hcp-red-dark: #7e1026;
  --hcp-dark: #41413f;
  --hcp-page: #2f2f2d;
  --hcp-text: #1d1d1b;
  --hcp-muted: #6b6b68;
  --hcp-surface: #f5f5f5;
  --hcp-light: #fafafa;
  --hcp-max: 1344px;
  --hcp-gutter: clamp(1.25rem, 4vw, 3rem);
  color: var(--hcp-text);
  font-family: 'Montserrat', sans-serif;
  background: var(--hcp-light);
}
.hcp-dealer-single__hero {
  position: relative;
  overflow: hidden;
  background: var(--hcp-dark);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(4rem, 10vw, 8rem) var(--hcp-gutter);
  min-height: clamp(12rem, 28vw, 20rem);
}
.hcp-dealer-single__hero-stripes {
  position: absolute;
  right: -4.5rem;
  top: -7.5rem;
  width: min(70vw, 1123px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hcp-dealer-single__hero-inner,
.hcp-dealer-single__main,
.hcp-dealer-single__aktuelt-inner {
  width: min(var(--hcp-max), calc(100% - (2 * var(--hcp-gutter))));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.hcp-dealer-single__main {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 6rem);
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.hcp-dealer-single__title {
  color: var(--hcp-light);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  max-width: 100%;
}
.hcp-dealer-single__contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--hcp-surface);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.hcp-dealer-single__contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-inline-start: clamp(0rem, 2vw, 3rem);
}
.hcp-dealer-single__contact h2,
.hcp-dealer-single__brands h2,
.hcp-dealer-single__kampanjer-title,
.hcp-dealer-single__aktuelt-head h2 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  color: var(--hcp-text);
}
.hcp-dealer-single__brands h2 {
  font-size: 2.125rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}
.hcp-dealer-single__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.hcp-dealer-single__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}
.hcp-dealer-single__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  object-fit: contain;
  /* Optically align icon with first-line cap height (18px type × 1.3 ≈ 23.4). */
  margin-top: 0.15em;
}
.hcp-dealer-single__contact-list a {
  color: inherit;
  text-decoration: none;
}
.hcp-dealer-single__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--hcp-red);
  color: var(--hcp-light) !important;
  text-decoration: none !important;
  border: 2px solid var(--hcp-red);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  cursor: pointer;
  box-sizing: border-box;
  width: fit-content;
}
.hcp-dealer-single__btn-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  object-fit: contain;
}
.hcp-dealer-single__photo {
  min-width: 0;
}
.hcp-dealer-single__photo img,
.hcp-dealer-single__photo-placeholder {
  width: 100%;
  aspect-ratio: 600 / 400;
  max-height: 443px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-color: #eee;
  border: 0;
}
.hcp-dealer-single__brands {
  padding: 0;
}
.hcp-dealer-single__brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.hcp-dealer-single__brand {
  width: 100%;
  max-width: none;
  height: 110px;
  box-sizing: border-box;
  background: #f3f3f1;
  border: 1px solid #e6e6e4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  border-radius: 4px;
  overflow: hidden;
}
.hcp-dealer-single__brand img {
  display: block;
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .hcp-dealer-single__brand-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Homepage importer logo carousel: white section + light-grey per-logo boxes */
.elementor-element-e8e2ea8,
.elementor-element-f8f43c2 {
  background-color: #ffffff !important;
}
.elementor-element-25145ce .elementor-carousel-image {
  background-color: transparent !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  width: 100% !important;
  min-width: 100%;
  min-height: 120px;
  height: 100%;
  flex: 1 1 auto;
  align-self: stretch;
}
.elementor-element-25145ce .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: #F5F5F5 !important;
}
.elementor-element-25145ce .elementor-main-swiper {
  width: 100%;
}
.elementor-element-25145ce .swiper-wrapper {
  align-items: center;
}
section.hcp-dealer-single__map-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-top: 25px;
}
.hcp-dealer-single__map {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.hcp-dealer-single__map iframe,
.hcp-dealer-single__map-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  border: 0;
  background:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-color: #eee;
}
.hcp-dealer-single__maps-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--hcp-dark);
  border-radius: 4px;
  color: var(--hcp-text) !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  background: transparent;
  box-sizing: border-box;
}
.hcp-dealer-single__maps-link:hover,
.hcp-dealer-single__maps-link:focus {
  background: rgba(65, 65, 63, 0.06);
}
.hcp-dealer-single__kampanjer {
  padding: 0;
}
.hcp-dealer-single__kampanjer-title {
  font-size: 1.875rem;
  margin: 0 0 1.5rem;
}
.hcp-dealer-single__kampanje-list.kampanjer-list {
  gap: 1.5rem;
}
.hcp-dealer-single .category-kampanjer-list .kampanjer-item,
.hcp-dealer-single__kampanje {
  background: var(--hcp-red-dark);
  color: var(--hcp-light);
  border-radius: 8px;
  padding: 1.5rem;
}
.hcp-dealer-single .category-kampanjer-list .kampanjer-title,
.hcp-dealer-single .category-kampanjer-list .kampanjer-content,
.hcp-dealer-single .category-kampanjer-list .kampanjer-end-date {
  color: var(--hcp-light);
}
.hcp-dealer-single .category-kampanjer-list .kampanjer-end-date {
  color: #e2abb6;
  font-size: 1.125rem;
}
.hcp-dealer-single .category-kampanjer-list .kampanjer-title {
  font-size: 1.875rem;
  font-weight: 500;
}
.hcp-dealer-single .category-kampanjer-list .kampanjer-content {
  font-family: 'Quicksand', 'Montserrat', sans-serif;
  font-size: 1.125rem;
  line-height: 1.4;
}
.hcp-dealer-single .category-kampanjer-list .kampanjer-cta {
  background: var(--hcp-red);
  border: 2px solid var(--hcp-red);
  color: var(--hcp-light) !important;
  margin-top: 1rem;
}
.hcp-dealer-single .category-kampanjer-list .kampanjer-cta:hover,
.hcp-dealer-single .category-kampanjer-list .kampanjer-cta:focus {
  background: #8f122b;
  border-color: #8f122b;
}
.hcp-dealer-single__aktuelt {
  background: var(--hcp-dark);
  color: var(--hcp-light);
  padding: clamp(3rem, 6vw, 4rem) 0;
  width: 100%;
}
.hcp-dealer-single__aktuelt-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.hcp-dealer-single__aktuelt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
}
.hcp-dealer-single__aktuelt-head h2 {
  color: var(--hcp-light);
  font-size: 2.125rem;
  line-height: 1.65;
}
.hcp-dealer-single__aktuelt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}
.hcp-dealer-single__aktuelt-card {
  color: var(--hcp-light);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.hcp-dealer-single__aktuelt-hit {
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
  text-decoration: none;
}
.hcp-dealer-single__aktuelt-hit:hover,
.hcp-dealer-single__aktuelt-hit:focus-visible {
  color: inherit;
  outline: none;
}
.hcp-dealer-single__aktuelt-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-inline-end: 1.5rem;
}
.hcp-dealer-single__aktuelt-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}
.hcp-dealer-single__aktuelt-card p {
  margin: 0;
  font-family: 'Quicksand', 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}
.hcp-dealer-single__aktuelt-hit:hover h3,
.hcp-dealer-single__aktuelt-hit:focus-visible h3,
.hcp-dealer-single__aktuelt-hit:hover .hcp-dealer-single__readmore,
.hcp-dealer-single__aktuelt-hit:focus-visible .hcp-dealer-single__readmore {
  opacity: 0.85;
}
.hcp-dealer-single__readmore {
  color: var(--hcp-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
}
.hcp-dealer-single__readmore-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.hcp-dealer-single__aktuelt-image,
.hcp-dealer-single__aktuelt-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #4a4a47;
}
.hcp-dealer-single__aktuelt-image.is-empty {
  background:
    linear-gradient(45deg, #5a5a57 25%, transparent 25%),
    linear-gradient(-45deg, #5a5a57 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #5a5a57 75%),
    linear-gradient(-45deg, transparent 75%, #5a5a57 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-color: #3a3a38;
}

/* =========================================================
   Aktuelt single — light editorial
   ========================================================= */
.hcp-aktuelt-single {
  --hcp-red: #8b1e1e;
  --hcp-dark: #1d1d1b;
  --hcp-muted: #6b6b68;
  --hcp-border: #e6e6e4;
  color: var(--hcp-dark);
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  padding-bottom: 0;
  margin-bottom: 0;
}
.hcp-aktuelt-single__shell {
  width: min(720px, calc(100% - 2rem));
  margin: 2.5rem auto 3rem;
}
.hcp-aktuelt-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}
.hcp-aktuelt-single__back {
  color: var(--hcp-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.hcp-aktuelt-single__back:hover,
.hcp-aktuelt-single__back:focus-visible {
  color: var(--hcp-red);
}
.hcp-aktuelt-single__date {
  color: var(--hcp-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.hcp-aktuelt-single h1.hcp-aktuelt-single__title {
  margin: 0 0 1.5rem;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--hcp-dark);
}
.hcp-aktuelt-single__media {
  margin: 0 0 2rem;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}
.hcp-aktuelt-single__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hcp-aktuelt-single__content {
  font-family: 'Quicksand', 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--hcp-dark);
  padding-bottom: 15px;
}
.hcp-aktuelt-single__content > *:first-child {
  margin-top: 0;
}
.hcp-aktuelt-single__content p {
  margin: 0 0 1.15rem;
}
.hcp-aktuelt-single__content h2,
.hcp-aktuelt-single__content h3,
.hcp-aktuelt-single__content h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  line-height: 1.3;
  margin: 1.75rem 0 0.75rem;
}
.hcp-aktuelt-single__content ul,
.hcp-aktuelt-single__content ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}
.hcp-aktuelt-single__content a {
  color: var(--hcp-red);
}
.hcp-aktuelt-single__related {
  width: 100%;
  padding: 3.5rem 0 4.5rem;
  border-top: none;
  background: #fafafa;
  margin-bottom: 0;
}
/* Grey related band flush to footer on aktuelt singles */
body.single-aktuelt .site-main,
body.single-aktuelt #content,
body.single-aktuelt .page-content,
body.single-aktuelt .elementor-location-single {
  padding-bottom: 0;
  margin-bottom: 0;
}
.hcp-aktuelt-single__related-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.hcp-aktuelt-single__related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.hcp-aktuelt-single__related-head h2 {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0;
  color: var(--hcp-dark);
}
.hcp-aktuelt-single__archive-link {
  color: var(--hcp-red);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.hcp-aktuelt-single__archive-link:hover,
.hcp-aktuelt-single__archive-link:focus-visible {
  text-decoration: underline;
}
.hcp-aktuelt-single__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.hcp-aktuelt-card {
  background: #fff;
  border: 1px solid var(--hcp-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hcp-aktuelt-card__hit {
  color: inherit;
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.hcp-aktuelt-card__hit:hover,
.hcp-aktuelt-card__hit:focus-visible {
  color: inherit;
  outline: none;
}
.hcp-aktuelt-card__image,
.hcp-aktuelt-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eee;
}
.hcp-aktuelt-card__image.is-empty {
  background:
    linear-gradient(45deg, #ddd 25%, transparent 25%),
    linear-gradient(-45deg, #ddd 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd 75%),
    linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-color: #f0f0ee;
}
.hcp-aktuelt-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
h3.hcp-aktuelt-card__title {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--hcp-dark);
}
.hcp-aktuelt-card__hit:hover .hcp-aktuelt-card__title,
.hcp-aktuelt-card__hit:focus-visible .hcp-aktuelt-card__title {
  color: var(--hcp-red);
}
.hcp-aktuelt-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--hcp-muted);
  flex: 1;
}
.hcp-aktuelt-card__more {
  color: var(--hcp-red);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 0.25rem;
}
.hcp-aktuelt-card__hit:hover .hcp-aktuelt-card__more,
.hcp-aktuelt-card__hit:focus-visible .hcp-aktuelt-card__more {
  text-decoration: underline;
}

/* JetEngine aktuelt cards: featured image is CSS background; only «Les mer»
   is a real <a>. Whole item should open the post. */
.jet-listing-grid__item {
  cursor: pointer;
}
.jet-listing-grid__item .elementor-heading-title,
.jet-listing-grid__item .elementor-widget-theme-post-excerpt {
  cursor: pointer;
}

@media (max-width: 900px) {
  .hcp-aktuelt-single__related-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .hcp-aktuelt-single__related-grid {
    grid-template-columns: 1fr;
  }
}

/* Dealer page contact form */
.hcp-dealer-page-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 644px;
}
.hcp-dealer-page-form__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  color: #1d1d1b;
}
.hcp-dealer-page-form__types {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.hcp-dealer-page-form__types-label {
  flex: 0 0 100%;
  padding: 0;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1d1d1b;
}
.hcp-dealer-page-form__types label,
.hcp-dealer-page-form__consent label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1d1d1b;
  cursor: pointer;
}
/* Figma Checkbox (circle radios / square checks) — hide native control */
.hcp-dealer-page-form__types input[type="radio"],
.hcp-dealer-page-form__consent input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.hcp-dealer-page-form__types input[type="radio"] + span,
.hcp-dealer-page-form__consent input[type="checkbox"] + span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hcp-dealer-page-form__types input[type="radio"] + span::before,
.hcp-dealer-page-form__consent input[type="checkbox"] + span::before {
  content: "";
  box-sizing: border-box;
  flex: 0 0 auto;
  border: 2px solid #2f2f2d;
  background: transparent;
}
.hcp-dealer-page-form__types input[type="radio"] + span::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.hcp-dealer-page-form__consent input[type="checkbox"] + span::before {
  width: 14px;
  height: 14px;
  border-radius: 0;
}
.hcp-dealer-page-form__types input[type="radio"]:checked + span::before {
  background:
    radial-gradient(circle at center, #a91633 0 4px, transparent 4.5px);
}
.hcp-dealer-page-form__consent input[type="checkbox"]:checked + span::before {
  background:
    linear-gradient(#a91633, #a91633) center / 6px 6px no-repeat;
}
.hcp-dealer-page-form__types input[type="radio"]:hover:not(:checked) + span::before {
  background:
    radial-gradient(circle at center, #c56175 0 4px, transparent 4.5px);
}
.hcp-dealer-page-form__consent input[type="checkbox"]:hover:not(:checked) + span::before {
  background:
    linear-gradient(#c56175, #c56175) center / 6px 6px no-repeat;
}
.hcp-dealer-page-form__types input[type="radio"]:focus-visible + span::before,
.hcp-dealer-page-form__consent input[type="checkbox"]:focus-visible + span::before {
  outline: 2px solid #a91633;
  outline-offset: 2px;
}
.hcp-dealer-page-form__grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hcp-dealer-page-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1d1d1b;
}
.hcp-dealer-page-form input[type="text"],
.hcp-dealer-page-form input[type="email"],
.hcp-dealer-page-form input[type="tel"],
.hcp-dealer-page-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid #b8b8b7;
  border-radius: 0;
  background: #fafafa;
  padding: 0.75rem 0.5rem;
  font: inherit;
  color: #1d1d1b;
  box-sizing: border-box;
}
.hcp-dealer-page-form input:focus,
.hcp-dealer-page-form textarea:focus {
  outline: none;
  border-bottom-color: #2f2f2d;
}
.hcp-dealer-page-form__phone-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
}
.hcp-dealer-page-form__country {
  width: 100px;
  flex: 0 0 100px;
}
.hcp-dealer-page-form__phone {
  flex: 1 1 auto;
  min-width: 0;
}
.hcp-dealer-page-form__message {
  margin: 0;
}
.hcp-dealer-page-form__message textarea {
  min-height: 132px;
  resize: vertical;
}
.hcp-dealer-page-form__privacy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
}
.hcp-dealer-page-form__privacy h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}
.hcp-dealer-page-form__privacy p {
  margin: 0;
  font-family: 'Quicksand', 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: #1d1d1b;
}
.hcp-dealer-page-form__consent {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.hcp-dealer-page-form__submit {
  width: fit-content;
  min-width: 180px;
  align-self: center;
  background: #a91633;
  color: #fafafa;
  border: 2px solid #a91633;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}
.hcp-dealer-page-form__status {
  margin-top: 0.75rem;
}
.hcp-dealer-page-form__status.is-error {
  color: #a91633;
}
.hcp-dc__hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =========================================================
   Homepage category cards (Redskaper / Park / Anlegg):
   image on top, grey text box below — rounded outer corners
   ========================================================= */
.elementor-element-d164ffe,
.elementor-element-8aeb66f,
.elementor-element-a1341ac {
  overflow: hidden;
}

/* Image block — top of card */
.elementor-element-c4e2d99,
.elementor-element-10d8227,
.elementor-element-9ac67d8 {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
}

/*
 * Elementor background overlay (::before, z-index:1) covers the full image
 * and was intercepting clicks — so the linked <img> never received them.
 * Pass clicks through to the image <a> (same href as «Les mer»).
 */
.elementor-element-c4e2d99::before,
.elementor-element-10d8227::before,
.elementor-element-9ac67d8::before {
  pointer-events: none !important;
}

.elementor-element-c4e2d99 .elementor-widget-image,
.elementor-element-10d8227 .elementor-widget-image,
.elementor-element-9ac67d8 .elementor-widget-image {
  overflow: hidden;
}

.elementor-element-c4e2d99 .elementor-widget-image a,
.elementor-element-10d8227 .elementor-widget-image a,
.elementor-element-9ac67d8 .elementor-widget-image a {
  display: block;
  cursor: pointer;
}

.elementor-element-c4e2d99 img,
.elementor-element-10d8227 img,
.elementor-element-9ac67d8 img {
  border-radius: 8px 8px 0 0;
  transition: transform 0.45s ease;
  transform: scale(1);
  will-change: transform;
}

.elementor-element-c4e2d99:hover img,
.elementor-element-10d8227:hover img,
.elementor-element-9ac67d8:hover img,
.elementor-element-d164ffe:hover .elementor-element-c4e2d99 img,
.elementor-element-8aeb66f:hover .elementor-element-10d8227 img,
.elementor-element-a1341ac:hover .elementor-element-9ac67d8 img {
  transform: scale(1.05);
}

/* Keep overlay CTA above zooming image (still clickable) */
.elementor-element-c4e2d99 .elementor-widget-button,
.elementor-element-10d8227 .elementor-widget-button,
.elementor-element-9ac67d8 .elementor-widget-button {
  z-index: 2;
  pointer-events: auto;
}

/* Grey text block — bottom of card */
.elementor-element-874c4f8,
.elementor-element-c8375af,
.elementor-element-2d27c7d {
  border-radius: 0 0 8px 8px;
}

@media (max-width: 900px) {
  .hcp-dealer-single__contact-row,
  .hcp-dealer-single__map-form,
  .hcp-dealer-single__aktuelt-grid {
    grid-template-columns: 1fr;
  }
  .hcp-dealer-single__contact {
    padding-inline-start: 0;
  }
  .hcp-dealer-single__hero-stripes {
    right: -8rem;
    opacity: 0.9;
  }
  .hcp-dealer-page-form__phone-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hcp-dealer-page-form__country {
    width: 100%;
    flex-basis: auto;
  }
  .hcp-dealer-single__brand-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hcp-dealer-single__brand {
    width: 100%;
    height: 96px;
  }
}

/* ============================================================
   Ansatte listing (Kontakt)
   Match Elementor kit container padding (3rem / 2rem / 1.25rem).
   Parent .elementor-element-bb46072 had L/R 0 on desktop.
   ============================================================ */
.elementor-1325 .elementor-element.elementor-element-bb46072 {
  --padding-left: 3rem;
  --padding-right: 3rem;
}

@media (max-width: 1024px) {
  .elementor-1325 .elementor-element.elementor-element-bb46072 {
    --padding-left: 2rem;
    --padding-right: 2rem;
  }
}

@media (max-width: 767px) {
  .elementor-1325 .elementor-element.elementor-element-bb46072 {
    --padding-left: 1.25rem;
    --padding-right: 1.25rem;
  }
}

.hcp-ansatte-listing {
  max-width: 1344px;
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.hcp-ansatte-section {
  margin-bottom: 3.5rem;
}

.hcp-ansatte-section:last-child {
  margin-bottom: 0;
}

.hcp-ansatte-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1D1D1B;
  margin: 0 0 1.5rem;
}

.hcp-ansatte-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.hcp-ansatt-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hcp-ansatt-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #E8E8E6;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
}

/* Beat Hello/Elementor `img { height: auto }` so cover fills the 3:4 frame */
.elementor .hcp-ansatt-photo img.hcp-ansatt-photo-img,
.hcp-ansatt-photo img.hcp-ansatt-photo-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

.hcp-ansatt-photo-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(45deg, #d9d9d7 25%, transparent 25%) -12px 0 / 24px 24px,
    linear-gradient(-45deg, #d9d9d7 25%, transparent 25%) -12px 0 / 24px 24px,
    linear-gradient(45deg, transparent 75%, #d9d9d7 75%) -12px 0 / 24px 24px,
    linear-gradient(-45deg, transparent 75%, #d9d9d7 75%) -12px 0 / 24px 24px,
    #ececea;
}

/* Title badge overlays photo (reuse .kampanje-text stripes; keep natural casing) */
.hcp-ansatt-photo .hcp-ansatt-title {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  max-width: calc(100% - 1rem);
  font-size: 12px;
  padding: 5px 54px 5px 12px;
  white-space: normal;
  text-transform: none;
}

.hcp-ansatt-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin: 0 0 0.35rem;
  width: 100%;
  min-width: 0;
}

.hcp-ansatt-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1D1D1B;
  margin: 0;
  line-height: 1.3;
  min-width: 0;
}

.hcp-ansatt-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  line-height: 0;
}

.hcp-ansatt-flag {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.hcp-ansatt-flag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.hcp-ansatt-flag--code {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #1D1D1B;
  background: #E8E8E6;
  padding: 2px 5px;
  border-radius: 2px;
  line-height: 1.2;
}

.hcp-ansatt-merker {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #5C5C5A;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  width: 100%;
}

.hcp-ansatt-contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.hcp-ansatt-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
  min-width: 0;
}

.hcp-ansatt-label {
  color: #A91633;
  font-weight: 600;
}

.hcp-ansatt-value,
.hcp-ansatt-value-link {
  color: #1D1D1B;
  text-decoration: none;
  min-width: 0;
  word-break: break-word;
}

.hcp-ansatt-value-link:hover {
  color: #A91633;
}

@media (max-width: 1100px) {
  .hcp-ansatte-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hcp-ansatte-listing {
    padding: 1.5rem 0 3rem;
  }

  .hcp-ansatte-section {
    margin-bottom: 2.7rem;
  }

  .hcp-ansatte-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }

  .hcp-ansatt-row {
    grid-template-columns: 4rem 1fr;
  }
}

/* ===== En del av HCP storefront ===== */
/* Same content width as Alle produkter — Hello Elementor caps .site-main otherwise. */
.archive.post-type-archive.post-type-archive-en_del_av .site-main {
  max-width: 1440px;
  padding-inline: 3rem;
}
/* Defensive: cancel WC float column widths inside our grid (DOM-order independent). */
.hcp-en-del-av-grid ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hcp-en-del-av-grid ul.products li.product {
  margin: 0;
  padding: 0;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}
.hcp-en-del-av-sidebar .filter-term-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Match Alle produkter checkbox markup (.filter-item) — shared rules apply. */
.hcp-en-del-av-sidebar .filter-term-item .filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  cursor: pointer;
  margin: 0;
}
a.custom-product-card.hcp-en-del-av-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.custom-product-card.hcp-en-del-av-card:focus-visible {
  outline: 2px solid #a91633;
  outline-offset: 2px;
}
/* Logos/photos: fit inside the square frame and center (intrinsic imgs sit top otherwise). */
body.woocommerce ul.products li.product a.hcp-en-del-av-card .product-image,
a.custom-product-card.hcp-en-del-av-card .product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 1rem;
  box-sizing: border-box;
}
/* Beat Woo `.woocommerce ul.products li.product a img { margin: 0 0 1em }` */
body.woocommerce ul.products li.product a.hcp-en-del-av-card .product-image img,
a.custom-product-card.hcp-en-del-av-card .product-image img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 !important;
  padding: 0;
  box-sizing: border-box;
  transform: none;
}
body.woocommerce ul.products li.product a.hcp-en-del-av-card:hover .product-image img,
a.custom-product-card.hcp-en-del-av-card:hover .product-image img {
  transform: none;
}
.hcp-en-del-av-card__description {
  margin: 0.5rem 1rem 0;
  padding: 0;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #41413f;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hcp-en-del-av-card__arrow img {
  display: block;
  width: 18px;
  height: 18px;
}
.hcp-en-del-av-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: #e6e6e5;
}
.hcp-en-del-av-filter-layout.is-filtering {
  opacity: 0.7;
  pointer-events: none;
}
.hcp-en-del-av-empty {
  list-style: none;
  grid-column: 1 / -1;
  padding: 2rem 0;
  color: #41413f;
}
/* Categories-only mobile bar: no sort/Filter sheet row under chips. */
.hcp-en-del-av-mobile-filter-bar .hcp-mobile-cat-scroller {
  margin-bottom: 0;
  padding-bottom: 0.25rem;
}
@media (max-width: 1024px) {
  .archive.post-type-archive.post-type-archive-en_del_av .site-main {
    padding-inline: 1.25rem;
  }
  .hcp-en-del-av-grid ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 640px) {
  .hcp-en-del-av-grid ul.products {
    grid-template-columns: 1fr;
  }
}

/* Aktuelt load more */
.is-aktuelt-hidden {
  display: none !important;
}
.hcp-aktuelt-loadmore__actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.5rem;
}
.hcp-aktuelt-loadmore__btn {
  appearance: none;
  border: 1px solid #1d1d1b;
  background: #fff;
  color: #1d1d1b;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-radius: 2px;
}
.hcp-aktuelt-loadmore__btn:hover,
.hcp-aktuelt-loadmore__btn:focus-visible {
  background: #1d1d1b;
  color: #fff;
}

