/**
 * ====================================================================
 * WEPINK - MELHORIAS DE LAYOUT DESKTOP + MOBILE
 * ====================================================================
 * CSS customizado para melhorar a aparência
 * ====================================================================
 */

/* ===== CORREÇÃO GLOBAL DE IMAGENS (TODOS OS DISPOSITIVOS) ===== */
.elementor-widget-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}

.elementor-widget-image,
.elementor-widget-container,
.elementor-image {
    overflow: visible !important;
}

/* ===== CORREÇÃO DE BANNER/CAROUSEL (TODOS OS DISPOSITIVOS) ===== */
.elementor-carousel-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ===== APLICAR APENAS EM DESKTOP (> 1024px) ===== */
@media (min-width: 1024px) {

    /* ----- CONTAINER PRINCIPAL ----- */
    body {
        background-color: #f8f8f8;
    }

    .elementor-section {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }

    /* ----- BANNER/CAROUSEL ----- */
    .elementor-widget-media-carousel .elementor-carousel-image {
        height: 500px !important;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .elementor-carousel {
        margin-bottom: 40px;
    }

    /* ----- GRID DE PRODUTOS ----- */
    .elementor-widget-container {
        max-width: 100%;
    }

    /* Produtos em grid 4 colunas no desktop */
    .elementor-element[class*="elementor-element-"] {
        margin-bottom: 30px;
    }

    /* Container de produtos */
    .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
        padding: 15px;
    }

    /* ----- CARDS DE PRODUTOS ----- */
    .elementor-widget-image {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .elementor-widget-image:hover {
        transform: translateY(-5px);
    }

    .elementor-widget-image img {
        border-radius: 12px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .elementor-widget-image:hover img {
        box-shadow: 0 8px 30px rgba(255, 0, 128, 0.2);
    }

    /* ----- TÍTULO DOS PRODUTOS ----- */
    .elementor-widget-heading .elementor-heading-title {
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    /* ----- PREÇOS ----- */
    .elementor-widget-heading .elementor-heading-title[style*="color"] {
        font-size: 16px !important;
        margin: 5px 0 !important;
    }

    /* Preço de */
    .elementor-widget-heading .elementor-heading-title:has(s),
    .elementor-widget-heading .elementor-heading-title s {
        color: #999 !important;
        font-size: 14px !important;
        text-decoration: line-through !important;
    }

    /* Preço por */
    .elementor-widget-heading .elementor-heading-title[style*="#FF0080"],
    .elementor-widget-heading .elementor-heading-title[style*="rgb(255, 0, 128)"] {
        color: #FF0080 !important;
        font-size: 24px !important;
        font-weight: 700 !important;
        margin: 10px 0 !important;
    }

    /* ----- BOTÕES ----- */
    .elementor-button-wrapper {
        margin-top: 15px;
    }

    .elementor-button {
        background: linear-gradient(135deg, #FF0080 0%, #FF66B2 100%) !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 14px 32px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: white !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3) !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        max-width: 300px !important;
        display: inline-block !important;
        text-align: center !important;
    }

    .elementor-button:hover {
        background: linear-gradient(135deg, #E6006E 0%, #FF0080 100%) !important;
        box-shadow: 0 6px 25px rgba(255, 0, 128, 0.4) !important;
        transform: translateY(-2px) !important;
    }

    /* ----- LAYOUT DE COLUNAS ----- */
    /* Forçar 4 colunas em telas grandes */
    @media (min-width: 1200px) {
        .elementor-col-25 {
            width: 25% !important;
            max-width: 25% !important;
        }

        .elementor-column {
            width: 25% !important;
        }

        /* Se tiver 3 colunas, forçar 4 */
        .elementor-col-33 {
            width: 25% !important;
        }
    }

    /* 3 colunas em telas médias */
    @media (min-width: 1024px) and (max-width: 1199px) {
        .elementor-col-25,
        .elementor-col-33 {
            width: 33.333% !important;
        }
    }

    /* ----- CONTADOR/COUNTDOWN ----- */
    .elementor-countdown-wrapper {
        background: linear-gradient(135deg, #FF0080 0%, #FF66B2 100%);
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(255, 0, 128, 0.3);
        margin: 30px 0;
    }

    .elementor-countdown-item {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 20px;
        margin: 0 10px;
    }

    .elementor-countdown-digits {
        font-size: 48px !important;
        font-weight: 700 !important;
        color: white !important;
    }

    .elementor-countdown-label {
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }

    /* ----- ESPAÇAMENTO GERAL ----- */
    .elementor-section {
        padding: 40px 20px !important;
    }

    .elementor-section-wrap {
        max-width: 1400px;
        margin: 0 auto;
    }

    /* ----- CABEÇALHOS DE SEÇÃO ----- */
    .elementor-widget-heading h2,
    .elementor-widget-heading h3 {
        font-size: 32px !important;
        font-weight: 700 !important;
        color: #333 !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }

    /* ----- ANIMAÇÕES SUAVES ----- */
    * {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* ----- CARDS COM EFEITO GLASSMORPHISM ----- */
    .elementor-column .elementor-element-populated {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    .elementor-column .elementor-element-populated:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        transform: translateY(-5px);
    }

    /* ----- LOGO E HEADER ----- */
    .elementor-widget-image.elementor-widget-icon img {
        max-width: 150px;
        height: auto;
    }

    /* ----- RESPONSIVIDADE APRIMORADA ----- */
    @media (min-width: 1400px) {
        .elementor-section {
            padding: 60px 40px !important;
        }

        .elementor-widget-heading h2,
        .elementor-widget-heading h3 {
            font-size: 38px !important;
        }

        .elementor-button {
            font-size: 18px !important;
            padding: 16px 40px !important;
        }
    }
}

/* ===== MOBILE (< 1024px) ===== */
@media (max-width: 1023px) {
    /* As correções de imagem já estão aplicadas globalmente */
    /* Mobile mantém layout original com imagens completas */
}
