/* ============================================================
   PAINEL ADMIN PREMIUM - DESIGN SYSTEM
   ============================================================ */

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --sidebar-bg: #0f172a;
    --bg-main: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border: #e2e8f0;
    --font-main: 'Inter', sans-serif;
    --font-title: 'Inter Tight', sans-serif;
}

/* Reset & Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.admin-body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: #1e293b;
    margin: 0;
}

/* Layout Wrapper */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Moderna */
.admin-sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: white;
    padding: 2rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 1rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-logo { width: 140px; margin-bottom: 0.5rem; }
.admin-title-text { 
    font-size: 0.7rem; 
    letter-spacing: 0.1rem; 
    color: #94a3b8; 
    font-weight: 700;
}

.sidebar-nav ul { list-style: none; padding: 0; }
.nav-item { margin-bottom: 0.5rem; }

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item.active a, .nav-item a:hover {
    background: rgba(59, 130, 246, 0.15);
    color: white;
}

.nav-item.logout a:hover { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Main Content Area */
.admin-main-content { flex: 1; display: flex; flex-direction: column; }

.admin-topbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title { font-size: 1.5rem; letter-spacing: -0.025em; color: #0f172a; }

/* Grid de Cards de Estatística */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-5px); }

.stat-card i {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 5rem;
    opacity: 0.05;
}

.stat-value {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-label { color: #64748b; font-size: 0.875rem; font-weight: 500; }

/* Cores dos Cards */
.primary-bg { border-left: 5px solid #3b82f6; }
.secondary-bg { border-left: 5px solid #10b981; }
.info-bg { border-left: 5px solid #6366f1; }
.warning-bg { border-left: 5px solid #f59e0b; }

/* Tabelas e Seções de Dados */
.admin-data-section {
    background: white;
    margin: 0 2rem 2rem;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.admin-data-section h2 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    text-align: left;
    padding: 12px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.data-table tbody tr:hover { background: #f8fafc; }

/* ============================================================
   STATUS TAGS DINÂMICAS E ESTÁTICAS
   ============================================================ */

/* Base da Tag */
.status-tag, 
.status-completed, .status-pending, .status-cancelled,
[class^="status-"] {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* 🟢 SUCESSO: pago, approved, success, concluído */
.status-completed, .pago, .approved, .success, .concluido {
    background: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0;
}

/* 🟡 PENDENTE: pending, in_process, aguardando */
.status-pending, .pending, .in_process, .aguardando, .pendente {
    background: #fef9c3 !important;
    color: #854d0e !important;
    border: 1px solid #fef08a;
}

/* 🔴 CANCELADO: cancelled, rejected, estornado */
.status-cancelled, .cancelled, .rejected, .estornado {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca;
}

/* Ajuste na Tabela para não quebrar linha */
.data-table td .status-tag {
    white-space: nowrap;
}

/* Modais de Alto Nível */
.admin-modal {
    display: none; /* JS vai mudar para 'flex' */
    position: fixed;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
}

.modal-content {
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal-btn {
    font-size: 2rem;
    color: #94a3b8;
    transition: 0.2s;
}

.close-modal-btn:hover { color: #1e293b; transform: rotate(90deg); }

/* Inputs e Botões */
.admin-input, input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    transition: var(--transition);
}

.admin-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: white;
}

.cta-button.primary-cta {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button.primary-cta:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4); }

/* Mobile Adaptability */
@media (max-width: 768px) {
    .admin-sidebar { display: none; } /* Idealmente aqui você criaria um menu hamburguer futuramente */
    .stats-cards-grid { padding: 1rem; }
    .admin-data-section { margin: 0 1rem 1rem; }
}


/* ============================================================
   CORREÇÃO E DESIGN DOS MODAIS (OVERLAY)
   ============================================================ */

/* O container principal do modal agora cobre a tela toda */
.admin-modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7); /* Fundo escuro semi-transparente */
    backdrop-filter: blur(6px); /* Efeito de vidro desfocado no fundo */
    z-index: 9999; /* Garante que fique acima de tudo */
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

/* Quando o modal está aberto, impedimos o scroll do fundo */
body.modal-open {
    overflow: hidden;
}

/* Conteúdo interno do modal */
.modal-content {
    background: white;
    width: 100%;
    max-width: 800px; /* Tamanho padrão */
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease-out;
}

/* Variações de tamanho */
.modal-content.large { max-width: 1000px; }
.modal-content.medium { max-width: 600px; }

/* Animação de entrada suave */
@keyframes modalSlideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Botão de Fechar (X) */
.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal-btn:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

/* Título do Modal */
.modal-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title i {
    color: var(--primary);
}

/* Rodapé do Modal */
.modal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Ajustes para os Formulários dentro do Modal */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

/* ============================================================
   ELEMENTOS INTERNOS DOS MODAIS - DESIGN PREMIUM
   ============================================================ */

/* 1. TABS (Abas) MODERNAS */
.product-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 2rem;
    width: fit-content;
}

.tab-button {
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
}

.tab-button.active {
    background: white;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-button:hover:not(.active) {
    color: #3b82f6;
}

/* 2. CAMPOS DE FORMULÁRIO (INPUTS) */
.form-group label {
    display: block;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* 3. TABELAS DENTRO DE MODAIS */
.modal-table {
    margin-top: 1rem;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
}

.modal-table th {
    background: #f8fafc;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 14px;
}

.modal-table td {
    padding: 12px 14px;
    vertical-align: middle;
}

/* 4. BOTÕES DE AÇÃO INTERNOS */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
}

.action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.edit-btn {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.edit-btn:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: #3b82f6;
}

/* 5. BOX DE AVISO (Warning Box) */
.warning-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.warning-box p {
    margin: 0;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.4;
}

.warning-box i {
    color: #d97706;
    margin-top: 2px;
}

/* 6. PAGINAÇÃO */
.pagination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 0.85rem;
}

.prev-next {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
}

/* Animação de Pulso Econômica */
@keyframes pulse-shimmer {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.is-loading {
    animation: pulse-shimmer 1.5s ease-in-out infinite;
    pointer-events: none; /* Impede cliques enquanto carrega */
}

/* Loader de Barra no Topo (Estilo YouTube/GitHub) */
#top-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    z-index: 10000;
    transition: width 0.4s ease;
    display: none;
}



/* Card do Formulário */
.product-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   SISTEMA DE GRID PARA FORMULÁRIOS
   ============================================================ */

/* Container de campos em linha */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colunas padrão */
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Variação para 3 colunas (Preço, Categoria, Status) */
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Campo que ocupa a linha inteira */
.full-width {
    grid-column: 1 / -1;
}

/* Grupo de Campo (Label + Input) */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Espaço exato entre label e input */
    margin-bottom: 1rem;
}

/* ============================================================
   ESTILIZAÇÃO DOS CAMPOS (INPUTS/LABELS)
   ============================================================ */

.form-group label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
}

/* Estado de Foco - Elegante e Econômico */
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Estilo para Textarea (Descrição e Características) */
textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Rodapé de Ações */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .form-grid, .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SISTEMA DE ABAS (TABS) - LÓGICA DE VISIBILIDADE
   ============================================================ */
.tab-pane {
    display: none; /* Esconde todas por padrão */
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block; /* Mostra apenas a ativa */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   GALERIA DE CAPAS (CORREÇÃO DE FORMATAÇÃO)
   ============================================================ */
.cover-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin: 15px 0;
}

.cover-item {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cover-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.cover-item img {
    width: 100%;
    height: 120px;
    object-fit: cover; /* Garante que a imagem não distorça */
    border-radius: 10px;
}

.cover-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    font-family: 'Inter Tight', sans-serif;
}

/* Estado Selecionado */
.cover-item.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.cover-item.selected::after {
    content: "\f058"; /* Ícone de check do FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -8px;
    right: -8px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.data-table tbody tr {
    cursor: pointer;
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: #f8fafc !important; /* Destaque sutil ao passar o mouse */
}

.modal-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e2e8f0;
}

#view-order-items:empty::before {
    content: "🔎";
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* --- PADRÃO VISUAL PROJETOSHELP! --- */
:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --inter-tight: 'Inter Tight', sans-serif;
    --inter: 'Inter', sans-serif;
}

body.store-body {
    background-color: var(--bg-body);
    font-family: var(--inter);
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Elegante */
.store-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.store-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { height: 55px; }

/* Hero Section */
.store-hero {
    padding: 60px 0 40px;
    text-align: center;
}

.store-hero h1 {
    font-family: var(--inter-tight);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.store-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Controles e Filtros */
.store-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .store-controls { flex-direction: row; align-items: center; justify-content: space-between; }
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-bar i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--inter);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-groups {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-muted);
    font-family: var(--inter);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

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

/* Grid de Produtos Econômico */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-bottom: 80px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-family: var(--inter-tight);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-main);
    line-height: 1.4;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f8fafc;
}

.price-tag {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

.btn-details {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Loader e Estados Vazios (Elegância) */
.loader-placeholder, .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 0;
    color: var(--text-muted);
}

.loader-placeholder i { font-size: 2rem; margin-bottom: 15px; color: var(--primary); }

/* Container do Perfil na Nav */
.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 100px;
    transition: background 0.2s;
}

.user-profile-nav:hover {
    background: #f1f5f9;
}

.user-profile-nav span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    font-family: var(--inter);
}

/* O Avatar Redondo e Menor */
.nav-avatar {
    width: 32px;           /* Tamanho pequeno e elegante */
    height: 32px;
    border-radius: 50%;    /* Deixa perfeitamente redondo */
    object-fit: cover;     /* Impede que a imagem fique esticada */
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--border-color); /* Borda fina externa */
}


/* --- ESTILO AVANÇADO PROJETOSHELP! --- */

/* Hero Refinado */
.store-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent);
}

.badge {
    background: #dbeafe;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.store-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem); /* Responsivo e impactante */
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Benefícios: Design Moderno e Leve */
.store-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.benefit-item strong {
    display: block;
    font-family: var(--inter-tight);
    font-size: 1rem;
}

.benefit-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Sticky Filters */
.store-controls-wrapper {
    position: sticky;
    top: 75px; /* Altura do header */
    z-index: 900;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px); /* Efeito luxuoso sem imagem */
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid transparent;
}

.store-controls-wrapper.scrolled {
    border-color: var(--border-color);
}

/* Cards de Produto: Otimização de Imagem e Badge de Preço */
.product-card {
    border: 1px solid var(--border-color);
    background: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.card-image {
    background: linear-gradient(45deg, #f1f5f9, #ffffff);
    overflow: hidden;
}

.card-image img {
    transition: transform 0.5s ease;
}

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

/* Botão de Ver Mais com ícone animado */
.btn-details i {
    transition: transform 0.2s;
}

.product-card:hover .btn-details i {
    transform: translateX(4px);
}

.filter-groups {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Permite scroll lateral */
    padding: 5px 0 15px 0;
    scrollbar-width: none; /* Esconde scroll no Firefox */
    -ms-overflow-style: none; /* Esconde scroll no IE/Edge */
}

.filter-groups::-webkit-scrollbar {
    display: none; /* Esconde scroll no Chrome/Safari */
}

.filter-btn {
    flex-shrink: 0; /* Impede que os botões esmaguem o texto */
    padding: 10px 22px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-muted);
    font-family: var(--inter);
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}