/* =============================================================================
   Home enhancements – Beauty The Shop (parent_shop 2)
   Solo CSS, scoped a body.page-home
   ============================================================================= */

/* --- Hero carousel --------------------------------------------------------- */

body.page-home #promo-z1 .promo-banner-megabanner .promo-banner-img-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 55%);
  pointer-events: none;
  z-index: 2;
}

body.page-home #promo-z1 .carousel-inner .item.active .promo-banner-img-box img {
  animation: homeKenBurns 16s ease-out forwards;
}

@keyframes homeKenBurns {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, -50%) scale(1.06); }
}

body.page-home #promo-z1 .item.active .promo-banner-classh1,
body.page-home #promo-z1 .item.active .promo-banner-text em {
  animation: homeFadeUp 0.85s ease-out both;
}

body.page-home #promo-z1 .item.active .promo-banner-text em {
  animation-delay: 0.12s;
}

body.page-home #promo-z1 .item.active .promo-btn {
  animation: homeFadeUp 0.85s ease-out 0.22s both;
}

@keyframes homeFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-home #promo-z1 .promo-banner-text .promo-btn {
  letter-spacing: 0.1em;
  padding: 11px 30px;
  border: 1px solid transparent;
}

body.page-home #promo-z1 .promo-banner-text .promo-btn:hover {
  background: #fff !important;
  color: #000 !important;
  border-color: #000;
}

body.page-home #promo-z1 .carousel-indicators {
  bottom: 6px !important;
}

body.page-home #promo-z1 .carousel-indicators li {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  margin: 0 4px;
  transition: width 0.3s ease, background 0.3s ease;
}

body.page-home #promo-z1 .carousel-indicators li.active {
  background: #fff;
  width: 36px;
}

body.page-home #promo-z1 .carousel-control span {
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease;
}

body.page-home #promo-z1 .carousel-control:hover span {
  background: rgba(0, 0, 0, 0.5);
}

/* --- Promo bar below nav --------------------------------------------------- */

body.page-home #main-menu0 {
  background: linear-gradient(90deg, #ececec 0%, #f7f7f7 50%, #ececec 100%);
}

body.page-home #subnav0 > ul > li {
  letter-spacing: 0.02em;
}

/* --- Section titles -------------------------------------------------------- */

body.page-home .seo-index h2,
body.page-home .seo-index h1 {
  border-bottom: none;
  position: relative;
  padding-bottom: 14px;
  margin-top: 52px;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

body.page-home .seo-index h1 {
  margin-top: 36px;
}

body.page-home .seo-index h2::after,
body.page-home .seo-index h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: #000;
}

/* --- Product grid ---------------------------------------------------------- */

body.page-home .seo-index .home-section::after {
  content: '';
  display: table;
  clear: both;
}

body.page-home .seo-index .s_item {
  border-radius: 4px;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.35s ease,
              background-color 0.35s ease;
}

body.page-home .seo-index .s_item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
  background-color: #fafafa;
}

body.page-home .seo-index .sq-img img {
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.page-home .seo-index .s_item:hover .sq-img img {
  transform: translate(-50%, -50%) scale(1.07);
}

/* Sin oscurecimiento ni icono al pasar el ratón */
body.page-home .seo-index .overlay,
body.page-home .seo-index .img.hover .overlay {
  opacity: 0 !important;
  background: transparent !important;
}

body.page-home .seo-index .categories-link {
  transition: color 0.25s ease;
}

body.page-home .seo-index .s_item:hover .categories-link {
  color: #000;
}

body.page-home .seo-index .s_item a {
  -webkit-tap-highlight-color: transparent;
}

body.page-home .seo-index .s_item a:focus,
body.page-home .seo-index .s_item a:active {
  outline: none;
  box-shadow: none;
}

body.page-home .seo-index .sq-img a.overlay:focus,
body.page-home .seo-index .sq-img a.overlay:active {
  outline: none;
  border: none;
}

/* --- Nav underline on hover (desktop) -------------------------------------- */

@media (min-width: 992px) {
  body.page-home #subnav > ul > li > a {
    position: relative;
  }

  body.page-home #subnav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease, left 0.3s ease;
  }

  body.page-home #subnav > ul > li:hover > a::after,
  body.page-home #subnav > ul > li.selected > a::after {
    width: 70%;
    left: 15%;
  }
}

/* --- Reduced motion -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  body.page-home #promo-z1 .carousel-inner .item.active .promo-banner-img-box img,
  body.page-home #promo-z1 .item.active .promo-banner-classh1,
  body.page-home #promo-z1 .item.active .promo-banner-text em,
  body.page-home #promo-z1 .item.active .promo-btn {
    animation: none;
  }
}
