.categoria-layout {
    display: grid;
    grid-template-columns: 25% 75%;
    gap: 20px;
    align-items: start;
    min-height: 100vh;
}

@media (min-width: 993px) {
    .filtros-sidebar {
        position: sticky;
        top: 100px;
        align-self: start;
        height: calc(100vh - 120px);
        /* ocupa a tela, mas respeita o topo */
        overflow-y: auto;
        /* rolagem própria se tiver muitos filtros */
    }
}

@media (max-width: 992px) {
    .categoria-layout {
        grid-template-columns: 1fr;
    }

    .filtros-sidebar {
        position: relative;
        top: 0;
        height: auto;
        margin-bottom: 20px;
    }
}

.filtros-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.filtros-sidebar h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.filtro-item {
    margin-bottom: 15px;
}

.filtro-item label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.filtro-item select {
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.produtos-area {
    width: 100%;
}

.categoria-banner img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.produto-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-3px);
}

.produto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-body .preco {
    color: var(--cor-preco);
    font-weight: bold;
    margin-bottom: 8px;
}

/*.card-body .btn {*/
/*    background-color: #007bff;*/
/*    color: #fff;*/
/*    padding: 6px 10px;*/
/*    border-radius: 6px;*/
/*    text-align: center;*/
/*    text-decoration: none;*/
/*}*/

.card-body .btn:hover {
    background-color: #0056b3;
}

.spinner {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.fim {
    text-align: center;
    color: #999;
    padding: 20px;
}

.filtros-sidebar .filtro-item input.form-control {
    all: unset;
    display: block;
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .produtos-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

.device-mobile .produtos-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
}