/* Prima Arte - Estilos da Página de Produtos */

/* ================================
   FILTROS DE CATEGORIA
   ================================ */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(93, 78, 55, 0.1);
    color: var(--dark-brown);
    border: 2px solid rgba(93, 78, 55, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-pink));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* ================================
   GRID DE PRODUTOS
   ================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: grid;
    grid-template-rows: 250px 1fr;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    grid-row: 1;
}

.product-image, .no-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.no-image {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}



.product-info {
    padding: 1.5rem;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    gap: 0.8rem;
    grid-row: 2;
}

.product-title {
    font-family: var(--font-heading);  
    font-size: 1.3rem;
    color: var(--dark-brown);
    margin: 0;
    line-height: 1.3;
    grid-row: 1;
}

.product-description {
    color: var(--gray);
    line-height: 1.5;
    margin: 0;
    grid-row: 2;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-pink);
    margin: 0;
    grid-row: 4;
    align-self: end;
}

.product-actions {
    grid-row: 5;
    margin: 0;
}

.btn-product-view {
    background: rgba(38, 198, 218, 0.1);
    color: var(--primary-teal);
    border: 2px solid rgba(38, 198, 218, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    min-height: 50px;
}

.btn-product-view:hover {
    background: rgba(38, 198, 218, 0.2);
    border-color: rgba(38, 198, 218, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(38, 198, 218, 0.2);
}

/* ================================
   CABEÇALHO DA SEÇÃO
   ================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   ESTADO VAZIO
   ================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* ================================
   ANÚNCIOS
   ================================ */
.announcements {
    background: var(--primary-beige);
    padding: 3rem 0;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.announcement-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-teal);
    transition: all 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.announcement-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

.announcement-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ================================
   CARRINHO
   ================================ */
.cart-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--primary-beige);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image, .cart-item-image.no-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.cart-item-image.no-image {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.cart-item-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary-pink);
    font-weight: 600;
    font-size: 1.2rem;
}

.remove-btn {
    color: #e74c3c;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #e74c3c;
    color: white;
}

.cart-summary {
    background: linear-gradient(135deg, var(--primary-beige), var(--cream));
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    text-align: center;
}

.cart-total {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
}

/* ================================
   RESPONSIVO PRODUTOS
   ================================ */
@media (max-width: 768px) {
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-price {
        font-size: 1.4rem;
    }
    
    .btn-product-view {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cart-item > div:last-child {
        text-align: center;
    }
    
    .announcements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-info {
        padding: 1rem;
    }
    
    .btn-product-view {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ================================
   PROMOÇÕES MELHORADAS
   ================================ */
.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 3px 15px rgba(255, 215, 0, 0.3);
    z-index: 2;
}

.promotion-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 2;
    animation: promotionPulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes promotionPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
}

.regular-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.promotional-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d44b4b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1;
}

.promotional-price .currency {
    font-size: 1rem;
    font-weight: 600;
}

.savings-badge {
    background: #4CAF50;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-pink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Cards de produto com promoção */
.product-card.has-promotion {
    border: 2px solid #4CAF50;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.product-card.has-promotion:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.2);
}
