/**
 * Velatmos — Hair Accessories Hero (desktop slide 1 + mobile slide 1)
 * Separate composition from legacy family-bleed slide 2.
 * Desktop sizing mirrors .hero-family-bleed (natural image height, no crop).
 * v=20260911-banner-copy33
 */

/* ========== Desktop slide 1 ========== */
@media (min-width: 769px) {
  /* Match slide 2: no inset card — full banner drives slide height */
  body.ax-lifestyle-skin .hero-swiper-desktop-root .hero-slide--hair {
    padding: 0 !important;
    box-sizing: border-box;
  }

  body.ax-lifestyle-skin .hero-swiper-desktop-root .hero-slide--hair .hero-hair {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    line-height: 0;
  }

  body.ax-lifestyle-skin .hero-swiper-desktop-root .hero-slide--hair .hero-hair__img {
    position: relative !important;
    inset: auto;
    z-index: 1;
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: min(56.25vw, 92vh) !important;
    object-fit: contain !important;
    object-position: top center !important;
    margin: 0;
    vertical-align: top;
  }

  body.ax-lifestyle-skin .hero-swiper-desktop-root .hero-slide--hair .hero-hair__veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      rgba(250, 248, 243, 0.9) 0%,
      rgba(250, 248, 243, 0.72) 28%,
      rgba(250, 248, 243, 0.28) 42%,
      rgba(250, 248, 243, 0) 52%
    );
  }

  body.ax-lifestyle-skin .hero-swiper-desktop-root .hero-slide--hair .hero-hair__copy {
    position: absolute;
    left: clamp(38px, 5.2vw, 84px);
    top: 50%;
    transform: translateY(-48%);
    z-index: 3;
    max-width: 410px;
    width: min(410px, 42%);
    margin: 0;
    padding: 0;
    text-align: left;
    line-height: normal;
  }

  body.ax-lifestyle-skin .hero-hair__eyebrow {
    margin: 0 0 18px;
    font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #23402f;
    line-height: 1.2;
  }

  body.ax-lifestyle-skin .hero-hair__headline {
    margin: 0 0 20px;
    font-family: "Cormorant Garamond", "Canela", Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 4vw, 62px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
    color: #1f2420;
  }

  body.ax-lifestyle-skin .hero-hair__support {
    margin: 0 0 24px;
    max-width: 330px;
    font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    color: #53554f;
  }

  body.ax-lifestyle-skin .hero-hair__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    height: 48px;
    padding: 0 22px;
    margin: 0 0 22px;
    background: #23402f;
    color: #fff !important;
    border: none;
    border-radius: 3px;
    font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    transition: background 0.22s ease, transform 0.22s ease;
  }

  body.ax-lifestyle-skin .hero-hair__cta:hover,
  body.ax-lifestyle-skin .hero-hair__cta:focus-visible {
    background: #2d5240;
    transform: translateY(-1px);
    color: #fff !important;
  }

  body.ax-lifestyle-skin .hero-hair__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
  }

  body.ax-lifestyle-skin .hero-hair__links a {
    font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #23402f;
    text-decoration: none;
    border-bottom: 1px solid rgba(35, 64, 47, 0.35);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  body.ax-lifestyle-skin .hero-hair__links a:hover,
  body.ax-lifestyle-skin .hero-hair__links a:focus-visible {
    color: #163226;
    border-bottom-color: #163226;
  }
}

/* ========== Mobile slide 1 — magazine-cover short copy ========== */
@media (max-width: 768px) {
  body.ax-lifestyle-skin .hero-swiper-mobile-root {
    padding: 0 12px;
    box-sizing: border-box;
  }

  body.ax-lifestyle-skin .hero-swiper-mobile-root .hero-swiper-mobile {
    width: 100% !important;
    aspect-ratio: 9 / 16;
    height: auto !important;
    /* Keep Swiper free to size slides — a huge min-height fought banner-cta and
       left some WebViews unable to advance past slide 1. */
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 16px;
    overflow: hidden;
    touch-action: pan-y;
  }

  body.ax-lifestyle-skin .hero-swiper-mobile-root .hero-mobile-banner-slide.hero-mobile-hair {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
    background: #faf8f3;
  }

  body.ax-lifestyle-skin .hero-swiper-mobile-root .hero-mobile-hair .hero-mobile-banner-img {
    position: absolute !important;
    inset: 0;
    z-index: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
  }

  body.ax-lifestyle-skin .hero-swiper-mobile-root .hero-mobile-hair .hero-mobile-banner-scrim {
    display: none !important;
  }

  body.ax-lifestyle-skin .hero-swiper-mobile-root .hero-mobile-hair .hero-mobile-hair__veil {
    position: absolute !important;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(250, 248, 243, 0.94) 0%,
      rgba(250, 248, 243, 0.72) 22%,
      rgba(250, 248, 243, 0) 42%
    );
  }

  /* Upper sky band — dark copy on cream veil (readable on bright banners) */
  body.ax-lifestyle-skin .hero-swiper-mobile-root .hero-mobile-hair .hero-mobile-hair__copy {
    position: absolute !important;
    top: 40px !important;
    left: 24px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 8 !important;
    width: auto !important;
    max-width: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    text-align: left !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto;
  }

  body.ax-lifestyle-skin .hero-mobile-hair__eyebrow {
    margin: 0 0 8px !important;
    font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #23402f;
    line-height: 1.2;
  }

  body.ax-lifestyle-skin .hero-mobile-hair__headline {
    margin: 0 0 8px !important;
    font-family: "Cormorant Garamond", "Canela", Georgia, "Times New Roman", serif;
    font-size: 34px !important;
    font-weight: 400;
    line-height: 0.98 !important;
    letter-spacing: -0.035em;
    color: #1f2420;
  }

  body.ax-lifestyle-skin .hero-mobile-hair__support {
    margin: 0 !important;
    max-width: 260px !important;
    font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.35 !important;
    color: #53554f;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.ax-lifestyle-skin .hero-mobile-hair__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    width: auto !important;
    max-width: max-content !important;
    height: 28px !important;
    margin-top: 10px !important;
    padding: 0 11px !important;
    background: #23402f !important;
    color: #fff !important;
    border-radius: 2px !important;
    font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 11px !important;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-decoration: none !important;
    pointer-events: auto;
    transition: background 0.2s ease;
  }

  body.ax-lifestyle-skin .hero-mobile-hair__cta:hover,
  body.ax-lifestyle-skin .hero-mobile-hair__cta:focus-visible {
    background: #2d5240 !important;
    color: #fff !important;
  }

    /* Longer support lines on slides 2–3 (collection / gift copy) */
  body.ax-lifestyle-skin .hero-swiper-mobile-root .hero-mobile-banner-slide--0905 .hero-mobile-hair__copy,
  body.ax-lifestyle-skin .hero-swiper-mobile-root .hero-mobile-banner-slide--boutique .hero-mobile-hair__copy {
    max-width: 260px !important;
  }

  body.ax-lifestyle-skin .hero-swiper-mobile-root .hero-mobile-banner-slide--0905 .hero-mobile-hair__support,
  body.ax-lifestyle-skin .hero-swiper-mobile-root .hero-mobile-banner-slide--boutique .hero-mobile-hair__support {
    max-width: 260px !important;
  }

  body.ax-lifestyle-skin .hero-mobile-hair__links {
    display: none !important;
  }

  /* Category strip directly below Hero */
  body.ax-lifestyle-skin .hero-mobile-catstrip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    margin: 20px 12px 0;
    padding: 14px 16px;
    background: #faf8f3;
    border-radius: 12px;
    border: 1px solid rgba(35, 64, 47, 0.06);
  }

  body.ax-lifestyle-skin .hero-mobile-catstrip a {
    font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #23402f;
    text-decoration: none;
    letter-spacing: 0.01em;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
  }

  body.ax-lifestyle-skin .hero-mobile-catstrip a:hover,
  body.ax-lifestyle-skin .hero-mobile-catstrip a:focus-visible {
    border-bottom-color: rgba(35, 64, 47, 0.45);
  }

  body.ax-lifestyle-skin .hero-mobile-catstrip__sep {
    color: rgba(35, 64, 47, 0.28);
    font-size: 11px;
    line-height: 1;
    user-select: none;
  }

  body.ax-lifestyle-skin .hero-mobile-complete {
    display: block;
    margin: 20px 16px 8px;
  }

  body.ax-lifestyle-skin .hero-mobile-complete__title {
    margin: 0 0 14px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #1f2420;
  }

  body.ax-lifestyle-skin .hero-mobile-complete__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  body.ax-lifestyle-skin .hero-mobile-complete__card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(35, 64, 47, 0.08);
  }

  body.ax-lifestyle-skin .hero-mobile-complete__card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  body.ax-lifestyle-skin .hero-mobile-complete__card span,
  body.ax-lifestyle-skin .hero-mobile-complete__label {
    display: block;
    padding: 10px 10px 12px;
    font-family: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #23402f;
    letter-spacing: 0.02em;
  }

  body.ax-lifestyle-skin .hero-mobile-complete__name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #23402f;
  }

  body.ax-lifestyle-skin .hero-mobile-complete__note {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #6a6d66;
  }

  /* Anchor target for Gift Sets → Mix Your Own */
  #mix-your-own-gift {
    scroll-margin-top: 6.5rem;
  }

  /* Floating leaf/chat — hide while mobile Hero fills the viewport */
  body.ax-lifestyle-skin[data-page="home"].vl-hero-in-view #catbot-custom-launcher,
  body.ax-lifestyle-skin[data-page="home"].vl-hero-in-view .creamypaw-inquiry-float {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (min-width: 769px) {
  .hero-mobile-complete,
  .hero-mobile-catstrip {
    display: none !important;
  }
}
