/* Loja: Design Original Restaurado com Ajuste de Largura */

body.loja-page {
    background-color: #f8f9fa;
}

.container-loja {
    padding: 40px 5%;
    max-width: 1600px; /* Única alteração de estrutura solicitada */
    margin: 0 auto;
}

.topo-loja h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #000;
}

.topo-loja p {
    color: #000;
}

.barra-busca {
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 20px 0 40px 0;
}

.barra-busca input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

/* CONTEÚDO PRINCIPAL EM GRID */
.conteudo-principal {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* BOTÃO FILTRO MOBILE */
.btn-mobile-filtros {
    display: none;
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-weight: bold;
    margin-bottom: 20px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* SIDEBAR E FILTROS ORIGINAIS */
.sidebar-filtros {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.filtro-card h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    color: #000;
}

.grupo-filtro h4 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #000;
}

.grupo-filtro label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
}

/* CUSTOM RADIO BUTTONS ORIGINAIS */
.grupo-filtro input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.grupo-filtro input[type="radio"]:checked {
    border-color: #005eff;
}

.grupo-filtro input[type="radio"]:checked::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #005eff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Caixinhas de preço min/max */
.preco-inputs {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.preco-input-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preco-input-box > label {
    font-size: 0.72rem;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0;
    display: block;
}

.preco-field {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    transition: border-color 0.2s;
}

.preco-field:focus-within {
    border-color: #005eff;
    background: #fff;
}

.preco-field > span {
    padding: 0 4px 0 10px;
    font-size: 0.82rem;
    color: #888;
    font-weight: 700;
    background: transparent;
    flex-shrink: 0;
}

.preco-field input {
    border: none;
    outline: none;
    width: 100%;
    padding: 9px 8px 9px 2px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    background: transparent;
}

.preco-field input::placeholder { color: #bbb; font-weight: 400; }
.preco-field input::-webkit-inner-spin-button,
.preco-field input::-webkit-outer-spin-button { -webkit-appearance: none; }
.preco-field input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.preco-separador {
    color: #ccc;
    font-size: 1rem;
    padding-bottom: 8px;
    flex-shrink: 0;
}

.btn-reset {
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    border: 2px solid #005eff;
    background: transparent;
    color: #005eff;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-reset:hover {
    background: #005eff;
    color: #fff;
}

/* VITRINE E CARDS (Layout Fiel ao Original) */
.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 10px;
}

.card-produto {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    position: relative;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.card-produto:hover {
    transform: translateY(-5px);
}

.card-produto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f9f9f9;
}

.card-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.categoria-label {
    color: #999;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.card-info h3 {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
    margin: 2px 0;
    min-height: 38px;
}

.rating {
    color: #777;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating i {
    color: #ffc107;
}

.preco-box {
    margin-top: 10px;
}

.preco-antigo {
    display: block;
    color: #bbb;
    text-decoration: line-through;
    font-size: 0.75rem;
}

.preco-atual {
    font-size: 1.15rem;
    font-weight: 700;
    color: #005eff;
}

/* ESTILIZAÇÃO DO BOTÃO "SAIBA MAIS" INTEGRADA AO DESIGN ANTIGO */
.botoes-card {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.btn-saiba-mais {
    flex-grow: 1;
    text-decoration: none;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px;
    color: #005eff;
    border: 1.5px solid #005eff;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-saiba-mais:hover {
    background-color: #005eff;
    color: #fff;
}

.btn-add-cart {
    background: #005eff;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 94, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart:hover {
    background: #0044bb;
}

/* MEDIA QUERIES ORIGINAIS */
@media (max-width: 900px) {
    .conteudo-principal {
        grid-template-columns: 1fr;
    }

    .btn-mobile-filtros {
        display: flex;
    }

    .sidebar-filtros {
        display: none;
    }

    .sidebar-filtros.active {
        display: block;
        margin-bottom: 30px;
    }
}

#contador-produtos {
    color: #000;
    font-weight: 500; /* Deixa um pouco mais visível, opcional */
}


.vazio {
    color: #000; 
}

.preco-pix-loja {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 2px;
}

.preco-pix-loja small {
    color: #27ae60;
    font-weight: 700;
    font-size: 0.75rem;
}

.preco-cartao-loja small {
    color: #666;
    font-size: 0.75rem;
    display: block;
}

.preco-box {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}