/* ==================================================
   BARIS / LAVIADERM PERFORMANCE CSS
   ================================================== */

html {
  text-rendering: optimizeLegibility;
}

img {
  height: auto;
}

.wd-skip-navigation {
    position: absolute;
    left: -9999px;
    top: 0;
}

.wd-skip-navigation:focus {
    left: 10px;
    top: 10px;
    background: #000;
    color: #fff;
    padding: 10px;
    z-index: 9999;
}

/* Küçük ikonlar ve marquee */
.wd-marquee img,
.wd-marquee .attachment-24x24,
.wd-marquee .size-24x24 {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 24px;
  aspect-ratio: 1 / 1;
}

/* Logo */
.site-logo a.wd-logo img,
.site-logo img[src*="LD-logo-mobil"] {
  height: auto;
  max-width: 220px;
}

/* Ürün galeri alanı */
.single-product .woocommerce-product-gallery,
.single-product .product-images,
.single-product .wd-product-gallery {
  min-height: 320px;
}

.single-product .woocommerce-product-gallery img,
.single-product .wd-product-gallery img {
  height: auto;
  max-width: 100%;
}

/* Alert bloğu artık LCP adayı.
   Animasyon ve geç render etkisini azaltmak için daha stabil hale getiriyoruz. */
.single-product .elementor-alert {
  min-height: 88px;
  animation: none !important;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
}

.single-product .elementor-alert *,
.single-product .elementor-alert.elementor-invisible,
.single-product .elementor-alert[class*="animated"],
.single-product .elementor-alert [class*="animated"],
.single-product .elementor-alert [class*="e-animation"] {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* Fiyat alanındaki küçük zıplamayı azalt */
.single-product .wd-negative-gap {
  overflow: hidden;
  min-height: 42px;
}

/* Puanlama alanı */
.single-product .woocommerce-product-rating {
  min-height: 24px;
}

/* Popup görseli için stabil oran */
img[alt*="250TL-POPUP"] {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 1 / 1;
}

/* Checkout tarafında ağır animasyonları yumuşat */
.woocommerce-checkout .wd-fill,
.woocommerce-checkout .wd-lazy-fade,
.woocommerce-checkout .wd-animated {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 767px) {
  .single-product .woocommerce-product-gallery,
  .single-product .product-images,
  .single-product .wd-product-gallery {
    min-height: 280px;
  }

  .site-logo a.wd-logo img,
  .site-logo img[src*="LD-logo-mobil"] {
    max-width: 220px;
  }

  .single-product .elementor-alert {
    min-height: 96px;
  }
}