/* ============================================
   CORREÇÃO DO TAMANHO DO TÍTULO DOS PRODUTOS
   Torna o título menor e mais legível
   ============================================ */

/* Título do produto - Desktop */
.product-card .product-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 40px;
    max-height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px !important;
    font-weight: 500;
    color: #333;
    text-overflow: ellipsis;
    word-break: break-word; /* Quebra palavras longas */
    hyphens: auto; /* Adiciona hífens quando necessário */
}

/* Link do título */
.product-card .product-title a {
    font-size: inherit !important;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.product-card .product-title a:hover {
    color: #000;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .product-card .product-title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        min-height: 35px;
        max-height: 40px;
        margin-bottom: 8px !important;
        word-break: break-word;
        hyphens: auto;
    }
}

/* Ajustes para mobile pequeno */
@media (max-width: 480px) {
    .product-card .product-title {
        font-size: 11px !important;
        line-height: 1.2 !important;
        min-height: 30px;
        max-height: 35px;
        margin-bottom: 6px !important;
        word-break: break-word;
        hyphens: auto;
    }
}

/* ============================================
   CORREÇÃO DO ESPAÇAMENTO DAS CATEGORIAS
   Reduz o espaço entre o título e os produtos
   ============================================ */

/* Reduzir espaçamento do cabeçalho da seção */
.section-header {
    margin-bottom: 20px !important; /* Era 30px */
    padding: 10px 0 !important; /* Era 20px 0 */
}

.section-header h2 {
    margin-bottom: 10px !important; /* Era 15px */
}

/* Linha embaixo do título */
.section-header h2::after {
    bottom: -10px !important; /* Era -15px */
}

/* Reduzir espaçamento da seção de produtos */
.products-section {
    padding: 30px 0 !important; /* Era 50px 0 */
}

/* Mobile - espaçamentos ainda menores */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 15px !important;
        padding: 8px 0 !important;
    }
    
    .section-header h2 {
        margin-bottom: 8px !important;
    }
    
    .section-header h2::after {
        bottom: -8px !important;
    }
    
    .products-section {
        padding: 20px 0 !important;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 12px !important;
        padding: 5px 0 !important;
    }
    
    .section-header h2 {
        margin-bottom: 6px !important;
    }
    
    .products-section {
        padding: 15px 0 !important;
    }
}

/* Garantir que o card de produto tenha espaçamento adequado */
.product-card .product-info {
    padding: 12px !important;
}

/* Ajustar o espaçamento entre os elementos */
.product-card .product-prices {
    margin-top: 8px;
    margin-bottom: 6px;
}

.product-card .installment,
.product-card .pix-price {
    font-size: 11px !important;
    line-height: 1.3;
}

/* Mobile */
@media (max-width: 768px) {
    .product-card .product-info {
        padding: 10px !important;
    }
    
    .product-card .installment,
    .product-card .pix-price {
        font-size: 10px !important;
    }
}