/* ========================================
   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 {
    background: white;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-icon {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-left: 12px;
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 12px 8px;
    font-family: var(--font-primary);
}

.btn-search {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-search:hover {
    background: #1976D2;
    transform: scale(1.05);
}

.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 === */
.category-hubs {
    padding: var(--section-padding);
}

.hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.hub-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.hub-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.hub-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.hub-card h3 {
    padding: 20px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-align: center;
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.hub-card.tech h3 {
    background: linear-gradient(to top, var(--tech-blue), transparent);
}

.hub-card.home h3 {
    background: linear-gradient(to top, var(--home-orange), transparent);
}

.hub-card.decoration h3 {
    background: linear-gradient(to top, #D2691E, transparent);
    /* Chocolate brown */
}

.hub-card.fashion h3 {
    background: linear-gradient(to top, var(--fashion-pink), transparent);
}

.hub-card.beauty h3 {
    background: linear-gradient(to top, #FF69B4, transparent);
    /* Hot pink */
}

.hub-card.sports h3 {
    background: linear-gradient(to top, var(--sports-green), transparent);
}


/* === Section Titles === */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
}


/* ========================================
   MVP v1.0 - SEÇÕES DESATIVADAS
   ======================================== */
.featured-curations,
.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-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sort-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);
}

.sort-btn:hover,
.sort-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* === 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: 220px;
    background: var(--bg-light);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-header img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .card-header img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FF4757;
    color: white;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.vote-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-gray);
    transition: var(--transition);
    padding: 4px;
}

.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);
}

.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;
    -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;
}

.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: 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;
}

.partner-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.partner-logo img {
    height: 42px;
    width: auto;
    max-width: 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;
    }
}