/**
 * categories.css - VERSÃO CORRIGIDA
 * Estilos para seleção de categorias e produtos
 */

/* ========================================
   SELEÇÃO DE CATEGORIAS
   ======================================== */

.category-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.category-btn {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border: none;
    border-radius: 20px;
    padding: 3rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-btn.selected {
    background: linear-gradient(135deg, #EC4899, #8B5CF6);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.category-icon {
    font-size: 4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.category-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

/* ========================================
   CORREÇÃO: IMAGENS DOS PRODUTOS
   ======================================== */

/* Garante que todas as imagens de produtos tenham tamanho consistente */
.perfume-card .perfume-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.perfume-card .perfume-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Cards de produtos */
.perfume-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    background: white;
}

.perfume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #8B5CF6;
}

/* Informações do produto */
.perfume-info {
    text-align: center;
}

.perfume-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.perfume-capacity {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.perfume-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #8B5CF6;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
    .category-selection {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-btn {
        padding: 2rem 1.5rem;
    }
    
    .category-icon {
        font-size: 3rem;
    }
    
    .category-text {
        font-size: 1.2rem;
    }
    
    /* Ajusta altura das imagens em mobile */
    .perfume-card .perfume-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .perfume-card .perfume-image {
        height: 150px;
    }
    
    .perfume-name {
        font-size: 1rem;
    }
    
    .perfume-price {
        font-size: 1.1rem;
    }
}

