/* banner-main.css sonrası — orijinal home.html ölçüleri */

body.ecommerce .home-banners {
  max-width: 1480px;
  margin: 8px auto 0;
}

/* animate.css metni/figürü bozmasın; figür ve etiket hariç */
body.ecommerce .home-banners .animate__animated:not(.figure):not(.label-loop) {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

body.ecommerce .home-banners .hero .banner-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

body.ecommerce .home-banners .hero .banner-link .content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
}

body.ecommerce .home-banners .hero .b-btn {
  position: relative !important;
  bottom: auto !important;
  align-self: center;
  margin-top: 12px;
}

body.ecommerce .home-banners .hero .hero-label-float {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 999;
  pointer-events: none;
}

@keyframes banner-label-float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

body.ecommerce .home-banners .label-loop {
  animation: banner-label-float 3.6s ease-in-out infinite;
  animation-delay: 0.6s;
  transform-origin: center bottom;
  display: inline-block;
  width: clamp(100px, 11vw, 150px);
  height: auto;
}

body.ecommerce .home-banners .hero .figure {
  z-index: 1;
  height: clamp(290px, calc(100vw * 420 / 1200), 420px);
  width: auto;
  max-width: 100%;
  left: 50%;
  right: auto;
  margin: 0;
  transform: translateX(-50%);
  bottom: 0;
  object-fit: contain;
  object-position: center bottom;
}

body.ecommerce .home-banners .grid-1 .figure,
body.ecommerce .home-banners .grid-2 .figure {
  height: clamp(210px, calc(100vw * 317 / 1200), 317px);
  left: 0;
  right: auto;
  margin-left: 0;
  transform: none;
  object-fit: contain;
  object-position: left bottom;
}

body.ecommerce .home-banners .grid-2 .content {
  align-items: end !important;
}

body.ecommerce .home-banners .small-banners .figure {
  height: clamp(130px, calc(100vw * 205 / 1200), 205px);
  left: 0;
  margin-left: 0;
  transform: none;
  object-fit: contain;
  object-position: left bottom;
}

@media (min-width: 769px) {
  body.ecommerce .home-banners.grid {
    grid-template-rows: 317px 317px auto !important;
  }

  body.ecommerce .home-banners .grid-1,
  body.ecommerce .home-banners .grid-2 {
    min-height: 317px;
    max-height: 317px;
  }

  body.ecommerce .home-banners .hero .figure {
    left: auto;
    right: 0;
    transform: none;
    height: clamp(290px, calc(100vw * 420 / 1200), 420px);
    max-width: 42%;
  }
}

@media (max-width: 768px) {
  body.ecommerce .home-banners .offer-wrapper-mobile {
    width: 100% !important;
    flex-direction: row !important;
    gap: 8px !important;
    justify-content: center !important;
    flex-wrap: nowrap;
  }

  body.ecommerce .home-banners .discount-code-wrapper {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
  }

  body.ecommerce .home-banners .offer-item-mobile-stack {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
    width: 100% !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center;
  }

  body.ecommerce .home-banners .mobile-code-wrapper {
    flex-direction: column !important;
    height: auto !important;
  }

  body.ecommerce .home-banners .mobile-code-title {
    background-color: #ead5a4 !important;
    padding-top: 4px !important;
    font-size: 10px !important;
  }

  body.ecommerce .home-banners .mobile-label-size {
    width: 120px !important;
    height: 120px !important;
  }

  body.ecommerce .home-banners .mobile-break {
    display: block !important;
  }
}
