/*
	Theme Name:   Savoy Child
	Theme URI:    http://themeforest.net/item/savoy-minimalist-ajax-woocommerce-theme/12537825
	Description:  Savoy child theme
	Author:       Stuurlui
	Author URI:   https://stuurlui.nl/
	Template:     savoy
  Text Domain:  nm-framework
	Version:      1.0.1
*/

/* Child theme CSS
--------------------------------------------------------------- */

.item-label {
  background-color: #fd89ff;
  color: #fff;
  font-size: 14px;
  padding: 3px 5px;
  display: inline-block;
  border-radius: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
}

@media screen and (max-width: 600px) {
  body .woocommerce-product-gallery .flex-direction-nav a {
    opacity: 1;
  }
}

.up-sells.upsells.products .nm-shop-loop-details,
.up-sells.upsells.products .onsale {
  display: none !important;
}

.subcats {
  display: flex;
  flex-wrap: wrap;
}

.subcats li {
  margin: 10px;
}

.subitems {
  padding-bottom: 15px;
}

.subitems .slick-next {
  right: 0 !important;
}

.subitems .slick-prev {
  left: 0 !important;
}

.subitems .slick-dots li {
  margin-bottom: 0;
}

/* START show subcats on mobile */
.nm-shop-categories a.subitem {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nm-shop-categories a.subitem img {
  height: initial;
  max-width: 150px;
}


@media all and (max-width: 768px) {
  .nm-page-wrap .nm-shop-header #nm-shop-categories-wrap:not(.fade-in) {
    opacity: 1 !important;
  }
  .nm-page-wrap .nm-shop-header .nm-shop-categories .subitems .slick-slide {
    float: left;
    width: auto;
  }
  .nm-page-wrap .nm-shop-header .nm-shop-categories .subitems .slick-dots li {
		border-bottom: 0;
		width: 1rem;
	}

  .nm-page-wrap
    .nm-shop-header
    .list-spaced.thumbnails-top
    .nm-shop-categories
    img,
  .nm-page-wrap .nm-shop-categories img {
    display: inline-block !important;
  }
  .nm-page-wrap .nm-shop-categories .subitems {
    clear: both;
  }
}
@media all and (max-width: 991px) {
  .nm-page-wrap .nm-shop-header #nm-shop-categories-wrap {
    display: block !important;
    > .nm-shop-categories > *:not(.subitems) {
      display: none;
    }
  }
  .nm-page-wrap .nm-shop-categories a.subitem {
    flex-direction: row;
    text-align: center;
  }
}
/* END show subcats on mobile */

/* Custom sold out text styling */
.custom-soldout-text {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #b1b1b1;
  color: #fff;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 14px;
	line-height: 1.2;
  font-weight: 400;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.nm-shop-loop-thumbnail {
  position: relative;
}

/* Hide the default "Uitverkocht" pseudo element if it exists */
.nm-shop-loop-thumbnail .nm-shop-loop-thumbnail-link::before {
  display: none !important;
}

.products li.outofstock .nm-shop-loop-thumbnail > .woocommerce-LoopProduct-link:after {
	display: none !important;
}

/* Additional rules to hide "Uitverkocht" pseudo-elements */
.nm-shop-loop-thumbnail::after {
  display: none !important;
}

.nm-shop-loop-thumbnail a::after {
  display: none !important;
}

.products li::after {
  display: none !important;
}

.products li a::after {
  display: none !important;
}

/* Hide any element with "Uitverkocht" text */
.nm-shop-loop-thumbnail:after {
  content: none !important;
}

.nm-shop-loop-thumbnail a:after {
  content: none !important;
}

/* Hide sold out text on product cards */
.products li.outofstock::after {
  display: none !important;
}

.products li.outofstock a::after {
  display: none !important;
}

/* Product image hover effect */
.nm-shop-hover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.nm-shop-loop-thumbnail:hover .nm-shop-hover-image {
  opacity: 1;
}

/* Hide add to cart button by default */


@media (min-width: 1025px) {
	.nm-slick-subitems.slick-unslick {
		display: flex !important;
		flex-wrap: wrap;
		gap: 20px;
		justify-content: flex-start;
		padding-left: 0;
		margin: 0;
		list-style: none;
	}

	.nm-slick-subitems.slick-unslick > li {
		width: auto !important;
		flex: 0 0 auto !important;
	}
}

/* .nm-mobile-menu-main {
	position: relative !important;
} */
