/**
 * Etiler Wishlist UI v2.4 — kalp + popup.
 */

/* ── WoodMart native kalp — HER YERDE gizle ── */
.wd-wishlist-btn,
.wd-action-btn.wd-wishlist-btn,
.product-element-top > .wd-wishlist-btn,
.product-element-top .wd-action-btn.wd-wishlist-btn,
.product-element-top .wd-buttons .wd-wishlist-btn {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* ── Kopya YITH kalpleri — sadece bizim active heart ── */
.yith-add-to-wishlist-button-block:not(.etiler-wl-active-heart):not(.etiler-wl-pdp-heart),
.yith-wcwl-add-to-wishlist:not(.etiler-wl-active-heart):not(.etiler-wl-pdp-heart),
.yith-wcwl-add-to-wishlist-button-block:not(.etiler-wl-active-heart):not(.etiler-wl-pdp-heart) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* product-element-top içindeki sol/kopya YITH (İlgili ürünler dahil) */
.product-element-top > .yith-add-to-wishlist-button-block:not(.etiler-wl-active-heart),
.product-element-top > .yith-wcwl-add-to-wishlist:not(.etiler-wl-active-heart),
.product-element-top > .yith-wcwl-add-to-wishlist-button-block:not(.etiler-wl-active-heart),
.product-element-top .yith-wcwl-add-to-wishlist-button-block:not(.etiler-wl-active-heart) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* YITH native 30px svg — active heart dışında gizle */
.product-element-top .yith-wcwl-add-to-wishlist-button-block:not(.etiler-wl-active-heart),
.product-element-top .yith-wcwl-add-to-wishlist:not(.etiler-wl-active-heart),
.product-element-top > button.yith-wcwl-add-to-wishlist-button,
.product-element-top > .yith-wcwl-add-to-wishlist-button-block:not(.etiler-wl-active-heart) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.etiler-wl-active-heart svg.yith-wcwl-icon {
  display: none !important;
}

/* ── Tek kalp — sağ üst ── */
.product-grid-item,
.products .product-element-top,
.products .product-image-link,
.wd-product .product-element-top,
.wd-wishlist-content .product-element-top {
  position: relative !important;
}

.etiler-wl-active-heart,
body:not(.page-id-34) .product-grid-item .etiler-wl-active-heart,
body:not(.page-id-34) .products .etiler-wl-active-heart,
body.page-id-34 .wd-wishlist-content .etiler-wl-active-heart {
  display: block !important;
  visibility: visible !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  z-index: 50 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.etiler-wl-active-heart .yith-wcwl-add-to-wishlist-button,
.etiler-wl-active-heart a,
.etiler-wl-active-heart button,
.etiler-wl-active-heart svg {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Ürün fotoğraf linki tıklanabilir kalsın */
.product-element-top > a.product-image-link,
.product-element-top > .product-image-link,
.product-element-top > a {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  pointer-events: auto !important;
}

/* Alt alandaki sol/kopya kalpleri */
.product-element-bottom .yith-add-to-wishlist-button-block,
.product-element-bottom .yith-wcwl-add-to-wishlist,
.wd-product-header .yith-add-to-wishlist-button-block {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── Kalp butonu ── */
.yith-add-to-wishlist-button-block a,
.yith-add-to-wishlist-button-block button,
.yith-add-to-wishlist-button-block .yith-wcwl-add-to-wishlist-button,
.yith-wcwl-add-to-wishlist a,
.yith-wcwl-add-to-wishlist button,
.yith-wcwl-add-to-wishlist .yith-wcwl-add-to-wishlist-button {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.82) !important;
  border: 2px solid #000 !important;
  border-radius: 50% !important;
  backdrop-filter: blur(6px);
  cursor: pointer !important;
  pointer-events: auto !important;
  color: transparent !important;
  font-size: 0 !important;
  text-decoration: none !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.yith-wcwl-add-to-wishlist-button__label {
  display: none !important;
}

.yith-add-to-wishlist-button-block svg,
.yith-wcwl-add-to-wishlist svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}

.yith-add-to-wishlist-button-block:not(.etiler-wl-added):not(.yith-wcwl-add-to-wishlist-button--added) svg path,
.yith-wcwl-add-to-wishlist:not(.etiler-wl-added):not(.yith-wcwl-add-to-wishlist-button--added) svg path {
  fill: none !important;
  stroke: #fff !important;
  stroke-width: 1.8px !important;
}

.yith-add-to-wishlist-button-block.etiler-wl-added svg path,
.yith-add-to-wishlist-button-block.yith-wcwl-add-to-wishlist-button--added svg path {
  fill: #d4af37 !important;
  stroke: #fff !important;
}

/* ── İlgili ürünler: soldaki TÜM kalpleri gizle ── */
.wd-products-element .product-element-top,
.single-product .related.products .product-element-top,
.single-product section.related .product-element-top,
.single-product .related-products .product-element-top {
  position: relative !important;
}

.wd-products-element .wd-wishlist-btn,
.wd-products-element .wd-action-btn.wd-wishlist-btn,
.single-product .related .wd-wishlist-btn,
.single-product .related .wd-action-btn.wd-wishlist-btn,
.single-product .related-products .wd-wishlist-btn,
.single-product .related-products .wd-action-btn.wd-wishlist-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Alt alandaki kopya kalpleri gizle — sağ üsttekine JS dokunur */
.wd-products-element .product-element-top .yith-add-to-wishlist-button-block:not(.etiler-wl-active-heart),
.wd-products-element .product-element-top .yith-wcwl-add-to-wishlist:not(.etiler-wl-active-heart),
.wd-products-element .product-element-top .yith-wcwl-add-to-wishlist-button-block:not(.etiler-wl-active-heart),
.single-product .related .product-element-top .yith-add-to-wishlist-button-block:not(.etiler-wl-active-heart),
.single-product .related .product-element-top .yith-wcwl-add-to-wishlist:not(.etiler-wl-active-heart),
.single-product .related .product-element-top .yith-wcwl-add-to-wishlist-button-block:not(.etiler-wl-active-heart),
.single-product .related-products .product-element-top .yith-add-to-wishlist-button-block:not(.etiler-wl-active-heart),
.single-product .related-products .product-element-top .yith-wcwl-add-to-wishlist:not(.etiler-wl-active-heart),
.single-product .related-products .product-element-top .yith-wcwl-add-to-wishlist-button-block:not(.etiler-wl-active-heart),
.wd-products-element .product-element-bottom .yith-add-to-wishlist-button-block,
.wd-products-element .wd-product-header .yith-add-to-wishlist-button-block,
.single-product .related .product-element-bottom .yith-add-to-wishlist-button-block,
.single-product .related-products .product-element-bottom .yith-add-to-wishlist-button-block {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.wd-products-element .product-element-top .etiler-wl-active-heart,
.single-product .related .product-element-top .etiler-wl-active-heart,
.single-product .related-products .product-element-top .etiler-wl-active-heart,
.single-product section.related .product-element-top .etiler-wl-active-heart {
  display: block !important;
  visibility: visible !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  z-index: 80 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.wd-products-element .product-element-top .etiler-wl-active-heart a,
.wd-products-element .product-element-top .etiler-wl-active-heart button,
.wd-products-element .product-element-top .etiler-wl-active-heart svg,
.single-product .related .product-element-top .etiler-wl-active-heart a,
.single-product .related .product-element-top .etiler-wl-active-heart button,
.single-product .related .product-element-top .etiler-wl-active-heart svg,
.single-product .related-products .product-element-top .etiler-wl-active-heart a,
.single-product .related-products .product-element-top .etiler-wl-active-heart button,
.single-product .related-products .product-element-top .etiler-wl-active-heart svg,
.single-product section.related .product-element-top .etiler-wl-active-heart a,
.single-product section.related .product-element-top .etiler-wl-active-heart button,
.single-product section.related .product-element-top .etiler-wl-active-heart svg {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Sol YITH native kalp — ilgili ürünler */
.wd-products-element .product-element-top > button.yith-wcwl-add-to-wishlist-button,
.single-product .related .product-element-top > button.yith-wcwl-add-to-wishlist-button,
.single-product .related-products .product-element-top > button.yith-wcwl-add-to-wishlist-button,
.single-product section.related .product-element-top > button.yith-wcwl-add-to-wishlist-button,
.wd-products-element .product-element-top svg.yith-wcwl-icon:not(.etiler-wl-heart-icon),
.single-product .related .product-element-top svg.yith-wcwl-icon:not(.etiler-wl-heart-icon),
.single-product .related-products .product-element-top svg.yith-wcwl-icon:not(.etiler-wl-heart-icon),
.single-product section.related .product-element-top svg.yith-wcwl-icon:not(.etiler-wl-heart-icon) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.wd-products-element .product-element-top > a,
.single-product .related .product-element-top > a,
.single-product .related-products .product-element-top > a {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  pointer-events: auto !important;
}

.wd-products-element .product-element-top .onsale,
.single-product .related .product-element-top .onsale {
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  z-index: 20 !important;
}

/* ── PDP galeri kalbi ── */
.single-product .wd-gallery-images,
.single-product .woocommerce-product-gallery {
  position: relative !important;
}

.single-product .etiler-wl-gallery-slot {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 30 !important;
  pointer-events: none !important;
}

.single-product .etiler-wl-gallery-slot > * {
  pointer-events: auto !important;
}

.single-product .etiler-wl-pdp-heart {
  position: static !important;
  display: inline-flex !important;
}

.single-product .yith-add-to-wishlist-button-block.etiler-wl-hidden-dupe,
.single-product .yith-wcwl-add-to-wishlist.etiler-wl-hidden-dupe {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── Popup (tek kaynak — eski eh-* gizle) ── */
.eh-wishlist-popup {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.etiler-wl-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
}

.etiler-wl-box {
  width: 390px;
  max-width: 90%;
  background: #080808;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  pointer-events: auto !important;
}

.etiler-wl-popup--removed .etiler-wl-box {
  border-color: rgba(255, 255, 255, 0.22);
}

.etiler-wl-popup--error .etiler-wl-box {
  border-color: rgba(255, 120, 120, 0.45);
}

.etiler-wl-title {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
}

.etiler-wl-text {
  color: #d8d8d8;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.etiler-wl-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.etiler-wl-actions button,
.etiler-wl-actions a {
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.etiler-wl-continue {
  background: #171717;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.etiler-wl-go {
  background: #d4af37;
  color: #050505 !important;
  border: 1px solid #d4af37;
}
