/* KAZIO GLOBAL PRODUCT BUTTONS + ACTIVE WISHLIST HEART V5 */

/* Kill duplicated meta icons produced by older v4 runtime in current DOM */
.kz-meta-inline-v4 .kz-meta-inline-v4,
.kz-meta-inline-v5 .kz-meta-inline-v5 {
  display: contents !important;
}

/* Segmented action bar - proposal 1 refined */
.product-thumb .button-group,
.kazio-product-card .button-group,
.kz-product-card .button-group,
.kz-card .button-group,
.product-card .button-group,
.kz-product-actions,
.kz-card-actions {
  display: flex !important;
  flex-direction: row !important;
  direction: ltr !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 6px !important;
  margin-top: 12px !important;
  width: 100% !important;
  min-height: 58px !important;
  max-height: 62px !important;
  border: 1px solid rgba(0, 167, 101, .14) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 12px 28px rgba(6,34,26,.06) !important;
  overflow: hidden !important;
}

.product-thumb .button-group > *,
.kazio-product-card .button-group > *,
.kz-product-card .button-group > *,
.kz-card .button-group > *,
.product-card .button-group > *,
.kz-product-actions > *,
.kz-card-actions > * {
  direction: rtl !important;
  min-width: 0 !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  border: 0 !important;
  border-radius: 14px !important;
  font-family: Vazirmatn, Tahoma, sans-serif !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease !important;
  position: relative !important;
  overflow: visible !important;
}

.kz-action-compare {
  order: 1 !important;
  flex: .82 1 0 !important;
  background: transparent !important;
  color: #52636a !important;
}

.kz-action-wishlist {
  order: 2 !important;
  flex: .98 1 0 !important;
  background: transparent !important;
  color: #52636a !important;
  border-inline-start: 1px solid rgba(21,45,54,.08) !important;
  border-inline-end: 1px solid rgba(21,45,54,.08) !important;
  box-shadow: none !important;
}

.kz-action-cart {
  order: 3 !important;
  flex: 1.55 1 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #00a765, #048b56) !important;
  box-shadow: 0 12px 26px rgba(0,167,101,.20) !important;
}

.kz-action-cart:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #09b874, #04794d) !important;
  transform: translateY(-1px) !important;
}

.kz-action-compare:hover,
.kz-action-wishlist:hover {
  color: #00a765 !important;
  background: #f4fbf8 !important;
  transform: translateY(-1px) !important;
}

.kz-action-cart i,
.kz-action-cart svg {
  color: #fff !important;
  fill: #fff !important;
  font-size: 17px !important;
}

.kz-action-wishlist i,
.kz-action-wishlist svg,
.kz-action-compare i,
.kz-action-compare svg {
  color: #53646b !important;
  fill: #53646b !important;
  font-size: 16px !important;
}

/* Inactive wishlist: outline heart */
.kz-action-wishlist:not([data-kazio-wishlist-active="1"]) i.fa-heart,
.kz-action-wishlist:not([data-kazio-wishlist-active="1"]) .fa-heart {
  color: #607078 !important;
  fill: none !important;
}

/* Active wishlist: only heart icon red, button box stays normal */
.kz-action-wishlist[data-kazio-wishlist-active="1"],
.kz-action-wishlist.kz-wishlist-is-active,
button.kz-action-wishlist[data-kazio-wishlist-active="1"],
a.kz-action-wishlist[data-kazio-wishlist-active="1"] {
  background: transparent !important;
  color: #52636a !important;
  box-shadow: none !important;
  border-color: rgba(21,45,54,.08) !important;
}

.kz-action-wishlist[data-kazio-wishlist-active="1"]:hover,
.kz-action-wishlist.kz-wishlist-is-active:hover {
  background: #f4fbf8 !important;
  color: #00a765 !important;
}

.kz-action-wishlist[data-kazio-wishlist-active="1"] i.fa-heart,
.kz-action-wishlist[data-kazio-wishlist-active="1"] .fa-heart,
.kz-action-wishlist.kz-wishlist-is-active i.fa-heart,
.kz-action-wishlist.kz-wishlist-is-active .fa-heart,
.kz-wishlist-product-heart-v11[data-kazio-wishlist-active="1"] i,
.kz-wishlist-product-heart-v12[data-kazio-wishlist-active="1"] i {
  color: #e11d48 !important;
  fill: #e11d48 !important;
}

.kz-action-wishlist[data-kazio-wishlist-active="1"]::after,
.kz-wishlist-product-heart-v11[data-kazio-wishlist-active="1"]::after,
.kz-wishlist-product-heart-v12[data-kazio-wishlist-active="1"]::after {
  content: none !important;
  display: none !important;
}

/* Safe inline meta badges only */
.kz-meta-inline-v5 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #34454c !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  vertical-align: middle !important;
  margin-inline: 4px !important;
  min-height: 0 !important;
  height: auto !important;
}

.kz-meta-inline-v5 i {
  color: #00a765 !important;
  font-size: 14px !important;
}

.product-thumb .fa-file,
.product-thumb .fa-file-alt,
.product-thumb .fa-file-lines,
.product-thumb .fa-check,
.product-thumb .fa-circle-check {
  color: #00a765 !important;
}

@media (max-width: 520px) {
  .product-thumb .button-group,
  .kazio-product-card .button-group,
  .kz-product-card .button-group,
  .kz-card .button-group,
  .product-card .button-group {
    padding: 5px !important;
    border-radius: 17px !important;
    min-height: 54px !important;
    max-height: 58px !important;
  }

  .kz-action-cart,
  .kz-action-wishlist,
  .kz-action-compare {
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    font-size: 11px !important;
  }

  .kz-action-cart {
    flex: 1.35 1 0 !important;
  }
}
