/* Produtos Page Specific Styles */
.products-page {
    /* To push content below the fixed navbar */
    padding-top: 100px;
    min-height: 80vh;
}

.products-hero {
    padding: 6rem 4vw 4rem;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .products-hero {
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.8), rgba(9, 9, 11, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .products-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(247, 244, 243, 0.9));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.products-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.products-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filters */
.products-nav {
    padding: 2rem 4vw;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn:hover {
    background: var(--surface-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}

/* Product Grid */
.pt-0 {
    padding-top: 0 !important;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: start;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.product-grid.fade-out {
    opacity: 0;
}

.product-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .product-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--theme-color, #193BA1);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ou cover dependendo do asset */
    padding: 1rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--theme-color, #193BA1);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-features li::before {
    content: "✓";
    color: var(--theme-color, #193BA1);
    font-weight: bold;
}

.btn-product-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: var(--btn-solid-bg);
    color: var(--btn-solid-text);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-product-cta:hover {
    background: var(--color-brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Fallback for no products found */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
    font-size: 1.25rem;
}