/* ========================================
   GUIA DO DESCONTO - PREMIUM DESIGN SYSTEM
   ======================================== */

/* === CSS Variables === */
:root {
    /* Colors */
    --primary-blue: #2196F3;
    --tech-blue: #4A90E2;
    --home-orange: #F5A623;
    --fashion-pink: #E91E63;
    --sports-green: #4CAF50;

    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-gray: #6B7280;
    --border-light: #E5E7EB;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.main-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
}

.logo i {
    color: var(--primary-blue);
    font-size: 1.8rem;
}

.logo strong {
    color: var(--primary-blue);
}

/* Animated Trucks */
.trucks-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.truck {
    position: absolute;
    font-size: 1.2rem;
    animation: moveTruck 8s linear infinite;
    opacity: 0.8;
    top: 50%;
    transform: translateY(-50%);
}

.truck-ml {
    color: #ffe600 !important;
    animation-delay: 0s;
}

.truck-shopee {
    color: #ee4d2d !important;
    animation-delay: 2.7s;
}

.truck-amazon {
    color: #FF9900 !important;
    animation-delay: 5.4s;
}

@keyframes moveTruck {
    0% {
        left: -80px;
        opacity: 0;
    }

    8% {
        opacity: 0.9;
    }

    10% {
        opacity: 0.9;
    }

    12% {
        opacity: 0;
    }

    77% {
        opacity: 0;
    }

    78% {
        opacity: 0.9;
    }

    79% {
        opacity: 0.9;
    }

    100% {
        left: calc(100% + 80px);
        opacity: 0;
    }
}

.logo {
    position: relative;
}

.logo .fa-gift {
    position: relative;
    z-index: 2;
}

.logo span {
    position: relative;
    z-index: 2;
}


nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--primary-blue);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
}

.icon-btn:hover {
    color: var(--primary-blue);
}

.btn-login {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: white;
    margin-bottom: 32px;
    line-height: 1.2;
}

.highlight {
    color: #FFD700;
    position: relative;
}

.hero-section h1 .store-icon {
    font-size: 0.85em;
    margin: 0 4px;
    vertical-align: middle;
}

/* Brand Colors for Store Icons */
.hero-section h1 .shopee-icon {
    color: #ee4d2d;
    /* Shopee Orange */
}

.hero-section h1 .ml-icon {
    color: #ffe600;
    /* Mercado Livre Yellow */
}

.hero-section h1 .amazon-icon {
    color: #FF9900;
    /* Amazon Orange */
}

.hero-content .highlight {
    color: #FF9900;
    font-weight: 700;
}



/* Search Container */
/* Search Container */
/* Search Container */
.search-container {
    display: none;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

.search-box {
    background: white;
    border-radius: 50px;
    /* Pill shape */
    padding: 6px;
    /* Tighter padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Ensure button goes to end */
    gap: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    /* Force full width */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    box-sizing: border-box;
    position: relative;
}

.search-icon {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-left: 16px;
    /* More space */
}

#search-input {
    flex: 1;
    min-width: 0;
    /* Critical for flex child */
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 12px 8px;
    font-family: var(--font-primary);
    background: transparent;
}

.btn-search {
    display: none;
    /* ✅ Hidden as requested */
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 36px;
    /* Balanced padding */
    border-radius: 50px;
    /* Match container */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.2);
}

.btn-search:hover {
    background: #1976D2;
    transform: translateY(-1px);
    /* Subtle lift */
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.3);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
}

.suggestion-item:hover {
    background: var(--bg-light);
}

/* === Category Hubs (Premium v3.0) === */
.category-hubs {
    padding: 60px 20px;
    background: var(--bg-white);
}

.hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.hub-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    aspect-ratio: 1 / 1;
    /* Square cards for that Instagram/Pinterest feel */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Soft border for definition */
}

.hub-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.hub-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hub-card:hover img {
    transform: scale(1.05);
}

.hub-card h3 {
    padding: 30px 20px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    /* Let clicks pass to the card */
}

/* Seasonal Campaign Styling */
.seasonal-campaign {
    padding: 40px 20px;
    background: #fff8f0;
    /* Soft warm background for school items */
}

.seasonal-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

.hub-card.seasonal {
    aspect-ratio: 16 / 9;
    /* Cinematic banners for seasonal items */
}

/* Base Overlays Removed - Now using image-specific gradients if needed in CSS, 
   but the images already have premium backgrounds. */


/* === Section Titles === */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 48px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}


/* ========================================
   MVP v1.0 - SEÇÕES DESATIVADAS
   ======================================== */
/* TEMPORARIAMENTE ATIVADO PARA TESTES */
/* TEMPORARIAMENTE ATIVADO PARA TESTES */
.featured-curations {
    display: none !important;
}

/* 
.voted-deals,
#deals-grid {
    display: none !important;
} 
*/

/* === Featured Curations === */
.featured-curations {
    padding: var(--section-padding);
    background: white;
}

.curations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.curation-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.curation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.curation-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.curation-content {
    padding: 24px;
}

.curation-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.curation-content p {
    color: var(--text-gray);
    margin-bottom: 16px;
}

.curation-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.curation-link:hover {
    gap: 12px;
}

/* === Voted Deals === */
.voted-deals {
    padding: var(--section-padding);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Sort & Filter Buttons Container */
.sort-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
}

.sort-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.sort-btn i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.sort-btn:hover {
    color: var(--primary-blue);
    background: rgba(102, 126, 234, 0.1);
}

.sort-btn:hover i {
    transform: scale(1.2);
}

.sort-btn.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sort-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

/* Store Filter Buttons */
.store-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.store-filter-btn {
    background: white;
    border: 2px solid var(--border-light);
    color: var(--text-gray);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.store-filter-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.store-filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

/* === Deals Grid === */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.loading-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary-blue);
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    height: 250px;
    background: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.card-header img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
    mix-blend-mode: multiply;
    /* Helps white backgrounds blend */
}

.product-card:hover .card-header img {
    transform: scale(1.05);
}

/* Fix image centering in container */
.image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FF4757 0%, #FF6B81 100%);
    color: white;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badgePulse 2s infinite ease-in-out;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none;
    /* Replaced by titanium version */
}

.discount-badge:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.discount-badge-titanium {
    display: none;
    /* Hidden by user request - 29/01 */
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    perspective: 1000px;
    pointer-events: none;
}

.titanium-star {
    position: relative;
    background: linear-gradient(135deg, #EE4D2D 0%, #FF9900 50%, #FFE600 100%);
    color: white;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
    animation: floatStar 3s infinite ease-in-out;
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.titanium-hand {
    margin-top: -12px;
    color: #374151;
    font-size: 1.8rem;
    transform: rotate(-10deg);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
    animation: handTilt 4s infinite ease-in-out;
}

.star-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes floatStar {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-8px) rotate(5deg) scale(1.1);
    }
}

@keyframes handTilt {

    0%,
    100% {
        transform: rotate(-10deg) translateX(0);
    }

    50% {
        transform: rotate(-8deg) translateX(2px);
    }
}

/* Fallback for simple badge if needed */
/* The original .discount-badge is now hidden by default */

.store-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vote-container {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    /* Fix overlap issue */
}

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.vote-btn:hover {
    color: var(--primary-blue);
    transform: scale(1.2);
}

.vote-btn.active {
    color: var(--primary-blue);
}

.vote-count {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 2px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}

.reason-badge {
    background: rgba(255, 215, 0, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.price-container {
    margin-top: auto;
    margin-bottom: 16px;
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-bottom: 4px;
}

/* Fallback Card Styling */
.fallback-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Store Specific Backgrounds */
.fallback-card.mercadolivre {
    background: #ffe600;
}

.fallback-card.amazon {
    background: #FF9900;
}

.fallback-card.shopee {
    background: #ee4d2d;
}

/* Fallback Icon Styling */
.fallback-card i {
    font-size: 4rem;
    color: white;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/*.fallback-card.mercadolivre i {
    color: #2d3277;
}*/

/* Fallback Logo Images (ML & Shopee) */
.fallback-logo {
    width: 60%;
    height: auto;
    object-fit: contain;
    z-index: 2;
    /* Convert colored logos to White for Shopee/Amazon style */
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ML Logo Special Treatment (Blue on Yellow) */
.fallback-card.mercadolivre .fallback-logo {
    /* Use original logo color or custom blue filter if needed. 
       For now, let's reset filters to show original logo colors on yellow. */
    filter: none;
    width: 50%;
}

/* Shopee Logo Special Treatment */
/*.fallback-card.shopee .fallback-logo {
    filter: brightness(0) invert(1);
}*/

/* Shopee Composite Logo (Icon + Text) */
.shopee-logo-composite {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.shopee-logo-composite i {
    font-size: 4.5rem;
    color: white;
    /* White bag */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.shopee-logo-composite .shopee-s {
    position: absolute;
    color: #ee4d2d;
    /* Shopee Orange/Red */
    font-weight: 800;
    font-size: 2rem;
    padding-top: 8px;
    /* Visual adjustment to center inside bag */
    z-index: 3;
}

/* Decorative Background Logo/Icon opacity */
.fallback-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    width: 100px;
    height: 100px;
    background: inherit;
    filter: brightness(1.2);
    border-radius: 50%;
    z-index: 1;
}

.new-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.new-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-gray);
}

.btn-deal {
    display: block;
    width: 100%;
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-deal:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === Quick Comparison === */
.quick-comparison {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.comparison-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.comparison-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.comparison-card p {
    color: var(--text-gray);
    margin-bottom: 32px;
}

.comparison-input-group {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 32px;
}

#comparison-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

#comparison-input:focus {
    border-color: var(--primary-blue);
}

.btn-compare {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-compare:hover {
    background: #1976D2;
    transform: scale(1.05);
}

.comparison-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.comparison-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.comparison-item h4 {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.comparison-item .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.comparison-item.best {
    border: 2px solid #4CAF50;
    position: relative;
}

.comparison-item.best::before {
    content: '✓ Melhor Preço';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* === Footer === */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}


.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links,
.footer-social {
    align-items: center;
    text-align: center;
}


.footer-links h4,
.footer-social h4 {
    margin-bottom: 8px;
    font-family: var(--font-heading);
}


.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}


.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-blue);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* === Responsive === */
@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 16px;
        gap: 16px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .search-container {
        flex-direction: column;
    }

    .btn-search {
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .comparison-input-group {
        flex-direction: column;
    }

    .comparison-card {
        padding: 32px 20px;
    }
}

/* === Real-Time Search Results === */
.real-time-search {
    background: white;
    border-radius: 16px;
    padding: 40px;
}

.search-progress {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.store-status {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-light);
    font-size: 0.9rem;
}

/* Search Result Cards */
.search-result-card {
    transition: all 0.3s ease;
}

.search-result-card.best-price {
    border: 3px solid #4CAF50;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
}

.best-price-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.store-badge.large {
    font-size: 1.1rem;
    padding: 12px 20px;
    position: relative;
    margin: auto;
}

.card-header.unavailable {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unavailable-message {
    text-align: center;
    color: var(--text-gray);
    padding: 20px;
}

.unavailable-message i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #9CA3AF;
}

.unavailable-message p {
    font-size: 0.95rem;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: #9CA3AF;
    font-size: 3rem;
}

.new-price.highlight {
    color: #4CAF50;
}

.btn-deal.best {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.btn-deal.best:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

/* Error State */
.error-state {
    background: white;
    border-radius: 16px;
    padding: 40px;
}

.error-state i {
    color: #f44336;
}

.error-state small {
    display: block;
    color: var(--text-gray);
    margin-top: 8px;
}

.btn-retry {
    margin-top: 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-retry:hover {
    background: #1976D2;
}

/* Notification Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === Partners Logos Section === */
.partners-logos {
    margin-top: 32px;
}

.partners-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.partner-logo {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px 30px;
    /* Aumentado de 12px 20px */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.partner-logo img {
    height: 55px;
    /* Aumentado de 42px */
    width: auto;
    max-width: 160px;
    /* Aumentado de 120px */
    object-fit: contain;
    display: block;
}

/* Responsive adjustments for partners logos */
@media (max-width: 600px) {
    .logos-container {
        gap: 12px;
        flex-wrap: wrap;
    }

    .partner-logo {
        padding: 10px 16px;
    }

    .partner-logo img {
        height: 26px;
        max-width: 80px;
    }
}

/* ========================================
   SEASONAL CAMPAIGN - VOLTA ÀS AULAS
   ======================================== */
.seasonal-campaign {
    padding: 60px 20px;
    background: #FFFFFF;
    /* Pure white for contrast */
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--border-light);
}

.section-title-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    padding: 12px 30px;
    display: inline-flex;
    margin: 0 auto 40px auto;
    width: auto;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.2);
}

.seasonal-campaign .section-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0;
    padding: 0;
}

.seasonal-campaign .section-title::after {
    display: none;
    /* Hide line for this specific wrapper version */
}

.seasonal-campaign .container {
    text-align: center;
    /* Center the wrapper */
    padding: 0 20px;
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .campaign-grid {
        grid-template-columns: 1fr;
    }
}

.campaign-banner {
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 200px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
}

.campaign-banner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.campaign-banner .banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.banner-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
    /* filter removed to show original logos */
}

.campaign-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: white;
}

.campaign-banner p {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.banner-btn {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    color: var(--text-dark);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: 8px;
}

.banner-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Specific Banner Styles */
.amazon-banner {
    background: linear-gradient(135deg, #FF9900 0%, #FFB84D 100%);
}

.amazon-banner .banner-btn {
    color: #FF9900;
}

.ml-banner {
    background: linear-gradient(135deg, #ffe600 0%, #ffee54 100%);
}

.ml-banner h3,
.ml-banner p {
    color: #2D3277;
}

.ml-banner .banner-btn {
    color: #2D3277;
}

.shopee-banner {
    background: linear-gradient(135deg, #ee4d2d 0%, #ff7350 100%);
}

.shopee-banner .banner-btn {
    color: #ee4d2d;
}

/* Footer Disclaimer */
.price-disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}