﻿/* ===================================================================
   OFERTASECUPONS.COM.BR – VERSÃO HÍBRIDA 14.1 (LEGADO + NOVO)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Georgia&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap'); /* Tema Infantil */

/* ------------------------- 1. VARIÁVEIS GLOBAIS --------------------- */
:root {
    --cor-primaria: #d90429; /* Vermelho Principal */
    --cor-primaria-hover: #b00320; /* Vermelho Escuro */
    --cor-secundaria: #2d3142; /* Azul Escuro (Menus/Texto) */
    --cor-fundo: #f4f6f8; /* Cinza Suave (Background) */
    --cor-texto: #212529; /* Preto Suave */
    --cor-texto-claro: #6c757d; /* Cinza Médio */
    --cor-borda: #dee2e6;
    --radius: 12px;
    --shadow-suave: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transicao: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Previne scroll horizontal global */
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: var(--cor-primaria);
    transition: var(--transicao);
}

    a:hover {
        color: var(--cor-primaria-hover);
        text-decoration: none;
    }

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===================================================================
   2. HEADER & NAVEGAÇÃO (MODERNO)
   =================================================================== */
.header-moderno {
    z-index: 1020;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Header Legado (Mantido para compatibilidade se necessário) */
.header-principal {
    background-color: #fff;
    border-bottom: 1px solid var(--cor-borda);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-principal {
    max-height: 55px;
}

/* Barra de Busca Nova */
.search-bar-wrapper {
    background: #f8f9fa;
    border-radius: 50px;
    border: 1px solid #e9ecef;
    padding: 2px;
    transition: var(--transicao);
    display: flex;
    align-items: center;
}

    .search-bar-wrapper:focus-within {
        background: #fff;
        border-color: var(--cor-primaria);
        box-shadow: 0 0 0 4px rgba(217, 4, 41, 0.1);
    }

    .search-bar-wrapper input {
        border: none;
        background: transparent;
        border-radius: 50px 0 0 50px !important;
        height: 100%;
        box-shadow: none !important;
        flex-grow: 1;
        padding-left: 1rem;
    }

    .search-bar-wrapper button {
        border-radius: 0 50px 50px 0 !important;
        background: transparent;
        border: none;
        color: var(--cor-secundaria);
        padding-right: 1.5rem;
    }

/* Ícones de Ação (Login, Favoritos) */
.action-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transicao);
    color: var(--cor-secundaria);
    position: relative;
    background-color: transparent;
    border: 1px solid transparent;
}

    .action-icon:hover {
        background-color: #f1f1f1;
        color: var(--cor-primaria) !important;
        border-color: #eee;
    }

/* Badge de Notificação */
.badge-notification {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.65rem;
    background-color: var(--cor-primaria);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    font-weight: 700;
}

/* Navegação Inferior */
.nav-link.hover-light {
    transition: var(--transicao);
}

    .nav-link.hover-light:hover {
        background-color: #f8f9fa;
        color: var(--cor-primaria) !important;
    }

/* Mobile Offcanvas */
.offcanvas-body .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

.w-25px {
    width: 25px;
    text-align: center;
    display: inline-block;
}

/* Menu Principal (Legado) */
.menu-principal {
    background-color: var(--cor-secundaria);
}

    .menu-principal .nav-link {
        color: rgba(255,255,255,0.9) !important;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
        border-bottom: 3px solid transparent;
        transition: var(--transicao);
    }

        .menu-principal .nav-link:hover,
        .menu-principal .nav-item.active .nav-link {
            color: #fff !important;
            background-color: rgba(255, 255, 255, 0.1);
            border-bottom-color: var(--cor-primaria);
        }

/* ===================================================================
   3. HERO SECTION (AJUSTADA - MENOR DESTAQUE)
   =================================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, #a0031e 100%);
    /* Altura reduzida consideravelmente para não ofuscar os produtos */
    min-height: 220px;
    display: flex;
    align-items: center;
    border-radius: 0 0 20px 20px; /* Curva mais sutil */
    position: relative;
    overflow: hidden;
    color: white;
    width: 100%;
    max-width: 100vw;
    margin-bottom: 2rem !important; /* Margem inferior reduzida */
}

@media (min-width: 992px) {
    .hero-section {
        border-radius: 0 0 30px 30px;
        /* Em desktop, altura contida */
        min-height: 280px;
    }
}

/* Garante fundo transparente para imagens dentro do Hero */
.hero-section img {
    background-color: transparent !important;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-banner { /* Legado */
    position: relative;
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    border-radius: 12px; /* Raio menor */
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Reduzido ainda mais */
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(217, 4, 41, 0.15); /* Sombra mais leve */
    margin-bottom: 2rem;
}

.floating-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
    /* Flutuação mais suave */
    100% {
        transform: translateY(0px);
    }
}


/* ===================================================================
   4. CARDS DE PRODUTOS
   =================================================================== */
.card {
    border-radius: var(--radius);
    transition: var(--transicao);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    background: #fff;
    height: 100%;
}

.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-up:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover) !important;
    }

/* Badge de Desconto no Card */
.discount-badge, .oferta-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--cor-primaria);
    color: white;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Logo da Loja Flutuante no Card */
.store-badge-float, .oferta-store-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

    .store-badge-float img, .oferta-store-badge img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

/* Estilos Legados de Card (oferta-card) */
.oferta-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.08);
    transition: all .25s ease;
    position: relative;
    height: 100%;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

    .oferta-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
        border-color: var(--cor-borda);
    }

.oferta-img-wrapper, .img-container {
    width: 100%;
    height: 220px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
}

    .oferta-img-wrapper img, .img-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

.oferta-card:hover .oferta-img-wrapper img {
    transform: scale(1.05);
}

.oferta-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.oferta-title, .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cor-texto);
    height: 2.8em;
    overflow: hidden;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}

.oferta-price, .product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cor-primaria);
    display: block;
}

.oferta-old {
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
    text-decoration: line-through;
    margin-right: 6px;
}

.oferta-btn {
    width: 100%;
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: background .2s;
    text-transform: uppercase;
}

    .oferta-btn:hover {
        background: var(--cor-primaria-hover);
    }

/* ===================================================================
   5. LOJAS (DIRETÓRIO)
   =================================================================== */
.store-card-modern {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
}

    .store-card-modern:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover) !important;
    }

.store-logo-box {
    width: 90px;
    height: 90px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background: #fff;
}

.store-card-modern:hover .store-logo-box {
    transform: scale(1.05);
    border-color: var(--cor-primaria) !important;
}

.store-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.02);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.store-card-modern:hover .store-card-overlay {
    opacity: 1;
}

.partner-logos-section {
    background: #fff;
    padding: 20px 0;
    border-radius: 12px;
    box-shadow: var(--shadow-suave);
    width: 100%; /* FIX: Garante largura total */
    overflow: hidden; /* FIX: Previne quebra de layout */
}

.partner-logo {
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
    margin: 0 auto;
}

    .partner-logo:hover {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.1);
    }

/* =========================================================
   CONTAINER COM FADE LATERAL
   ========================================================= */
/* =========================================================
   CONTAINER
   ========================================================= */

.category-scroll-container {
    position: relative;
}

    /* Fade lateral */
    .category-scroll-container::before,
    .category-scroll-container::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 32px;
        z-index: 2;
        pointer-events: none;
    }

    .category-scroll-container::before {
        left: 0;
        background: linear-gradient(to right, #fff 40%, transparent);
    }

    .category-scroll-container::after {
        right: 0;
        background: linear-gradient(to left, #fff 40%, transparent);
    }

/* =========================================================
   SETAS (DISCRETAS)
   ========================================================= */

.cat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

    .cat-arrow.left {
        left: 4px;
    }

    .cat-arrow.right {
        right: 4px;
    }

/* Aparece ao passar mouse no container */
.category-scroll-container:hover .cat-arrow {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

/* Hover da própria seta */
.cat-arrow:hover {
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

@media (max-width: 768px) {
    .cat-arrow {
        display: none;
    }
}

/* =========================================================
   SCROLL HORIZONTAL
   ========================================================= */

.category-scroll-wrapper {
    display: flex;
    gap: 12px;
    padding: 8px 6px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}

    .category-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .category-scroll-wrapper.dragging {
        cursor: grabbing;
    }

/* =========================================================
   CHIPS PREMIUM
   ========================================================= */

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eee;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cor-texto);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    transition: all .25s ease;
    flex-shrink: 0;
}

    .category-chip:hover {
        background: var(--cor-primaria);
        color: #fff;
        border-color: var(--cor-primaria);
        transform: translateY(-2px);
    }

/* Ícone */
.chip-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: var(--cor-primaria);
    transition: all .25s ease;
}

.category-chip:hover .chip-icon {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.chip-text {
    white-space: nowrap;
}


/* ===================================================================
   7. FOOTER PREMIUM
   =================================================================== */
.footer-premium {
    margin-top: auto;
}

.footer-newsletter {
    background: linear-gradient(45deg, var(--cor-primaria) 0%, #b00320 100%);
    color: white;
}

.footer-main {
    background-color: #1a1a1a;
    color: #b0b0b0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bg-darker {
    background-color: #151515;
}

.filter-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: 0.3s;
}

    .filter-white:hover {
        opacity: 1;
    }

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
    display: inline-block;
}

    .footer-links a:hover {
        color: white;
        transform: translateX(5px);
    }

/* Footer Moderno (Legado/Alternativo) */
.footer-moderno {
    background: #111;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    border-top: 5px solid #d90429;
}

.footer-logo {
    max-height: 50px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

    .footer-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 3px;
        background-color: #d90429;
    }

.footer-bottom {
    background: #080808;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #777;
}

/* Botões Sociais */
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255,255,255,0.1);
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

    .social-btn:hover {
        transform: translateY(-3px);
        color: white;
        background: var(--cor-primaria);
    }

.bg-facebook:hover {
    background-color: #1877F2;
}

.bg-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.bg-whatsapp:hover {
    background-color: #25D366;
}

.bg-telegram:hover {
    background-color: #0088cc;
}

.opacity-hover:hover {
    opacity: 0.8;
}

.grayscale-hover {
    filter: grayscale(100%);
    transition: 0.3s;
}

    .grayscale-hover:hover {
        filter: grayscale(0%);
        opacity: 1 !important;
    }

/* ===================================================================
   8. MINHA CONTA & DASHBOARD
   =================================================================== */
.avatar-profile {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card {
    transition: transform 0.3s ease;
    border-radius: var(--radius);
    overflow: hidden;
}

    .stat-card:hover {
        transform: translateY(-5px);
    }

.icon-bg {
    position: absolute;
    right: -10px;
    bottom: -10px;
    transform: rotate(-15deg);
    opacity: 0.1;
    font-size: 4rem;
}

/* Rating CSS Puro */
.rating-css {
    display: inline-flex;
    flex-direction: row-reverse;
}

    .rating-css input {
        display: none;
    }

    .rating-css label {
        font-size: 1.8rem;
        color: #ddd;
        cursor: pointer;
        transition: color 0.2s;
        padding: 0 2px;
    }

        .rating-css label:before {
            content: '\2605';
        }

        .rating-css input:checked ~ label,
        .rating-css label:hover,
        .rating-css label:hover ~ label {
            color: #ffc107;
        }

/* ===================================================================
   9. BLOG (MAGAZINE)
   =================================================================== */
.hover-zoom-img:hover img {
    transform: scale(1.05);
}

.hover-zoom-img:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

.transition-transform {
    transition: transform 0.5s ease;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover) !important;
    }

.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content h2 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #222;
}

/* ===================================================================
   9. BLOG & DETALHES
   =================================================================== */
.hover-zoom-img:hover img {
    transform: scale(1.05);
}

.hover-zoom-img:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

.transition-transform {
    transition: transform 0.5s ease;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover) !important;
    }

.price-box {
    background-color: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-suave);
    position: relative;
    border: 1px solid #f0f0f0;
}

.zoom-hover, .zoom-effect {
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

    .zoom-hover:hover, .zoom-effect:hover {
        transform: scale(1.08);
    }

/* Cupom Ticket */
.coupon-ticket-visual {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    position: relative;
    overflow: hidden;
    padding: 15px;
    border-radius: 8px;
}

    .coupon-ticket-visual::before, .coupon-ticket-visual::after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background-color: #fff;
        border-radius: 50%;
        border: 2px dashed #dee2e6;
        z-index: 1;
    }

    .coupon-ticket-visual::before {
        left: -12px;
    }

    .coupon-ticket-visual::after {
        right: -12px;
    }

.cupom-area { /* Legado */
    background-color: #fff3cd;
    border: 1px dashed #ffc107;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.border-dashed {
    border-style: dashed !important;
}

.pulse-button {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(217, 4, 41, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(217, 4, 41, 0);
    }
}

.social-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transicao);
}

    .social-share-btn:hover {
        transform: translateY(-3px);
        opacity: 0.9;
        color: #fff;
    }

.description-content {
    line-height: 1.6;
    color: var(--cor-texto-claro);
}

    .description-content img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: var(--radius);
        margin: 1rem 0;
    }

/* ===================================================================
   11. WIDGETS FLUTUANTES (CHATBOT & COMPARADOR)
   =================================================================== */

/* Chatbot */
#ia-chatbot-container {
    --chat-primary: var(--cor-primaria);
    --chat-bg: #fff;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

#ia-chat-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--chat-primary);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.4);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #ia-chat-trigger:hover {
        transform: scale(1.1);
    }

/* Comparador */
#comparador-float-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9998;
    display: flex;
    align-items: center;
}

.btn-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    color: var(--cor-primaria);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-float:hover {
        background: var(--cor-primaria);
        color: white;
        transform: translateY(-5px);
    }

.float-tooltip {
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

#comparador-float-container:hover .float-tooltip {
    opacity: 1;
}

/* Comparador Tabela */
.comparacao-wrapper {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.table-comparacao th, .table-comparacao td {
    padding: 1rem 0.5rem;
    vertical-align: middle;
}

.col-spec {
    width: 220px;
    background-color: #f8f9fa !important;
}

.col-produto:hover {
    background-color: #fffcfc;
}

/* ===================================================================
   12. ANÚNCIOS (LAYOUT STABILITY)
   =================================================================== */

.ad-isolation-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    background-color: transparent;
    min-height: 1px;
}

    .ad-isolation-wrapper:empty {
        display: none !important;
    }

    .ad-isolation-wrapper img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

.ad-slot-container {
    background: #f8f9fa;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 4px;
}

/* Novo Placeholder */
.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6 !important;
    border-radius: 8px;
    padding: 1rem;
    color: #6c757d;
}

.ad-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 380px;
    border-radius: 14px;
    background: linear-gradient(45deg, var(--cor-secundaria), #4a4e69);
    color: white;
    padding: 2rem;
    transition: all 0.3s ease;
}

/* ===================================================================
   13. UTILITÁRIOS GERAIS & HELPERS
   =================================================================== */
.fw-800 {
    font-weight: 800;
}

.ls-1 {
    letter-spacing: 1px;
}

.x-small {
    font-size: 0.75rem;
    line-height: 1.4;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.object-fit-contain {
    object-fit: contain;
}

.object-fit-cover {
    object-fit: cover;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--cor-primaria), #9d0202);
}

.bg-gradient-primary-soft {
    background: linear-gradient(180deg, rgba(217, 4, 41, 0.05) 0%, rgba(255,255,255,0) 100%);
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #999;
    }

/* Swiper Fixes */
.swiper-pagination-bullet-active {
    background-color: var(--cor-primaria) !important;
}

.swiper-button-next, .swiper-button-prev {
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: var(--cor-secundaria);
}

    .swiper-button-next::after, .swiper-button-prev::after {
        font-size: 1.2rem;
        font-weight: 700;
    }

/* Swiper (Setas) */
.swiper-container {
    width: 100%;
    padding: 10px 5px;
    overflow: hidden;
}

.product-swiper {
    padding-bottom: 40px;
}

.swiper-button-next, .swiper-button-prev {
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: var(--cor-secundaria);
}

    .swiper-button-next::after, .swiper-button-prev::after {
        font-size: 1.2rem;
        font-weight: 700;
    }

.swiper-pagination-bullet-active {
    background-color: var(--cor-primaria) !important;
}
/* Grid Gutter Fix */
.row {
    margin-right: -12px;
    margin-left: -12px;
}

[class*="col-"] {
    padding-right: 12px;
    padding-left: 12px;
}

/* Responsive Helpers */
.border-start-md {
    border-left: 1px solid var(--cor-borda);
}

@media (max-width: 768px) {
    .border-start-md {
        border-left: none;
        border-top: 1px solid var(--cor-borda);
    }

    .hero-section {
        border-radius: 0;
        min-height: auto;
        padding-bottom: 2rem;
    }

    .col-spec {
        width: 120px;
    }

    .coupon-card-v2 {
        flex-direction: column;
        text-align: center;
    }

    .coupon-store-logo {
        width: 100%;
        border-right: none;
        border-bottom: 2px dashed var(--cor-borda);
        height: 80px;
    }

    .coupon-action {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--cor-borda);
    }
}

/* --- AJUSTES ESPECÍFICOS PORTAL CUPONS --- */
.cupom-card-meliuz {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    height: 100%;
}

    .cupom-card-meliuz:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        border-color: #5e17eb;
        transform: translateY(-3px);
    }

    .cupom-card-meliuz::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #5e17eb;
        opacity: 0;
        transition: 0.2s;
    }

    .cupom-card-meliuz:hover::before {
        opacity: 1;
    }

.cp-logo {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 50%;
    border: 1px solid #f0f0f0;
    padding: 5px;
    background: #fff;
}

    .cp-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.cp-content {
    flex-grow: 1;
    padding-right: 10px;
    overflow: hidden;
}

.cp-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
    line-height: 1.3;
}

.cp-desc {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0;
}

.btn-cp {
    background: #fff;
    color: #5e17eb;
    border: 1px solid #5e17eb;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.cupom-card-meliuz:hover .btn-cp {
    background: #5e17eb;
    color: #fff;
}

/* Card Cupom Vertical (V2) */
.cupom-card-vertical {
    background: #fff;
    border: 1px dashed var(--cor-borda);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: var(--transicao);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

    .cupom-card-vertical:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
        border-color: var(--cor-primaria);
    }

.cupom-header {
    background: #fdfdfd;
    padding: 15px;
    border-bottom: 1px dashed var(--cor-borda);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

    .cupom-header img {
        max-height: 60px;
        max-width: 100px;
        object-fit: contain;
        mix-blend-mode: multiply;
    }

.cupom-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cupom-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 5px;
}

.cupom-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.cupom-btn {
    width: 100%;
    background: transparent;
    color: var(--cor-primaria);
    border: 2px dashed var(--cor-primaria);
    padding: 8px;
    font-weight: 700;
    border-radius: 6px;
    transition: 0.2s;
}

    .cupom-btn:hover {
        background: var(--cor-primaria);
        color: #fff;
    }

/* LGPD Banner */
.lgpd-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    background: #212529;
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    z-index: 9999;
    border-left: 5px solid var(--cor-primaria);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .lgpd-banner {
        bottom: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        border-left: none;
        border-top: 4px solid var(--cor-primaria);
    }
}


