/* ===========================
   OFERTA ES - STYLESHEET
   Cores da Bandeira do Brasil
   =========================== */

:root {
    /* Cores da Bandeira do Brasil */
    --verde-brasil: #009c3b;
    --amarelo-brasil: #ffdf00;
    --azul-brasil: #002776;
    --branco: #ffffff;
    
    /* Variações de cores */
    --verde-escuro: #007a2e;
    --verde-claro: #00b347;
    --amarelo-escuro: #ffc700;
    --azul-escuro: #001a52;
    --azul-claro: #003399;
    
    /* Cores adicionais */
    --cinza-claro: #f5f5f5;
    --cinza-medio: #e0e0e0;
    --cinza-escuro: #666666;
    --texto-escuro: #333333;
    --vermelho: #e74c3c;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* Bordas */
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

/* ===========================
   RESET E BASE
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cinza-claro);
    color: var(--texto-escuro);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   HEADER
   =========================== */

.header {
    background: linear-gradient(135deg, var(--verde-brasil) 0%, var(--verde-escuro) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--branco);
}

.logo i {
    font-size: 2rem;
    color: var(--amarelo-brasil);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--branco);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: var(--amarelo-brasil);
    color: var(--verde-brasil);
    font-weight: 600;
}

.admin-link {
    background-color: var(--azul-brasil);
    padding: 8px 20px;
}

.admin-link:hover {
    background-color: var(--azul-claro);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: linear-gradient(135deg, var(--amarelo-brasil) 0%, var(--amarelo-escuro) 100%);
    padding: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--verde-brasil);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--azul-brasil);
    font-weight: 500;
}

/* ===========================
   FILTERS
   =========================== */

.filters {
    background-color: var(--branco);
    padding: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--cinza-claro);
    padding: 14px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--verde-brasil);
    box-shadow: 0 0 0 3px rgba(0, 156, 59, 0.1);
}

.search-box i {
    color: var(--verde-brasil);
    font-size: 1.2rem;
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1rem;
    outline: none;
    color: var(--texto-escuro);
}

.search-box input::placeholder {
    color: var(--cinza-escuro);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--verde-brasil);
    background-color: var(--branco);
    color: var(--verde-brasil);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background-color: var(--verde-claro);
    color: var(--branco);
    border-color: var(--verde-claro);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background-color: var(--verde-brasil);
    color: var(--branco);
}

/* ===========================
   SECTIONS
   =========================== */

.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--verde-brasil);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--amarelo-brasil);
    background-color: var(--verde-brasil);
    padding: 10px;
    border-radius: 50%;
    font-size: 1.2rem;
}

/* ===========================
   PRODUCTS GRID
   =========================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background-color: var(--branco);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: var(--cinza-medio);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--verde-brasil) 0%, var(--verde-claro) 100%);
    color: var(--branco);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.product-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-platform {
    display: inline-block;
    background-color: var(--azul-brasil);
    color: var(--branco);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    width: fit-content;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--texto-escuro);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-description {
    font-size: 0.9rem;
    color: var(--cinza-escuro);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}

.product-prices {
    margin-bottom: 1rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--cinza-escuro);
    font-size: 0.9rem;
}

.discount-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--verde-brasil);
    margin: 0.3rem 0;
}

.product-discount {
    display: inline-block;
    background-color: var(--vermelho);
    color: var(--branco);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
}

.product-coupon {
    background-color: var(--amarelo-brasil);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px dashed var(--amarelo-escuro);
}

.coupon-label {
    font-size: 0.85rem;
    color: var(--azul-brasil);
    font-weight: 600;
}

.coupon-code {
    font-size: 1rem;
    font-weight: 800;
    color: var(--azul-brasil);
    letter-spacing: 1px;
}

.product-button {
    background: linear-gradient(135deg, var(--verde-brasil) 0%, var(--verde-claro) 100%);
    color: var(--branco);
    border: none;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.product-button:hover {
    background: linear-gradient(135deg, var(--verde-claro) 0%, var(--verde-brasil) 100%);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ===========================
   LOADING E NO RESULTS
   =========================== */

.loading, .no-results {
    text-align: center;
    padding: 3rem;
    color: var(--cinza-escuro);
}

.loading i, .no-results i {
    font-size: 3rem;
    color: var(--verde-brasil);
    margin-bottom: 1rem;
}

.loading p, .no-results p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: linear-gradient(135deg, var(--azul-brasil) 0%, var(--azul-escuro) 100%);
    color: var(--branco);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--amarelo-brasil);
}

.footer-logo p {
    color: var(--cinza-claro);
    font-size: 0.9rem;
}

.footer-links h4, .footer-info h4 {
    color: var(--amarelo-brasil);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--branco);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--amarelo-brasil);
}

.footer-info p {
    margin-bottom: 0.8rem;
    color: var(--cinza-claro);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--amarelo-brasil);
    color: var(--azul-brasil);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: var(--cinza-claro);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
}
