/*
Theme Name: Child MDC
Theme URI: https://mediccare.com.br
Description: Layout Boxed Premium - Ajuste Final de Cores e Mobile - JBM Digital
Author: JBM Digital
Author URI: https://jbmdigital.com.br
Template: hello-elementor
Version: 1.7.0
Text Domain: child-mdc
*/

/* 1. VARIÁVEIS DE DESIGN */
:root {
    --mdc-blue: #004b93;
    --mdc-text: #1a1a1a;
    --mdc-light-text: #999999;
    --wa-green: #00c853;
    --wa-hover: #00e676;
}

/* 2. LAYOUT BOXED */
body.woocommerce .site-main, 
body.woocommerce .woocommerce-breadcrumb,
body.woocommerce div.product,
body.woocommerce .related.products {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 3. BREADCRUMBS */
.woocommerce .woocommerce-breadcrumb {
    margin-top: 45px;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--mdc-light-text);
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
}

/* 4. PÁGINA DO PRODUTO (Single) */
body.woocommerce div.product .product_title {
    font-size: 42px;
    font-weight: 800;
    color: var(--mdc-text);
    margin-bottom: 15px;
    line-height: 1.1;
    text-transform: capitalize;
}

/* Preço Single: Garantindo que o azul apareça */
body.woocommerce div.product p.price, 
body.woocommerce div.product span.price,
body.woocommerce div.product p.price .amount {
    font-size: 30px !important;
    color: var(--mdc-blue) !important;
    font-weight: 700 !important;
}

body.woocommerce div.product .price-sob-consulta {
    background-color: #f0f7ff;
    color: var(--mdc-blue);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-block;
    font-size: 22px;
}

body.woocommerce div.product div.summary {
    padding-left: 60px;
}

/* 5. BOTÃO WHATSAPP PREMIUM (Base Desktop) */
.jbm-btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wa-green) !important;
    color: #ffffff !important;
    padding: 18px 45px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 200, 83, 0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.jbm-btn-wa:hover {
    transform: scale(1.03) translateY(-3px);
    background-color: var(--wa-hover) !important;
    box-shadow: 0 15px 30px rgba(0, 200, 83, 0.3);
}

.jbm-btn-wa svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
    margin-right: 15px;
    flex-shrink: 0;
}

/* 6. PRODUTOS RELACIONADOS (Correção Final do Amarelo) */
.woocommerce .related.products h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--mdc-text) !important;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

/* Forçando o Azul no preço dos relacionados e removendo o amarelo */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount,
.woocommerce ul.products li.product .price ins .amount {
    color: var(--mdc-blue) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-align: center !important;
    display: block !important;
    margin-bottom: 15px;
}

/* Ajuste do Botão na Grade Relacionados */
.woocommerce ul.products li.product .jbm-btn-wa {
    display: flex;
    padding: 14px 10px;
    font-size: 15px;
    border-radius: 12px;
    width: 100%;
}

.woocommerce ul.products li.product .jbm-btn-wa svg {
    width: 22px;
    height: 22px;
}

/* 7. LIMPEZA */
.woocommerce div.product .product_meta,
.woocommerce span.onsale {
    display: none !important;
}

/* 8. MOBILE RESPONSIVO - BOTÃO "PÍLULA" CENTRALIZADO */
@media (max-width: 768px) {
    .woocommerce .woocommerce-breadcrumb {
        margin-top: 25px;
        text-align: center;
    }

    body.woocommerce div.product .product_title {
        font-size: 28px;
        text-align: center;
    }

    body.woocommerce div.product div.summary {
        padding-left: 0;
        text-align: center;
    }

    /* Botão Pílula Mobile Centralizado */
    .jbm-btn-wa {
        position: fixed !important;
        bottom: 25px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        min-width: 260px; /* Garante que o texto fique em uma linha */
        max-width: 85vw !important; /* Respiro nas bordas da tela */
        z-index: 99999;
        border-radius: 50px !important;
        font-size: 17px !important;
        padding: 14px 25px !important;
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3) !important;
    }

    /* Ocultar botões originais que possam sobrepor */
    .single_add_to_cart_button, 
    .woocommerce-variation-add-to-cart .button,
    .elementor-button-add-to-cart {
        display: none !important;
    }

    body.single-product {
        padding-bottom: 110px;
    }
}