/* Página de produtos moderna */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 40px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23FFF" stop-opacity="0.1"/><stop offset="100%" stop-color="%23FFF" stop-opacity="0"/></radialGradient></defs><circle cx="10" cy="10" r="10" fill="url(%23a)"/></svg>') repeat;
    opacity: 0.1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.products {
    padding: 0px 40px;
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    background: var(--conteudo-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1.1rem;
    background-color: var(--background-color);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.filter-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tag {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.tag:hover::before {
    left: 100%;
}

.tag:hover,
.tag.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
    padding: 30px 0;
}

.subcategory-title {
    grid-column: 1 / -1;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.product {
    background: var(--conteudo-bg);
    border: none;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product:hover::before {
    opacity: 1;
}

.product:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: white;
    overflow: hidden;
}

.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--text-color);
}

.placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product:hover .placeholder img {
    transform: scale(1.1);
}

.placeholder i {
    opacity: 0.3;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-info {
    padding: 30px;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.4;
    font-weight: 600;
}

.product-info p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1rem;
}

.price {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.price .current {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price .old {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.6;
    text-decoration: line-through;
}

.product-action {
    padding: 5px 0px;
    display: flex;
    flex-direction: column !important;
    gap: 10px;
    margin-top: auto;
}

.btn-info {
    width: 100%;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-info:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

.contact-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px !important;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.loading, .no-products {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-color);
}

.loading i {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.no-products i {
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 4rem;
    opacity: 0.3;
}

.no-products h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.no-products p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 1.1rem;
}

/* Responsividade moderna */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 50px 20px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .products {
        padding: 40px 20px;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 25px;
        margin-bottom: 40px;
    }
    
    .search-input {
        max-width: none;
        min-width: auto;
    }
    
    .filter-tags {
        justify-content: center;
        gap: 12px;
    }
    
    .tag {
        padding: 10px 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
        gap: 25px;
    }
    
    .product-info {
        padding: 25px;
    }
    
    .product-info h3 {
        font-size: 1.3rem;
    }
    
    .price .current {
        font-size: 1.5rem;
    }
    
    .contact-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .products {
        padding: 30px 15px;
    }
    
    .filters {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product {
        max-width: 100%;
    }
    
    .filter-tags {
        gap: 10px;
    }
    
    .tag {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .product-info {
        padding: 20px;
    }
}