/* ZooMag adaptive product action buttons fix v4 — 2026-05-19
   Only adaptive category cards. Moves wishlist/compare to a clean row under Add to cart. */

@media (max-width: 767.98px) {
  #product-category .petz-action-buttons,
  #product-list .petz-action-buttons,
  body.zm-final-list-mode #product-list .petz-action-buttons,
  body.zm-final-grid-mode #product-list .petz-action-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  #product-category .petz-cart-btn,
  #product-list .petz-cart-btn,
  body.zm-final-list-mode #product-list .petz-cart-btn,
  body.zm-final-grid-mode #product-list .petz-cart-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }

  #product-category .petz-secondary-actions,
  #product-list .petz-secondary-actions,
  body.zm-final-list-mode #product-list .petz-secondary-actions,
  body.zm-final-grid-mode #product-list .petz-secondary-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-content: stretch !important;
    align-items: stretch !important;
  }

  #product-category .petz-secondary-actions .petz-btn,
  #product-category .petz-secondary-actions .petz-btn-secondary,
  #product-list .petz-secondary-actions .petz-btn,
  #product-list .petz-secondary-actions .petz-btn-secondary,
  body.zm-final-list-mode #product-list .petz-secondary-actions .petz-btn,
  body.zm-final-grid-mode #product-list .petz-secondary-actions .petz-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 8px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  #product-category .petz-secondary-actions .petz-btn i,
  #product-list .petz-secondary-actions .petz-btn i {
    flex: 0 0 auto !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  #product-category .petz-wishlist-btn::after,
  #product-list .petz-wishlist-btn::after {
    content: "Избранное" !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  #product-category .petz-compare-btn::after,
  #product-list .petz-compare-btn::after {
    content: "Сравнить" !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 360px) {
  #product-category .petz-secondary-actions .petz-btn,
  #product-category .petz-secondary-actions .petz-btn-secondary,
  #product-list .petz-secondary-actions .petz-btn,
  #product-list .petz-secondary-actions .petz-btn-secondary {
    gap: 5px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  #product-category .petz-wishlist-btn::after,
  #product-list .petz-wishlist-btn::after,
  #product-category .petz-compare-btn::after,
  #product-list .petz-compare-btn::after {
    font-size: 11px !important;
  }
}
