/**
 * No Multiple Order - Frontend Styles
 * 
 * Menyembunyikan tombol Add to Cart di halaman selain single product
 */

/* 
 * STRICT: Hanya hide buttons yang BENAR-BENAR di dalam product LOOP
 * Jangan sampai affect single product page buttons
 */

/* Product loop containers - pastikan spesifik */
.woocommerce ul.products li .button.add_to_cart_button,
.woocommerce ul.products li .button.product_type_simple,
.woocommerce ul.products li .button.product_type_variable,
.woocommerce ul.products li .button.product_type_grouped,
.woocommerce ul.products li .button.product_type_external {
    display: none !important;
}

/* Alternative selectors untuk berbagai themes */
.products li .add_to_cart_button,
.products li .product_type_simple,
.products li .product_type_variable,
.products li .product_type_grouped,
.products li .product_type_external {
    display: none !important;
}

/* Hide quick shop buttons */
.quick-shop-button,
.qv-button {
    display: none !important;
}

/* CRITICAL: Pastikan single product buttons TIDAK hidden */
/* Gunakan CSS specificity yang lebih tinggi */
body.single-product .single_add_to_cart_button,
body.single-product .product .button.add_to_cart_button,
body.single-product .product .button.product_type_simple,
body.single-product .product .button.product_type_variable,
body.single-product .product .button.product_type_external,
body.single-product .product .button.product_type_grouped {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Pastikan form elements di single product berfungsi */
body.single-product form.cart {
    display: block !important;
}

body.single-product form.cart .button {
    display: inline-block !important;
    cursor: pointer !important;
}

/* Reset opacity untuk product cards di loop */
.products li.product {
    opacity: 1;
}
