/* Estilo customizado para a seção de produtos - Index */

/* Seção de produtos */
.products-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
}

/* Card do produto */
.product-card {
    background: white;
    border-radius: 0px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Imagem do produto */
.product-image {
    position: relative;
    overflow: hidden;
    height: 260px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Badge de desconto */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

/* Conteúdo do produto */
.product-content {
    padding: 25px;
}

.product-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-decoration: none;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #1976d2;
}

/* Avaliações */
.product-ratings {
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-count {
    color: #666;
    font-size: 0.85rem;
    margin-left: 5px;
}

/* Preços */
.price-section {
    margin-bottom: 15px;
}

.price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-right: 8px;
    display: block;
}

.price-current {
    color: #2e7d32;
    font-size: 2.4rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.price-installment {
    color: #1976d2;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Descrição dos apps */
.product-apps {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Botão de compra */
.btn-buy {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4);
}

.btn-buy i {
    margin-right: 8px;
}

/* Estado vazio */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
}

/* Responsividade */
@media (max-width: 768px) {
    .products-section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .product-content {
        padding: 10px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-image img {
        width: 200px;
        height: 200px;
        max-width: 200px;
        max-height: 200px;
        object-fit: contain;
        transform: none;
    }
    
    /* Aumentar fonte dos produtos em 50% no celular */
    .product-title {
        font-size: 1.4rem; /* Ajustado para 2 colunas */
    }
    
    .product-category {
        font-size: 0.9rem; /* Ajustado para 2 colunas */
        padding: 4px 12px;
    }
    
    .price-current {
        font-size: 1.8rem; /* Ajustado para 2 colunas */
    }
    
    .price-old {
        font-size: 1.1rem; /* Ajustado para 2 colunas */
    }
    
    .price-installment {
        font-size: 0.9rem; /* Ajustado para 2 colunas */
    }
    
    .product-apps {
        font-size: 1.0rem; /* Ajustado para 2 colunas */
        margin-bottom: 15px;
    }
    
    .stars {
        font-size: 1.0rem; /* Ajustado para 2 colunas */
    }
    
    .rating-count {
        font-size: 0.9rem; /* Ajustado para 2 colunas */
    }
    
    .btn-buy {
        font-size: 1.1rem; /* Ajustado para 2 colunas */
        padding: 12px 20px;
    }
    
    /* Ajustar espaçamento entre colunas */
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .col-6 {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }

/* Estilos das seções */
.section-category {
    margin-bottom: 60px;
}

.section-category-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2c3e50;
}

.category-description {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 0;
}

/* Scroll suave para âncoras */
html {
    scroll-behavior: smooth;
}

/* Offset para âncoras (compensar header fixo) */
.section-category {
    scroll-margin-top: 120px;
}

/* Responsividade das seções para mobile */
@media (max-width: 768px) {
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .category-title {
        font-size: 22px;
    }
    
    .category-description {
        font-size: 14px;
    }
    
    .section-category-header {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
} 