/* ── Top Nav ──────────────────────────────────────── */
.top-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 100;
    padding: 0.75rem 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; font-weight: 800;
    color: #111827; font-size: 1.25rem;
    transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo img {
    height: 40px; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-menu { display: flex; gap: 1.5rem; align-items: center; }
.nav-item {
    text-decoration: none; color: #4B5563;
    font-size: 0.95rem; font-weight: 600;
    transition: color 0.2s;
}
.nav-item:hover { color: #111827; }
.nav-item.danger { color: #EF4444; }
.nav-item.danger:hover { color: #DC2626; }

/* ── Affiliate Style Hero Banner ──────────────────────────── */
.hero-section {
    background-color: #f3f4f6; /* Light gray background */
    margin-bottom: 2rem;
    padding-bottom: 3rem;
}

.hero-banner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    background-image: url('../images/fundo-principal.jpg');
    background-size: cover;
    background-position: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 20, 30, 0.85) 0%, rgba(10, 20, 30, 0.4) 50%, rgba(10, 20, 30, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 4rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 650px;
}

.hero-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-title span { 
    color: #FFB300;
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.cta-primary {
    background-color: #FFB300;
    color: #111827;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 179, 0, 0.4);
    background-color: #FFC133;
}

/* ── Products grid ────────────────────────────────── */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.public-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.public-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.card-image-area {
    position: relative;
    height: 200px;
    background: #f8fafc;
}
.card-image-area img { width: 100%; height: 100%; object-fit: cover; }
.platform-tag {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.9);
    padding: 0.25rem 0.75rem; border-radius: 2rem;
    font-size: 0.75rem; font-weight: 700; color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.shipping-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; font-weight: 600; color: #065F46;
    background: #D1FAE5; border: 1px solid #6EE7B7;
    border-radius: 0.5rem; padding: 0.25rem 0.6rem; margin-bottom: 0.75rem;
}
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-main); line-height: 1.4; }
.price-box { margin-bottom: 1.25rem; }
.old-price { font-size: 0.85rem; text-decoration: line-through; color: var(--text-muted); }
.new-price { font-size: 1.4rem; font-weight: 800; color: var(--primary-color); display: block; }
.affiliate-info {
    display: flex; align-items: center; gap: 0.75rem;
    padding-top: 1rem; border-top: 1px solid var(--border-color); margin-top: auto;
}
.affiliate-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-color); }
.affiliate-name { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.btn-go {
    display: block; text-align: center;
    background: var(--primary-color); color: white;
    text-decoration: none; padding: 0.85rem;
    border-radius: 0.75rem; font-weight: 700; margin-top: 1rem;
    transition: opacity 0.2s;
}
.btn-go:hover { opacity: 0.9; }

/* ── Category filter bar ──────────────────────────── */
.cat-filter-bar {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    margin-bottom: 2rem; align-items: center;
}
.cat-filter-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.45rem 1rem; border-radius: 2rem;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card); color: var(--text-main);
    font-size: 0.82rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: all 0.18s ease;
}
.cat-filter-btn:hover, .cat-filter-btn.active {
    background: var(--primary-color); color: white;
    border-color: var(--primary-color);
}
.category-tag {
    position: absolute; top: 1rem; left: 1rem;
    background: rgba(79,70,229,0.88);
    color: white; backdrop-filter: blur(4px);
    padding: 0.2rem 0.6rem; border-radius: 2rem;
    font-size: 0.7rem; font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(10,10,30,0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        z-index: 200;
    }
    .nav-menu.open { display: flex; }
    .top-nav { position: absolute; }
}
@media (max-width: 480px) {
    .hero-content { padding: 5rem 1.25rem 2.5rem; }
    .products-container { grid-template-columns: 1fr; gap: 1.25rem; }
    .hero-stats { gap: 1.5rem; }
}
