/*
	Theme Name:     Mobex Child
	Theme URI:      http://www.enovathemes.com/mobex
	Description:    Mobex - Auto Parts Woocommerce WordPress Theme
	Author:         Enovathemes
	Author URI:     https://enovathemes.com
	Version:        1.0
	Template:       mobex
*/

/* =Theme customization starts here
-------------------------------------------------------------- */

body:not(.logged-in) .product-search .product-data .product-price {
    display: none !important;
}

body:not(.logged-in) .product-search .product-data::after {
    content: "Login to view prices";
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #bf3617;
}
body:not(.logged-in) .compare-table.cbt th.product-price,
body:not(.logged-in) .compare-table.cbt td.product-price {
    display: none !important;
}

body:not(.logged-in) .compare-table.cbt tr:has(> th.product-price),
body:not(.logged-in) .compare-table.cbt tr:has(> td.product-price) {
    display: none !important;
}

body:not(.logged-in) .compare-table.cbt tbody::after {
    content: "Login to view prices";
    display: block;
    margin: 16px 0 0;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #bf3617;
    text-align: center;
}

/* Toggle ikonları ana konum */
.tp-product-card {
  position: relative;
}

.tp-product-card .tp-loop-toggles-widget {
  position: absolute;
  top: 12px;
  right: 12px;
  width: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;
  z-index: 10;
}

.tp-product-card .tp-loop-toggles-widget .elementor-widget-container {
  width: auto !important;
  max-width: max-content !important;
}

.tp-product-card .mobex-loop-toggles {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px !important;
  position: static !important;
}

.tp-product-card .mobex-loop-toggles .wishlist-title,
.tp-product-card .mobex-loop-toggles .compare-title {
  display: none !important;
}

/* ikonların birbirine eşit boşlukla dizilmesi */
.tp-product-card .mobex-loop-toggles .en-quick-view,
.tp-product-card .mobex-loop-toggles .wishlist-toggle,
.tp-product-card .mobex-loop-toggles .compare-toggle {
  display: block !important;
  position: relative !important;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 26px !important;
  flex: 0 0 26px;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  float: none !important;
  clear: none !important;
}

.tp-product-card .mobex-loop-toggles > * {
  margin: 0 !important;
}

.tp-product-card .mobex-loop-toggles .compare-toggle {
  margin-top: 0 !important;
}

/* Desktop'ta ikonları biraz daha yukarı al */
@media (min-width: 1025px) {
  .tp-product-card .tp-loop-toggles-widget {
    top: 6px !important;
    right: 8px !important;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .tp-product-card .tp-loop-toggles-widget {
    top: 8px;
    right: 8px;
  }

  .tp-product-card .mobex-loop-toggles {
    gap: 8px !important;
  }

  .tp-product-card .mobex-loop-toggles .en-quick-view,
  .tp-product-card .mobex-loop-toggles .wishlist-toggle,
  .tp-product-card .mobex-loop-toggles .compare-toggle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    line-height: 24px !important;
    flex: 0 0 24px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .tp-product-card .tp-loop-toggles-widget {
    top: 6px;
    right: 6px;
  }

  .tp-product-card .mobex-loop-toggles {
    gap: 8px !important;
  }

  .tp-product-card .mobex-loop-toggles .en-quick-view,
  .tp-product-card .mobex-loop-toggles .wishlist-toggle,
  .tp-product-card .mobex-loop-toggles .compare-toggle {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    line-height: 22px !important;
    flex: 0 0 22px;
  }
}