/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --hero-height: 75vh;
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* ===== RESET E BASE ===== */
* {
    box-sizing: border-box;
    transition: box-shadow 0.15s ease-in-out;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== UTILIDADES GLOBAIS ===== */
.transition-all { transition: var(--transition); }
.border-radius { border-radius: var(--border-radius); }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-slide {
    min-height: var(--hero-height);
    height: var(--hero-height);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-size: 400% 400%;
    background-position: center;
    animation: gradientShift 15s ease infinite;
    padding: 60px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    width: 100%;
}

/* Slides específicos */
.hero-slide-offers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
}

.hero-slide-about {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 25%, #fecfef 50%, #ffc3a0 75%, #ff9a9e 100%);
}

.hero-slide-about .hero-overlay {
    background: rgba(255, 255, 255, 0.1);
}

.hero-slide-suppliers {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 25%, #a8edea 50%, #fed6e3 75%, #a8edea 100%);
}

.hero-slide-stats {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 25%, #d299c2 50%, #fef9d7 75%, #d299c2 100%);
    padding: 40px 0 80px 0;
}

.hero-slide-stats .hero-content {
    padding: 20px 15px 60px 15px;
}

.hero-slide-stats .display-3 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 25px;
    word-wrap: break-word;
}

.hero-slide-stats .container {
    padding: 0 20px;
}

.hero-slide-stats .col-lg-10 {
    padding: 0 25px;
}

.hero-slide-stats .lead {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 30px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Efeitos visuais */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

/* ===== FORMULÁRIO DE BUSCA ===== */
.hero-search-form,
.search-bar {
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 20px;
}

.hero-search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-bar {
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
}

.search-form {
    max-width: 600px;
}

.search-form .input-group-lg .form-control,
.hero-search-form .form-control {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 2px solid var(--primary-color);
    font-size: 1.1rem;
    padding: 12px 16px;
}

.search-form .btn,
.hero-search-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    font-weight: 600;
    background: var(--primary-color);
    color: #fff;
    transition: var(--transition);
}

.search-form .btn:hover,
.hero-search-form .btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Form controls */
.search-bar .form-control:focus,
.search-bar .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-bar .form-control,
.search-bar .form-select {
    height: 38px;
}

/* Form check */
.form-check-input {
    margin-top: 0;
    transition: var(--transition);
}

.form-check-input:checked {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    transform: scale(1.1);
}

.form-check-input:focus {
    border-color: var(--danger-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

.form-check-label.text-danger {
    color: var(--danger-color) !important;
    font-weight: 600;
    font-size: 0.875rem;
}

.hero-search-form .form-check-label {
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--danger-color);
}

/* ===== CARDS E COMPONENTES ===== */
.stat-card,
.feature-item,
.merchant-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.stat-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-card:hover,
.feature-item:hover,
.merchant-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.3);
}

.feature-item:hover {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border-color: #ff6b6b;
}

.merchant-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card effects */
/* ✅ VERSÃO CORRIGIDA - Pseudo-elementos não bloqueiam cliques */
.stat-card::before,
.feature-item::before,
.merchant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
    pointer-events: none; /* ← ESTA LINHA RESOLVE TUDO! */
    z-index: 1;
}

.stat-card:hover::before,
.feature-item:hover::before,
.merchant-card:hover::before {
    left: 100%;
}

/* Garantir que links ficam acima */
.merchant-btn,
.merchant-card a {
    position: relative;
    z-index: 2;
}

/* ===== PRODUTOS ===== */
.product-card {
    transition: var(--transition);
    border: 1px solid #dee2e6;
    overflow: hidden;
    animation: fadeIn 0.5s ease forwards;
    border-radius: var(--border-radius);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-image {
    height: 200px;
    overflow: hidden;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description {
    font-size: 0.875rem;
    line-height: 1.4;
    height: 3.5rem;
    overflow: hidden;
}

.product-price h4 {
    font-weight: 700;
    font-size: 1.25rem;
}

/* ===== OFERTAS ===== */
.deals-products {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.deal-card {
    position: relative;
    border: 2px solid #e9ecef;
    transition: var(--transition);
    overflow: hidden;
}

.deal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.2);
    border-color: var(--danger-color);
}

.deal-card.hot-deal {
    border-color: #ff6b35;
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
    animation: glow 2s ease-in-out infinite alternate;
}

.product-card.deal-card .card-body {
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
}

/* Badges e ribbons */
.discount-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--danger-color);
    color: white;
    padding: 5px 35px;
    transform: rotate(45deg);
    z-index: 10;
    font-weight: bold;
    font-size: 0.875rem;
    box-shadow: var(--shadow);
}

.hot-deal-badge,
.offers-badge {
    position: absolute;
    top: 10px;
    background: linear-gradient(135deg, var(--danger-color) 0%, #c82333 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

.hot-deal-badge {
    left: 10px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 15px;
}

.offers-badge {
    right: 15px;
}

/* ===== BOTÕES ===== */
.btn {
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-success,
.deal-btn {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-success:hover,
.merchant-btn:hover,
.deal-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c82333 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff8f00 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #43a3f5 0%, #00d4ff 100%);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-3px) scale(1.05);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.125rem;
}

/* Botões especiais */
.merchant-btn {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: auto;
}
.hero-actions .btn {
    margin-bottom: 15px;
    min-width: 200px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    padding: 15px 30px;
    position: relative;
    overflow: hidden;
}

.hero-actions .btn::before,
.merchant-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-actions .btn:hover::before,
.merchant-btn:hover::before {
    left: 100%;
}

.hero-actions .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* ===== MERCHANTS SECTION ===== */
.merchants-discounts-section {
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 50%, var(--light-color) 100%);
    position: relative;
    overflow: hidden;
}

.merchants-discounts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 53, 69, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.merchants-discounts-section .container {
    position: relative;
    z-index: 2;
}

.discounts-header h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.decorative-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--danger-color) 100%);
    border-radius: 2px;
}

/* Merchant logos */
.merchant-logo {
    width: 120px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--light-color);
    transition: var(--transition);
    position: relative;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.merchant-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.merchant-card:hover .merchant-logo {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.merchant-card:hover .merchant-logo img {
    transform: scale(1.02);
}

.merchant-logo .no-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.merchant-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.merchant-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

/* ===== CAROUSEL CONTROLS ===== */
.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    opacity: 0.7;
    transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-size: 100%, 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.3);
    box-shadow: var(--shadow);
}

/* ===== LOGO MARQUEE ===== */
.logo-marquee {
    background-color: #ffffff;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scroll 25s linear infinite;
    will-change: transform;
}

.logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 156px;
    height: 104px;
    margin: 0;
}

.logo-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-item:hover img,
.hero-slide-suppliers .logo-item:hover img {
    transform: scale(1.1);
}

.hero-slide-suppliers .logo-item img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

/* ===== PAGINAÇÃO E CONTROLES ===== */
.pagination-top, 
.pagination-bottom {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: var(--light-color);
    padding: 15px;
}

.pagination-top {
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.pagination-bottom {
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -2px 4px rgba(0, 123, 255, 0.1);
}

.sort-controls .btn-group {
    flex-wrap: wrap;
}

.sort-controls .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    transition: var(--transition);
}

.sort-controls .btn-check:checked + .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ===== ADSENSE ===== */
.adsense-banner-top,
.adsense-middle-banner {
    background: var(--light-color);
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 15px;
    margin: 20px 0;
}

.adsense-middle-banner {
    border-left: 4px solid var(--success-color);
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
}

.adsense-sidebar {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

/* ===== SIDEBAR ADS ===== */
.sidebar-ads {
    top: 20px;
}

.adsense-vertical {
    background: var(--light-color);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ad-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}


/* ===== MERCHANTS DA VITRINE NO HERO ===== */
.vitrine-merchants {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vitrine-header {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.merchants-grid .row {
    justify-content: center;
}

.merchant-logo-item {
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
    text-align: center;
}

.merchant-logo-link {
    display: block;
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.merchant-logo-link:hover {
    color: white;
    transform: translateY(-5px);
}

.logo-container {
    position: relative;
    width: 80px;
    height: 60px;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 8px;
    transition: var(--transition);
    overflow: hidden;
}

.merchant-logo-link:hover .logo-container {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.merchant-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.logo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 8px;
}

.premium-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.merchant-name {
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
    font-weight: 500;
    line-height: 1.2;
    opacity: 0.9;
    word-wrap: break-word;
}

.merchant-logo-link:hover .merchant-name {
    opacity: 1;
    font-weight: 600;
}

/* Stats Mini */
.stat-mini {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(255, 107, 53, 0.3); }
    to { box-shadow: 0 0 20px rgba(255, 107, 53, 0.6); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    80% { transform: translateY(-1px); }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.animate-slide-up {
    animation: slideUpFade 1s ease forwards;
    opacity: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0056b3; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .hero-slide-stats .display-3 { font-size: 2.5rem; }
}

@media (max-width: 992px) {
    .adsense-sidebar { display: none; }
    .hero-slide-stats .display-3 { font-size: 2.2rem; margin-bottom: 20px; }
    .hero-slide-stats .container { padding: 0 15px; }
    .sidebar-ads { margin-top: 40px; position: static !important; }
    .adsense-vertical { min-height: 200px; }
}

@media (max-width: 768px) {
    .hero-carousel { margin-top: 20px; border-radius: 0; margin: 0 -15px; }
    .hero-slide { 
        min-height: 60vh; 
        height: auto; 
        padding: 15px; 
        background-attachment: scroll; 
        text-align: center; 
    }
    .hero-slide-stats { padding: 30px 0 100px 0; }
    .hero-slide-stats .display-3 { font-size: 1.8rem; line-height: 1.3; margin-bottom: 20px; }
    .hero-slide-stats .hero-content { padding: 15px 10px 80px 10px; }
    .hero-slide-stats .lead { font-size: 1rem; margin-bottom: 25px; }
    .hero-slide-stats .row.g-4 { margin-bottom: 30px !important; }
    
    .hero-content { padding: 10px; width: 100%; }
    .hero-content h1 { font-size: 2.2rem !important; }
    .hero-content .lead { font-size: 1.1rem; }
    
    .hero-actions .btn { 
        display: block; 
        width: 100%; 
        margin-bottom: 15px; 
        min-width: auto; 
        padding: 12px 25px; 
    }
    
    .carousel-control-prev, .carousel-control-next { width: 10%; }
    .carousel-control-prev-icon, .carousel-control-next-icon { width: 30px; height: 30px; }
    
    .logo-marquee { display: none !important; }
    .logo-track { display: none !important; }
    
    .merchant-logo { width: 100px; height: 70px; }
    .logo-container { width: 70px; height: 50px; }
    .vitrine-merchants { padding: 20px; }
    .merchant-name { font-size: 0.75rem; }
    
    .sidebar-ads { display: none; }
    .sort-controls { text-align: center; margin-top: 15px; }
    .sort-controls .btn-group { width: 100%; flex-direction: column; }
    .sort-controls .btn { border-radius: 0.375rem !important; margin-bottom: 2px; }
    
    .search-bar .col-md-1, .search-bar .col-md-2, .search-bar .col-md-3 { margin-bottom: 10px; }
    .search-bar .form-check { text-align: center; margin-top: 0.5rem !important; }
    .search-bar .d-flex { flex-direction: column; gap: 8px; height: auto; }
    .search-bar .flex-fill, .search-bar .btn, #clearFilters { width: 100%; }
    
    .discount-ribbon { font-size: 0.75rem; padding: 3px 25px; }
    .hot-deal-badge { font-size: 0.65rem; padding: 3px 8px; }
    .deal-prices .current-price { font-size: 1.25rem !important; }
}

@media (max-width: 576px) {
    .hero-carousel { margin-top: 15px; }
    .hero-slide { min-height: 50vh; padding: 10px; }
    .hero-slide-stats .display-3 { 
        font-size: 1.6rem; 
        line-height: 1.2; 
        margin-bottom: 15px; 
        padding: 0 10px; 
    }
}
/* ===== INDICADORES SUPER PEQUENOS ===== */
.carousel-indicators {
    bottom: 8px; /* Mais próximo da borda */
}

.carousel-indicators [data-bs-target] {
    width: 3px; /* Ainda menor */
    height: 3px; /* Ainda menor */
    border-radius: 50%;
    margin: 0 2px; /* Espaçamento menor */
    background-color: rgba(255, 255, 255, 0.5);
    border: none; /* Remove borda */
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.8); /* Maior escala para visibilidade */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ===== SLIDE 4 - VERSÃO COMPACTA EXTREMA ===== */
.hero-slide-stats {
    display: flex; /* Ativa o Flexbox */
    flex-direction: column; /* Organiza os elementos verticalmente */
    justify-content: center; /* Centraliza verticalmente */
    align-items: center; /* Centraliza horizontalmente */
    min-height: 100vh; /* Garante que o slide ocupe toda a altura da viewport */
    height: 100vh; /* Define a altura total como 100% da viewport */
    padding: 0; /* Remove padding extra */
    overflow: hidden; /* Evita que o conteúdo "vaze" */
}

/* Ajuste no conteúdo interno */
.hero-slide-stats .hero-content {
    padding: 20px; /* Adiciona espaçamento interno */
    max-width: 100%; /* Garante que o conteúdo não ultrapasse os limites */
    text-align: center; /* Centraliza o texto */
}

.hero-slide-stats .container {
    padding: 0 10px; /* Padding lateral mínimo */
    max-width: 100%; /* Usa toda a largura */
}

.hero-slide-stats .col-lg-10 {
    padding: 0 10px; /* Padding lateral mínimo */
}

.hero-slide-stats .display-3 {
    font-size: 1.8rem; /* Fonte bem menor */
    line-height: 1;
    margin-bottom: 8px; /* Margem mínima */
    padding: 0;
    word-wrap: break-word;
}

.hero-slide-stats .lead {
    font-size: 0.85rem; /* Fonte menor */
    line-height: 1.2;
    margin-bottom: 8px; /* Margem mínima */
    padding: 0 5px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

/* Estatísticas ultra compactas */
.hero-slide-stats .row.g-4 {
    margin-bottom: 8px; /* Margem mínima */
    gap: 5px; /* Gap mínimo */
}

.hero-slide-stats .stat-card {
    padding: 8px 5px; /* Padding mínimo */
    border-radius: 8px; /* Bordas menores */
}

.hero-slide-stats .stat-number {
    font-size: 1.3rem; /* Fonte menor */
    margin-bottom: 2px;
}

.hero-slide-stats .stat-icon {
    font-size: 1.3rem; /* Fonte menor */
    margin-bottom: 3px;
}

.hero-slide-stats .stat-label {
    font-size: 0.65rem; /* Fonte bem menor */
    line-height: 1;
}

/* Mensagem persuasiva ultra compacta */
.hero-slide-stats .persuasive-message {
    margin: 8px auto; /* Margem mínima */
    padding: 10px; /* Padding mínimo */
    max-width: 98%;
    border-radius: 10px; /* Bordas menores */
}

.hero-slide-stats .persuasive-message h3 {
    font-size: 1rem; /* Fonte menor */
    margin-bottom: 5px;
}

.hero-slide-stats .benefit-item {
    padding: 4px; /* Padding mínimo */
    margin-bottom: 3px;
    font-size: 0.75rem; /* Fonte menor */
}

.hero-slide-stats .benefit-item strong {
    font-size: 0.8rem;
}

.hero-slide-stats .benefit-item small {
    font-size: 0.65rem;
}

/* Botões ultra compactos */
.hero-slide-stats .cta-buttons {
    margin: 8px 0; /* Margem mínima */
    padding: 0 10px;
}

.hero-slide-stats .btn {
    margin-bottom: 4px; /* Margem mínima */
    padding: 6px 15px; /* Padding mínimo */
    font-size: 0.8rem; /* Fonte menor */
    border-radius: 20px; /* Bordas menores */
}

/* Trust badge ultra compacto */
.hero-slide-stats .trust-badge {
    margin: 5px auto; /* Margem mínima */
    padding: 4px 8px; /* Padding mínimo */
    font-size: 0.7rem; /* Fonte menor */
    border-radius: 15px; /* Bordas menores */
}

/* Ajuste do ícone do título */
.hero-slide-stats .display-3 i {
    font-size: 0.7em; /* Ícone menor */
    margin-right: 5px;
    vertical-align: middle;
}

/* Responsividade para telas grandes - VERSÃO COMPACTA */
@media (min-width: 992px) {
    
    .hero-slide-stats {
        min-height: 80vh; /* Reduz a altura mínima em dispositivos menores */
        height: auto; /* Permite que o conteúdo ajuste a altura automaticamente */
        padding: 20px; /* Adiciona espaçamento interno */
    }

    
    .hero-slide-stats .hero-content {
        transform: scale(0.95); /* Redução menor em desktop */
    }
    
    .hero-slide-stats .display-3 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .hero-slide-stats .lead {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .hero-slide-stats .stat-number {
        font-size: 1.6rem;
    }
    
    .hero-slide-stats .stat-icon {
        font-size: 1.6rem;
    }
    
    .hero-slide-stats .stat-label {
        font-size: 0.75rem;
    }
}

@media (min-width: 1200px) {
    .hero-slide-stats .hero-content {
        transform: scale(1); /* Tamanho normal em telas grandes */
    }
    
    .hero-slide-stats .display-3 {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .hero-slide-stats .lead {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .hero-slide-stats .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-slide-stats .stat-icon {
        font-size: 1.8rem;
    }
}

@media (min-width: 1400px) {
    .hero-slide-stats .display-3 {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }
    
    .hero-slide-stats .lead {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .hero-slide-stats .stat-number {
        font-size: 2rem;
    }
    
    .hero-slide-stats .stat-icon {
        font-size: 2rem;
    }
}

/* Garantir que nada seja cortado */
.hero-slide-stats * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Forçar altura do carousel */
.hero-slide-stats.carousel-item {
    height: 65vh;
    min-height: 65vh;
}
/* ===== ESTATÍSTICAS EM LINHA HORIZONTAL ===== */
.hero-slide-stats .row.g-4 {
    margin-bottom: 8px;
    gap: 0; /* Remove gap para usar colunas Bootstrap */
    justify-content: center;
    align-items: stretch; /* Alinha altura dos cards */
}

/* Forçar 3 colunas iguais */
.hero-slide-stats .row.g-4 > div {
    flex: 0 0 33.333333%; /* 3 colunas iguais */
    max-width: 33.333333%;
    padding: 0 5px; /* Espaçamento mínimo entre cards */
}

.hero-slide-stats .stat-card {
    padding: 8px 4px; /* Padding bem compacto */
    border-radius: 8px;
    height: 100%; /* Altura igual para todos */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px; /* Altura mínima controlada */
}

.hero-slide-stats .stat-icon {
    font-size: 1.1rem; /* Ícone menor */
    margin-bottom: 2px;
}

.hero-slide-stats .stat-number {
    font-size: 1.1rem; /* Número menor */
    margin-bottom: 2px;
    line-height: 1;
    font-weight: 800;
}

.hero-slide-stats .stat-label {
    font-size: 0.6rem; /* Label bem pequeno */
    line-height: 1;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

/* Responsividade para as estatísticas */
@media (min-width: 992px) {
    .hero-slide-stats .stat-card {
        padding: 10px 6px;
        min-height: 90px;
    }
    
    .hero-slide-stats .stat-icon {
        font-size: 1.3rem;
    }
    
    .hero-slide-stats .stat-number {
        font-size: 1.3rem;
    }
    
    .hero-slide-stats .stat-label {
        font-size: 0.7rem;
    }
}

@media (min-width: 1200px) {
    .hero-slide-stats .stat-card {
        padding: 12px 8px;
        min-height: 100px;
    }
    
    .hero-slide-stats .stat-icon {
        font-size: 1.5rem;
    }
    
    .hero-slide-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-slide-stats .stat-label {
        font-size: 0.75rem;
    }
}

@media (min-width: 1400px) {
    .hero-slide-stats .stat-card {
        padding: 15px 10px;
        min-height: 110px;
    }
    
    .hero-slide-stats .stat-icon {
        font-size: 1.7rem;
    }
    
    .hero-slide-stats .stat-number {
        font-size: 1.7rem;
    }
    
    .hero-slide-stats .stat-label {
        font-size: 0.8rem;
    }
}

/* Mobile - manter em linha mas ainda menor */
@media (max-width: 576px) {
    .hero-slide-stats .row.g-4 > div {
        padding: 0 2px; /* Espaçamento ainda menor */
    }
    
    .hero-slide-stats .stat-card {
        padding: 6px 2px;
        min-height: 70px;
    }
    
    .hero-slide-stats .stat-icon {
        font-size: 1rem;
    }
    
    .hero-slide-stats .stat-number {
        font-size: 1rem;
    }
    
    .hero-slide-stats .stat-label {
        font-size: 0.55rem;
        line-height: 0.9;
    }
}

/* Garantir que labels longas quebrem adequadamente */
.hero-slide-stats .stat-label {
    overflow-wrap: break-word;
    word-break: break-word;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Máximo 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* ===== SOLUÇÃO SIMPLES - SEM ANIMAÇÕES ===== */
.merchant-btn,
.merchant-card a {
    transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
    transform: none !important;
}

.merchant-btn:hover,
.merchant-card a:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
    transform: none !important; /* Remove movimento completamente */
}

.merchant-card:hover {
    transform: none !important; /* Remove movimento do card */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}






/* ===== ESTILOS PARA BUSCA INTEGRADA ===== */

/* Filtros Integrados */
.integrated-search-bar {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.filter-group {
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.filter-group:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Cards de Cupom */
.coupon-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.coupon-card:hover::before {
    left: 100%;
}

.discount-value {
    font-size: 1.1rem;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

/* Produtos com Cupons */
.product-card.has-coupon {
    border: 2px solid #ffc107;
    position: relative;
}

.product-card.has-coupon::after {
    content: '🎫';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffc107;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    animation: bounce 2s ease-in-out infinite;
}

/* Seções de Resultados */
.section-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

.results-stats .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Tabs de Resultado */
.result-tabs .btn-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Responsividade */
@media (max-width: 768px) {
    .integrated-search-bar .row > div {
        margin-bottom: 1rem;
    }
    
    .filter-group {
        margin-bottom: 1rem;
    }
    
    .results-header .col-md-4 {
        margin-top: 1rem;
    }
    
    .sort-controls {
        margin-top: 1rem;
    }
    
    .sort-controls .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .sort-controls .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 2px;
    }
}

/* Animações */
@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    80% {
        transform: translateY(-1px);
    }
}
/* ===== NAVEGAÇÃO ANUNCIANTES/CUPONS ===== */
.navigation-tabs-section {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.navigation-tabs-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Botões de Navegação */
.nav-tab-btn {
    width: 100%;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

.nav-tab-btn:hover {
    border-color: #007bff;
    box-shadow: 0 5px 20px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}

.nav-tab-btn.active {
    border-color: #007bff;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
}

.nav-tab-btn.active .nav-btn-text h5,
.nav-tab-btn.active .nav-btn-text p {
    color: white;
}

.nav-btn-content {
    display: flex;
    align-items: center;
    padding: 20px;
    text-align: left;
}

.nav-btn-icon {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    color: #007bff;
    margin-right: 15px;
}

.nav-tab-btn.active .nav-btn-icon {
    color: white;
}

.nav-btn-text {
    flex-grow: 1;
}

.nav-btn-text h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.nav-btn-text p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.nav-btn-stats {
    margin-top: 8px;
}

.nav-btn-stats .badge {
    font-size: 0.75rem;
}

.nav-btn-arrow {
    flex-shrink: 0;
    color: #007bff;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.nav-tab-btn.active .nav-btn-arrow {
    color: white;
    transform: translateX(5px);
}

/* Indicadores */
.section-indicator {
    margin-top: 20px;
}

.indicator-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #007bff;
    transform: scale(1.2);
}

.current-section-text {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-btn-content {
        padding: 15px;
    }
    
    .nav-btn-icon {
        width: 50px;
        margin-right: 12px;
    }
    
    .nav-btn-icon i {
        font-size: 1.5rem;
    }
    
    .nav-btn-text h5 {
        font-size: 1rem;
    }
    
    .nav-btn-text p {
        font-size: 0.8rem;
    }
    
    .nav-btn-stats .badge {
        font-size: 0.7rem;
    }
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-buttons-wrapper {
    animation: slideIn 0.6s ease-out;
}

/* Estados de Loading */
.nav-tab-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.nav-tab-btn.loading .nav-btn-arrow {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estilos específicos para cupons */
.coupon-card {
    border: 2px dashed #007bff !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.coupon-badge {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    font-size: 0.75rem;
    font-weight: bold;
}

.coupon-code-display {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.coupon-actions .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
}

.stat-item {
    padding: 1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .coupon-actions .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Estilos para navegação com 3 botões */
.btn-group .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.btn-group .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-group .btn .badge {
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 12px;
    min-width: 24px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Botão de busca especial */
.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-outline-success .badge-success {
    background-color: #28a745;
    color: white;
}

/* Animação de pulso para cupons ativos */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .btn-group-vertical .btn {
        margin-bottom: 0.5rem;
        border-radius: 0.375rem !important;
        min-height: 80px;
    }
    
    .btn .badge {
        font-size: 0.7em;
        min-width: 20px;
        height: 18px;
    }
}

/* Breadcrumb personalizado */
.breadcrumb {
    background: rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Estatísticas rápidas */
.gap-4 {
    gap: 1rem !important;
}

@media (max-width: 576px) {
    .gap-4 {
        gap: 0.5rem !important;
    }
    
    .gap-4 small {
        font-size: 0.75rem;
    }
}

/* Efeitos hover nos cards de estatísticas */
.alert {
    transition: all 0.3s ease;
}

.alert:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ícones com animação */
.fas {
    transition: transform 0.3s ease;
}

.btn:hover .fas {
    transform: scale(1.1);
}

/* Layout 3+1 colunas */
@media (min-width: 992px) {
    .col-lg-9 .col-lg-4 {
        /* 3 merchants por linha em desktop */
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}


/* Estatísticas mini na sidebar */
.stat-mini {
    padding: 0.5rem;
    border-radius: 6px;
    background: white;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.stat-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* AdSense placeholders */
.ad-placeholder {
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    background-color: #f1f3f4 !important;
}

/* Responsividade */
@media (max-width: 991px) {
    .sidebar-ads {
        position: static !important;
        max-height: none;
        margin-top: 2rem;
    }
    
    .adsense-vertical {
        margin-bottom: 1rem !important;
    }
    
    /* Em tablet, 2 merchants por linha */
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


/* Container das estatísticas */
.stats-showcase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.stats-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Items das estatísticas */
.stat-item {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    min-width: 160px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Ícones das estatísticas */
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    position: relative;
}

.products-stat .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.coupons-stat .stat-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.savings-stat .stat-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

/* Conteúdo das estatísticas */
.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d3748;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Pulso animado */
.stat-pulse {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
}

.stat-pulse {
    background: #10b981;
}

.cupons-pulse {
    background: #f59e0b;
}

.savings-pulse {
    background: #3b82f6;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Separadores */
.stats-separator {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.8);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Texto motivacional */
.motivation-text {
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .stats-showcase {
        flex-direction: column;
        padding: 1rem;
    }
    
    .stat-item {
        width: 100%;
        min-width: auto;
        margin-bottom: 0.5rem;
    }
    
    .stats-separator {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Efeitos especiais */
.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::after {
    opacity: 1;
}

/* Contador animado (opcional) */
.stat-number {
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar sem limitações de altura */
.sidebar-ads {
    /* REMOVIDO: position: sticky e max-height */
    /* REMOVIDO: overflow-y: auto */
    padding-bottom: 2rem;
}

/* Sticky inteligente apenas para desktop */
@media (min-width: 992px) {
    .sidebar-ads {
        position: sticky;
        top: 20px;
        /* SEM max-height - permite scroll natural da página */
    }
}

/* Estatísticas mini na sidebar */
.stat-mini {
    padding: 0.5rem;
    border-radius: 6px;
    background: white;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.stat-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* AdSense placeholders com hover suave */
.ad-placeholder {
    transition: all 0.3s ease;
    border: 2px dashed #dee2e6 !important;
}

.ad-placeholder:hover {
    background-color: #f8f9fa !important;
    border-color: #007bff !important;
}

/* Espaçamento consistente */
.adsense-vertical {
    margin-bottom: 1.5rem;
}

.adsense-vertical:last-child {
    margin-bottom: 0;
}

/* Cards promocionais */
.promo-banner .card,
.stats-sidebar .card,
.newsletter-signup .card {
    transition: all 0.3s ease;
}

.promo-banner .card:hover,
.stats-sidebar .card:hover,
.newsletter-signup .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Newsletter input */
.newsletter-signup .input-group {
    border-radius: 20px;
    overflow: hidden;
}

.newsletter-signup .form-control {
    border: none;
    background: #f8f9fa;
}

.newsletter-signup .btn {
    border: none;
}

/* Responsividade melhorada */
@media (max-width: 991px) {
    .sidebar-ads {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 2px solid #dee2e6;
    }
    
    .adsense-vertical {
        margin-bottom: 1rem;
    }
    
    /* Em mobile, mostrar ads horizontalmente */
    .sidebar-ads .row {
        margin: 0;
    }
    
    .sidebar-ads .col-6 {
        padding: 0.25rem;
    }
}

@media (max-width: 767px) {
    .sidebar-ads {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    /* Ads menores em mobile */
    .ad-placeholder {
        min-height: 200px !important;
    }
    
    .adsense-vertical:nth-child(n+4) {
        display: none; /* Esconder alguns ads em mobile */
    }
}

/* Otimização para performance */
.ad-placeholder {
    will-change: transform;
    backface-visibility: hidden;
}