/* ==========================================================================
   Featured Category Carousel Styles
   ========================================================================== */

/* Layout containers */
.featured-category-group {
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

/* Navigation buttons */
.featured-category-group button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Slider */
.featured-category-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.featured-category-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Category item */
.featured-cat {
  flex: 0 0 calc((100% - 5rem) / 6);
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
  text-decoration: none;
}

/* Overlay */
.featured-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.10));
}

/* Category label */
.featured-cat span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--atv-font-headings, sans-serif);
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
  padding: 10px;
}

/* Hover effects */
.featured-cat:hover::after {
  background: rgba(0, 0, 0, 0);
}
.featured-cat:hover span {
  text-shadow: 0 0 20px rgb(0 0 0), 0 0 10px rgb(0 0 0);
}

/* Navigation arrows */
.featured-cat-nav-left,
.featured-cat-nav-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--nectar-accent-color);
  font-size: 2rem;
}

/* Arrow background circle */
.featured-cat-nav-left::before,
.featured-cat-nav-right::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  z-index: -1;
  transition: background 0.2s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Arrow hover effect */
.featured-cat-nav-left:hover::before,
.featured-cat-nav-right:hover::before,
.featured-cat-nav-left:hover,
.featured-cat-nav-right:hover {
  scale: 1.1;
}

/* Arrow positioning */
.featured-cat-nav-left {
  left: -15px;
}
.featured-cat-nav-right {
  right: -15px;
}
.featured-cat-nav-right:before {
  margin-right: -10px;
}
.featured-cat-nav-left:before {
  margin-left: -10px;
}

/* Nectar Shopheader Nav woocommerce breadcrumb */
.archive .nectar-shop-header nav.woocommerce-breadcrumb {
  margin-bottom: 1rem;
  line-height: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 767px) {
  .featured-cat {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .featured-cat {
    flex: 0 0 calc((100% - 2rem) / 3);
  }
}
@media (min-width: 1025px) {
  .featured-cat {
    flex: 0 0 calc((100% - 5rem) / 6);
  }
}
