/* ============================================
   LABO Perfume — Final Polish v1
   1. כפתור פרטים (.obtn href) → outline secondary
   2. אייקוני לב (emoji) → SVG אחיד
   3. תיקוני סדר/רווח
   ============================================ */

/* --- 1. כפתור פרטים — outline secondary --- */
.pcard a.obtn,
.pcard a.obtn[href] {
  background: var(--labo-white, #FFFFFF) !important;
  color: var(--labo-black, #0A0A0A) !important;
  border: 1.5px solid var(--labo-black, #0A0A0A) !important;
  border-radius: var(--radius-md, 8px) !important;
  padding: 10px 16px !important;
  font-family: var(--font-family, 'Heebo', sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  text-align: center;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  cursor: pointer;
  transition: all var(--transition-base, 250ms ease);
  letter-spacing: 0.02em;
}
.pcard a.obtn:hover {
  background: var(--labo-black, #0A0A0A) !important;
  color: var(--labo-white, #FFFFFF) !important;
}

/* כפתור הוסף לסל (button.obtn) — נשאר שחור מלא */
.pcard button.obtn {
  background: var(--labo-black, #0A0A0A) !important;
  color: var(--labo-white, #FFFFFF) !important;
  border: 1.5px solid var(--labo-black, #0A0A0A) !important;
  border-radius: var(--radius-md, 8px) !important;
  padding: 10px 16px !important;
  font-weight: 600 !important;
  min-height: 40px;
  transition: all var(--transition-base, 250ms ease);
  font-family: var(--font-family, 'Heebo', sans-serif) !important;
  font-size: 14px !important;
  letter-spacing: 0.02em;
}
.pcard button.obtn:hover {
  background: var(--labo-gold, #C9A961) !important;
  color: var(--labo-black, #0A0A0A) !important;
  border-color: var(--labo-gold, #C9A961) !important;
}

/* --- 2. אייקוני לב — החלפה ב-SVG (mask-based) --- */
.pcard .labo-heart,
.pcard .labo-heart-btn {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--labo-gray-300, #D4D4D4) !important;
  border-radius: 50% !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  /* הסתר את התווי/אימוג'י המקורי */
  font-size: 0 !important;
  color: transparent !important;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base, 250ms ease);
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* אייקון SVG מבוסס ::before */
.pcard .labo-heart::before,
.pcard .labo-heart-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--labo-gray-900, #1A1A1A);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/></svg>") center/contain no-repeat;
  transition: background-color var(--transition-fast, 150ms ease);
}

.pcard .labo-heart:hover,
.pcard .labo-heart-btn:hover {
  background: var(--labo-white, #FFFFFF) !important;
  border-color: var(--labo-gold, #C9A961) !important;
  transform: scale(1.08);
}
.pcard .labo-heart:hover::before,
.pcard .labo-heart-btn:hover::before {
  background-color: var(--labo-gold, #C9A961);
}

/* מצב active (אהבתי) */
.pcard .labo-heart.active,
.pcard .labo-heart-btn.active,
.pcard .labo-heart[aria-pressed="true"],
.pcard .labo-heart-btn[aria-pressed="true"],
.pcard .labo-heart.is-active,
.pcard .labo-heart-btn.is-active {
  background: var(--labo-gold, #C9A961) !important;
  border-color: var(--labo-gold, #C9A961) !important;
}
.pcard .labo-heart.active::before,
.pcard .labo-heart-btn.active::before,
.pcard .labo-heart[aria-pressed="true"]::before,
.pcard .labo-heart-btn[aria-pressed="true"]::before,
.pcard .labo-heart.is-active::before,
.pcard .labo-heart-btn.is-active::before {
  background-color: var(--labo-white, #FFFFFF);
}

/* --- 3. אם שני כפתורי לב מופיעים יחד — הסתר את הישן --- */
.pcard .labo-heart-btn + .labo-heart,
.pcard .labo-heart + .labo-heart-btn {
  display: none !important;
}

/* --- 4. אייקוני 🛒 ביציאה (השאר טקסט נקי) --- */
.pcard button.obtn {
  white-space: nowrap;
}

/* --- 5. רשת הכפתורים פרטים+סל בתחתית הכרטיס --- */
.pcard > div:has(> button.obtn):has(> a.obtn),
.pcard > div:has(> a.obtn):has(> button.obtn) {
  display: grid !important;
  grid-template-columns: 1fr 2fr !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: var(--sp-3, 16px);
}

/* fallback אם :has לא נתמך */
@supports not selector(:has(*)) {
  .pcard a.obtn { margin-right: 4px; }
  .pcard button.obtn { margin-left: 4px; }
}

/* --- 6. תווית מחיר old בכרטיסי מבצע (אם קיימים) --- */
.pcard .price-old,
.pcard .pprice-old { text-decoration: line-through; color: var(--labo-gray-600, #555555); margin-inline-start: 6px; font-size: 13px; }
