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

.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: 30px 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(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    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-radius: 20px;
    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;
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    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: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    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: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

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

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

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

.stock {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 15px;
}

.product-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.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;
}

.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;
}

/* Responsivo */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 20px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .products {
        padding: 20px 15px;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }

    .search-input {
        max-width: none;
        min-width: auto;
    }

    .filter-tags {
        justify-content: center;
        gap: 10px;
    }

    .tag {
        padding: 10px 18px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .products {
        padding: 15px 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tag {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
