:root {
    --bg-deep: #050505;
    --bg-card: #0f0f11;
    --primary-blue: #3b82f6; 
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #64748b;
}

body { 
    background-color: var(--bg-deep); 
    color: var(--text-main); 
    font-family: 'Poppins', sans-serif; 
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Layout Principal */
.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Header do Catálogo */
.catalog-header { 
    width: 100%;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.catalog-header h1 { 
    font-size: clamp(24px, 5vw, 38px); 
    font-weight: 900; 
    text-transform: uppercase; 
    margin: 0; 
}

.result-count {
    color: var(--text-muted);
    font-size: 14px;
}

/* Ordenação */
.sort-container { position: relative; }
.sort-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #0f0f11;
    border: 1px solid var(--border);
    width: 220px;
    display: none;
    z-index: 100;
}
.sort-dropdown.active { display: block; }
.sort-dropdown ul { list-style: none; padding: 0; margin: 0; }
.sort-dropdown li a {
    padding: 12px 15px;
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
}
.sort-dropdown li a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: white;
    padding-left: 20px;
}

/* Sidebar de Filtros */
.filter-sidebar { 
    width: 280px; 
    flex-shrink: 0; 
}

.filter-group { 
    margin-bottom: 30px; 
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.filter-label { 
    color: var(--primary-blue); 
    font-size: 12px; 
    font-weight: 900; 
    text-transform: uppercase; 
    margin-bottom: 15px; 
    display: block; 
    letter-spacing: 1px;
}

.filter-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: var(--text-muted); 
    font-size: 14px; 
    margin-bottom: 10px; 
    cursor: pointer;
}

.filter-item:hover {
    color: white;
}

.filter-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.filter-count {
    margin-left: auto;
    font-size: 11px;
    color: #555;
}

.price-inputs { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 15px;
}
.price-inputs input { 
    width: 50%; 
    background: #111; 
    border: 1px solid var(--border); 
    color: #fff; 
    padding: 10px; 
    font-size: 13px;
    border-radius: 4px;
}
.price-inputs input:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.btn-apply { 
    width: 100%; 
    background: #fff; 
    color: #000; 
    border: none; 
    padding: 12px; 
    font-weight: 900; 
    cursor: pointer; 
    border-radius: 4px;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 12px;
}
.btn-apply:hover { 
    background: var(--primary-blue);
    color: white;
}

.btn-clear-filters {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: underline;
}

/* Grid de Produtos */
.products-content { 
    flex: 1; 
    min-width: 0; /* Evita overflow */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.badge {
    background: var(--primary-blue);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.destaque {
    background: #f59e0b;
}

.badge.lancamento {
    background: #10b981;
}

.badge.desconto {
    background: #ef4444;
}

/* Imagem */
.img-container {
    width: 100%;
    aspect-ratio: 1/1;
    background: #151518;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
}
.img-product {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .img-product {
    transform: scale(1.05);
}

/* Título */
.product-title {
    font-size: 14px;
    color: #fff;
    margin: 10px 0 8px 0;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title:hover {
    color: var(--primary-blue);
}

/* Info adicional */
.product-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-meta i {
    font-size: 10px;
}

/* Rodapé do Card */
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

.price-info {
    display: flex;
    flex-direction: column;
}

.price-old {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-main { 
    font-size: 20px; 
    font-weight: 900; 
    color: #fff; 
    line-height: 1.2;
}

.price-installments { 
    font-size: 10px; 
    color: var(--text-muted); 
}

.btn-cart-icon {
    width: 44px;
    height: 44px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cart-icon:hover {
    background: var(--primary-blue);
    color: white;
}

/* Sem produtos */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.no-products i {
    font-size: 50px;
    color: #333;
    margin-bottom: 20px;
}

.no-products h3 {
    color: white;
    margin-bottom: 10px;
}

.no-products p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-reset {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-reset:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 50px;
    padding-bottom: 40px;
    width: 100%;
    flex-wrap: wrap;
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
}

.page-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-blue);
}

.page-link.active { 
    background: var(--primary-blue); 
    border-color: var(--primary-blue); 
}

.page-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading state (opcional) */
.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

/* Responsividade */
@media (max-width: 900px) {
    .filter-sidebar { 
        display: none; 
    }
    
    .catalog-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
    }
    
    .sort-container { 
        width: 100%; 
    }
    
    .sort-btn { 
        width: 100%; 
        text-align: left; 
        position: relative;
        right: 0;
    }
    
    .products-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    }
    
    .price-main { 
        font-size: 16px; 
    }
    
    .product-card { 
        padding: 8px; 
    }
    
    .btn-cart-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    width: 100%;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: white;
}
.breadcrumbs span { 
    color: white; 
    font-weight: 600; 
}
.breadcrumbs i { 
    font-size: 8px; 
    margin: 0 8px; 
    opacity: 0.5; 
}