/* ================================================================
   Breathify — WooCommerce Style Overrides v2.4 (Performance & SPECIFICITY Fix)
   This version uses high-specificity selectors to override Astra/Elementor.
   ================================================================ */

/* ── Global Specificity Booster ── */
html body.single-product .bf-page-content {
    padding-top: 16px !important;
    padding-bottom: 0 !important;
}
html body.single-product .bf-page-content .bf-container {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

@media (max-width: 768px) {
    html body.single-product .bf-page-content .bf-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ── Layout Grid ── */
html body.single-product div.product {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
    margin-bottom: 48px !important;
}

@media (max-width: 991px) {
    html body.single-product div.product {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

/* ── Trust Badges (2x2 Grid) ── */
html body.single-product .bf-trust-badges {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin: 16px 0 !important;
}

/* ── Purchase Area Reordering (CRITICAL) ── */

/* 1. Make the container a flex column */
html body.single-product div.product form.cart .woocommerce-variation-add-to-cart,
html body.single-product div.product form.cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

/* 2. Set the Order (Qty -> Buy Now/WhatsApp -> Add to Cart) */

/* Quantity stays first */
html body.single-product div.product .quantity {
    order: 1 !important;
    display: inline-flex !important;
    width: fit-content !important;
}

/* Buy Now + WhatsApp (Injected via hook) -> SECOND */
html body.single-product div.product .bf-single-actions-extra {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Add to Cart button -> THIRD */
html body.single-product div.product .single_add_to_cart_button,
html body.single-product div.product .button.alt {
    order: 3 !important;
    width: 100% !important;
    background: transparent !important;
    color: #1a1a1a !important;
    border: 2px solid #1a1a1a !important;
    border-radius: 50px !important;
    height: 52px !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* ── Button Styles ── */

/* Buy Now — PRIMARY */
html body.single-product .bf-btn-buy-now-single {
    background: #1a1a1a !important;
    color: #fff !important;
    border-radius: 50px !important;
    height: 52px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: none !important;
    width: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    cursor: pointer !important;
}

/* WhatsApp — TERTIARY */
html body.single-product .bf-btn-whatsapp-link {
    background: #25D366 !important;
    color: #fff !important;
    border-radius: 50px !important;
    height: 40px !important;
    padding: 0 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    text-decoration: none !important;
}

/* ── Social Proof & Stock ── */
.bf-social-proof { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bf-rating-text { font-size: 13px; font-weight: 600; color: #666; }
.bf-stock-status {
    display: inline-flex; align-items: center; gap: 6px;
    background: #E8F5E9; color: #2E7D32; padding: 3px 10px; border-radius: 50px;
    font-size: 11px; font-weight: 700; margin-bottom: 12px;
}

/* ── Benefits Section (Force 3-col) ── */
html body.single-product .bf-benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
}

@media (max-width: 768px) {
    html body.single-product .bf-benefits-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Typography fixes for live site ── */
html body.single-product .product_title {
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin-bottom: 8px !important;
}

html body.single-product p.price,
html body.single-product span.price {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
}
