/* Hide Add to Cart button ONLY on product cards (home/category/section pages) - NOT product detail page */
/* Desktop and Mobile - Comprehensive coverage */
.s-product-card-entry .s-product-card-add-btn,
.s-product-card-entry .s-product-card-footer,
.s-product-card-entry .s-product-card-content-footer,
.s-product-card-entry .s-button-element,
.s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
.s-block-products-grid .s-product-card-entry .s-button-element,
.s-block-products-grid .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
.s-block-products-slider .s-product-card-entry .s-button-element,
.s-block-products-slider .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
.products-grid .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
.product-grid .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
.products-slider .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
.s-block .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
section:not([class*="product-detail"]):not([class*="product-single"]) .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
.category-products .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
.products-list .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
/* Mobile-specific selectors */
[class*="product-card"]:not([class*="product-detail"]) button:not([class*="qty"]):not([class*="quantity"]),
.s-product-card:not([class*="product-detail"]) button:not([class*="qty"]):not([class*="quantity"]),
.product-item:not([class*="product-detail"]) button:not([class*="qty"]):not([class*="quantity"]) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Mobile-specific: Ensure buttons are hidden on product cards */
@media (max-width: 991px) {
  .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
  [class*="product-card"]:not([class*="product-detail"]):not([class*="product-single"]) button:not([class*="qty"]):not([class*="quantity"]),
  .s-product-card:not([class*="product-detail"]) button:not([class*="qty"]):not([class*="quantity"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
}

/* Add to Cart / Buy Now Button - Styling (ONLY Product Detail Page) */
/* CRITICAL: These rules MUST override the hiding rules above with higher specificity */
.s-product-form .s-button-element,
.s-product-form button:not([class*="qty"]):not([class*="quantity"]),
.product-details .s-button-element,
.product-details button[type="submit"],
.product-single .s-button-element,
.product-single button[type="submit"],
.s-main-product .s-button-element,
.s-main-product button:not([class*="qty"]):not([class*="quantity"]),
[class*="product-detail"] .s-button-element,
[class*="product-detail"] button:not([class*="qty"]):not([class*="quantity"]),
.s-product-buy-now-button,
form.s-form button[type="submit"],
/* Override hiding rules for buttons inside product detail containers */
.s-product-form .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
.s-main-product .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
[class*="product-detail"] .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
.s-product-form [class*="product-card"] button:not([class*="qty"]):not([class*="quantity"]),
.s-main-product [class*="product-card"] button:not([class*="qty"]):not([class*="quantity"]),
[class*="product-detail"] [class*="product-card"] button:not([class*="qty"]):not([class*="quantity"]) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 55px !important;
  background: #393535 !important;
  background-color: #393535 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: 0.3s !important;
  padding: 15px 30px !important;
  margin: 0 !important;
  text-align: center !important;
  gap: 10px !important;
}

/* Mobile: Ensure product detail page buttons are visible - Override hiding rules */
@media (max-width: 991px) {
  .s-product-form button:not([class*="qty"]):not([class*="quantity"]),
  .s-main-product button:not([class*="qty"]):not([class*="quantity"]),
  [class*="product-detail"] button:not([class*="qty"]):not([class*="quantity"]),
  .s-product-form .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
  .s-main-product .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
  [class*="product-detail"] .s-product-card-entry button:not([class*="qty"]):not([class*="quantity"]),
  .s-product-form [class*="product-card"] button:not([class*="qty"]):not([class*="quantity"]),
  .s-main-product [class*="product-card"] button:not([class*="qty"]):not([class*="quantity"]),
  [class*="product-detail"] [class*="product-card"] button:not([class*="qty"]):not([class*="quantity"]) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 55px !important;
  }
}

.s-product-form .s-button-element:hover,
.s-product-form button:hover,
.product-details .s-button-element:hover,
.product-single .s-button-element:hover,
.s-main-product .s-button-element:hover,
.s-product-buy-now-button:hover {
  background: #222222 !important;
  background-color: #222222 !important;
  color: #ffffff !important;
}