/* --- RESET GENERAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', sans-serif; }
body { background: #f0f2f5; color: #333; }

/* --- ESTILOS TIENDA (Público) --- */
.navbar {
    background: #fff; padding: 15px 5%; display: flex;
    justify-content: space-between; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000;
}
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white; padding: 50px 5%; text-align: center; border-radius: 0 0 50px 50px;
}
.shop-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px; padding: 40px 5%; max-width: 1300px; margin: 0 auto;
}
/* Efecto de cartas pequeñas con expansión */
.card-item {
    background: white; padding: 12px; border-radius: 15px; text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer; position: relative;
}
.card-item:hover { transform: scale(1.15); z-index: 10; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.card-item img { width: 100%; border-radius: 10px; margin-bottom: 10px; }
.card-item h4 { font-size: 0.85rem; color: #444; height: 35px; overflow: hidden; }
.card-item p { font-weight: bold; color: #3b82f6; font-size: 1.1rem; }

/* --- ESTILOS ADMINISTRADOR (Solo con .admin-body) --- */
.admin-body { display: flex; height: 100vh; overflow: hidden; background: #f8fafc; }
.sidebar {
    width: 260px; background: #1a202c; color: white;
    display: flex; flex-direction: column; flex-shrink: 0;
}
.sidebar-brand { padding: 30px 20px; font-size: 1.5rem; font-weight: bold; color: #fbbf24; border-bottom: 1px solid #2d3748; }
.nav-item { padding: 15px 20px; cursor: pointer; color: #a0aec0; display: flex; align-items: center; gap: 12px; transition: 0.3s; }
.nav-item:hover, .nav-item.active { background: #2d3748; color: white; }
.nav-item.active { border-left: 4px solid #3b82f6; }
.main-content { flex: 1; overflow-y: auto; padding: 30px; position: relative; }
.section-content { display: none; }
.section-content.active { display: block !important; }

/* TABLAS Y BADGES */
.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; margin-top: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.admin-table th, .admin-table td { padding: 15px; text-align: left; border-bottom: 1px solid #f1f5f9; }
.admin-table th { background: #f8fafc; color: #64748b; font-size: 0.75rem; text-transform: uppercase; }
.badge { padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: bold; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-green { background: #d1fae5; color: #065f46; }

/* COMPONENTES */
.btn { padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; transition: 0.2s; }
.btn-primary { background: #3b82f6; color: white; }
.btn-success { background: #10b981; color: white; }
.btn-danger { background: #ef4444; color: white; }
input, select { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; margin: 10px 0; }