/* --- ÍCONE FLUTUANTE --- */
.mapea-cart-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    background: #4F0713; /* Merlot */
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(79, 7, 19, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none !important;
}

.mapea-cart-trigger:hover {
    transform: scale(1.1) rotate(-5deg);
    background: #AD0919; /* Rubi */
}

.cart-icon-box { position: relative; color: white; font-size: 24px; }

.cart-count {
    position: absolute;
    top: -8px; right: -8px;
    background: #FDC762; /* Gold */
    color: #4F0713;
    font-size: 12px; font-weight: 800;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
}

/* --- GAVETA (DRAWER) --- */
#mapea-cart-drawer {
    position: fixed;
    top: 0; right: -420px; /* Escondido */
    width: 100%; max-width: 420px;
    height: 100vh;
    background: white;
    z-index: 9999;
    box-shadow: -10px 0 50px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column;
}

#mapea-cart-drawer.active { right: 0; }

/* Overlay Escuro */
#mapea-cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(79, 7, 19, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
}
#mapea-cart-drawer.active ~ #mapea-cart-overlay, 
body.cart-open #mapea-cart-overlay { 
    opacity: 1; visibility: visible; 
}

/* Header da Gaveta */
.drawer-header {
    padding: 20px;
    background: #4F0713;
    color: white;
    display: flex; justify-content: space-between; align-items: center;
}
.drawer-header h3 { margin: 0; font-size: 18px; color: white; display: flex; gap: 10px; align-items: center; }
.close-cart { background: none; border: none; color: white; font-size: 30px; cursor: pointer; }

/* --- CONTEÚDO DO WOOCOMMERCE --- */
.widget_shopping_cart_content {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
    display: flex; flex-direction: column;
    position: relative;
}

/* 1. REMOVER BOTÃO "VER CARRINHO" e MENSAGENS PADRÃO */
.woocommerce-mini-cart__buttons a:not(.checkout), /* Remove botão view cart */
.woocommerce-mini-cart__empty-message,            /* Remove mensagem padrão */
.widget_shopping_cart_content p:empty {           /* Remove parágrafos vazios */
    display: none !important;
}

/* 2. AJUSTE DO BOTÃO FINALIZAR COMPRA */
.woocommerce-mini-cart__buttons { 
    display: grid; gap: 10px; margin-top: auto; 
}
.woocommerce-mini-cart__buttons .checkout {
    background: #25D366 !important; 
    color: white !important;
    text-align: center; padding: 15px; 
    border-radius: 50px; font-weight: 700;
    display: block; width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. ESTILO DO NOSSO "CARRINHO VAZIO" (Injetado via JS) */
.mapea-empty-state {
    text-align: center;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.mapea-empty-state i {
    font-size: 60px; color: #eee; margin-bottom: 20px;
}
.mapea-empty-state p {
    color: #666; font-size: 16px; margin-bottom: 30px;
}
.btn-go-shop {
    background: #4F0713;
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
}
.btn-go-shop:hover { background: #AD0919; transform: translateY(-3px); }

/* Toastify */
.toastify {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; font-size: 14px;
    border-radius: 50px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}