/* ============================================================
   COMMERCE X — LOJA (nicho.html)
   ============================================================ */

.page-nicho { background: var(--bg-primary); }

/* Hero do nicho */
.hero-nicho {
    position: relative; min-height: 420px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
    background: var(--theme-gradient);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%);
}
.hero-content {
    position: relative; z-index: 2; padding: 2rem;
    color: #fff; max-width: 650px;
}
.hero-badge-nicho {
    display: inline-block; padding: 0.3rem 1rem;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
    border-radius: var(--radius-xl); font-size: 0.85rem; margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.25);
}
.hero-heading { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 0.8rem; }
.hero-desc { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1.5rem; }

/* Categorias */
.categorias-section, .produtos-section {
    max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem;
}
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.5rem; }
.categorias-grid {
    display: flex; flex-wrap: wrap; gap: 0.8rem;
}
.categoria-tag {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-xl); cursor: pointer;
    font-weight: 500; font-size: 0.9rem;
    transition: all var(--transition);
}
.categoria-tag:hover, .categoria-tag.active {
    background: var(--theme-primary); color: #fff; border-color: var(--theme-primary);
}

/* Filtros */
.section-header {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 1rem; margin-bottom: 1rem;
}
.filter-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-tag {
    padding: 0.4rem 1rem; border-radius: var(--radius-xl);
    border: 1px solid var(--border); background: var(--card-bg);
    cursor: pointer; font-size: 0.85rem; font-weight: 500;
    transition: all var(--transition);
}
.filter-tag:hover, .filter-tag.active {
    background: var(--theme-primary); color: #fff; border-color: var(--theme-primary);
}

/* Produtos */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.3rem;
}
.produto-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: var(--card-shadow);
}
.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    border-color: var(--theme-primary);
}
.produto-card-img {
    width: 100%; height: 200px; object-fit: cover;
    background: var(--bg-tertiary);
}
.produto-card-body { padding: 1rem; }
.produto-card-cat {
    font-size: 0.75rem; color: var(--theme-primary);
    font-weight: 600; text-transform: uppercase;
}
.produto-card-body h3 { font-size: 1rem; font-weight: 600; margin: 0.3rem 0; }
.produto-card-price { font-size: 1.2rem; font-weight: 700; color: var(--theme-primary); }
.produto-card-old-price { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }
.produto-card-rating { color: #f59e0b; font-size: 0.85rem; }
.produto-card-actions { display: flex; gap: 0.5rem; padding: 0 1rem 1rem; }
.produto-card-actions .btn-premium { flex: 1; font-size: 0.8rem; padding: 0.55rem 1rem; justify-content: center; }
.produto-card-actions .btn-icon { width: 36px; height: 36px; font-size: 0.9rem; }

/* Banner secundário */
.banner-secundario {
    background: var(--theme-gradient);
    color: #fff;
    padding: 3rem 2rem; text-align: center; margin: 2rem 0;
}
.banner-content h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.banner-content p { opacity: 0.9; margin-bottom: 1.5rem; }
.banner-secundario .btn-premium-outline { border-color: #fff; color: #fff; }
.banner-secundario .btn-premium-outline:hover { background: #fff; color: var(--theme-primary); }

/* No results */
.no-results { text-align: center; padding: 3rem; color: var(--text-muted); }
.no-results i { font-size: 3rem; margin-bottom: 1rem; }

/* Footer */
.footer-nicho { text-align: center; padding: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }
.footer-nicho strong { color: var(--theme-primary); }

/* Responsivo */
@media (max-width: 768px) {
    .hero-nicho { min-height: 300px; }
    .hero-heading { font-size: 1.5rem; }
    .hero-desc { font-size: 0.9rem; }
    .section-title { font-size: 1.3rem; }
    .categorias-grid { gap: 0.5rem; }
    .categoria-tag { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .produtos-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
    .produto-card-img { height: 150px; }
    .btn-niche-label { display: none; }
}
@media (max-width: 480px) {
    .produtos-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .produto-card-body h3 { font-size: 0.85rem; }
    .produto-card-price { font-size: 1rem; }
}