/* =========================================================
   HERO IMAGE MOBILE BACKGROUND FIX
   Súbor: css/hero-mobile-bg-fix.css

   Homepage:
   .hero + .hero-visual

   Podstránky kategórií:
   .catalog-hero + .catalog-hero-image
   ========================================================= */

/* HOMEPAGE DESKTOP */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.9) 14%,
    rgba(255, 255, 255, 0.55) 32%,
    rgba(255, 255, 255, 0) 55%
  );
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: right center;
}

/* HOMEPAGE MOBILE: obrázok hore za nadpisom, jemná opacity */
@media (max-width: 900px) {
  .hero {
    display: block;
    min-height: auto;
    padding: 38px 18px 46px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-visual {
    position: absolute;
    top: 18px;
    right: -80px;
    bottom: auto;
    width: 370px;
    height: 270px;
    opacity: 0.16;
    z-index: 1;
    margin: 0;
  }

  .hero-visual::before {
    display: none;
  }

  .hero-visual img {
    object-fit: contain;
    object-position: center;
  }

  .eyebrow,
  .hero h1,
  .hero-text,
  .status-card,
  .hero-button {
    position: relative;
    z-index: 3;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1.02;
    letter-spacing: -0.06em;
  }

  .status-card,
  .hero-button {
    width: 100%;
    min-width: 0;
  }
}

/* KATEGÓRIE MOBILE: hero obrázok ako jemné pozadie za titulkom */
@media (max-width: 900px) {
  .catalog-hero {
    position: relative;
    display: block;
    min-height: auto;
    overflow: hidden;
  }

  .catalog-hero-content {
    position: relative;
    z-index: 3;
    max-width: 100%;
    padding: 28px 18px 38px;
  }

  .catalog-hero-image {
    position: absolute;
    top: 78px;
    right: -70px;
    width: 350px;
    height: 240px;
    min-height: 0;
    z-index: 1;
    opacity: 0.18;
    pointer-events: none;
  }

  .catalog-hero-image::before {
    display: none;
  }

  .catalog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .catalog-hero h1,
  .catalog-hero p,
  .catalog-breadcrumb,
  .catalog-eyebrow {
    position: relative;
    z-index: 3;
  }
}

@media (max-width: 520px) {
  .hero-visual {
    top: 32px;
    right: -120px;
    width: 360px;
    height: 260px;
    opacity: 0.14;
  }

  .catalog-hero-image {
    top: 96px;
    right: -120px;
    width: 360px;
    height: 240px;
    opacity: 0.14;
  }
}
