:root {
    --bg-main: #f0f2f5; /* Fundo claro acinzentado */
    --bg-card: #ffffff; /* Card branco puro */
    --primary: #0056b3; /* Azul Royal */
    --primary-light: #e7f1ff; /* Azul muito claro para hover/badges */
    --text-main: #1a1a1a; /* Texto quase preto */
    --text-muted: #65676b; /* Texto auxiliar cinza */
    --border: #dee2e6; /* Bordas suaves */
    --font: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER - Estilo Clean Blue */
.main-header {
    background-color: var(--primary);
    background: linear-gradient(135deg, #004494 0%, #0066d4 100%);
    padding: 40px 0;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.logo-area { text-align: center; margin-bottom: 25px; }
.logo-area h1 { 
    font-size: 2.2rem; 
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo-area p { opacity: 0.9; font-weight: 400; }

/* SEARCH BOX */
.search-box {
    max-width: 500px;
    margin: 20px auto;
    position: relative;
    display: flex;
    align-items: center;
}

#searchInput {
    width: 100%;
    padding: 15px 45px 15px 25px; /* Espaço para o ícone na direita */
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 1rem;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 20px;
    color: var(--primary);
    font-size: 1.2rem;
    pointer-events: none;
}

/* FILTROS */
.filters-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover { background: var(--primary-light); }
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* GRID DE ITENS */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding-bottom: 50px;
}

/* Tornando o Card Clicável */
.item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 15px;
    text-decoration: none;
    transition: 0.2s;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.item-icon-container {
    width: 75px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

/* Estilização da Imagem */
.item-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Não distorce o ícone */
}

.item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-id-badge {
    background: #e7f1ff;
    color: #0056b3;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.item-source {
    display: block;
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* RODAPÉ COM LOGO */
.main-footer {
    background: white;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: 50px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
    filter: grayscale(100%); /* Opcional: torna a logo discreta */
    opacity: 0.6;
    transition: 0.3s;
}

.footer-logo:hover { 
    filter: grayscale(0%); 
    opacity: 1; 
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}