/* =========================================================
   PAGINA CATEGORIA / HERO / CATEGORIE CORRELATE
========================================================= */

#category #wrapper {
  padding-top: 0 !important;
  padding-bottom: 0;
  background: #fff;
}

/* HERO CATEGORIA */
.ac-category-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 550px;
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    background-color: #111;
    clip-path: ellipse(120% 100% at 50% 0%);
}

.ac-category-hero-overlay {
  width: 100%;
  min-height: 550px;
  display: flex;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.55) 42%,
    rgba(0,0,0,.18) 100%
  );
}

.ac-category-hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 150px 20px 80px;
}

.ac-category-hero h1 {
  color: #fff;
  font-size: clamp(25px, 5vw, 45px);
  font-weight: 700;
  margin: 15px 0 0;
}

.ac-category-hero .breadcrumb,
.ac-category-hero .breadcrumb a,
.ac-category-hero .breadcrumb span {
  color: #fff !important;
}

body#category .ac-category-hero {
  margin-top: -1px;
}

/* DESCRIZIONE CATEGORIA */
.ac-category-description {
  max-width: 1230px;
  margin: 0 auto 50px;
  padding: 50px;
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  border: 1px solid #eee;
  background: #f9f9f9;
  border-radius: 10px;
}

div#ac-category-description p {
  color: #333 !important;
}

div#ac-category-description h2,
div#ac-category-description h3 {
  margin-top: 50px;
}

/* SPEDIZIONE */
.category-free-shipping {
  margin-top: 18px;
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

.category-shipping-discount {
  color: rgba(255,255,255,.86);
  font-weight: 500;
}

.shipping-disclaimer {
  margin: 28px 0 0;
}

.shipping-disclaimer a {
  display: inline-block;
  padding: 10px 20px;
  color: #fff !important;
  text-decoration: none;
  line-height: 1.7;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.shipping-disclaimer a::before {
  content: "💡";
  font-size: 18px;
  line-height: 1;
  margin-right: 5px;
}

.shipping-disclaimer a:hover {
  text-decoration: none;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2);
}

/* LAYOUT PAGINA CATEGORIA */
body#category #wrapper .container,
body#category #content-wrapper,
body#category #main {
  width: 100%;
  max-width: 100%;
}

body#category #left-column,
body#category #right-column,
body#category .facets,
body#category #search_filters,
body#category #search_filters_wrapper,
body#category .block-categories {
  display: none !important;
}

body#category #content-wrapper {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body#category div#js-product-list-top,
body#category .pagination > div:first-child {
  display: none !important;
}

body#category #products {
  max-width: 1280px;
  margin: 50px auto 0;
  padding: 0 25px;
}

/* CATEGORIE CORRELATE */
.ac-related-categories {
  max-width: 1280px;
  margin: 70px auto 100px;
  padding: 0 25px;
  position: relative;
}

.ac-related-categories h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 35px;
  color: #111;
}

.ac-related-categories-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ac-related-categories-grid::-webkit-scrollbar {
  height: 6px;
  display: none;
}

.ac-related-categories-grid::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 999px;
}

.ac-related-categories-grid::-webkit-scrollbar-thumb {
  background: #C9A14A;
  border-radius: 999px;
}

/* CARD CATEGORIA */
.ac-related-category-card {
  position: relative;
  display: flex;
  width: 100%;
  flex: 0 0 calc(33.333% - 16px);
  aspect-ratio: 1 / 1;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  border-radius: 26px;
  border-bottom: 5px solid #d4af37;
  background: transparent;
  scroll-snap-align: start;
  transition: transform .35s ease, box-shadow .35s ease;
}

/* livello sotto: gradiente */
.ac-related-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(212, 175, 55, .35) 0%,
    rgba(212, 175, 55, .15) 35%,
    rgba(212, 175, 55, .04) 100%
  );
  pointer-events: none;
}

/* livello medio: immagine */
.ac-related-category-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 70%;
  height: 70%;
  margin: auto;
  object-fit: contain;
  display: block;
}

/* livello sopra: testo */
.ac-related-category-card span {
  position: absolute;
  left: 0;
  bottom: 18px;
  z-index: 3;
  width: 100%;
  color: #333;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-shadow: none;
  padding: 0 15px;
}

.ac-related-category-card:hover {
  transform: translateY(-4px);
}

/* FRECCE CAROSELLO */
.ac-cat-carousel-arrow {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: .25s ease;
}

.ac-cat-carousel-arrow:hover {
  background: #C9A14A;
  color: #111;
}

.ac-cat-carousel-prev {
  left: 8px;
}

.ac-cat-carousel-next {
  right: 8px;
}

.ac-cat-carousel-arrow span {
  font-size: 30px;
  line-height: 1;
}

/* MOBILE */
@media (max-width: 767px) {
  .ac-category-hero,
  .ac-category-hero-overlay {
    min-height: 340px;
  }

  .ac-category-hero {
    background-position: center center;
  }

  .ac-category-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,.70) 0%,
      rgba(0,0,0,.48) 55%,
      rgba(0,0,0,.30) 100%
    );
  }

  .ac-category-hero-inner {
    padding: 120px 20px 50px;
  }

  .category-free-shipping {
    font-size: 15px;
  }

  .shipping-disclaimer a {
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 14px;
  }

  .catprodsec2 {
    margin: auto 25px;
  }

  .ac-related-categories-grid {
    gap: 16px;
    padding-left: 0;
    padding-right: 25px;
  }

  .ac-related-category-card {
    flex: 0 0 82%;
    height: 260px;
    aspect-ratio: auto;
  }

  .ac-cat-carousel-arrow {
    width: 40px;
    height: 40px;
    top: 58%;
  }

  .ac-cat-carousel-prev {
    left: 12px;
  }

  .ac-cat-carousel-next {
    right: 12px;
  }
}

.ac-category-title-row {
    display: flex;
    align-items: center;
    gap: 0px;
}

.ac-category-title-thumb {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.ac-category-title-row h1 {
    margin: 0;
}
@media (max-width: 767px) {
    .ac-category-title-thumb {
        width: 80px;
        height: 80px;
    }

    .ac-category-title-row {
        gap: 0px;
    }
}


.ac-category-title-row h1 a,.ac-category-title-row h1 a:hover {
  color: #fff !important;
  text-decoration: none;
}

@media (max-width: 767px) {

  .ac-category-hero-inner {
    text-align: center;
  }

  .ac-category-title-row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .ac-category-title-thumb {
    margin-bottom: 10px;
  }

  .ac-category-title-row h1 {
    text-align: center;
  }

  .ac-category-hero .breadcrumb ol {
    justify-content: center;
  }

  .shipping-disclaimer {
    text-align: center;
  }

}