/**
 * GW Elementos Maxíme Oro - Estilos
 * Desenvolvido por Gerencie Web
 * https://gerencieweb.com.br/
 */

/* =============================================
   RESET & BASE
   ============================================= */
.gw-emo-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.gw-emo-wrapper * {
    box-sizing: border-box;
}

/* =============================================
   CARD PRINCIPAL
   ============================================= */
.gw-emo-card {
    position: relative;
    max-width: 320px;
    width: 100%;
    border-radius: 12px;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gw-emo-card:hover {
    transform: translateY(-8px);
}

.gw-emo-card-inner {
    position: relative;
    z-index: 2;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* =============================================
   BORDA ANIMADA - GLOW LAYER
   ============================================= */
.gw-emo-border-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    /* Espessura controlada via Elementor */
}

.gw-emo-card:hover .gw-emo-border-glow {
    opacity: 1;
}

/* --- Brilho Dourado --- */
.gw-border-gold-glow .gw-emo-border-glow {
    background: linear-gradient(135deg, #A29666, #B8A87A, #C4BA90, #A29666, #8A7E56, #B8A87A, #C4BA90);
    background-size: 300% 300%;
    animation: gw-gold-glow 3s ease infinite;
    box-shadow: 0 0 15px rgba(184, 168, 122, 0.4), 0 0 30px rgba(184, 168, 122, 0.2);
}

.gw-border-gold-glow .gw-emo-border-glow {
    opacity: 0.7;
}

.gw-border-gold-glow:hover .gw-emo-border-glow {
    opacity: 1;
    box-shadow: 0 0 20px rgba(184, 168, 122, 0.6), 0 0 40px rgba(184, 168, 122, 0.3), 0 0 60px rgba(196, 186, 144, 0.15);
}

@keyframes gw-gold-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Rotação Dourada --- */
.gw-border-gold-rotate .gw-emo-border-glow {
    background: conic-gradient(from 0deg, #A29666, #B8A87A, #C4BA90, #F5F0E0, #C4BA90, #B8A87A, #A29666);
    animation: gw-gold-rotate 3s linear infinite;
    opacity: 0.6;
}

.gw-border-gold-rotate:hover .gw-emo-border-glow {
    opacity: 1;
    box-shadow: 0 0 20px rgba(184, 168, 122, 0.5), 0 0 40px rgba(196, 186, 144, 0.2);
}

@keyframes gw-gold-rotate {
    0% { background: conic-gradient(from 0deg, #A29666, #B8A87A, #C4BA90, #F5F0E0, #C4BA90, #B8A87A, #A29666); }
    25% { background: conic-gradient(from 90deg, #A29666, #B8A87A, #C4BA90, #F5F0E0, #C4BA90, #B8A87A, #A29666); }
    50% { background: conic-gradient(from 180deg, #A29666, #B8A87A, #C4BA90, #F5F0E0, #C4BA90, #B8A87A, #A29666); }
    75% { background: conic-gradient(from 270deg, #A29666, #B8A87A, #C4BA90, #F5F0E0, #C4BA90, #B8A87A, #A29666); }
    100% { background: conic-gradient(from 360deg, #A29666, #B8A87A, #C4BA90, #F5F0E0, #C4BA90, #B8A87A, #A29666); }
}

/* --- Brilho Prateado --- */
.gw-border-silver-glow .gw-emo-border-glow {
    background: linear-gradient(135deg, #808080, #c0c0c0, #e8e8e8, #c0c0c0, #a0a0a0, #d0d0d0, #ffffff);
    background-size: 300% 300%;
    animation: gw-silver-glow 3s ease infinite;
    opacity: 0.6;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3), 0 0 30px rgba(192, 192, 192, 0.15);
}

.gw-border-silver-glow:hover .gw-emo-border-glow {
    opacity: 1;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.5), 0 0 40px rgba(192, 192, 192, 0.25);
}

@keyframes gw-silver-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Arco-íris --- */
.gw-border-rainbow .gw-emo-border-glow {
    background: linear-gradient(135deg, #ff0000, #ff7700, #C4BA90, #00ff00, #0077ff, #8800ff, #ff0000);
    background-size: 400% 400%;
    animation: gw-rainbow 4s ease infinite;
    opacity: 0.5;
}

.gw-border-rainbow:hover .gw-emo-border-glow {
    opacity: 1;
    box-shadow: 0 0 20px rgba(196, 186, 144, 0.3), 0 0 40px rgba(0, 119, 255, 0.2);
}

@keyframes gw-rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Neon Dourado --- */
.gw-border-neon-gold .gw-emo-border-glow {
    background: linear-gradient(135deg, #C4BA90, #D6CCA6, #C4BA90);
    background-size: 200% 200%;
    animation: gw-neon-gold 2s ease infinite;
    opacity: 0.5;
    box-shadow: 0 0 10px #C4BA90, 0 0 20px #C4BA90, 0 0 40px #B8A87A;
}

.gw-border-neon-gold:hover .gw-emo-border-glow {
    opacity: 1;
    box-shadow: 0 0 15px #C4BA90, 0 0 30px #C4BA90, 0 0 60px #B8A87A, 0 0 80px rgba(196, 186, 144, 0.3);
}

@keyframes gw-neon-gold {
    0% { background-position: 0% 50%; opacity: 0.5; }
    50% { background-position: 100% 50%; opacity: 0.8; }
    100% { background-position: 0% 50%; opacity: 0.5; }
}

/* --- Pulso Dourado --- */
.gw-border-pulse-gold .gw-emo-border-glow {
    background: linear-gradient(135deg, #A29666, #B8A87A, #C4BA90, #B8A87A, #A29666);
    animation: gw-pulse-gold 2s ease-in-out infinite;
    opacity: 0.4;
}

.gw-border-pulse-gold:hover .gw-emo-border-glow {
    animation: gw-pulse-gold-hover 1.5s ease-in-out infinite;
}

@keyframes gw-pulse-gold {
    0% { opacity: 0.3; box-shadow: 0 0 5px rgba(184, 168, 122, 0.2); }
    50% { opacity: 0.7; box-shadow: 0 0 20px rgba(184, 168, 122, 0.5); }
    100% { opacity: 0.3; box-shadow: 0 0 5px rgba(184, 168, 122, 0.2); }
}

@keyframes gw-pulse-gold-hover {
    0% { opacity: 0.6; box-shadow: 0 0 10px rgba(184, 168, 122, 0.4); }
    50% { opacity: 1; box-shadow: 0 0 30px rgba(184, 168, 122, 0.7), 0 0 60px rgba(196, 186, 144, 0.3); }
    100% { opacity: 0.6; box-shadow: 0 0 10px rgba(184, 168, 122, 0.4); }
}

/* --- Sem efeito --- */
.gw-border-none .gw-emo-border-glow {
    display: none;
}

/* --- Velocidades --- */
.gw-speed-slow .gw-emo-border-glow {
    animation-duration: 6s !important;
}

.gw-speed-normal .gw-emo-border-glow {
    animation-duration: 3s !important;
}

.gw-speed-fast .gw-emo-border-glow {
    animation-duration: 1.5s !important;
}

/* =============================================
   HEADER / TÍTULO DO TOPO
   ============================================= */
.gw-emo-header {
    padding: 10px 15px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.gw-emo-header-title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

/* Gradientes do Header */
.gw-header-gradient-gold {
    background: linear-gradient(135deg, #6E6444 0%, #8A7E56 25%, #A29666 50%, #8A7E56 75%, #6E6444 100%);
}

.gw-header-gradient-dark-gold {
    background: linear-gradient(135deg, #2a1f0a 0%, #4a3520 30%, #6b4c2a 50%, #4a3520 70%, #2a1f0a 100%);
}

.gw-header-gradient-silver {
    background: linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 25%, #7a7a7a 50%, #5a5a5a 75%, #3a3a3a 100%);
}

.gw-header-gradient-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.gw-header-gradient-none {
    background: transparent;
}

/* =============================================
   IMAGEM DO PRODUTO
   ============================================= */
.gw-emo-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.3) 0%, rgba(50, 50, 50, 0.1) 50%, rgba(30, 30, 30, 0.3) 100%);
}

.gw-emo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
    will-change: transform;
}

.gw-emo-card:hover .gw-emo-image {
    transform: scale(1.08) translateY(-5px);
    filter: brightness(1.05);
}

/* =============================================
   BADGE / SELO
   ============================================= */
.gw-emo-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 5;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: gw-badge-pulse 2s ease-in-out infinite;
}

@keyframes gw-badge-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5); }
}

.gw-badge-gold {
    background: linear-gradient(135deg, #A29666, #B8A87A, #C4BA90);
    color: #1a1a1a;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.gw-badge-green {
    background: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047);
    color: #ffffff;
}

.gw-badge-red {
    background: linear-gradient(135deg, #b71c1c, #d32f2f, #f44336);
    color: #ffffff;
}

.gw-badge-blue {
    background: linear-gradient(135deg, #0d47a1, #1565c0, #1e88e5);
    color: #ffffff;
}

/* =============================================
   TÍTULO DO PRODUTO
   ============================================= */
.gw-emo-product-title-wrapper {
    padding: 15px 15px 5px;
    text-align: center;
    background-color: #f5f5f0;
}

.gw-emo-product-title {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
    line-height: 1.3;
}

.gw-title-style-uppercase {
    text-transform: uppercase;
}

.gw-title-style-small-caps {
    font-variant: small-caps;
    text-transform: capitalize;
    font-size: 18px;
}

.gw-title-style-normal {
    text-transform: none;
}

/* =============================================
   SEÇÃO DE PREÇO
   ============================================= */
.gw-emo-pricing-section {
    padding: 12px 15px 15px;
    text-align: center;
    background-color: #f5f5f0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.gw-emo-price {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.2;
}

.gw-emo-currency {
    font-size: 16px;
    font-weight: 600;
    vertical-align: super;
    margin-right: 2px;
    opacity: 0.8;
}

.gw-emo-price-value {
    font-size: 28px;
    font-weight: 800;
}

.gw-emo-installment {
    font-size: 13px;
    color: #555555;
    margin-bottom: 4px;
    line-height: 1.4;
}

.gw-emo-installment strong,
.gw-emo-installment b {
    font-weight: 700;
}

.gw-emo-observation {
    font-size: 13px;
    color: #A29666;
    font-weight: 600;
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px dashed rgba(162, 150, 102, 0.3);
}

/* =============================================
   BOTÃO DE COMPRAR
   ============================================= */
.gw-emo-button-wrapper {
    padding: 12px 20px 18px;
    text-align: center;
    background-color: #f5f5f0;
}

.gw-emo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: none;
}

.gw-emo-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.gw-emo-button:hover::before {
    left: 100%;
}

.gw-btn-full {
    width: 100%;
}

/* Dourado Premium */
.gw-btn-gold {
    background: linear-gradient(135deg, #8A7E56, #A29666, #B8A87A);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(162, 150, 102, 0.3);
    border: 1px solid rgba(184, 168, 122, 0.3);
}

.gw-btn-gold:hover {
    background: linear-gradient(135deg, #B8A87A, #C4BA90, #B8A87A);
    color: #1a1a1a;
    box-shadow: 0 5px 20px rgba(184, 168, 122, 0.5);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Escuro Elegante */
.gw-btn-dark {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d, #3a3a3a);
    color: #B8A87A;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(184, 168, 122, 0.3);
}

.gw-btn-dark:hover {
    background: linear-gradient(135deg, #2d2d2d, #3a3a3a, #4a4a4a);
    color: #C4BA90;
    box-shadow: 0 5px 20px rgba(184, 168, 122, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Contorno Dourado */
.gw-btn-outlined {
    background: transparent;
    color: #A29666;
    border: 2px solid #A29666;
    box-shadow: none;
}

.gw-btn-outlined:hover {
    background: linear-gradient(135deg, #A29666, #B8A87A);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(162, 150, 102, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Totalmente Personalizado */
.gw-btn-custom {
    background: linear-gradient(135deg, #A29666, #B8A87A);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(184, 168, 122, 0.3);
}

.gw-btn-custom:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Verde Comprar */
.gw-btn-green {
    background: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.3);
    border: 1px solid rgba(67, 160, 71, 0.3);
}

.gw-btn-green:hover {
    background: linear-gradient(135deg, #2e7d32, #43a047, #66bb6a);
    box-shadow: 0 5px 20px rgba(46, 125, 50, 0.5);
    transform: translateY(-2px);
    text-decoration: none;
    color: #ffffff;
}

/* Ícone do botão */
.gw-emo-btn-icon {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
}

.gw-emo-btn-icon i {
    font-size: inherit;
}

/* =============================================
   EFEITOS EXTRAS NO HOVER DO CARD
   ============================================= */

/* Shimmer na imagem */
.gw-emo-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 186, 144, 0.08), transparent);
    z-index: 4;
    transition: left 0.8s ease;
    pointer-events: none;
}

.gw-emo-card:hover .gw-emo-image-wrapper::after {
    left: 150%;
}

/* Sombra elevada no hover */
.gw-emo-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.gw-emo-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(184, 168, 122, 0.15);
}

/* =============================================
   SEPARADOR DECORATIVO
   ============================================= */
.gw-emo-pricing-section::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #B8A87A, transparent);
    margin: 0 auto 10px;
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */
@media (max-width: 767px) {
    .gw-emo-card {
        max-width: 100%;
    }

    .gw-emo-header-title {
        font-size: 16px;
    }

    .gw-emo-price-value {
        font-size: 24px;
    }

    .gw-emo-image-wrapper {
        height: 220px;
    }
}

/* =============================================
   ANIMAÇÃO DE ENTRADA
   ============================================= */
.gw-emo-card {
    opacity: 0;
    transform: translateY(30px);
    animation: gw-card-entrance 0.6s ease forwards;
}

@keyframes gw-card-entrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay para múltiplos cards */
.elementor-widget-wrap .elementor-widget:nth-child(1) .gw-emo-card { animation-delay: 0s; }
.elementor-widget-wrap .elementor-widget:nth-child(2) .gw-emo-card { animation-delay: 0.1s; }
.elementor-widget-wrap .elementor-widget:nth-child(3) .gw-emo-card { animation-delay: 0.2s; }
.elementor-widget-wrap .elementor-widget:nth-child(4) .gw-emo-card { animation-delay: 0.3s; }
.elementor-widget-wrap .elementor-widget:nth-child(5) .gw-emo-card { animation-delay: 0.4s; }
.elementor-widget-wrap .elementor-widget:nth-child(6) .gw-emo-card { animation-delay: 0.5s; }

/* =============================================
   EDITOR DO ELEMENTOR - AJUSTES
   ============================================= */
.elementor-editor-active .gw-emo-card {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}
