:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #151516;
    --bg-card: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent: #0a84ff;
    --accent-hover: #0071e3;
    --success: #30d158;
    --danger: #ff453a;
    --gold: #ffd60a;
    --border: #2c2c2e;
    --radius: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100; padding: 16px 0;
}
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 700; }
.logo-icon { font-size: 1.5rem; }
.highlight { color: var(--text-secondary); font-weight: 500; }

.search-bar { position: relative; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }
.search-bar input {
    background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary);
    padding: 10px 16px 10px 40px; border-radius: 99px; width: 280px; font-size: 0.95rem; outline: none; transition: all 0.3s;
}
.search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2); }

/* Filters */
.filters { display: flex; gap: 12px; margin: 32px 0 24px; overflow-x: auto; padding-bottom: 8px; }
.filter-btn {
    background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-secondary);
    padding: 8px 20px; border-radius: 99px; cursor: pointer; font-weight: 500; transition: all 0.3s; white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active { background: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }

/* Grid & Cards */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-bottom: 64px; }

.product-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); border-color: #3a3a3c; }

/* Imagem e Badges Sobrepostos */
.product-image-wrapper { position: relative; background: #fff; padding: 20px; border-bottom: 1px solid var(--border); }
.product-image { width: 100%; height: 200px; object-fit: contain; }

.badge-discount {
    position: absolute; top: 12px; left: 12px; background: var(--danger); color: white;
    font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.badge-fellipe {
    position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    color: var(--gold); font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px;
    display: flex; align-items: center; gap: 4px;
}
.btn-share {
    position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.6); color: white;
    width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 0.9rem; transition: background 0.2s;
}
.btn-share:hover { background: #25D366; }

/* Info */
.product-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-badge {
    display: inline-block; background: rgba(10, 132, 255, 0.15); color: var(--accent);
    font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; width: fit-content;
}
.product-title { font-size: 1rem; font-weight: 600; margin-bottom: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Countdown */
.countdown {
    font-size: 0.8rem; color: var(--danger); font-weight: 600; margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}

.product-price { margin-top: auto; }
.old-price { font-size: 0.85rem; color: var(--text-secondary); text-decoration: line-through; }
.current-price { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 4px 0 16px; }

.btn-amazon {
    display: block; width: 100%; background: var(--accent); color: white; text-align: center;
    padding: 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: background 0.2s;
}
.btn-amazon:hover { background: var(--accent-hover); }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; background: #25D366; color: white;
    width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; text-decoration: none; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s; z-index: 99;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Skeleton Loading */
.skeleton-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.skeleton-img { width: 100%; height: 240px; background: #2c2c2e; }
.skeleton-info { padding: 20px; }
.skeleton-text { height: 14px; background: #2c2c2e; border-radius: 4px; margin-bottom: 12px; }
.skeleton-text.short { width: 60%; }
.skeleton-btn { height: 40px; background: #2c2c2e; border-radius: 10px; margin-top: 20px; }
.skeleton-img, .skeleton-text, .skeleton-btn {
    background: linear-gradient(90deg, #2c2c2e 25%, #3a3a3c 50%, #2c2c2e 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Footer */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 40px 0; text-align: center; color: var(--text-secondary); font-size: 0.85rem; }
.footer p { max-width: 800px; margin: 0 auto 16px; }

@media (max-width: 768px) {
    .header-content { flex-direction: column; align-items: stretch; }
    .search-bar input { width: 100%; }
}