/* =========================================================
   ארכיון חנות וקטגוריות - כפתורים
   גרסה סופית, מסודרת ומוסברת
   ========================================================= */

/* =========================================================
   1) הסתרת רכישה מהירה אמיתית בלבד
   ---------------------------------------------------------
   מסתיר רק כפתור drclear-buy-now רגיל
   לא מסתיר את כפתור "למגוון המוצרים"
   כי לו יש גם class בשם go-to-product
   ========================================================= */
body.post-type-archive-product a.drclear-buy-now:not(.go-to-product),
body.tax-product_cat a.drclear-buy-now:not(.go-to-product) {
  display: none !important;
}

/* =========================================================
   2) בסיס משותף לכל כפתורי הארכיון
   ---------------------------------------------------------
   יישור, גודל, רדיוס, צל, פונט
   חל על כל הכפתורים בארכיון כדי לשמור שפה אחידה
   ========================================================= */
body.post-type-archive-product ul.products li.product .btn-wrap a.button,
body.tax-product_cat ul.products li.product .btn-wrap a.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none !important;

  min-width: 200px !important;
  padding: 11px 24px !important;

  border-radius: 12px !important;

  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease !important;
}

/* =========================================================
   3) הוספה לסל - רק למוצרים רגילים
   ---------------------------------------------------------
   זה הכפתור הראשי
   class מדויק:
   product_type_simple + add_to_cart_button + ajax_add_to_cart
   ========================================================= */
body.post-type-archive-product ul.products a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart,
body.tax-product_cat ul.products a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
  background: #4FB3C8 !important;
  color: #ffffff !important;
  border: 1px solid #4FB3C8 !important;
}

/* hover - הוספה לסל */
body.post-type-archive-product ul.products a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:hover,
body.tax-product_cat ul.products a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:hover {
  background: #3AA2B8 !important;
  color: #ffffff !important;
  border-color: #3AA2B8 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-1px);
}

/* =========================================================
   4) כפתורים משניים - בחר אפשרויות + למגוון המוצרים
   ---------------------------------------------------------
   צבע משני פרימיום (כהה יותר מהקודם)
   חל על:
   - בחר אפשרויות (variable)
   - למגוון המוצרים (go-to-product)
   - grouped אם קיים
   ========================================================= */

/* בסיס */
body.post-type-archive-product ul.products a.button.product_type_variable.add_to_cart_button,
body.post-type-archive-product ul.products a.button.product_type_grouped,
body.post-type-archive-product ul.products a.button.drclear-buy-now.go-to-product,
body.tax-product_cat ul.products a.button.product_type_variable.add_to_cart_button,
body.tax-product_cat ul.products a.button.product_type_grouped,
body.tax-product_cat ul.products a.button.drclear-buy-now.go-to-product {

  background: #EEF3F5 !important;
  color: #2A353A !important;
  border: 1px solid #CDD9DD !important;
}

/* hover */
body.post-type-archive-product ul.products a.button.product_type_variable.add_to_cart_button:hover,
body.post-type-archive-product ul.products a.button.product_type_grouped:hover,
body.post-type-archive-product ul.products a.button.drclear-buy-now.go-to-product:hover,
body.tax-product_cat ul.products a.button.product_type_variable.add_to_cart_button:hover,
body.tax-product_cat ul.products a.button.product_type_grouped:hover,
body.tax-product_cat ul.products a.button.drclear-buy-now.go-to-product:hover {

  background: #E3EEF2 !important;
  color: #1C2529 !important;
  border-color: #BFCFD5 !important;

  box-shadow: 0 4px 10px rgba(0,0,0,0.10) !important;
  transform: translateY(-1px);
}

/* =========================================================
   5) מובייל
   ---------------------------------------------------------
   מקטין מעט את הכפתורים כדי שלא יהיו כבדים מדי
   לא משנה צבעים או היררכיה, רק מידה
   ========================================================= */
@media (max-width: 767px) {
  body.post-type-archive-product ul.products li.product .btn-wrap a.button,
  body.tax-product_cat ul.products li.product .btn-wrap a.button {
    min-width: 150px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
}