/* Melhorias de estilo para a loja pública */

/* Ajustes gerais para centralização */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Banner ajustado */
.banner {
    height: 400px;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto;
    max-width: 1200px;
}

.banner-content {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

/* Seção melhorada */
.secao {
    margin: 3rem auto;
    max-width: 1200px;
}

.secao-titulo {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--cor-primaria);
    font-size: 2rem;
    position: relative;
}

.secao-titulo::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--cor-primaria);
    margin: 0.5rem auto;
}

/* Grid de produtos melhorado - limitado a 4 por linha */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0 auto;
}

/* Card de produto melhorado */
.produto-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.produto-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.produto-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.produto-img-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.produto-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.produto-titulo {
    font-size: 1rem; /* Reduzido de 1.1rem */
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--cor-texto);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto !important; /* Altura automática */
    min-height: 2.6rem; /* Altura mínima */
    max-height: 3.9rem; /* Altura máxima para 3 linhas */
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
}

.produto-categoria {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.produto-preco {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cor-primaria);
    margin-bottom: 1rem;
}

/* Botões de ação do produto */
.produto-acoes {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-comprar, .btn-carrinho {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-comprar {
    background-color: var(--cor-primaria);
    color: white;
    flex: 1;
}

.btn-comprar:hover {
    background-color: var(--cor-hover);
}

.btn-carrinho {
    background-color: #f8f9fa;
    color: var(--cor-texto);
    border: 1px solid #e9ecef;
}

.btn-carrinho:hover {
    background-color: #e9ecef;
}

/* Cabeçalho de categoria */
.categoria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--cor-borda);
    padding-bottom: 1rem;
}

.categoria-titulo {
    font-size: 1.5rem;
    color: var(--cor-texto);
    margin: 0;
    display: flex;
    align-items: center;
}

.categoria-titulo i {
    margin-right: 0.5rem;
    color: var(--cor-primaria);
}

.ver-mais {
    display: inline-flex;
    align-items: center;
    color: var(--cor-primaria);
    font-weight: 600;
    transition: all 0.3s ease;
}

.ver-mais i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.ver-mais:hover {
    opacity: 0.8;
}

.ver-mais:hover i {
    transform: translateX(5px);
}

/* Informações da loja melhoradas */
.info-loja {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.info-loja-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-loja-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-loja-card i {
    font-size: 2.5rem;
    color: var(--cor-primaria);
    margin-bottom: 1rem;
}

.info-loja-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--cor-texto);
}

.info-loja-card p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Estilos para a página de categoria */
.categoria-pagina {
    margin-bottom: 60px;
}

.categoria-descricao {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sem-produtos {
    text-align: center;
    padding: 60px 0;
}

.sem-produtos p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #666;
}

/* Paginação */
.paginacao {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.pagina-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagina-link:hover {
    background: #eee;
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.pagina-link.active {
    background: var(--cor-primaria);
    color: white;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 992px) {
    .produtos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-loja {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .produtos-grid {
        grid-template-columns: 1fr;
    }
    
    .banner {
        height: 300px;
    }
} 