/*
Theme Name:   WP Coupon Mate Child
Theme URI:    https://cupomdescontohoje.com
Description:  Tema Filho personalizado para o Cupom Desconto Hoje.
Author:       Eliel
Author URI:   https://cupomdescontohoje.com
Template:     wp-coupon-mate-main
Version:      1.0.0
Text Domain:  wp-coupon-mate-child
*/




.coupon-listing-item .c-type .c-code {
  background: #dedede !important; 
  color: green !important;
/*padding: 4px 10px 4px;
  line-height: 1;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  display: inline-block;
  border-radius: 2px; */
}


.more .less {
    background: #dedede !important; 
    color: green !important;
}










/* ============================================================
   1. LOGOS CIRCULARES (HOME, SIDEBAR E CARDS) - MANTIDO 150PX
   ============================================================ */
aside[id*="popular_stores"] .store-thumb,
.widget_popular_stores .store-thumb,
.popular-stores .store-thumb,
.store-sidebar .header-store-thumb {
    width: 100px !important; height: 100px !important;
    min-width: 100px !important; min-height: 100px !important;
    border-radius: 50% !important; border: 2px solid #eeeeee !important;
    background: #ffffff !important; margin: 0 auto 15px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    line-height: 0 !important; font-size: 0 !important; 
    padding: 1px !important; overflow: hidden !important; box-sizing: border-box !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
    transition: all 0.4s ease !important;
}

.store-thumb img, .header-store-thumb img {
    float: none !important; margin: 0 auto !important;
    max-width: 90% !important; max-height: 90% !important;
    object-fit: contain !important; display: block !important;
}

.widget_popular_stores .store-thumb:hover {
    border-color: #0cbf42 !important;
    transform: scale(1.10) !important;
}











/* ============================================================
   2. CARDS E TÍTULOS (ESTABILIDADE TOTAL)
   ============================================================ */
.store-listing-item .store-thumb.text-thumb, 
.store-listing-item .store-thumb-link .store-thumb {
    border-radius: 50% !important; width: 110px !important; height: 110px !important;
    background: #ffffff !important; border: 1px solid #cccccc !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    margin-right: 25px !important; padding: 3px !important;
    box-shadow: 0 4px 10px rgba(20, 186, 136, 0.1) !important;

}

.store-listing-item .store-thumb.text-thumb { font-size: 26px !important; font-weight: 900 !important; color: #0cbf42 !important; letter-spacing: -1px !important; }

.coupon-listing-item .coupon-title a, .store-listing-item .coupon-title a {
    font-weight: 800 !important; color: #222 !important; font-size: 19px !important; line-height: 1.3 !important; 
}















/* ============================================================
   3. BOTÃO "THE PEEL" (GATILHO DA CURIOSIDADE - REVELA PARCIAL)
   ============================================================ */

.coupon-button-type .coupon-code {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    min-height: 48px !important; width: 185px !important;
    border-radius: 10px !important;
    background-color: #f9f9f9 !important; /* Cor cinza clara onde o código fica escondido */
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid #cccccc !important; /* Borda tracejada estilo cupom */
    padding: 0 !important;
    transition: all 0.3s ease !important;
}

/* O CÓDIGO (Fica por baixo, alinhado à esquerda para ser revelado aos poucos) */
.coupon-button-type .coupon-code .code-text {
    color: #0cbf42 !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    z-index: 1 !important;
    position: absolute !important;
    left: 20px !important; /* Fixado na esquerda para aparecer as primeiras letras */
}

/* A ETIQUETA (A camada que descola - VERDE) */
.coupon-button-type .get-code {
    position: absolute !important;
    top: -2px !important; left: -2px !important; /* Cobre as bordas dashed */
    width: calc(100% + 4px) !important; height: calc(100% + 4px) !important;
    background: #0cbf42 !important;
    color: #ffffff !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-weight: 700 !important; font-size: 14px !important;
    text-transform: uppercase !important;
    z-index: 5 !important;
    border-radius: 15px !important;
    
    /* Física do Peel: Desliza apenas 40% e cria a dobra */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transform-origin: left center;
}

/* A ORELHINHA (Sombra da dobra no final da etiqueta) */
.coupon-button-type .get-code::after {
    content: "" !important;
    position: absolute !important;
    right: 0; top: 0; width: 40px; height: 100%;
    /* Gradiente que simula a luz batendo na dobra do papel */
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), rgba(255,255,255,0.4)) !important;
    opacity: 0;
    transition: opacity 0.3s;
}

/* MOUSE OVER: Revela apenas o início do código */
.coupon-button-type .coupon-code:hover .get-code {
    transform: translateX(25%) !important; /* Revela cerca de 3 a 4 caracteres apenas */
    box-shadow: -10px 0 20px rgba(0,0,0,0.15) !important;
}

.coupon-button-type .coupon-code:hover .get-code::after {
    opacity: 1; /* Ativa a sombra da orelhinha no hover */
}








/* ============================================================
   4. CÉLULA DO CARD (EFEITO SUBIR)
   ============================================================ */
.coupon-listing-item, .store-listing-item {
    border: 1px solid #f0f0f0 !important; border-radius: 15px !important;
    padding: 25px !important; margin-bottom: 25px !important;
    background: #fff !important; transition: all 0.3s ease !important;
}
.coupon-listing-item:hover, .store-listing-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.07) !important;
}














/* ============================================================
   5. GRADE DE CATEGORIAS (CIRURGIA BASEADA NO SEU PRINT)
   ============================================================ */

/* Arredondando o item inteiro (LI) */
.widget_wpc_categories_grid_view .cate-items,
.widget_wpc_categories_grid_view .cate-items a {
    border-radius: 20px !important; /* Bordas bem redondas como você quer */
    overflow: hidden !important; /* Isso corta a imagem e o fundo preto nas quinas */
    position: relative !important;
    border: none !important;
}

/* Arredondando o span que segura a imagem */
.widget_wpc_categories_grid_view .cate-items .thumb-img {
    border-radius: 20px !important;
    overflow: hidden !important;
    display: block !important;
}

/* A imagem em si */
.widget_wpc_categories_grid_view .cate-items img {
    border-radius: 20px !important;
    transition: transform 0.5s ease !important;
    display: block !important;
    width: 100% !important;
}

/* Arredondando o fundo preto/transparente do título (A legenda) */
.widget_wpc_categories_grid_view .cate-items .cat-title {
    border-radius: 0 0 20px 20px !important; /* Arredonda só embaixo para casar com o box */
    font-weight: 700 !important;
    background: rgba(0,0,0,0.5) !important; /* Deixa o texto mais legível */
}

/* Efeito de zoom na categoria */
.widget_wpc_categories_grid_view .cate-items:hover img {
    transform: scale(1.1) !important;
}

.widget_wpc_categories_grid_view .cate-items:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    transform: translateY(-3px) !important;
}














/* ============================================================
   6. PÁGINA DE LOJAS COM LOGO (/LOJAS/) - ELITE V2
   ============================================================ */

/* 6.1 Navegação A-Z no Topo */
.item-alphabet-pill {
    background: #fff !important;
    border: 1px solid #eee !important;
    color: #168d42 !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
}
.item-alphabet-pill:hover {
    background: #168d42 !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(22, 141, 66, 0.2) !important;
}

/* 6.2 A Barra Verde Total */
.full-green-bar {
    background: #168d42 !important; /* Seu verde escuro atual */
    padding: 18px 25px !important;
    border-radius: 15px !important;
    width: 100% !important;
    display: block !important;
    box-shadow: 0 4px 12px rgba(22, 141, 66, 0.2) !important;
    margin-bottom: 10px !important;
}
.section-heading-white {
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 6.3 O Círculo Sagrado (Logos) */
.circular-premium {
    width: 140px !important; 
    height: 140px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid #f0f0f0 !important;
    overflow: hidden !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    margin: 0 auto 12px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    padding: 15px !important;
}
.circular-premium img {
    max-width: 85% !important;
    max-height: 85% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}
.circular-premium:hover {
    transform: scale(1.1) rotate(3deg) !important;
    border-color: #168d42 !important;
    box-shadow: 0 12px 30px rgba(22, 141, 66, 0.15) !important;
}

/* 6.4 Nome da Loja Embaixo da Logo */
.store-name-label {
    font-weight: 800 !important;
    color: #333 !important;
    font-size: 15px !important;
    margin-top: 5px;
    transition: color 0.3s ease;
}
.column:hover .store-name-label {
    color: #168d42 !important;
}













/* ============================================================
   7. VITRINE DE CATEGORIAS (/CATEGORIAS/) - DESIGN ELITE
   ============================================================ */

.modern-cat-grid {
    padding: 10px !important;
}

.modern-cat-card {
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    height: 200px !important; /* Altura fixa para manter o grid alinhado */
}

.cat-link-wrapper {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.cat-image-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

.cat-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease !important;
}

/* Efeito de Escurecimento para o texto aparecer */
.cat-overlay {
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7)) !important;
    z-index: 1;
}

/* Conteúdo do Card (Nome e Botão) */
.cat-content {
    position: absolute !important;
    bottom: 0; left: 0; width: 100%;
    padding: 20px !important;
    z-index: 2;
    text-align: center !important;
}

.cat-name {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    margin-bottom: 8px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cat-btn {
    display: inline-block !important;
    background: #0cbf42 !important;
    color: #fff !important;
    padding: 5px 15px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease !important;
}

/* HOVER: A Mágica acontece aqui */
.modern-cat-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(12, 191, 66, 0.2) !important;
}

.modern-cat-card:hover img {
    transform: scale(1.1) !important;
}

.modern-cat-card:hover .cat-btn {
    opacity: 1 !important;
    transform: translateY(0);
}

















/* ============================================================
   8. AJUSTE DE EMERGÊNCIA: BOTÃO PEGAR CUPOM (MOBILE MASTER V2)
   ============================================================ */
@media (max-width: 767px) {
    
    /* 1. Container Principal do Botão (O Cupom Completo) */
    .coupon-button-type {
        width: 100% !important; /* Ocupa toda a largura do card mobile */
        display: block !important;
        margin: 15px 0 0 0 !important; /* Espaço pro texto de cima */
        position: relative !important;
    }

    /* 2. O Botão (O Cupom Dashed) */
    .coupon-button-type .coupon-code {
        display: flex !important; /* Muda de inline-flex para flex */
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important; /* Ocupa toda a largura */
        max-width: 100% !important; /* Evita que o botão fique gigante no tablet */
        min-height: 44px !important; /* Altura ideal pro dedo clicar */
        border-radius: 12px !important;
        margin: 0 auto 20px auto !important; /* Centraliza o botão no card */
        padding: 0 !important;
    }

    /* 3. A ETIQUETA (A que descola - VERDE) */
    .coupon-button-type .get-code {
        position: absolute !important;
        width: calc(100% + 4px) !important;
        height: calc(100% + 4px) !important;
        left: -2px !important; top: -2px !important;
        border-radius: 15px !important;
        font-weight: 800 !important;
        font-size: 18px !important; /* Fonte menor pra não apertar */
        letter-spacing: 0.5px !important;
        padding: 0 10px !important; /* Respiro pro texto não encostar */
        z-index: 5 !important;
    }

    /* 4. O CÓDIGO (Fica por baixo - CINZA) */
    .coupon-button-type .coupon-code .code-text {
        font-size: 14px !important;
        font-weight: 800 !important;
        left: 15px !important;
        z-index: 1 !important;
    }

    /* 5. HOVER NO MOBILE (Suaviza o Peel) */
    .coupon-button-type .coupon-code:hover .get-code {
        transform: translateX(20%) !important; /* Revela menos no celular */
    }
}











/* ============================================================
   9. CORREÇÃO DE PROFUNDIDADE (Z-INDEX) - POPUPS/TOOLTIPS
   Garante que as mensagens de voto fiquem na frente de tudo
   ============================================================ */

/* 9.1 Alvo Nuclear: O Popup/Tooltip do Semantic UI */
/* Esses elementos costumam ter classes ui.popup ou ui.tooltip */
.ui.popup,
.ui.tooltip,
[data-tooltip]::before,
[data-tooltip]::after {
    z-index: 999999 !important; /* Valor absurdamente alto para garantir a frente */
}

/* 9.2 Garante que a área de votação também tenha prioridade */
.coupon-listing-item .user-ratting.ui.buttons {
    z-index: 10 !important; /* Maior que o z-index: 5 do botão peel */
    position: relative !important;
}

/* Impede que o container pai corte o popup se ele crescer */
.coupon-listing-item, .coupon-detail {
    overflow: visible !important;
}





/* ============================================================
   10. PERSONALIZADO DA LILLY
   ============================================================ */

.lilly_txt_center {
    text-align: center !important;
    color: #c90000 !important;
}








/* ============================================================
   10. BOTAO DO WHATSAPP
   ============================================================ */

/* Botão WhatsApp no Modal de Compartilhamento */
.btn-whatsapp-modal i.whatsapp.icon {
    color: white !important;
}

.btn-whatsapp-modal:hover {
    background-color: #128C7E !important; /* Verde um pouco mais escuro no hover */
    transform: scale(1.1);
}