/* HERO FIX v3 – obrázok bez pravého odsadenia a bez farebného skoku
   Ulož ako: css/katalog-hero-fix-v3.css
   Načítaj až ZA css/katalog.css */

.catalog-hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border, #e8e8e8);
  position: relative;
  overflow: hidden;
}

/* jemný technický podklad vpravo, bez tvrdého farebného prechodu */
.catalog-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 61, 0, 0.035) 100%);
  pointer-events: none;
  z-index: 1;
}

.catalog-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -6%;
  width: 52%;
  height: 140%;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 61, 0, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 61, 0, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: skewX(-16deg);
  pointer-events: none;
  z-index: 1;
}

.catalog-hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding: 34px 0 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.catalog-hero-image {
  position: relative;
  z-index: 2;
  min-height: 330px;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* dôležité:
   width/height 100% + contain = celý obrázok viditeľný
   object-position right center = dotlačený k pravému okraju */
.catalog-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: right center;
  margin: 0;
}

/* textové prvky */
.catalog-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
  color: var(--muted, #6b7280);
  font-size: 15px;
  font-weight: 500;
}

.catalog-breadcrumb a {
  color: var(--muted, #6b7280);
  text-decoration: none;
  transition: color 0.2s ease;
}

.catalog-breadcrumb a:hover {
  color: var(--orange, #ff3d00);
}

.catalog-breadcrumb strong {
  color: var(--text, #4b5563);
  font-weight: 700;
}

.catalog-eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--orange, #ff3d00);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.catalog-eyebrow span {
  width: 56px;
  height: 4px;
  background: var(--orange, #ff3d00);
  border-radius: 99px;
}

.catalog-hero h1 {
  color: var(--black, #050505);
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 900;
  margin-bottom: 22px;
}

.catalog-hero p {
  max-width: 660px;
  color: var(--text, #4b5563);
  font-size: 19px;
  line-height: 1.55;
}

/* väčšie obrazovky – obrázok môže mať viac priestoru */
@media (min-width: 1500px) {
  .catalog-hero {
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  }

  .catalog-hero-content {
    padding-left: 54px;
  }
}

/* tablet */
@media (max-width: 1200px) {
  .catalog-hero {
    grid-template-columns: minmax(0, 50%) minmax(0, 50%);
    min-height: 310px;
  }

  .catalog-hero-content {
    padding: 30px 0 34px 28px;
  }

  .catalog-hero-image {
    min-height: 310px;
  }
}

/* mobil / úzky tablet */
@media (max-width: 980px) {
  .catalog-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .catalog-hero::before,
  .catalog-hero::after {
    width: 100%;
    right: 0;
    transform: none;
  }

  .catalog-hero-content {
    padding: 28px 18px 12px;
    max-width: none;
  }

  .catalog-hero-image {
    min-height: 210px;
    height: 210px;
    justify-content: center;
  }

  .catalog-hero-image img {
    object-position: center;
  }
}

@media (max-width: 760px) {
  .catalog-breadcrumb {
    margin-bottom: 22px;
    font-size: 14px;
  }

  .catalog-eyebrow {
    gap: 12px;
    font-size: 13px;
  }

  .catalog-eyebrow span {
    width: 42px;
    height: 3px;
  }

  .catalog-hero h1 {
    font-size: clamp(38px, 13vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    margin-bottom: 16px;
  }

  .catalog-hero p {
    font-size: 17px;
  }

  .catalog-hero-image {
    min-height: 170px;
    height: 170px;
  }
}
