/* Reset og font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
  }
  
  /* Topbanner */
  .header__topBanner {
    background-color: #d6c8b3;
    text-align: center;
    padding: 10px 0;
  }
  
  .header__topBanner p {
    color: white;
    font-size: 14px;
  }
  
  /* Navigation */
  .mainNav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px;
    background-color: white;
    position: relative;
    z-index: 1000;
    box-shadow: 0px 147px 41px 0px rgba(227, 227, 227, 0.00), 0px 94px 38px 0px rgba(227, 227, 227, 0.01), 0px 53px 32px 0px rgba(227, 227, 227, 0.05), 0px 23px 23px 0px rgba(227, 227, 227, 0.09), 0px 6px 13px 0px rgba(227, 227, 227, 0.10);
  }
  
  .mainNav__burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
   
}
  
  .mainNav__burgerLine {
    width: 24px;
    height: 2px;
    background-color: #111;
  }
  
  .mainNav__logo {
    height: 13px;
    margin-left: 12px;

  }
  
  .navIcons {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }
  
  .navIcons__icon img {
    width: 18px;
    height: 18px;

  }
  
  /* Mobile slide-in menu */
  .mainNav__links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    background-color: white;
    padding: 60px 20px;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  }
  
  .mainNav__links--open {
    left: 0;
  }
  
  .mainNav__link {
    text-decoration: none;
    color: #111;
    font-size: 18px;
    padding: 10px 0;
    display: block;
    min-width: 100px;
  }
  
  .categoryHeader {
    margin: 20px 16px 40px 16px;
  }
  
  .categoryHeader__breadcrumbText {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 38px;
  }
  
  .categoryHeader__breadcrumbLink {
    color: #aaa;
    text-decoration: none;
    
  }
  
  .categoryHeader__title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: #111;
  }
  
  .categoryHeader__text {
    font-size: 14px;
    line-height: 150%;
    color: #5C5C5C;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 38px;
  }
  
  .categoryHeader__textToggle {
    color: #444;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
  }
  
  /* Underkategori-nav */
  .subcategoryNav__list {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    padding-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  
  .subcategoryNav__item {
    background: none;
    border: 0.5px solid #444;
    padding: 10px 12px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
  }
  
  /* Aktiv og hover-styling */
  .subcategoryNav__item:hover,
  .subcategoryNav__item:focus-visible {
    background-color: #444;
    color: #fff;
  }
  
  .subcategoryNav__item--active {
    background-color: #444;
    color: #fff;
  }
  
/* View toggle */
.viewToggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 16px;
  }
  
  .viewToggle__icons {
    display: flex;
    gap: 16px;
   
}
.viewToggle__icon{
    width: 16px;
    padding: 16px 0 6px 0;
    border-bottom: 2px solid transparent;
}

.viewToggle__icon--active {
  
  border-bottom: 2px solid #111;
}
  
  /* Filter */
  .filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    cursor: pointer;
    user-select: none;
  }
  
  .filter__image {
    font-size: 14px;
    color: #111;
  }
  
  .filter__icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  /* - - - - Produktkort - - - - */
  /* === Produktkort container === */
.productCards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 16px 0;
   
  }
  
  /* === Produktkort === */
  .productCard {
    background-color: #fff;
    text-align: center;
    overflow: hidden;
    grid-template-columns: repeat(4, 1fr);
  }
  .productCard--wide {
    grid-column: span 2;
    padding-bottom: 20px;

  }
  .productCard--wide .productCard__arrow {
    opacity: 0 !important;
    pointer-events: none;
  }


  .productCard__imageWrapper {
    position: relative;
    overflow: hidden;
  }
  

  .productCard__imageGallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;

  }
  

  .productCard__image {
    flex: 0 0 100%;
    scroll-snap-align: start;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .productCard__overlay {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    padding: 0 12px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
    pointer-events: none;
  }
  

  .productCard__label {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    border-radius: 4px;
    pointer-events: auto;
    margin-top: 4px;
  }
  

  .productCard__heart {
    background: none;
    color: #8F8F8F;
    border: none;
    cursor: pointer;
    margin-top: 4px;
    pointer-events: auto;
  }
  
  .productCard__heart--active svg path {
    fill: #946969;
  }
  

  .productCard__title {
    font-size: 12px;
    color: #5C5C5C;
    font-weight: 400;
    margin-top: 12px;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow-wrap: break-word;
  }
  

  .productCard__price {
    font-size: 12px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }
  
  .price--sale {
    color: #8A3321;
    font-weight: bold;
    margin-right: 10px;
  }
  
  .price--original {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
  }
  
  .price--normal {
    color: #000;
    font-weight: bold;
  }
  

  .productCard__colors {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin-bottom: 8px;
  }
  
  .productCard__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }
  

  .productCard__arrow {
    display: none;
  }
  
  .productSlider {
    position: relative;
    padding: 24px 0;
    overflow: hidden;
    margin: 32px 0;
  }
  
  .productSlider__heading {
    font-size: 20px;
    margin: 0 16px 16px 5%;
    text-align: left;
    color: #111;
  }
  .productSlider__subHeading{
    font-size: 14px;
    margin: 0 16px 16px 5%;
    text-align: left;
    color: #111;
  }

  
  .productSlider__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px; 
  }
  
  .productSlider__track::-webkit-scrollbar {
    display: none;
  }
  
  .productSlider .productCard {
    flex: 0 0 auto;
    width: 45%;
  }
  /* Pile */
  .productSlider__arrow {
   display: none;
  }

  .productSlider .productSlider__arrow {
    opacity: 0;
    pointer-events: auto;
  }
  
  .productSlider__arrow--left {
    left: 0;
  }
  
  .productSlider__arrow--right {
    right: 0;
  }
  /* Responsive layout – fra 768px */
@media (min-width: 768px) {
  

    .productCard__title {
      font-size: 14px;
    }
  
    .productCard__price {
      font-size: 14px;
    }
  
    .productCard__dot {
      width: 12px;
      height: 12px;
    }
  
    /* 3 kolonner på tablet */
    .productCards {
      grid-template-columns: repeat(3, 1fr);

    }

    .productSlider .productCard {
      width: 30%;
    }
    }
  
  
  /* Desktop layout – fra 1024px */
  @media (min-width: 1024px) {
    .mainNav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 32px;
    }
  
    .mainNav__burger {
      display: none;
    }
    .navIcons{
        min-width: 210px;

  }
    .logo__container {
      min-width: 210px;
    }
  
    .mainNav__logo {
      margin-left: -10px;
    }
  
    .mainNav__links {
      flex: 1; 
      display: flex;
      flex-direction: row;
      justify-content: center;
      gap: 16px;
      position: static;
      padding: 0;
      box-shadow: none;
      transition: none;
      background: none;
      height: auto;
      width: auto;
    }
  
    .mainNav__link {
      padding: 0;
      font-size: 14px;
      color: #000;
      text-decoration: none;
    }
  
    .navIcons {
      width: 200px;
      display: flex;
      gap: 20px;
      align-items: center;
      justify-content: flex-end;
    }
  
    .navIcons__icon img {
      width: 20px;
      height: 20px;
    }
    .categoryHeader{
        margin-bottom: 0;
    }
    .categoryHeader__title{
        font-size: 32px;
    }
    .categoryHeader__text {
        margin: 0 auto 68px;
      }
    .subcategoryNav__list {
        padding-bottom: 14px;
    }
    /* 4 kolonner på desktop */
    .productCards {
      grid-template-columns: repeat(4, 1fr);
    }
    .productCard__arrow {
      display: block;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(255, 255, 255, 0.95);
      border: none;
      font-size: 18px;
      padding: 4px 8px;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      z-index: 4;
      transition: opacity 0.2s ease;
    }
  
    .productCard__arrow--left {
      left: 0px;
    }
  
    .productCard__arrow--right {
      right: 0px;
    }
  
    .productCard:hover .productCard__arrow {
      opacity: 1;
      pointer-events: auto;
    }
    .subcategoryNav__item:focus {
          outline: none;
    }
    .productSlider__arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 5%;
      height: 100%;
      color: #000;
      background-color:#fff;
      border: none;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 3;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
    }
    .productSlider__track {
      padding: 8px 70px; 
    }

    .productSlider .productCard {
      width: 23%;
    }
    
  
    .productSlider .productSlider__arrow {
      opacity: 1;
      pointer-events: auto;
    }
    
    .productSlider__arrow--left {
      left: 0;
    }
    
    .productSlider__arrow--right {
      right: 0;
    }
    
      .productCard:hover .productCard__arrow {
        opacity: 1;
        pointer-events: auto;
      }
    }