/**
 * Button Hover Fix
 * Consistent button hover states and transitions
 */

/* Primary button hover */
.btn:hover,
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Prevent color change on hover for primary buttons */
.btn.btn-primary:hover {
    background-color: #2D3493;
    border-color: #2D3493;
    color: #fff;
}

/* Add to cart button hover */
.add-to-cart-btn:hover,
.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #232a75 !important; /* Darker blue hover */
    color: #fff !important;
    border-color: #232a75 !important;
}

/* Universal Add to Cart Button Sizing - Consistent across all cards */
.add-to-cart-btn {
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    padding: 0 20px !important;
}

/* Wishlist button hover */
.add-to-wishlist-btn:hover {
    color: #f74b81 !important;
}

/* Wishlist button hover — list-view card variant (shop-list.html uses a
   different class than the grid-view cards, with its own pink-square-on-hover
   rule in main.css that this overrides) */
.action-btn.add-to-wishlist:hover {
    background: transparent !important;
    color: #f74b81 !important;
}

/* Learn More button (Launching Soon / research-development cards) — site-wide */
.minimal-learn-more-btn {
    background: #6c757d !important;
    color: #fff !important;
}

.minimal-learn-more-btn:hover {
    background: #565e64 !important;
    color: #fff !important;
}

/* Out of Stock button (grid/related-product cards) — site-wide */
.minimal-out-of-stock-btn {
    background: #f5f5f5 !important;
    color: #b0342c !important;
    border-color: #e0e0e0 !important;
    cursor: not-allowed !important;
}

/* Remove button hover */
.cart-remove-btn:hover,
.wishlist-remove-btn:hover {
    color: #ff0000 !important;
    transform: scale(1.1);
}

/* Smooth transitions for all buttons */
.btn,
.add-to-cart-btn,
.add-to-wishlist-btn,
.cart-remove-btn,
.wishlist-remove-btn {
    transition: all 0.3s ease;
}
