/* =========================================================
   KETHRON V39 — Home Hero Slider: clean, contained, premium
   Keeps the V38 card style but removes footer/control overlap.
   ========================================================= */

/* Keep the product spotlight centered and stable. */
.k-hero-visual {
  min-height: 470px;
  overflow: visible;
}

.k-hero-stage {
  position: relative;
  width: min(88%, 470px);
  margin-inline: auto;
}

.k-hero-slider {
  position: relative;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 36px;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.98);
  box-shadow: 0 28px 72px rgba(27,31,39,.14);
  isolation: isolate;
}

.k-hero-slider::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 0;
  border: 1px solid rgba(239,127,26,.10);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 16%, rgba(239,127,26,.06), transparent 27%),
    linear-gradient(145deg, #fff 0%, #fff 70%, #fff9f3 100%);
  pointer-events: none;
}

/* Each slide occupies exactly the card — no rotation, no crop, no spill. */
.k-hero-slider .k-hero-product,
.k-hero-slider .k-hero-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.985) !important;
  transition: opacity .52s ease, transform .52s ease, visibility .52s ease !important;
  z-index: 1;
}

.k-hero-slider .k-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) !important;
  z-index: 2;
}

.k-hero-slider .k-hero-slide.is-active:hover {
  transform: scale(1) !important;
}

/* Dedicated image area fills the card cleanly; no pagination indicator lane. */
.k-hero-slider .k-hero-product-media {
  position: absolute !important;
  inset: 34px 42px !important;
  min-width: 0;
  min-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 22px;
  background: transparent;
}

.k-hero-slider .k-hero-product-media img,
.k-hero-slider .k-hero-product img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  transform: none !important;
}

/* The original hero was image-first. Remove the V38 caption strip that
   caused long titles/prices to collide with dots and the card edge. */
.k-hero-slider .k-hero-product-meta {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Controls stay in a dedicated lane, never over product information. */
.k-hero-nav {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  padding: 0;
  border: 1px solid #e9ebef;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: #252830;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 9px 22px rgba(25,28,35,.10);
  opacity: .92;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.k-hero-prev { left: 14px; }
.k-hero-next { right: 14px; }

.k-hero-nav:hover,
.k-hero-nav:focus-visible {
  color: var(--k-orange, #ef7f1a);
  border-color: rgba(239,127,26,.45);
  box-shadow: 0 10px 25px rgba(239,127,26,.13);
  transform: scale(1.06);
  outline: none;
}

/* Float labels remain outside the core image, matching the original design. */
.k-hero-stage .k-hero-float {
  z-index: 12;
  pointer-events: none;
}

.k-hero-stage .k-hero-float.one {
  left: -36px;
  top: 13%;
}

.k-hero-stage .k-hero-float.two {
  right: -52px;
  bottom: 15%;
}

@media (max-width: 1199.98px) {
  .k-hero-stage { width: min(86%, 435px); }
  .k-hero-stage .k-hero-float.one { left: -20px; }
  .k-hero-stage .k-hero-float.two { right: -28px; }
}

@media (max-width: 991.98px) {
  .k-hero-visual { min-height: 430px; }
  .k-hero-stage { width: min(78%, 390px); }
  .k-hero-slider .k-hero-product-media { inset: 30px 38px !important; }
}

@media (max-width: 767.98px) {
  .k-hero-visual { min-height: 365px; }
  .k-hero-stage { width: min(88%, 340px); }
  .k-hero-slider { border-radius: 28px; }
  .k-hero-slider::before { inset: 12px; border-radius: 22px; }
  .k-hero-slider .k-hero-product-media { inset: 26px 34px !important; }
  .k-hero-nav {
    width: 34px;
    height: 34px;
    margin-top: -17px;
  }
  .k-hero-prev { left: 9px; }
  .k-hero-next { right: 9px; }
  .k-hero-stage .k-hero-float { display: none !important; }
}

@media (max-width: 420px) {
  .k-hero-visual { min-height: 335px; }
  .k-hero-stage { width: min(92%, 315px); }
  .k-hero-slider .k-hero-product-media { inset: 24px 31px !important; }
}

@media (hover: hover) and (pointer: fine) {
  .k-hero-nav { opacity: .72; }
  .k-hero-slider:hover .k-hero-nav,
  .k-hero-slider:focus-within .k-hero-nav { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .k-hero-slider .k-hero-slide,
  .k-hero-nav {
    transition: none !important;
  }
}
