/* Welmg 12.10.2026 - mevcut temayı silmeden galeri ve hizalama yamaları */
body.ribbon-theme .detail-gallery.welmg-product-gallery {
  position: relative !important;
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: clamp(9px, 2vw, 16px) !important;
  overflow: visible !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 5px 22px rgba(20, 37, 27, .055) !important;
}
body.ribbon-theme .welmg-gallery-stage {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid #eef0ec;
  border-radius: 12px;
  background: #f9faf8;
}
body.ribbon-theme .welmg-gallery-slide {
  position: absolute !important;
  inset: 0 !important;
  display: none !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  background: #fff;
}
body.ribbon-theme .welmg-gallery-slide.is-active { display: flex !important; }
body.ribbon-theme .welmg-gallery-slide img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
body.ribbon-theme .welmg-gallery-zoom,
body.ribbon-theme .welmg-gallery-arrow {
  position: absolute !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.96) !important;
  color: #26362c !important;
  box-shadow: 0 3px 13px rgba(0,0,0,.10) !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
  z-index: 4 !important;
  cursor: pointer;
}
body.ribbon-theme .welmg-gallery-zoom { top: 30px !important; right: 12px !important; transform: none !important; }
body.ribbon-theme .welmg-gallery-arrow { top: 50% !important; }
body.ribbon-theme .welmg-gallery-arrow.is-prev { left: 12px !important; }
body.ribbon-theme .welmg-gallery-arrow.is-next { right: 12px !important; }
body.ribbon-theme .welmg-gallery-zoom svg,
body.ribbon-theme .welmg-gallery-arrow svg { width: 19px !important; height: 19px !important; min-width: 19px !important; min-height: 19px !important; fill: none; stroke: currentColor; stroke-width: 2; }
body.ribbon-theme .welmg-gallery-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 5px 10px;
  border-radius: 30px;
  background: rgba(30, 45, 35, .7);
  color: white;
  font: 600 12px/1.1 Arial, sans-serif;
  pointer-events: none;
}
body.ribbon-theme .welmg-gallery-thumbnails {
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 9px !important;
  margin: 12px 0 0 !important;
  padding: 2px 2px 7px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin;
}
body.ribbon-theme .welmg-gallery-thumb {
  display: flex !important;
  flex: 0 0 70px !important;
  width: 70px !important;
  height: 70px !important;
  min-width: 70px !important;
  min-height: 70px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px !important;
  margin: 0 !important;
  border: 2px solid #e3e9e1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
  cursor: pointer;
}
body.ribbon-theme .welmg-gallery-thumb.is-active { border-color: var(--theme-primary, #3f7351) !important; }
body.ribbon-theme .welmg-gallery-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 6px !important;
}
.welmg-gallery-missing { margin: 8px 0 0; text-align: center; color: #788177; font-size: 13px; }
.welmg-lightbox-open { overflow: hidden !important; }
.welmg-gallery-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 20px;
  background: rgba(0,0,0,.86);
}
.welmg-gallery-lightbox img { max-width: 100%; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.welmg-gallery-close {
  position: absolute; top: 8px; right: 16px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: #fff !important; color: #111 !important;
  border-radius: 50%; font-size: 32px; line-height: 1; cursor: pointer;
}
/* Menü, sepet, ikon, buton ve kart çerçevelerinde boyut/konum kararlılığı. */
body.ribbon-theme .header-action-icon-2 { min-width: 0; }
body.ribbon-theme .header-action-icon-2 > a { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
body.ribbon-theme .header-action-icon-2 > a > img { flex: 0 0 auto; width: 25px !important; height: 25px !important; max-width: 25px !important; object-fit: contain; vertical-align: middle; }
body.ribbon-theme .header-action-icon-2 .pro-count { z-index: 3; line-height: 1.3; box-sizing: border-box; }
body.ribbon-theme .product-cart-wrap { min-width: 0; border-radius: 12px; }
body.ribbon-theme .product-cart-wrap .product-img-action-wrap,
body.ribbon-theme .product-cart-wrap .product-img { min-width: 0; width: 100%; }
body.ribbon-theme .product-cart-wrap .product-img img { display: block; max-width: 100%; height: auto; }
body.ribbon-theme .product-detail .detail-extralink,
body.ribbon-theme .product-detail .product-extra-link2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
body.ribbon-theme .product-detail .product-extra-link2 .button-add-to-cart,
body.ribbon-theme .product-detail .product-extra-link2 .whatsapp_buton { display: inline-flex; align-items: center; justify-content: center; gap: 7px; max-width: 100%; min-height: 44px; line-height: 1.25; }
body.ribbon-theme .product-detail .product-extra-link2 i { font-size: 19px; vertical-align: middle; flex-shrink: 0; }
body.ribbon-theme .premium-mobile-nav > a,
body.ribbon-theme .premium-mobile-nav > button { display: flex !important; align-items: center !important; justify-content: center !important; min-width: 0 !important; min-height: 0 !important; height: 100% !important; padding: 5px 2px !important; }
body.ribbon-theme .premium-mobile-nav > a > i,
body.ribbon-theme .premium-mobile-nav > button > i { display: block; width: 24px; height: 24px; flex-shrink: 0; font-size: 22px !important; line-height: 24px !important; text-align: center; }
body.ribbon-theme .premium-mobile-nav > a > span,
body.ribbon-theme .premium-mobile-nav > button > span { display: block; max-width: 100%; text-align: center; font-size: 10px; line-height: 1.2; }
@media (max-width: 767px) {
  body.ribbon-theme .welmg-product-gallery { margin-bottom: 16px !important; }
  body.ribbon-theme .welmg-gallery-stage { min-height: 220px; }
  body.ribbon-theme .welmg-gallery-thumb { flex-basis: 62px !important; width: 62px !important; min-width: 62px !important; height: 62px !important; min-height: 62px !important; }
  body.ribbon-theme .welmg-gallery-zoom,
  body.ribbon-theme .welmg-gallery-arrow { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; }
  body.ribbon-theme .product-detail .detail-info { padding: 16px !important; }
  body.ribbon-theme .product-detail .product-extra-link2 { width: 100%; }
  body.ribbon-theme .product-detail .product-extra-link2 .button-add-to-cart,
  body.ribbon-theme .product-detail .product-extra-link2 .whatsapp_buton { flex: 1 1 150px; padding: 10px 12px; }
}


/* 2026-10-12 | WELMG ANASAYFA MOBIL SLIDER: GORSEL TAM GORUNUR
   Mevcut TR bannerlar 1914-1918 x 820-822 px (~2.33:1). Eski CSS
   1888/560 (~3.37:1) oranini zorladigindan ust/alt kisim kirpiliyordu.
   Sadece anasayfa sliderine ve sadece mobil/tablet ekranlara uygulanir. */
@media screen and (max-width: 800px) {
  body.ribbon-theme .home-slider .home-slide-cover,
  body.ribbon-theme .home-slider .hero-slider-1,
  body.ribbon-theme .home-slider .hero-slider-1 .slick-list,
  body.ribbon-theme .home-slider .hero-slider-1 .slick-track,
  body.ribbon-theme .home-slider .hero-slider-1 .slick-slide {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.ribbon-theme .home-slider .hero-slider-1 .single-hero-slider {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1916 / 821 !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
  }
}
