/* Temporary for development stage, recommend to copy these CSS code to frontend.css when production */

/* Prevent builder conflicts */
body.fl-builder-edit section[data-module="product-category-slider"] .owl-carousel,
body.fl-builder-edit section[data-module="product-category-slider"] .owl-carousel * {
  pointer-events: none !important;
}

/* Item background color (fallback) */
section[data-module="product-category-slider"] .home-demo .item {
  background: #ff3f4d;
	margin: 0px 4px;
}

section[data-module="product-category-slider"] .owl-carousel .owl-nav button.owl-prev img,
section[data-module="product-category-slider"] .owl-carousel .owl-nav button.owl-next img {
  transition: transform 0.3s ease;
}

section[data-module="product-category-slider"] .owl-carousel .owl-nav button.owl-prev:hover img,
section[data-module="product-category-slider"] .owl-carousel .owl-nav button.owl-next:hover img {
  transform: scale(1.2);
}

/* Carousel box styling */
section[data-module="product-category-slider"] .carousel-box {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  overflow: hidden;
  border-radius: 0px;
  transition: transform 0.3s ease;
	background-color: rgba(241, 241, 241, 0.6);
  background-blend-mode: overlay;
}

section[data-module="product-category-slider"] .carousel-box {
	position: relative;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

section[data-module="product-category-slider"] .carousel-box .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
	pointer-events: none;
	z-index: 1;
}

section[data-module="product-category-slider"] .carousel-box .productlink,
section[data-module="product-category-slider"] .carousel-box .item-title,
section[data-module="product-category-slider"] .carousel-box .item-image {
	position: relative;
	z-index: 2;
}

section[data-module="product-category-slider"] .owl-dots {
  margin-top: 15px;
}

section[data-module="product-category-slider"] .owl-theme .owl-dots .owl-dot span {
  width: 15px;
  height: 15px;
}

section[data-module="product-category-slider"] .owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
  background: #46BDB7;
}


section[data-module="product-category-slider"] h3 {
  font-size: 30px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Gradient overlay */
section[data-module="product-category-slider"] .carousel-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(241, 241, 241, 0.9) 20%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 1;
}

/* Item image (centered and scalable) */
section[data-module="product-category-slider"] .item-image {
  position: absolute;
  top: 58%;
  left: 60%;
  transform: translate(-50%, -50%);
  max-height: 100%;
  max-width: 100%;
  transition: transform 0.4s ease;
  z-index: 2;
}

section[data-module="product-category-slider"] .carousel-box:hover .item-image {
  transform: translate(-50%, -50%) scale(1.4);
}

/* Title styling */
section[data-module="product-category-slider"] .item-title {
  position: relative;
  z-index: 3;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  text-align: left;
  transition: color 0.3s ease;
  padding: 20px 20px;
  font-family: 'inter';
}

section[data-module="product-category-slider"] .carousel-box:hover .item-title {
  color: #4c9c6c;
}

/* Demo heading */
section[data-module="product-category-slider"] .home-demo h2 {
  color: #FFF;
  text-align: center;
  padding: 5rem 0;
  margin: 0;
  font-style: italic;
  font-weight: 300;
}

/* Owl Nav Buttons */
section[data-module="product-category-slider"] .owl-carousel .owl-nav button.owl-prev {
  background: none;
  border: none;
  padding: 0;
  margin: 0 10px;
  position: relative;
  left: -105px;
}

section[data-module="product-category-slider"] .owl-carousel .owl-nav button.owl-next {
	background: none;
  border: none;
  padding: 0;
  margin: 0 10px;
  position: relative;
  right: -105px;
}

/* Owl Nav Arrows (custom icons) */
section[data-module="product-category-slider"] .owl-carousel .owl-nav img {
  width: 52px;
  height: auto;
}

/* Nav Positioning */
section[data-module="product-category-slider"] .owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* Block nav from capturing clicks unless specified */
}

section[data-module="product-category-slider"] .owl-carousel .owl-nav button {
  pointer-events: auto;
  background: none;
}



/* === LARGE SCREENS (1700px and above) === */
@media (max-width: 1700px) {
  section[data-module="product-category-slider"] .carousel-box {
    height: 400px;
  }

  section[data-module="product-category-slider"] .item-title {
    font-size: 24px;
    padding: 15px 10px;
  }
	
 section[data-module="product-category-slider"] h3 {
  font-size: 28px;
 }

  section[data-module="product-category-slider"] .item-image {
    max-width: 90%;
  }
}

/* === MEDIUM SCREENS (up to 1350px) === */
@media (max-width: 1350px) {
  section[data-module="product-category-slider"] .carousel-box {
    height: 320px;
  }

  section[data-module="product-category-slider"] .item-title {
    font-size: 20px;
    padding: 15px 10px;
  }

  section[data-module="product-category-slider"] .item-image {
    top: 55%;
    left: 58%;
    max-width: 85%;
  }

  section[data-module="product-category-slider"] .owl-carousel .owl-nav button.owl-prev {
    left: -65px;
  }

  section[data-module="product-category-slider"] .owl-carousel .owl-nav button.owl-next {
    right: -65px;
  }
}

/* === MOBILE SCREENS (up to 480px) === */
@media (max-width: 480px) {
  section[data-module="product-category-slider"] .carousel-box {
    height: 320px;
    padding: 10px;
  }
	
  section[data-module="product-category-slider"] h3 {
  text-align: center;
	  font-size: 17px;
}

  section[data-module="product-category-slider"] .item-title {
    font-size: 18px;
    padding: 10px 15px;
    text-align: center;
  }

  section[data-module="product-category-slider"] .item-image {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    max-width: 80%;
  }

  section[data-module="product-category-slider"] .owl-carousel .owl-nav {
    display: none; /* Optional: Hide nav arrows on very small screens */
  }
}
