/* Custom WooCommerce Styles */

/* Out of stock button styles */
.out-of-stock {
    background-color: #dc3545 !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    border-color: #dc3545 !important;
}

.out-of-stock:hover {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

/* Add to cart button success state */
.add_to_cart_button.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

/* Add to cart button error state */
.add_to_cart_button.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

/* Loading state for add to cart button */
.add_to_cart_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Single product add to cart button styles */
.single_add_to_cart_button.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.single_add_to_cart_button.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.single_add_to_cart_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Cart count styles */
.cart-count, .cart-contents-count {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

/* Product loop styles */
.products .product {
    position: relative;
}

.products .product .out-of-stock {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Hide out of stock products completely */
.products .product.out-of-stock {
    display: none !important;
}

/* Notification styles */
.ajax-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    max-width: 300px;
    word-wrap: break-word;
}

/* removed toast styles */

.ajax-notification.success {
    background-color: #28a745;
}

.ajax-notification.error {
    background-color: #dc3545;
}

.ajax-notification.warning {
    background-color: #ffc107;
    color: #212529;
}

/* Custom button styles for main template files */
.ajax_add_to_cart {
    transition: all 0.3s ease;
}

.ajax_add_to_cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ajax_add_to_cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Single product page button styles */
.single-product .ajax_add_to_cart {
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 8px;
}

/* Archive and brands page button styles */
.archive-product .ajax_add_to_cart,
.brands-page .ajax_add_to_cart {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
}

/* Product slide button styles */
.product-slide .ajax_add_to_cart {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .out-of-stock {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .ajax-notification {
        bottom: 90px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 14px;
    }
    
    .single-product .ajax_add_to_cart {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .archive-product .ajax_add_to_cart,
    .brands-page .ajax_add_to_cart {
        font-size: 12px;
        padding: 6px 12px;
    }
}
