/*
Theme Name: Your Child Theme Name
Template: your-parent-theme-name
Version: 1.0.0
*/

/*
===========================================
HIDE WOOCOMMERCE DEFAULT PRICE & SEPARATORS
===========================================
*/

/* Hide ONLY the default WooCommerce price ABOVE the bundle selector, NOT in the tiers */
.single-product .summary > .price,
.single-product .product > .price,
.woocommerce div.product .summary > p.price,
.woocommerce div.product > p.price:not(.sbp-bundle-card .price) {
    display: none !important;
}

/* KEEP prices inside bundle tiers visible */
.sbp-bundle-card .price,
.sbp-bundle-card .woocommerce-Price-amount,
.sbp-total-amount,
.sbp-tier-info .price {
    display: block !important;
    visibility: visible !important;
}

/* Hide separator lines - be more specific */
.single-product .summary > hr,
.woocommerce div.product > hr,
.product-summary hr:not(.sbp-bundle-card hr) {
    display: none !important;
    border: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*
===========================================
HIDE PLUGIN HEADER & CART BORDER
===========================================
*/

/* Hide the top bar with bag icon and menu */
.oceanwp-mobile-menu-icon,
.mobile-menu,
a.mobile-menu-toggle,
.cart-icon:not(#site-header .cart-icon),
div[class*="mobile-menu"],
.product .cart-icon,
.woocommerce .cart-icon:not(#site-header .cart-icon) {
    display: none !important;
}

/* ONLY hide elements that are INSIDE the product content area, NOT in your site header */
.woocommerce-product-details #site-logo,
.product #site-logo,
.single-product #site-logo,
article.product #site-logo,
.woocommerce #site-logo:not(#site-header #site-logo),
.woocommerce header.page-header,
.product header.page-header,
.single-product header.page-header,
article.product header.page-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* Hide ANY possible plugin header elements */
.sbp-bundle-wrapper::before,
.sbp-header,
.sbp-bundle-header,
header.sbp-header,
.sbp-top-header,
.sbp-logo,
.sbp-logo-container,
.sbp-navigation,
.sbp-menu,
.sbp-site-header,
div[class*="sbp-header"],
div[class*="bundle-header"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* OVERRIDE CSS VARIABLES - Remove Elementor cart border by overriding CSS variables */
#elementor-menu-cart-toggle-button,
.elementor-menu-cart-toggle-button,
#site-header #elementor-menu-cart-toggle-button,
.minimal-header #elementor-menu-cart-toggle-button {
    --toggle-button-border-type: none !important;
    --toggle-button-border-width: 0 !important;
    --toggle-button-border-color: transparent !important;
    --e-border-width: 0 !important;
    --e-border-style: none !important;
    --e-border-color: transparent !important;
}

/* NUCLEAR OPTION - REMOVE BORDER from Elementor menu cart - EVERY POSSIBLE SELECTOR */
#elementor-menu-cart-toggle-button,
#elementor-menu-cart-toggle-button *,
#elementor-menu-cart-toggle-button > *,
#elementor-menu-cart-toggle-button a,
#elementor-menu-cart-toggle-button span,
#elementor-menu-cart-toggle-button div,
#elementor-menu-cart-toggle-button i,
.elementor-menu-cart-toggle-button,
.elementor-menu-cart-toggle-button *,
.elementor-menu-cart-toggle-button a,
.elementor-menu-cart-toggle-button span,
button#elementor-menu-cart-toggle-button,
a#elementor-menu-cart-toggle-button,
#site-header #elementor-menu-cart-toggle-button,
#site-header #elementor-menu-cart-toggle-button *,
.minimal-header #elementor-menu-cart-toggle-button,
.minimal-header #elementor-menu-cart-toggle-button *,
[id*="elementor-menu-cart"],
[class*="elementor-menu-cart"] {
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    box-shadow: none !important;
}

/* REMOVE ALL BORDERS from entire site header - AGGRESSIVE */
#site-header,
#site-header *,
#site-header a,
#site-header span,
#site-header div,
#site-header button,
.minimal-header,
.minimal-header *,
.minimal-header a,
.minimal-header span,
.minimal-header div,
.minimal-header button,
header#site-header,
header#site-header *,
header.minimal-header,
header.minimal-header * {
    border: 0 !important;
    border-width: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* FORCE tier borders - MAXIMUM STRENGTH */
.sbp-bundle-card,
label.sbp-bundle-card,
.sbp-bundle-wrapper .sbp-bundle-card,
.sbp-bundle-container .sbp-bundle-card {
    border: 2px solid #e5e7eb !important;
    border-width: 2px !important;
    border-style: solid !important;
    border-color: #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    background: #fff !important;
}

.sbp-bundle-card:hover,
label.sbp-bundle-card:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1) !important;
}

/* Make sure selected tier has visible border */
.sbp-bundle-card input[type="radio"]:checked {
    accent-color: #3b82f6 !important;
}

.sbp-bundle-card:has(input[type="radio"]:checked),
label.sbp-bundle-card:has(input[type="radio"]:checked) {
    border-color: #3b82f6 !important;
    background-color: #f0f9ff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2) !important;
}

/* Remove borders from bundle cards */
.sbp-bundle-card {
    border: none !important;
    box-shadow: none !important;
}

/*
===========================================
MOBILE-FIRST STYLES (DEFAULT)
===========================================
*/
.sbp-bundle-card,
.sbp-tier-info,
.sbp-badges-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

/* Center ALL text inside bundle tier */
.sbp-bundle-card *,
.sbp-tier-info *,
.sbp-badges-wrapper * {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Staggered badge animation CSS */
.sbp-badge {
    opacity: 0;
    transform: translateY(20px);
}

/* Price always centered */
.sbp-total-amount {
    width: 100%;
    text-align: center !important;
    font-weight: 700;
}

/* Full-width Add to Cart on mobile */
form.cart .single_add_to_cart_button {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 14px !important;
    box-sizing: border-box !important;
}

/*
===========================================
DESKTOP OVERRIDES (>= 769px)
===========================================
*/
@media (min-width: 769px) {
    .sbp-bundle-card {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-align: left !important;
    }
    
    .sbp-bundle-card *,
    .sbp-tier-info *,
    .sbp-badges-wrapper * {
        text-align: left !important;
        margin: 0 !important;
    }
    
    .sbp-tier-info {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .sbp-badges-wrapper {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    form.cart .single_add_to_cart_button {
        width: auto !important;
        padding: 12px 24px !important;
    }
}