
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-family: Poppins;

    /* border: 1px solid red; */
}
#breadcrumbs{
  font-weight: 400;
}
.no-highlight *::selection{
    color: none;
    background: none;
}

.no-highlight::-moz-selection {
    color: none;
    background: none;
}

/* .dropdown-container{
    width: 310px;
} */
.dropdown-container{
  width: 100%;
  max-width: 310px;
}
.product-category-breadcrumb-container{
    width: 100%;
    max-width: 1170px;
}
.product-category-breadcrumb-container p{
    color: #B20000;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.product-category-container{
    min-height: 100vh;
    padding: 40px 50px;
    display: flex;
    width: 100vw;
    /* justify-content: center; */
    flex-direction: column;
    align-items: center;
    
}
/* .product-category-container hr{
    height: 2px;
    border: 0px;
    background-color: #B20000;
} */
.product-category-container hr{
    width: 100%;
    border: none;       
    height: 0px;             
    background: none;      
    
    border-top: 2px solid #B20000; 
}

.product-category-container a,.product-category-container h2, .product-category-container h3{
    text-decoration: none;
    cursor: pointer;
}

.product-category-container-inner{
    margin-top: 45px;
    text-decoration: none;
    max-width: 1170px;
    width: 100%;
    display: flex;
    justify-content: space-around;  
    /* border: 5px solid tomato; */
}
#category-title-desktop, #category-title-mobile{
  margin-top: 14px;
}

.product-category-level-1 h2{
    font-size: 20px;
    padding: 17px 0px 10px 0px;
}
.product-category-level-2 h3{
    font-size: 15px;
    font-weight: 700;
    line-height: 25px; /* 133.333% */
}
.product-category-level-3 p{
    color: #000;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    line-height: 17px; /* 216.667% */
}

.product-category-level-2{
    display: none;
    margin-top: 15px;
    padding-left: 25px;
}
.product-category-level-3{
    display: none;
    padding-left: 15px;
    padding-bottom: 5px;
}
.products-section-container{
    padding-left: 100px;
    width: 100%; /* ensure it takes the full width */
    box-sizing: border-box;

}
.products-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: 275px auto auto; */
    grid-template-rows: auto;
    /* grid-template-rows: 1fr 1fr 1fr; */
    gap: 30px;
    margin-top: 50px;
    /* max-width: calc(1170px - 310px); */
    max-width: none;
    align-content: start;  /* Add this line */


    flex-grow: 1;
  }
.products-container .product-item, .category-name img{
    max-width: 215px;
    min-width: 215px;
    /* border: 1px solid blue; */
  }
  /* .category-name{
  max-width: 219px;
} */

.category-name{
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border-color 0.3s ease;
  padding: 10px;
}
.category-name:hover{
transition: border-color 0.3s ease;
border: 2px solid #B20000;
}

.product-category-container h1#category-title-desktop{
  color: #B20000 !important;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 75% */
}


  .products-container .product {
    list-style-type: none !important;
}
.products-container .woocommerce-loop-product__title{
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
}
.level-3-link p{
  line-height: 1.6;
}

.active-category{
    display: block;
}
.active-category-text.active-category h3{
    color: #B20000;   
}

.dropdown-container.a-link-kredo-hover a p{
  z-index: 0;
}

.dropdown-container{
  flex-grow: 0;
}

.products-container{
  flex-grow: 1;
}


/* Add perm underline on level-3-links */
.level-3-link.underlined p::after{
  z-index: -100;
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(1);
  height: 2px;
  margin-top: 19px;
  left: 0;
  background-color: #E5251F;
  transform-origin: bottom right;
  transition: transform 350ms ease-out;
}



/* PRODUCT LOADING SHIMMER EFFECT START */

.shimmer-effect {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.shimmer-image {
    width: 219px;
    height: 219px;
    margin-bottom: 20px;
    display: block;
}

.shimmer-text {
    width: 80%;
    height: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;

}

.shimmer-price {
    width: 50%;
    height: 20px;
}

.products-container .product-item li{
    list-style-type: none; 
}

.shimmer-title {
    width: 200px; /* Adjust width as per your design */
    height: 40px; /* Adjust height as per your design */
    margin-bottom: 20px;
    display: block;
}

/* PRODUCT LOADING SHIMMER EFFECT STOP */

.product-category-mobile{
    display: none;
}

/* MOBILE STYLES START */

#category-title-mobile{
    color: #B20000;
    font-size: 28px;
    font-weight: 700;
    }

    /* @media only screen and (max-width: 1060px){ */
    @media only screen and (max-width: 1167px){
    .products-container{
        grid-template-columns: repeat(3, 1fr);
    } 
    .products-container .woocommerce-loop-product__title{
        font-size: 18px;
    }
   
.products-container{
grid-template-columns: repeat(2, 1fr);
margin-top: 12px;
gap: 30px;
} 
    }

@media only screen and (max-width: 950px){
     .products-section-container{
        padding-left: 0;
    }
  #breadcrumbs-mobile{
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 400;
  font-size: 12px;
  }
  .product-category-mobile{
      display: block;
  }
  .product-category-desktop{
  display: none;
  }
  .product-ekki-til-a-lager{
  height: 27px;
  top: -15px;
  font-size: 12px;
  }

  .products-container .product{
  margin-top: 10px;
  padding-top: 15px;
  }
  .products-container{
  grid-template-columns: repeat(2, 1fr);
  margin-top: 12px;
  gap: 30px;
  } 
  .products-container .woocommerce-loop-product__title{
  font-size: 14px;
  }
  /* Category and */
  .products-container .et_shop_image img, .products-container .category-name img, .shimmer-image, .products-container .product-item{
  max-width: calc(50vw - 62px);
  /* max-height: calc(50vw - 35px); */
  width: calc(50vw - 62px);
  /* height: calc(50vw - 35px); */
  min-width: calc(50vw - 62px);
  min-height: calc(50vw - 79px);

  }
  .products-container .product-item, .category-name img{
  min-width: none;
  }
  .category-name{
  max-width: calc(50vw - 35px) !important;
  width: calc(50vw - 35px) !important;
  }
  .product-category-container .category-name h3{
  padding-left: 20px;
  padding-top: 15px;
  }
  .product-category-container{
  padding: 20px;
  }


  #category-title-mobile.shimmer-title{
    height: 30px;
    margin-top: 18px; 
  }
  /*
  .products-container:has(.product-item li a .shimmer-image){
    margin-top: 16px;
  } */
  
  .woocommerce-loop-product__title.shimmer-text{
    margin-bottom: 0;
    min-height: 25px;
  }
  .product-item:has(.woocommerce-LoopProduct-link .shimmer-effect){
    min-height: none;
    max-height: none;
    height: auto;
  }
  .price.shimmer-price{
    display: none;
  }
  

  .price-and-quick-cart-container{
    position: relative;
  }
  .quantity-chooser-container{
    border: none;
    padding-left: 6px;
  }
  
  .quick-add-cart-container{
    position: absolute;
    right: 0;
  } 

}

/* Quick add to cart styles for mobile */
@media only screen and (max-width: 420px){
  .price-and-quick-cart-container{
      flex-direction: column;  
  }
  .quick-add-cart-container{
      position: relative;
      max-width: 50px;
  }
  .quick-add-cart-expanded{
      max-width: none;
  }  
}

/* Mobile filter dropdown */
.product-category-title-desktop-container, .product-category-title-mobile-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}


@media only screen and (max-width: 480px){
    .quick-add-cart-expanded .quantity-chooser-container{
      min-width: calc(50vw - 65px);
      padding: 0 10px;
      display: flex !important;
      justify-content: space-around;
      align-items: center;
      
    }
    .quantity-chooser-container .quantity-plus-one{
      top: 0;
    }
    .quantity-chooser-container .quantity-minus-one{
      top: -2px;
    }
    .quick-add-cart-container{
      min-width: 50px;
      width: auto;
    }
  }


/* MOBILE STYLES STOP */


